← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1663456] [NEW] Field 'updated_at' always 'None' when show aggregate

 

Public bug reported:

Description
===========
When i got detailed info of one host aggregate with CLI `openstack aggregate show`,
the field 'updated_at' always was 'None'.

Steps to reproduce
==================
* Create one host aggregate with CLI `openstack aggregate create t-sh`
* Set some properties for the aggregate with CLI `openstack aggregate set --zone tztz --property foo=bar agg-sh`
* Get detailed info of the aggregate with CLI `openstack aggregate show agg-sh`

Expected result
===============
| updated_at        | 2017-02-10T03:27:25.535045 |

Actual result
=============
| updated_at        | None                       |

Environment
===========
1. nova version
[root@controller nova]# git log
commit 50d402821be7476eb58ccd791c50d8ed801e85eb
Author: Matt Riedemann <mriedem@xxxxxxxxxx>
Date: Wed Feb 8 10:23:14 2017 -0500

    Consider startup scenario in _get_compute_nodes_in_db

2. Which hypervisor did you use?
devstack + libvirt + kvm

Logs
==============
Enable --debug in openstack command.
* Set some properties for the aggregate with '--debug'. 
RESP BODY: {"aggregate": {"name": "agg-sh", "availability_zone": "tztz", "deleted": false, "created_at": "2017-02-10T03:26:21.000000", "updated_at": "2017-02-10T03:27:25.535045", "hosts": [], "deleted_at": null, "id": 4, "metadata": {"foo": "bar", "availability_zone": "tztz"}}}

Note: field 'updated_at' has valid value.

* Get detailed info with '--debug'
RESP BODY: {"aggregates": [{"name": "agg-1", "availability_zone": "tz1", "deleted": false, "created_at": "2017-02-10T02:09:47.000000", "updated_at": null, "hosts": ["controller"], "deleted_at": null, "id": 1, "metadata": {"color": "green", "foo": "bar", "availability_zone": "tz1"}}, {"name": "agg-a", "availability_zone": "tz2", "deleted": false, "created_at": "2017-02-10T02:39:15.000000", "updated_at": null, "hosts": [], "deleted_at": null, "id": 2, "metadata": {"foo": "tar", "availability_zone": "tz2"}}, {"name": "t-sh", "availability_zone": "tz3", "deleted": false, "created_at": "2017-02-10T02:39:24.000000", "updated_at": null, "hosts": [], "deleted_at": null, "id": 3, "metadata": {"color": "blue", "hello": "world", "availability_zone": "tz3"}}, {"name": "agg-sh", "availability_zone": "tztz", "deleted": false, "created_at": "2017-02-10T03:26:21.000000", "updated_at": null, "hosts": [], "deleted_at": null, "id": 4, "metadata": {"foo": "bar", "availability_zone": "tztz"}}]}

Note: field 'updated_at' is null.

** Affects: nova
     Importance: Undecided
     Assignee: Eric Xie (eric-xie)
         Status: In Progress


** Tags: host-aggregate

** Changed in: nova
       Status: New => In Progress

** Changed in: nova
     Assignee: (unassigned) => Eric Xie (eric-xie)

** Tags added: host-aggregate

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

Title:
  Field 'updated_at' always 'None' when show aggregate

Status in OpenStack Compute (nova):
  In Progress

Bug description:
  Description
  ===========
  When i got detailed info of one host aggregate with CLI `openstack aggregate show`,
  the field 'updated_at' always was 'None'.

  Steps to reproduce
  ==================
  * Create one host aggregate with CLI `openstack aggregate create t-sh`
  * Set some properties for the aggregate with CLI `openstack aggregate set --zone tztz --property foo=bar agg-sh`
  * Get detailed info of the aggregate with CLI `openstack aggregate show agg-sh`

  Expected result
  ===============
  | updated_at        | 2017-02-10T03:27:25.535045 |

  Actual result
  =============
  | updated_at        | None                       |

  Environment
  ===========
  1. nova version
  [root@controller nova]# git log
  commit 50d402821be7476eb58ccd791c50d8ed801e85eb
  Author: Matt Riedemann <mriedem@xxxxxxxxxx>
  Date: Wed Feb 8 10:23:14 2017 -0500

      Consider startup scenario in _get_compute_nodes_in_db

  2. Which hypervisor did you use?
  devstack + libvirt + kvm

  Logs
  ==============
  Enable --debug in openstack command.
  * Set some properties for the aggregate with '--debug'. 
  RESP BODY: {"aggregate": {"name": "agg-sh", "availability_zone": "tztz", "deleted": false, "created_at": "2017-02-10T03:26:21.000000", "updated_at": "2017-02-10T03:27:25.535045", "hosts": [], "deleted_at": null, "id": 4, "metadata": {"foo": "bar", "availability_zone": "tztz"}}}

  Note: field 'updated_at' has valid value.

  * Get detailed info with '--debug'
  RESP BODY: {"aggregates": [{"name": "agg-1", "availability_zone": "tz1", "deleted": false, "created_at": "2017-02-10T02:09:47.000000", "updated_at": null, "hosts": ["controller"], "deleted_at": null, "id": 1, "metadata": {"color": "green", "foo": "bar", "availability_zone": "tz1"}}, {"name": "agg-a", "availability_zone": "tz2", "deleted": false, "created_at": "2017-02-10T02:39:15.000000", "updated_at": null, "hosts": [], "deleted_at": null, "id": 2, "metadata": {"foo": "tar", "availability_zone": "tz2"}}, {"name": "t-sh", "availability_zone": "tz3", "deleted": false, "created_at": "2017-02-10T02:39:24.000000", "updated_at": null, "hosts": [], "deleted_at": null, "id": 3, "metadata": {"color": "blue", "hello": "world", "availability_zone": "tz3"}}, {"name": "agg-sh", "availability_zone": "tztz", "deleted": false, "created_at": "2017-02-10T03:26:21.000000", "updated_at": null, "hosts": [], "deleted_at": null, "id": 4, "metadata": {"foo": "bar", "availability_zone": "tztz"}}]}

  Note: field 'updated_at' is null.

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


Follow ups