← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1709260] Re: Addition of host to host-aggregate should be case -sensitive

 

** Also affects: nova/queens
   Importance: Undecided
       Status: New

** Also affects: nova/pike
   Importance: Undecided
       Status: New

** Changed in: nova/pike
       Status: New => In Progress

** Changed in: nova/queens
       Status: New => In Progress

** Changed in: nova/pike
   Importance: Undecided => Low

** Changed in: nova/queens
   Importance: Undecided => Low

** Changed in: nova/pike
     Assignee: (unassigned) => Rajesh Tailor (ratailor)

** Changed in: nova/queens
     Assignee: (unassigned) => Rajesh Tailor (ratailor)

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Compute (nova).
https://bugs.launchpad.net/bugs/1709260

Title:
  Addition of host to host-aggregate should be case -sensitive

Status in OpenStack Compute (nova):
  Fix Released
Status in OpenStack Compute (nova) pike series:
  In Progress
Status in OpenStack Compute (nova) queens series:
  In Progress

Bug description:
  I have multinode devstack setup with 2 compute and a controller node.
  The hostnames of the nodes are as follows:
  controller: controller.example.com
  compute0: compute0.example.com
  compute1: compute1.example.com

  Reproduction steps:

  1) I have created a host-aggregate in availability zone "nova".
      nova aggregate-create test_agg nova

  2) Then I set metadata on that host-aggregate.
      nova aggregate-set-metadata 1 ssd=true

  3) Then I added compute hosts mentioned above to host-aggregate.
      nova aggregate-add-host test_agg COMPUTE0.example.com
      nova aggregate-add-host test_agg compute1.example.com

  While adding compute0 to host-aggregate, if I provide hostname as "COMPUTE0.example.com", instead of
  throwing HostNotFound error, it is added to host-aggregate.

  4) After that I have created a flavor.
  nova flavor-create ssd.large 6 8192 80 4

  5) Added metadata to flavor.
  nova flavor-key ssd.large set ssd=true

  Now when I try to create instance with above mentioned flavor, I can't
  spawn it on compute0 host. As scheduler is filtering only compute1
  with AggregateInstanceExtraSpecsFilter filter.

  Expected Result: while adding the case-sensitive host to host-
  aggregate, nova-api should have thrown HostNotFound error.

  Note: when I add the correct hostname "compute0.example.com", I am
  able to spawn instance on with above mentioned flavor on compute0 host
  and it is filtered by AggregateInstanceExtraSpecFilter as well.

To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1709260/+subscriptions


References