server-update and server-get shows wrong 'id' and 'update_at'

Bug #1777576 reported by miaoyuliang
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
python-designateclient
Fix Released
Undecided
miaoyuliang

Bug Description

When process 'designate server-get uuid' and 'designate server-update ****** uuid', the tables show wrong 'id' and 'update_at'values.

The following is an example,the value of 'id' and 'update_at' should be exchanged。

[root@controller ~]# designate server-get 50fb3878-bd26-4b42-b803-aa6f164eb9e3
/usr/lib/python2.7/site-packages/designateclient/cli/base.py:38: DeprecationWarning: The "designate" CLI is being deprecated in favour of the "openstack" CLI plugin. All designate API v2 commands are implemented there. When the v1 API is removed this CLI will stop functioning
  DeprecationWarning)
+------------+--------------------------------------+
| Field | Value |
+------------+--------------------------------------+
| id | 2018-06-19T14:45:44.000000 |
| created_at | 2018-01-25T03:34:12.000000 |
| updated_at | 50fb3878-bd26-4b42-b803-aa6f164eb9e3 |
| name | ns12-1.example.org. |
+------------+--------------------------------------+

[root@controller ~]# designate server-update --name ns1-1.example.org. 50fb3878-bd26-4b42-b803-aa6f164eb9e3
/usr/lib/python2.7/site-packages/designateclient/cli/base.py:38: DeprecationWarning: The "designate" CLI is being deprecated in favour of the "openstack" CLI plugin. All designate API v2 commands are implemented there. When the v1 API is removed this CLI will stop functioning
  DeprecationWarning)
+------------+--------------------------------------+
| Field | Value |
+------------+--------------------------------------+
| id | 2018-06-19T14:45:44.000000 |
| created_at | 2018-01-25T03:34:12.000000 |
| updated_at | 50fb3878-bd26-4b42-b803-aa6f164eb9e3 |
| name | ns1-1.example.org. |
+------------+--------------------------------------+

miaoyuliang (mylaliang)
Changed in python-designateclient:
assignee: nobody → miaoyuliang (mylaliang)
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to python-designateclient (master)

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

Revision history for this message
miaoyuliang (mylaliang) wrote :

it also affects 'designate server-create'

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to python-designateclient (master)

Reviewed: https://review.openstack.org/576408
Committed: https://git.openstack.org/cgit/openstack/python-designateclient/commit/?id=19e43432c3bda75b0f688acca01b984225709cf5
Submitter: Zuul
Branch: master

commit 19e43432c3bda75b0f688acca01b984225709cf5
Author: miaoyuliang <email address hidden>
Date: Tue Jun 19 15:45:56 2018 -0400

    server-get/update show wrong values about 'id' and 'update_at'

    While process 'designate server-get' and 'designate server-update',
    the 'id' and 'update_at' values are wrong, they should be
    interchanged.

    Change-Id: Ibddf9cc9a018774ed229c0dfa81e705cd74704bc
    Closes-Bug: #1777576

Changed in python-designateclient:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to python-designateclient (stable/pike)

Fix proposed to branch: stable/pike
Review: https://review.openstack.org/585611

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to python-designateclient (stable/ocata)

Fix proposed to branch: stable/ocata
Review: https://review.openstack.org/585621

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to python-designateclient (stable/queens)

Fix proposed to branch: stable/queens
Review: https://review.openstack.org/585622

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/python-designateclient 2.10.0

This issue was fixed in the openstack/python-designateclient 2.10.0 release.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to python-designateclient (stable/queens)

Reviewed: https://review.openstack.org/585622
Committed: https://git.openstack.org/cgit/openstack/python-designateclient/commit/?id=a8545e8023e16518acc563447df2d7988a149063
Submitter: Zuul
Branch: stable/queens

commit a8545e8023e16518acc563447df2d7988a149063
Author: miaoyuliang <email address hidden>
Date: Tue Jun 19 15:45:56 2018 -0400

    server-get/update show wrong values about 'id' and 'update_at'

    While process 'designate server-get' and 'designate server-update',
    the 'id' and 'update_at' values are wrong, they should be
    interchanged.

    Change-Id: Ibddf9cc9a018774ed229c0dfa81e705cd74704bc
    Closes-Bug: #1777576

tags: added: in-stable-queens
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to python-designateclient (stable/pike)

Reviewed: https://review.openstack.org/585611
Committed: https://git.openstack.org/cgit/openstack/python-designateclient/commit/?id=05990b868e192d5ebb46509bdb0254e91b9ccbe9
Submitter: Zuul
Branch: stable/pike

commit 05990b868e192d5ebb46509bdb0254e91b9ccbe9
Author: miaoyuliang <email address hidden>
Date: Tue Jun 19 15:45:56 2018 -0400

    server-get/update show wrong values about 'id' and 'update_at'

    While process 'designate server-get' and 'designate server-update',
    the 'id' and 'update_at' values are wrong, they should be
    interchanged.

    Change-Id: Ibddf9cc9a018774ed229c0dfa81e705cd74704bc
    Closes-Bug: #1777576

tags: added: in-stable-pike
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to python-designateclient (stable/ocata)

Reviewed: https://review.openstack.org/585621
Committed: https://git.openstack.org/cgit/openstack/python-designateclient/commit/?id=930384a48fd2124981d97304a8bc6c4fd875d7b7
Submitter: Zuul
Branch: stable/ocata

commit 930384a48fd2124981d97304a8bc6c4fd875d7b7
Author: miaoyuliang <email address hidden>
Date: Tue Jun 19 15:45:56 2018 -0400

    server-get/update show wrong values about 'id' and 'update_at'

    While process 'designate server-get' and 'designate server-update',
    the 'id' and 'update_at' values are wrong, they should be
    interchanged.

    Change-Id: Ibddf9cc9a018774ed229c0dfa81e705cd74704bc
    Closes-Bug: #1777576

tags: added: in-stable-ocata
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/python-designateclient ocata-eol

This issue was fixed in the openstack/python-designateclient ocata-eol release.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/python-designateclient queens-eol

This issue was fixed in the openstack/python-designateclient queens-eol release.

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

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.