This is now fixed with the addition of nova-neutron events.
** Changed in: nova
Status: Confirmed => Fix Released
--
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/1183562
Title:
changes-since timestamp is not updated after making network changes
Status in OpenStack Compute (Nova):
Fix Released
Bug description:
When dynamically adding and removing ports from a VM, the changes do
not cause the server timestamp to be updated. This causes the
v2/{tenant_id}/servers?changes-since={timestamp} REST API call to
return an unchanged timestamp. Thus, it appears that nothing has
changed for VM, despite the fact that the network configuration has
changed.
When using nova-network changes to the networking configuration using
that approach did cause the timestamp to be updated.
As users are being encouraged to move from nova-network to quantum
(BluePrint https://blueprints.launchpad.net/quantum/+spec/nova-to-
quantum-upgrade) this change in functionality could be seen as a
regression and could break any utilities that are expecting to see a
change in the server time stamp when changes are made to the network.
A similar bug to this one was addressed:
https://bugs.launchpad.net/nova/+bug/1143466
The issue is easy to recreate:
[root@rhel6havana ~]# nova boot --image cirros --flavor m1.tiny TEST
+-------------------------------------+--------------------------------------+
| Property | Value |
+-------------------------------------+--------------------------------------+
| OS-EXT-STS:task_state | scheduling |
| image | cirros |
| OS-EXT-STS:vm_state | building |
| OS-EXT-SRV-ATTR:instance_name | instance-00000003 |
| flavor | m1.tiny |
| id | e68f3c0c-4ada-44bf-ba60-c577b5c037ad |
| security_groups | [{u'name': u'default'}] |
| user_id | 612de0a91a4b4fe4960f436a8715e7d6 |
| OS-DCF:diskConfig | MANUAL |
| accessIPv4 | |
| accessIPv6 | |
| progress | 0 |
| OS-EXT-STS:power_state | 0 |
| OS-EXT-AZ:availability_zone | nova |
| config_drive | |
| status | BUILD |
| updated | 2013-05-23T20:37:44Z |
| hostId | |
| OS-EXT-SRV-ATTR:host | None |
| key_name | None |
| OS-EXT-SRV-ATTR:hypervisor_hostname | None |
| name | TEST |
| adminPass | 6qarniy3q7ND |
| tenant_id | fa123aafec8346b1a8b8cb6dd8e2dc6e |
| created | 2013-05-23T20:37:44Z |
| metadata | {} |
+-------------------------------------+--------------------------------------+
[root@rhel6havana ~]# nova list
+--------------------------------------+------+--------+--------------------------------------+
| ID | Name | Status | Networks
|
+--------------------------------------+------+--------+--------------------------------------+
| e68f3c0c-4ada-44bf-ba60-c577b5c037ad | TEST | ACTIVE | network2=10.0.2.2;
network1=10.0.1.3 |
+--------------------------------------+------+--------+--------------------------------------+
[root@rhel6havana ~]# nova show TEST
+-------------------------------------+----------------------------------------------------------+
| Property | Value
|
+-------------------------------------+----------------------------------------------------------+
| status | ACTIVE
|
| updated | 2013-05-23T20:37:50Z
|
| OS-EXT-STS:task_state | None
|
| OS-EXT-SRV-ATTR:host | rhel6havana
|
| key_name | None
|
| image | cirros
(9af9ba34-8567-4a3b-86d0-965d71c293d4) |
| network1 network | 10.0.1.3
|
| hostId |
20821ecbc2ad05a661720cafd65fd44c697f1f2fdf29b6c47626cad9 |
| OS-EXT-STS:vm_state | active
|
| OS-EXT-SRV-ATTR:instance_name | instance-00000003
|
| OS-EXT-SRV-ATTR:hypervisor_hostname | rhel6havana.novalocal
|
| flavor | m1.tiny (1)
|
| id | e68f3c0c-4ada-44bf-ba60-c577b5c037ad
|
| security_groups | [{u'name': u'default'}]
|
| user_id | 612de0a91a4b4fe4960f436a8715e7d6
|
| name | TEST
|
| created | 2013-05-23T20:37:44Z
|
| tenant_id | fa123aafec8346b1a8b8cb6dd8e2dc6e
|
| OS-DCF:diskConfig | MANUAL
|
| metadata | {}
|
| accessIPv4 |
|
| accessIPv6 |
|
| progress | 0
|
| OS-EXT-STS:power_state | 1
|
| OS-EXT-AZ:availability_zone | nova
|
| network2 network | 10.0.2.2
|
| config_drive |
|
+-------------------------------------+----------------------------------------------------------+
[root@rhel6havana ~]# quantum port-list
which: no gedit in
(/usr/lib64/qt-3.3/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/home/db2inst1/sqllib/bin:/home/db2inst1/sqllib/adm:/home/db2inst1/sqllib/misc:/root/bin)
which: no kate in
(/usr/lib64/qt-3.3/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/home/db2inst1/sqllib/bin:/home/db2inst1/sqllib/adm:/home/db2inst1/sqllib/misc:/root/bin)
+--------------------------------------+------+-------------------+---------------------------------------------------------------------------------+
| id | name | mac_address | fixed_ips
|
+--------------------------------------+------+-------------------+---------------------------------------------------------------------------------+
| be8374e9-45ce-40df-a278-49f2a303b635 | | fa:16:3e:27:67:2c |
{"subnet_id": "bd42c534-e153-485a-a174-60aa35155b60", "ip_address": "10.0.1.1"}
|
| 28fadf80-c508-4601-b726-99f9ef576a9c | | fa:16:3e:61:fa:d2 |
{"subnet_id": "bd42c534-e153-485a-a174-60aa35155b60", "ip_address": "10.0.1.2"}
|
| b032614c-094f-4293-96a3-70af4088e559 | | fa:16:3e:71:85:e1 |
{"subnet_id": "a481ff5b-1fe6-4d04-9ddf-bbc645c07924", "ip_address": "10.0.2.2"}
|
| 6a1c3803-1b19-4181-ab8e-c5fd0994b3ac | | fa:16:3e:cb:f4:53 |
{"subnet_id": "bd42c534-e153-485a-a174-60aa35155b60", "ip_address": "10.0.1.3"}
|
+--------------------------------------+------+-------------------+---------------------------------------------------------------------------------+
[root@rhel6havana ~]# quantum port-delete b032614c-094f-4293-96a3-70af4088e559
which: no gedit in
(/usr/lib64/qt-3.3/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/home/db2inst1/sqllib/bin:/home/db2inst1/sqllib/adm:/home/db2inst1/sqllib/misc:/root/bin)
which: no kate in
(/usr/lib64/qt-3.3/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/home/db2inst1/sqllib/bin:/home/db2inst1/sqllib/adm:/home/db2inst1/sqllib/misc:/root/bin)
Deleted port: b032614c-094f-4293-96a3-70af4088e559
[root@rhel6havana ~]# nova list
+--------------------------------------+------+--------+-------------------+
| ID | Name | Status | Networks |
+--------------------------------------+------+--------+-------------------+
| e68f3c0c-4ada-44bf-ba60-c577b5c037ad | TEST | ACTIVE | network1=10.0.1.3 |
+--------------------------------------+------+--------+-------------------+
[root@rhel6havana ~]# nova show TEST
+-------------------------------------+----------------------------------------------------------+
| Property | Value
|
+-------------------------------------+----------------------------------------------------------+
| status | ACTIVE
|
| updated | 2013-05-23T20:37:50Z
|
| OS-EXT-STS:task_state | None
|
| OS-EXT-SRV-ATTR:host | rhel6havana
|
| key_name | None
|
| image | cirros
(9af9ba34-8567-4a3b-86d0-965d71c293d4) |
| network1 network | 10.0.1.3
|
| hostId |
20821ecbc2ad05a661720cafd65fd44c697f1f2fdf29b6c47626cad9 |
| OS-EXT-STS:vm_state | active
|
| OS-EXT-SRV-ATTR:instance_name | instance-00000003
|
| OS-EXT-SRV-ATTR:hypervisor_hostname | rhel6havana.novalocal
|
| flavor | m1.tiny (1)
|
| id | e68f3c0c-4ada-44bf-ba60-c577b5c037ad
|
| security_groups | [{u'name': u'default'}]
|
| user_id | 612de0a91a4b4fe4960f436a8715e7d6
|
| name | TEST
|
| created | 2013-05-23T20:37:44Z
|
| tenant_id | fa123aafec8346b1a8b8cb6dd8e2dc6e
|
| OS-DCF:diskConfig | MANUAL
|
| metadata | {}
|
| accessIPv4 |
|
| accessIPv6 |
|
| progress | 0
|
| OS-EXT-STS:power_state | 1
|
| OS-EXT-AZ:availability_zone | nova
|
| config_drive |
|
+-------------------------------------+----------------------------------------------------------+
[root@rhel6havana ~]#
To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1183562/+subscriptions
--
Mailing list: https://launchpad.net/~yahoo-eng-team
Post to : [email protected]
Unsubscribe : https://launchpad.net/~yahoo-eng-team
More help : https://help.launchpad.net/ListHelp