Updated_at field on server not changed when associated security groups changes

Bug #1700684 reported by Jose Santos on 2017-06-27
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Medium
Vishakha Agarwal

Bug Description

I am accessing the nova api using the gophercloud SDK https://github.com/rackspace/gophercloud
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://developer.openstack.org/api-guide/compute/polling_changes-since_parameter.html

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

Jay Pipes (jaypipes) on 2017-06-27
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
Sean Dague (sdague) wrote :

Automatically discovered version newton in description. If this is incorrect, please update the description to include 'nova version: ...'

tags: added: openstack-version.newton
Omar Muhtaseb (omarm) on 2017-12-25
Changed in nova:
assignee: nobody → Omar Muhtaseb (omarm)
Omar Muhtaseb (omarm) on 2017-12-25
Changed in nova:
assignee: Omar Muhtaseb (omarm) → nobody
Changed in nova:
assignee: nobody → Vishakha Agarwal (vishakha.agarwal)

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

Changed in nova:
status: Confirmed → In Progress

Change abandoned by Stephen Finucane (<email address hidden>) on branch: master
Review: https://review.opendev.org/586446
Reason: This has been here in failing state for some time with no changes. I think it's safe to abandon now

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

Other bug subscribers