← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1700684] [NEW] Updated_at field on server not changed for list of attached security groups

 

Public bug reported:

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 Pikes made a comment on a post I submited to the
openstack@xxxxxxxxxxxxxxxxxxx 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

** Affects: nova
     Importance: Undecided
         Status: New

-- 
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/1700684

Title:
  Updated_at field on server not changed for list of attached security
  groups

Status in OpenStack Compute (nova):
  New

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 Pikes made a comment on a post I submited to the
  openstack@xxxxxxxxxxxxxxxxxxx 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

To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1700684/+subscriptions