Bug 1460916 - Filter AggregateInstanceExtraSpecsFilter returned 0 hosts
Summary: Filter AggregateInstanceExtraSpecsFilter returned 0 hosts
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: openstack-nova
Version: 10.0 (Newton)
Hardware: Unspecified
OS: Unspecified
low
low
Target Milestone: z3
: 14.0 (Rocky)
Assignee: Rajesh Tailor
QA Contact: Joe H. Rahme
URL:
Whiteboard:
Depends On:
Blocks: 1611450 1611927 1694152
TreeView+ depends on / blocked
 
Reported: 2017-06-13 06:53 UTC by Md Nadeem
Modified: 2020-12-14 08:51 UTC (History)
10 users (show)

Fixed In Version: openstack-nova-14.1.0-45.el7ost
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
: 1611450 1611927 (view as bug list)
Environment:
Last Closed: 2019-04-30 17:47:20 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Launchpad 1709260 0 None None None 2017-08-08 08:22:50 UTC
OpenStack gerrit 604906 0 'None' MERGED Enforce case-sensitive hostnames in aggregate host add 2021-02-16 05:20:31 UTC
Red Hat Product Errata RHBA-2019:0941 0 None None None 2019-04-30 17:47:33 UTC

Description Md Nadeem 2017-06-13 06:53:15 UTC
Description of problem:
The Filter AggregateInstanceExtraSpecsFilter returned 0 hosts.

The reason behind was name of compute node(DNUCS002-osd-compute-0.localdomain) added in the host-aggregate. The node name given was in capital letter when we re-attached the compute node to the host aggregate with name in small letter( dnucs002-osd-compute-0.localdomain) as mentioned in nova hypervisor-list, it works fine. 

cu want that the compute name should be case insensitive in this case, if not then while adding the compute node to the host aggregate it should throw the error with proper message like 'compute host not found'.

It is confusing that node successfully attached to the hostaggregate, however while spawning the instance the filter simply return 0 hosts without any clue.  


[stack@dnucs002-ospd ~]$ nova hypervisor-list
+----+------------------------------------+-------+---------+
| ID | Hypervisor hostname                | State | Status  |
+----+------------------------------------+-------+---------+
| 1  | dnucs002-osd-compute-0.localdomain | up    | enabled |
| 4  | dnucs002-compute-3.localdomain     | up    | enabled |


[stack@dnucs002-ospd ~]$ openstack aggregate show 2
+-------------------+-----------------------------------------+
| Field             | Value                                   |
+-------------------+-----------------------------------------+
| availability_zone | mgmt                                    |
| created_at        | 2017-06-12T19:48:03.000000              |
| deleted           | False                                   |
| deleted_at        | None                                    |
| hosts             | [u'DNUCS002-osd-compute-0.localdomain'] |


Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:
The Filter AggregateInstanceExtraSpecsFilter returned 0 hosts.

Expected results:

It should returned the hosts attached to the hostaggregate

Additional info:

Comment 1 Rajesh Tailor 2017-08-08 08:21:29 UTC
The issue is there in upstream master branch as well, I have reported it to
upstream bug tracking launchpad.

https://bugs.launchpad.net/nova/+bug/1709260

Comment 11 errata-xmlrpc 2019-04-30 17:47:20 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2019:0941


Note You need to log in before you can comment on or make changes to this bug.