openstack client resize verify not completing workflow

Bug #1416542 reported by Tim Bell
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
python-openstackclient
Fix Released
Medium
Zhiyuan Cai

Bug Description

When I use openstack server resize, this operation creates a VM of the right size and in state RESIZE_VERIFY.

However, when I try to confirm the VM to move to state active, this does not work.

When I then do the same operation using nova resize-confirm, it completes OK.

Debug log for resize --verify below.

 openstack --debug server resize --verify timrar143
DEBUG: openstackclient.shell compute API version 2, cmd group openstack.compute.v2
DEBUG: openstackclient.shell network API version 2, cmd group openstack.network.v2
DEBUG: openstackclient.shell image API version 1, cmd group openstack.image.v1
DEBUG: openstackclient.shell volume API version 1, cmd group openstack.volume.v1
DEBUG: openstackclient.shell identity API version 3, cmd group openstack.identity.v3
DEBUG: openstackclient.shell object_store API version 1, cmd group openstack.object_store.v1
DEBUG: openstackclient.shell prepare_to_run_command ResizeServer
DEBUG: openstackclient.shell validating authentication options
DEBUG: openstackclient.common.clientmanager Using kerberos auth v3
DEBUG: keystoneclient.auth.identity.v3 Making authentication request to https://keystone.cern.ch/krb/v3/auth/tokens
INFO: urllib3.connectionpool Starting new HTTPS connection (1): keystone.cern.ch
DEBUG: urllib3.connectionpool "POST /krb/v3/auth/tokens HTTP/1.1" 401 485
DEBUG: urllib3.connectionpool "POST /krb/v3/auth/tokens HTTP/1.1" 201 3801
DEBUG: keystoneclient.auth.identity.v3 Making authentication request to https://keystone.cern.ch/krb/v3/auth/tokens
DEBUG: urllib3.connectionpool "POST /krb/v3/auth/tokens HTTP/1.1" 401 485
DEBUG: urllib3.connectionpool "POST /krb/v3/auth/tokens HTTP/1.1" 201 3801
DEBUG: openstackclient.compute.v2.server.ResizeServer take_action(Namespace(flavor=None, revert=False, server='timrar143', verify=False, wait=False))
DEBUG: openstackclient.compute.client Instantiating compute client: <class 'novaclient.v1_1.client.Client'>

REQ: curl -i 'http://openstack.cern.ch:8774/v2/841615a3-ece9-4622-9fa0-fdc178ed34f8/servers/timrar143' -X GET -H "X-Auth-Project-Id: Personal timbell" -H "User-Agent: python-novaclient" -H "Accept: application/json" -H "X-Auth-Token: ca8a2dc7405c42089212c5a650da1376"

INFO: urllib3.connectionpool Starting new HTTP connection (1): openstack.cern.ch
DEBUG: urllib3.connectionpool "GET /v2/841615a3-ece9-4622-9fa0-fdc178ed34f8/servers/timrar143 HTTP/1.1" 404 73
RESP: [404] {'date': 'Fri, 30 Jan 2015 16:39:12 GMT', 'content-length': '73', 'content-type': 'application/json; charset=UTF-8', 'x-compute-request-id': 'req-a2568463-876e-45a5-8f17-6164fd96f665'}
RESP BODY: {"itemNotFound": {"message": "Instance could not be found", "code": 404}}

REQ: curl -i 'http://openstack.cern.ch:8774/v2/841615a3-ece9-4622-9fa0-fdc178ed34f8/servers' -X GET -H "X-Auth-Project-Id: Personal timbell" -H "User-Agent: python-novaclient" -H "Accept: application/json" -H "X-Auth-Token: ca8a2dc7405c42089212c5a650da1376"

INFO: urllib3.connectionpool Starting new HTTP connection (1): openstack.cern.ch
DEBUG: urllib3.connectionpool "GET /v2/841615a3-ece9-4622-9fa0-fdc178ed34f8/servers HTTP/1.1" 200 2957
RESP: [200] {'date': 'Fri, 30 Jan 2015 16:39:12 GMT', 'content-length': '2957', 'content-type': 'application/json', 'x-compute-request-id': 'req-9439848a-9feb-4ecc-b3ef-79c5ae4bf18d'}
RESP BODY: {"servers": [{"id": "394aadc8-5c46-4d51-8dd9-c0c83abea3e8", "links": [{"href": "http://openstack.cern.ch:8774/v2/841615a3-ece9-4622-9fa0-fdc178ed34f8/servers/394aadc8-5c46-4d51-8dd9-c0c83abea3e8", "rel": "self"}, {"href": "http://openstack.cern.ch:8774/841615a3-ece9-4622-9fa0-fdc178ed34f8/servers/394aadc8-5c46-4d51-8dd9-c0c83abea3e8", "rel": "bookmark"}], "name": "tim-centos7-143"}, {"id": "c16dc2eb-12d2-4850-815f-33861460e766", "links": [{"href": "http://openstack.cern.ch:8774/v2/841615a3-ece9-4622-9fa0-fdc178ed34f8/servers/c16dc2eb-12d2-4850-815f-33861460e766", "rel": "self"}, {"href": "http://openstack.cern.ch:8774/841615a3-ece9-4622-9fa0-fdc178ed34f8/servers/c16dc2eb-12d2-4850-815f-33861460e766", "rel": "bookmark"}], "name": "timubu143"}, {"id": "7668c6cf-e890-4873-9b0b-6170301f05de", "links": [{"href": "http://openstack.cern.ch:8774/v2/841615a3-ece9-4622-9fa0-fdc178ed34f8/servers/7668c6cf-e890-4873-9b0b-6170301f05de", "rel": "self"}, {"href": "http://openstack.cern.ch:8774/841615a3-ece9-4622-9fa0-fdc178ed34f8/servers/7668c6cf-e890-4873-9b0b-6170301f05de", "rel": "bookmark"}], "name": "timrar143"}, {"id": "0abec092-e82a-462f-81b4-b025b46a4c51", "links": [{"href": "http://openstack.cern.ch:8774/v2/841615a3-ece9-4622-9fa0-fdc178ed34f8/servers/0abec092-e82a-462f-81b4-b025b46a4c51", "rel": "self"}, {"href": "http://openstack.cern.ch:8774/841615a3-ece9-4622-9fa0-fdc178ed34f8/servers/0abec092-e82a-462f-81b4-b025b46a4c51", "rel": "bookmark"}], "name": "timw20083"}, {"id": "5adb3cd9-1072-44e9-941f-54e6e193acca", "links": [{"href": "http://openstack.cern.ch:8774/v2/841615a3-ece9-4622-9fa0-fdc178ed34f8/servers/5adb3cd9-1072-44e9-941f-54e6e193acca", "rel": "self"}, {"href": "http://openstack.cern.ch:8774/841615a3-ece9-4622-9fa0-fdc178ed34f8/servers/5adb3cd9-1072-44e9-941f-54e6e193acca", "rel": "bookmark"}], "name": "timw20082"}, {"id": "b0470242-bd5f-4d70-a338-a68ea1bc0bf2", "links": [{"href": "http://openstack.cern.ch:8774/v2/841615a3-ece9-4622-9fa0-fdc178ed34f8/servers/b0470242-bd5f-4d70-a338-a68ea1bc0bf2", "rel": "self"}, {"href": "http://openstack.cern.ch:8774/841615a3-ece9-4622-9fa0-fdc178ed34f8/servers/b0470242-bd5f-4d70-a338-a68ea1bc0bf2", "rel": "bookmark"}], "name": "timw20081"}, {"id": "1c677e6b-d25c-4e4d-b824-d6946749552b", "links": [{"href": "http://openstack.cern.ch:8774/v2/841615a3-ece9-4622-9fa0-fdc178ed34f8/servers/1c677e6b-d25c-4e4d-b824-d6946749552b", "rel": "self"}, {"href": "http://openstack.cern.ch:8774/841615a3-ece9-4622-9fa0-fdc178ed34f8/servers/1c677e6b-d25c-4e4d-b824-d6946749552b", "rel": "bookmark"}], "name": "timwin2008"}, {"id": "9fb81873-5661-40d5-b96c-92bd0fb62a56", "links": [{"href": "http://openstack.cern.ch:8774/v2/841615a3-ece9-4622-9fa0-fdc178ed34f8/servers/9fb81873-5661-40d5-b96c-92bd0fb62a56", "rel": "self"}, {"href": "http://openstack.cern.ch:8774/841615a3-ece9-4622-9fa0-fdc178ed34f8/servers/9fb81873-5661-40d5-b96c-92bd0fb62a56", "rel": "bookmark"}], "name": "timslc6143"}]}

REQ: curl -i 'http://openstack.cern.ch:8774/v2/841615a3-ece9-4622-9fa0-fdc178ed34f8/servers/7668c6cf-e890-4873-9b0b-6170301f05de' -X GET -H "X-Auth-Project-Id: Personal timbell" -H "User-Agent: python-novaclient" -H "Accept: application/json" -H "X-Auth-Token: ca8a2dc7405c42089212c5a650da1376"

INFO: urllib3.connectionpool Starting new HTTP connection (1): openstack.cern.ch
DEBUG: urllib3.connectionpool "GET /v2/841615a3-ece9-4622-9fa0-fdc178ed34f8/servers/7668c6cf-e890-4873-9b0b-6170301f05de HTTP/1.1" 200 1709
RESP: [200] {'date': 'Fri, 30 Jan 2015 16:39:12 GMT', 'content-length': '1709', 'content-type': 'application/json', 'x-compute-request-id': 'req-a79589ed-6613-4d4c-9c8c-4ea6565730dd'}
RESP BODY: {"server": {"status": "VERIFY_RESIZE", "updated": "2015-01-30T13:42:50Z", "hostId": "e77cb80a629304788ed0760d28fc333a1949935a44335fe57cf7398e", "addresses": {"CERN_NETWORK": [{"OS-EXT-IPS-MAC:mac_addr": "02:16:3E:00:8E:90", "version": 4, "addr": "128.142.153.229", "OS-EXT-IPS:type": "fixed"}, {"OS-EXT-IPS-MAC:mac_addr": "02:16:3E:00:8E:90", "version": 6, "addr": "2001:1458:301:49::100:d7", "OS-EXT-IPS:type": "fixed"}]}, "links": [{"href": "http://openstack.cern.ch:8774/v2/841615a3-ece9-4622-9fa0-fdc178ed34f8/servers/7668c6cf-e890-4873-9b0b-6170301f05de", "rel": "self"}, {"href": "http://openstack.cern.ch:8774/841615a3-ece9-4622-9fa0-fdc178ed34f8/servers/7668c6cf-e890-4873-9b0b-6170301f05de", "rel": "bookmark"}], "key_name": "lxplus", "image": {"id": "07644730-88f0-4df0-9883-febf603f607e", "links": [{"href": "http://openstack.cern.ch:8774/841615a3-ece9-4622-9fa0-fdc178ed34f8/images/07644730-88f0-4df0-9883-febf603f607e", "rel": "bookmark"}]}, "OS-EXT-STS:task_state": null, "OS-EXT-STS:vm_state": "resized", "OS-SRV-USG:launched_at": "2015-01-30T13:42:50.000000", "flavor": {"id": "4", "links": [{"href": "http://openstack.cern.ch:8774/841615a3-ece9-4622-9fa0-fdc178ed34f8/flavors/4", "rel": "bookmark"}]}, "id": "7668c6cf-e890-4873-9b0b-6170301f05de", "security_groups": [{"name": "default"}], "OS-SRV-USG:terminated_at": null, "OS-EXT-AZ:availability_zone": "cern-geneva-c", "user_id": "timbell", "name": "timrar143", "created": "2015-01-13T07:32:27Z", "tenant_id": "841615a3-ece9-4622-9fa0-fdc178ed34f8", "OS-DCF:diskConfig": "AUTO", "os-extended-volumes:volumes_attached": [], "accessIPv4": "", "accessIPv6": "", "progress": 0, "OS-EXT-STS:power_state": 1, "config_drive": "", "metadata": {}}}

DEBUG: openstackclient.shell clean_up ResizeServer

Changed in python-openstackclient:
milestone: none → m8
Changed in python-openstackclient:
importance: Undecided → Medium
Changed in python-openstackclient:
assignee: nobody → Zhiyuan Cai (luckyvega-g)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to python-openstackclient (master)

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

Changed in python-openstackclient:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to python-openstackclient (master)

Reviewed: https://review.openstack.org/156107
Committed: https://git.openstack.org/cgit/openstack/python-openstackclient/commit/?id=a33f14e298883d6a639b14c9cdb7ac2ba2d0e63d
Submitter: Jenkins
Branch: master

commit a33f14e298883d6a639b14c9cdb7ac2ba2d0e63d
Author: zhiyuan_cai <email address hidden>
Date: Mon Feb 16 11:00:50 2015 +0800

    Rename --verify for server resize to avoid conflict

    Currently server resize command has a verify argument for user to
    confirm resize operation. But this argument is also registered by
    openstack client shell which is used to enable server certificate
    verification. So verify argument can not be correctly passed to
    server resize command.

    This patch renames --verify to --confirm (nova client has a
    resize-confirm command) to solve this problem.

    Change-Id: I751aa3df16c3b637b82944dd350afc5cbab62120
    Closes-Bug: #1416542

Changed in python-openstackclient:
status: In Progress → Fix Committed
Dean Troyer (dtroyer)
Changed in python-openstackclient:
status: Fix Committed → Fix Released
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.