Updated_at field on server not changed when associated security groups changes
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
In Progress
|
Medium
|
Vishakha Agarwal |
Bug Description
I am accessing the nova api using the gophercloud SDK https:/
I am running Openstack Newton installed with Openstack Ansible
I am accessing the “List Servers” call of the nova Api with the Changes-Since parameters for efficient polling
https:/
However, the API is not working as expected.
When I stop or start a server instance, the API successfully detects the change in the server state and returns the server in the next call to ListServers with the Changes-Since parameter, as expected.
However when I attach a new security group to the server, the API does not detect and does not return the server in the next call to ListServers with the Changes-Since parameter.
Jay Pipes made a comment on a post I submited to the <email address hidden> list, saying this is caused because changes to which security groups are attached to a server instance do not set the "updated_at" field of the server instance.
I consider this a bug.
When querying the nova API using ListServer, the returned fields include the list of security groups attached to the server instances. Therefore the list of security group attached to an instance is part of the properties of the server instance. If that changes (attaching or detaching a security group) then the updated_at field should be updated to reflect a change in the properties of the server instance.
T
description: | updated |
summary: |
- Updated_at field on server not changed for list of attached security - groups + Updated_at field on server not changed when associated security groups + changes |
Changed in nova: | |
importance: | Undecided → Medium |
status: | New → Confirmed |
Changed in nova: | |
assignee: | nobody → Omar Muhtaseb (omarm) |
Changed in nova: | |
assignee: | Omar Muhtaseb (omarm) → nobody |
Changed in nova: | |
assignee: | nobody → Vishakha Agarwal (vishakha.agarwal) |
Automatically discovered version newton in description. If this is incorrect, please update the description to include 'nova version: ...'