"nova server-group-list " show no members even if create one VM in one group

Bug #1301382 reported by Guangya Liu (Jay Lau)
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
In Progress
Medium
Guangya Liu (Jay Lau)

Bug Description

gyliu@devstack1:~$ nova server-group-create rg1 --policy affinity
+--------------------------------------+------+---------------+---------+----------+
| Id | Name | Policies | Members | Metadata |
+--------------------------------------+------+---------------+---------+----------+
| 8a974011-c706-4317-8455-bd6b52ad8584 | rg1 | [u'affinity'] | [] | {} |
+--------------------------------------+------+---------------+---------+----------+

gyliu@devstack1:~$ nova boot --image cirros-0.3.1-x86_64-uec --flavor 1 --hint group=8a974011-c706-4317-8455-bd6b52ad8584 vm1
+--------------------------------------+----------------------------------------------------------------+
| Property | Value |
+--------------------------------------+----------------------------------------------------------------+
| OS-DCF:diskConfig | MANUAL |
| OS-EXT-AZ:availability_zone | nova |
| OS-EXT-SRV-ATTR:host | - |
| OS-EXT-SRV-ATTR:hypervisor_hostname | - |
| OS-EXT-SRV-ATTR:instance_name | instance-00000002 |
| OS-EXT-STS:power_state | 0 |
| OS-EXT-STS:task_state | scheduling |
| OS-EXT-STS:vm_state | building |
| OS-SRV-USG:launched_at | - |
| OS-SRV-USG:terminated_at | - |
| accessIPv4 | |
| accessIPv6 | |
| adminPass | EoGB78c9YHZa |
| config_drive | |
| created | 2014-04-02T12:10:30Z |
| flavor | m1.tiny (1) |
| hostId | |
| id | 19851e3d-9314-4c28-8612-cadae0cbcbf1 |
| image | cirros-0.3.1-x86_64-uec (61f1a44e-62a9-44ab-8843-3c050be82502) |
| key_name | - |
| metadata | {} |
| name | vm1 |
| os-extended-volumes:volumes_attached | [] |
| progress | 0 |
| security_groups | default |
| status | BUILD |
| tenant_id | 2168c6190c7d430d8b9497c610de65f8 |
| updated | 2014-04-02T12:10:30Z |
| user_id | a20e9c6632df425eb06b3a21655e9b4b |
+--------------------------------------+----------------------------------------------------------------+
gyliu@devstack1:~$ nova list
+--------------------------------------+------+--------+------------+-------------+------------------+
| ID | Name | Status | Task State | Power State | Networks |
+--------------------------------------+------+--------+------------+-------------+------------------+
| 19851e3d-9314-4c28-8612-cadae0cbcbf1 | vm1 | ACTIVE | - | Running | private=10.0.0.2 |
+--------------------------------------+------+--------+------------+-------------+------------------+

gyliu@devstack1:~$ nova server-group-list
+--------------------------------------+------+---------------+---------+----------+
| Id | Name | Policies | Members | Metadata |
+--------------------------------------+------+---------------+---------+----------+
| 8a974011-c706-4317-8455-bd6b52ad8584 | rg1 | [u'affinity'] | [] | {} | << Still no member
+--------------------------------------+------+---------------+---------+----------+

Changed in nova:
assignee: nobody → Jay Lau (jay-lau-513)
importance: Undecided → Medium
summary: - "nova server-group-list " show no members even if I create one VM in
- one group
+ "nova server-group-list " show no members even if create one VM in one
+ group
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to nova (master)

Fix proposed to branch: master
Review: https://review.openstack.org/84751

Changed in nova:
status: New → In Progress
Revision history for this message
Jay Pipes (jaypipes) wrote :

Does the VM appear as a member of the group once the VM has gotten through scheduling and building stages?

Revision history for this message
Guangya Liu (Jay Lau) (jay-lau-513) wrote :

Jay Pipes, the VM never appear as a member of the group even though it has been stored in the table of instance_group.

Revision history for this message
Chris Friesen (cbf123) wrote :

This bug has already been reported under 1298494 and so after discussion with Jay I'm marking it as a duplicate. The proposed fixes will also be consolidated.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.