yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #66351
[Bug 1708210] [NEW] ‘os-extended-volumes:volumes_attached’ field empty in 'server list' api response
Public bug reported:
Description
===========
'os-extended-volumes:volumes_attached' field in 'server list' api response is empty list, while in 'server show' it has attached volumes
Steps to reproduce
==================
* create a server
* create a volume
* attach a volume to the server
* $ openstack --debug server list
* $ openstack --debug server show <server>
Actual result
=============
RESP from 'openstack --debug server list' command:
RESP BODY: {"servers": [{"OS-EXT-STS:task_state": null, "addresses": {"public": [{"OS-EXT-IPS-MAC:mac_addr": "fa:16:3e:05:15:9f", "version": 4, "addr": "172.24.4.13", "OS-EXT-IPS:type": "fixed"}, {"OS-EXT-IPS-MAC:mac_addr": "fa:16:3e:05:15:9f", "version": 6, "addr": "2001:db8::e", "OS-EXT-IPS:type": "fixed"}]}, "links": [{"href": "http://192.168.56.101/compute/v2.1/servers/03f3a8da-2c51-4f43-96dc-9354a6fef3f5", "rel": "self"}, {"href": "http://192.168.56.101/compute/servers/03f3a8da-2c51-4f43-96dc-9354a6fef3f5", "rel": "bookmark"}], "image": {"id": "9929f291-7d09-49ff-8374-e59d2fb2f43c", "links": [{"href": "http://192.168.56.101/compute/images/9929f291-7d09-49ff-8374-e59d2fb2f43c", "rel": "bookmark"}]}, "OS-EXT-STS:vm_state": "active", "OS-EXT-SRV-ATTR:instance_name": "instance-00000002", "OS-SRV-USG:launched_at": "2017-08-02T16:10:18.000000", "flavor": {"id": "1", "links": [{"href": "http://192.168.56.101/compute/flavors/1", "rel": "bookmark"}]}, "id": "03f3a8da-2c51-4f43-96dc-9354a6fef3f5", "security_groups": [{"name": "default"}], "user_id": "5863c93dccb84f1ba5c98b3297496b4d", "OS-DCF:diskConfig": "MANUAL", "accessIPv4": "", "accessIPv6": "", "progress": 0, "OS-EXT-STS:power_state": 1, "OS-EXT-AZ:availability_zone": "nova", "config_drive": "", "status": "ACTIVE", "updated": "2017-08-02T16:10:50Z", "hostId": "40e335d04e2be60ef52b202610fcd5742ac0471e531b83ff52421470", "OS-EXT-SRV-ATTR:host": "tikitavi-VirtualBox", "OS-SRV-USG:terminated_at": null, "key_name": null, "OS-EXT-SRV-ATTR:hypervisor_hostname": "tikitavi-VirtualBox", "name": "test", "created": "2017-08-02T16:09:22Z", "tenant_id": "e27d79288f3441e98d0bdf742722c5f3", "os-extended-volumes:volumes_attached": [], "metadata": {}}]}
RESP from 'openstack --debug server show test' command:
RESP BODY: {"server": {"OS-EXT-STS:task_state": null, "addresses": {"public": [{"OS-EXT-IPS-MAC:mac_addr": "fa:16:3e:05:15:9f", "version": 4, "addr": "172.24.4.13", "OS-EXT-IPS:type": "fixed"}, {"OS-EXT-IPS-MAC:mac_addr": "fa:16:3e:05:15:9f", "version": 6, "addr": "2001:db8::e", "OS-EXT-IPS:type": "fixed"}]}, "links": [{"href": "http://192.168.56.101/compute/v2.1/servers/03f3a8da-2c51-4f43-96dc-9354a6fef3f5", "rel": "self"}, {"href": "http://192.168.56.101/compute/servers/03f3a8da-2c51-4f43-96dc-9354a6fef3f5", "rel": "bookmark"}], "image": {"id": "9929f291-7d09-49ff-8374-e59d2fb2f43c", "links": [{"href": "http://192.168.56.101/compute/images/9929f291-7d09-49ff-8374-e59d2fb2f43c", "rel": "bookmark"}]}, "OS-EXT-STS:vm_state": "active", "OS-EXT-SRV-ATTR:instance_name": "instance-00000002", "OS-SRV-USG:launched_at": "2017-08-02T16:10:18.000000", "flavor": {"id": "1", "links": [{"href": "http://192.168.56.101/compute/flavors/1", "rel": "bookmark"}]}, "id": "03f3a8da-2c51-4f43-96dc-9354a6fef3f5", "security_groups": [{"name": "default"}], "user_id": "5863c93dccb84f1ba5c98b3297496b4d", "OS-DCF:diskConfig": "MANUAL", "accessIPv4": "", "accessIPv6": "", "progress": 0, "OS-EXT-STS:power_state": 1, "OS-EXT-AZ:availability_zone": "nova", "config_drive": "", "status": "ACTIVE", "updated": "2017-08-02T16:10:50Z", "hostId": "40e335d04e2be60ef52b202610fcd5742ac0471e531b83ff52421470", "OS-EXT-SRV-ATTR:host": "tikitavi-VirtualBox", "OS-SRV-USG:terminated_at": null, "key_name": null, "OS-EXT-SRV-ATTR:hypervisor_hostname": "tikitavi-VirtualBox", "name": "test", "created": "2017-08-02T16:09:22Z", "tenant_id": "e27d79288f3441e98d0bdf742722c5f3", "os-extended-volumes:volumes_attached": [{"id": "6f788e6d-2659-407f-99d6-fde9d250909a"}, {"id": "5d11953c-6b20-44c7-9f5e-d30e87edda7b"}], "metadata": {}}}
(more detailed logs are in attachment)
Expected result
===============
Expected to find 'os-extended-volumes:volumes_attached' field in 'server list' the same as in 'server show'
Environment
===========
Running devstack
devstack$ git log -1
commit dea3083d984569eac9647f1a28f10ae98afc42f7
Author: Vasyl Saienko <vsaienko@xxxxxxxxxxxx>
Date: Tue Aug 1 00:16:51 2017 +0300
Fix path to mlock_report
This patch fixes path to mlock_report.py. Also add python-psutil
to dstat depends as it is required by mlock_report.
Change-Id: Ia2b507a7b923f1e3393a9cb7746c66d39d6abfde
/nova$ git log -1
commit 8e56bdb1dc48dd7d15ec387d9c130c7c84407012
Merge: 929de34 598314a
Author: Jenkins <jenkins@xxxxxxxxxxxxxxxxxxxx>
Date: Wed Aug 2 10:00:54 2017 +0000
Merge "Add release note for PUT /os-services/* for non-compute
services"
** Affects: nova
Importance: Undecided
Status: New
** Attachment added: "openstack_debug_server_.rtf"
https://bugs.launchpad.net/bugs/1708210/+attachment/4925983/+files/openstack_debug_server_.rtf
--
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/1708210
Title:
‘os-extended-volumes:volumes_attached’ field empty in 'server list'
api response
Status in OpenStack Compute (nova):
New
Bug description:
Description
===========
'os-extended-volumes:volumes_attached' field in 'server list' api response is empty list, while in 'server show' it has attached volumes
Steps to reproduce
==================
* create a server
* create a volume
* attach a volume to the server
* $ openstack --debug server list
* $ openstack --debug server show <server>
Actual result
=============
RESP from 'openstack --debug server list' command:
RESP BODY: {"servers": [{"OS-EXT-STS:task_state": null, "addresses": {"public": [{"OS-EXT-IPS-MAC:mac_addr": "fa:16:3e:05:15:9f", "version": 4, "addr": "172.24.4.13", "OS-EXT-IPS:type": "fixed"}, {"OS-EXT-IPS-MAC:mac_addr": "fa:16:3e:05:15:9f", "version": 6, "addr": "2001:db8::e", "OS-EXT-IPS:type": "fixed"}]}, "links": [{"href": "http://192.168.56.101/compute/v2.1/servers/03f3a8da-2c51-4f43-96dc-9354a6fef3f5", "rel": "self"}, {"href": "http://192.168.56.101/compute/servers/03f3a8da-2c51-4f43-96dc-9354a6fef3f5", "rel": "bookmark"}], "image": {"id": "9929f291-7d09-49ff-8374-e59d2fb2f43c", "links": [{"href": "http://192.168.56.101/compute/images/9929f291-7d09-49ff-8374-e59d2fb2f43c", "rel": "bookmark"}]}, "OS-EXT-STS:vm_state": "active", "OS-EXT-SRV-ATTR:instance_name": "instance-00000002", "OS-SRV-USG:launched_at": "2017-08-02T16:10:18.000000", "flavor": {"id": "1", "links": [{"href": "http://192.168.56.101/compute/flavors/1", "rel": "bookmark"}]}, "id": "03f3a8da-2c51-4f43-96dc-9354a6fef3f5", "security_groups": [{"name": "default"}], "user_id": "5863c93dccb84f1ba5c98b3297496b4d", "OS-DCF:diskConfig": "MANUAL", "accessIPv4": "", "accessIPv6": "", "progress": 0, "OS-EXT-STS:power_state": 1, "OS-EXT-AZ:availability_zone": "nova", "config_drive": "", "status": "ACTIVE", "updated": "2017-08-02T16:10:50Z", "hostId": "40e335d04e2be60ef52b202610fcd5742ac0471e531b83ff52421470", "OS-EXT-SRV-ATTR:host": "tikitavi-VirtualBox", "OS-SRV-USG:terminated_at": null, "key_name": null, "OS-EXT-SRV-ATTR:hypervisor_hostname": "tikitavi-VirtualBox", "name": "test", "created": "2017-08-02T16:09:22Z", "tenant_id": "e27d79288f3441e98d0bdf742722c5f3", "os-extended-volumes:volumes_attached": [], "metadata": {}}]}
RESP from 'openstack --debug server show test' command:
RESP BODY: {"server": {"OS-EXT-STS:task_state": null, "addresses": {"public": [{"OS-EXT-IPS-MAC:mac_addr": "fa:16:3e:05:15:9f", "version": 4, "addr": "172.24.4.13", "OS-EXT-IPS:type": "fixed"}, {"OS-EXT-IPS-MAC:mac_addr": "fa:16:3e:05:15:9f", "version": 6, "addr": "2001:db8::e", "OS-EXT-IPS:type": "fixed"}]}, "links": [{"href": "http://192.168.56.101/compute/v2.1/servers/03f3a8da-2c51-4f43-96dc-9354a6fef3f5", "rel": "self"}, {"href": "http://192.168.56.101/compute/servers/03f3a8da-2c51-4f43-96dc-9354a6fef3f5", "rel": "bookmark"}], "image": {"id": "9929f291-7d09-49ff-8374-e59d2fb2f43c", "links": [{"href": "http://192.168.56.101/compute/images/9929f291-7d09-49ff-8374-e59d2fb2f43c", "rel": "bookmark"}]}, "OS-EXT-STS:vm_state": "active", "OS-EXT-SRV-ATTR:instance_name": "instance-00000002", "OS-SRV-USG:launched_at": "2017-08-02T16:10:18.000000", "flavor": {"id": "1", "links": [{"href": "http://192.168.56.101/compute/flavors/1", "rel": "bookmark"}]}, "id": "03f3a8da-2c51-4f43-96dc-9354a6fef3f5", "security_groups": [{"name": "default"}], "user_id": "5863c93dccb84f1ba5c98b3297496b4d", "OS-DCF:diskConfig": "MANUAL", "accessIPv4": "", "accessIPv6": "", "progress": 0, "OS-EXT-STS:power_state": 1, "OS-EXT-AZ:availability_zone": "nova", "config_drive": "", "status": "ACTIVE", "updated": "2017-08-02T16:10:50Z", "hostId": "40e335d04e2be60ef52b202610fcd5742ac0471e531b83ff52421470", "OS-EXT-SRV-ATTR:host": "tikitavi-VirtualBox", "OS-SRV-USG:terminated_at": null, "key_name": null, "OS-EXT-SRV-ATTR:hypervisor_hostname": "tikitavi-VirtualBox", "name": "test", "created": "2017-08-02T16:09:22Z", "tenant_id": "e27d79288f3441e98d0bdf742722c5f3", "os-extended-volumes:volumes_attached": [{"id": "6f788e6d-2659-407f-99d6-fde9d250909a"}, {"id": "5d11953c-6b20-44c7-9f5e-d30e87edda7b"}], "metadata": {}}}
(more detailed logs are in attachment)
Expected result
===============
Expected to find 'os-extended-volumes:volumes_attached' field in 'server list' the same as in 'server show'
Environment
===========
Running devstack
devstack$ git log -1
commit dea3083d984569eac9647f1a28f10ae98afc42f7
Author: Vasyl Saienko <vsaienko@xxxxxxxxxxxx>
Date: Tue Aug 1 00:16:51 2017 +0300
Fix path to mlock_report
This patch fixes path to mlock_report.py. Also add python-psutil
to dstat depends as it is required by mlock_report.
Change-Id: Ia2b507a7b923f1e3393a9cb7746c66d39d6abfde
/nova$ git log -1
commit 8e56bdb1dc48dd7d15ec387d9c130c7c84407012
Merge: 929de34 598314a
Author: Jenkins <jenkins@xxxxxxxxxxxxxxxxxxxx>
Date: Wed Aug 2 10:00:54 2017 +0000
Merge "Add release note for PUT /os-services/* for non-compute
services"
To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1708210/+subscriptions
Follow ups