get the wrong message when execute evacuate command

Bug #1735413 reported by shuangyang.qian
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
python-novaclient
Expired
Undecided
Unassigned

Bug Description

# nova list | grep sqian
| 3a211314-4f6f-4e3d-8d8c-3985da949f8c | sqian | ACTIVE | - | Running | share_net=192.168.111.43
# nova evacuate sqian
ERROR (TypeError): evacuate() takes at least 2 arguments (3 given)

when i use the --debug option, i get the more information:

# nova --debug evacuate sqian
DEBUG (extension:157) found extension EntryPoint.parse('gnocchi-noauth = gnocchiclient.noauth:GnocchiNoAuthLoader')
DEBUG (extension:157) found extension EntryPoint.parse('aodh-noauth = aodhclient.noauth:AodhNoAuthLoader')
DEBUG (extension:157) found extension EntryPoint.parse('token_endpoint = openstackclient.api.auth_plugin:TokenEndpoint')
DEBUG (extension:157) found extension EntryPoint.parse('v2token = keystoneauth1.loading._plugins.identity.v2:Token')
DEBUG (extension:157) found extension EntryPoint.parse('v3oauth1 = keystoneauth1.extras.oauth1._loading:V3OAuth1')
DEBUG (extension:157) found extension EntryPoint.parse('admin_token = keystoneauth1.loading._plugins.admin_token:AdminToken')
DEBUG (extension:157) found extension EntryPoint.parse('v3oidcauthcode = keystoneauth1.loading._plugins.identity.v3:OpenIDConnectAuthorizationCode')
DEBUG (extension:157) found extension EntryPoint.parse('v2password = keystoneauth1.loading._plugins.identity.v2:Password')
DEBUG (extension:157) found extension EntryPoint.parse('v3samlpassword = keystoneauth1.extras._saml2._loading:Saml2Password')
DEBUG (extension:157) found extension EntryPoint.parse('v3password = keystoneauth1.loading._plugins.identity.v3:Password')
DEBUG (extension:157) found extension EntryPoint.parse('v3oidcaccesstoken = keystoneauth1.loading._plugins.identity.v3:OpenIDConnectAccessToken')
DEBUG (extension:157) found extension EntryPoint.parse('v3oidcpassword = keystoneauth1.loading._plugins.identity.v3:OpenIDConnectPassword')
DEBUG (extension:157) found extension EntryPoint.parse('v3kerberos = keystoneauth1.extras.kerberos._loading:Kerberos')
DEBUG (extension:157) found extension EntryPoint.parse('token = keystoneauth1.loading._plugins.identity.generic:Token')
DEBUG (extension:157) found extension EntryPoint.parse('v3oidcclientcredentials = keystoneauth1.loading._plugins.identity.v3:OpenIDConnectClientCredentials')
DEBUG (extension:157) found extension EntryPoint.parse('v3tokenlessauth = keystoneauth1.loading._plugins.identity.v3:TokenlessAuth')
DEBUG (extension:157) found extension EntryPoint.parse('v3token = keystoneauth1.loading._plugins.identity.v3:Token')
DEBUG (extension:157) found extension EntryPoint.parse('v3totp = keystoneauth1.loading._plugins.identity.v3:TOTP')
DEBUG (extension:157) found extension EntryPoint.parse('password = keystoneauth1.loading._plugins.identity.generic:Password')
DEBUG (extension:157) found extension EntryPoint.parse('v3fedkerb = keystoneauth1.extras.kerberos._loading:MappedKerberos')
DEBUG (session:337) REQ: curl -g -i -X GET http://192.168.10.4:35357/v2.0/ -H "Accept: application/json" -H "User-Agent: nova keystoneauth1/2.12.2 python-requests/2.11.1 CPython/2.7.5"
INFO (connectionpool:214) Starting new HTTP connection (1): 192.168.10.4
DEBUG (connectionpool:401) "GET /v2.0/ HTTP/1.1" 200 343
DEBUG (session:366) RESP: [200] Date: Thu, 30 Nov 2017 12:34:54 GMT Server: Apache/2.4.6 (CentOS) OpenSSL/1.0.1e-fips mod_wsgi/3.4 Python/2.7.5 mod_fastcgi/mod_fastcgi-SNAP-0910052141 Vary: X-Auth-Token x-openstack-request-id: req-39910f4e-40ff-4dc0-80b8-9eac5afd3a1f Content-Length: 343 Keep-Alive: timeout=5, max=100 Connection: Keep-Alive Content-Type: application/json
RESP BODY: {"version": {"status": "deprecated", "updated": "2016-08-04T00:00:00Z", "media-types": [{"base": "application/json", "type": "application/vnd.openstack.identity-v2.0+json"}], "id": "v2.0", "links": [{"href": "http://192.168.10.4:35357/v2.0/", "rel": "self"}, {"href": "http://docs.openstack.org/", "type": "text/html", "rel": "describedby"}]}}

DEBUG (v2:63) Making authentication request to http://192.168.10.4:35357/v2.0/tokens
DEBUG (connectionpool:401) "POST /v2.0/tokens HTTP/1.1" 200 5801
REQ: curl -g -i -X GET http://172.16.10.2:8774/v2.1/a3109987a7eb4bd4865fe87e4d8ebd6a -H "User-Agent: python-novaclient" -H "Accept: application/json" -H "X-Auth-Token: {SHA1}3d248d19867aae90678861ea48a80a4275c6fec1"
DEBUG (session:337) REQ: curl -g -i -X GET http://172.16.10.2:8774/v2.1/a3109987a7eb4bd4865fe87e4d8ebd6a -H "User-Agent: python-novaclient" -H "Accept: application/json" -H "X-Auth-Token: {SHA1}3d248d19867aae90678861ea48a80a4275c6fec1"
INFO (connectionpool:214) Starting new HTTP connection (1): 172.16.10.2
DEBUG (connectionpool:401) "GET /v2.1/a3109987a7eb4bd4865fe87e4d8ebd6a HTTP/1.1" 404 112
RESP: [404] Content-Length: 112 Content-Type: application/json; charset=UTF-8 X-Compute-Request-Id: req-a8d119e1-db8b-4f1a-9fc8-1784f6577015 Date: Thu, 30 Nov 2017 12:34:54 GMT Connection: keep-alive
RESP BODY: {"message": "The resource could not be found.<br /><br />\n\n\n", "code": "404 Not Found", "title": "Not Found"}

DEBUG (session:366) RESP: [404] Content-Length: 112 Content-Type: application/json; charset=UTF-8 X-Compute-Request-Id: req-a8d119e1-db8b-4f1a-9fc8-1784f6577015 Date: Thu, 30 Nov 2017 12:34:54 GMT Connection: keep-alive
RESP BODY: {"message": "The resource could not be found.<br /><br />\n\n\n", "code": "404 Not Found", "title": "Not Found"}

GET call to compute for http://172.16.10.2:8774/v2.1/a3109987a7eb4bd4865fe87e4d8ebd6a used request id req-a8d119e1-db8b-4f1a-9fc8-1784f6577015
DEBUG (client:85) GET call to compute for http://172.16.10.2:8774/v2.1/a3109987a7eb4bd4865fe87e4d8ebd6a used request id req-a8d119e1-db8b-4f1a-9fc8-1784f6577015
REQ: curl -g -i -X GET http://172.16.10.2:8774/v2.1/ -H "User-Agent: python-novaclient" -H "Accept: application/json" -H "X-Auth-Token: {SHA1}3d248d19867aae90678861ea48a80a4275c6fec1"
DEBUG (session:337) REQ: curl -g -i -X GET http://172.16.10.2:8774/v2.1/ -H "User-Agent: python-novaclient" -H "Accept: application/json" -H "X-Auth-Token: {SHA1}3d248d19867aae90678861ea48a80a4275c6fec1"
DEBUG (connectionpool:401) "GET /v2.1/ HTTP/1.1" 200 385
RESP: [200] Content-Length: 385 Content-Type: application/json Openstack-Api-Version: compute 2.1 X-Openstack-Nova-Api-Version: 2.1 Vary: OpenStack-API-Version, X-OpenStack-Nova-API-Version X-Compute-Request-Id: req-d5755465-c06f-4e7d-87b5-7de58ffb1c90 Date: Thu, 30 Nov 2017 12:34:54 GMT Connection: keep-alive
RESP BODY: {"version": {"status": "CURRENT", "updated": "2013-07-23T11:33:21Z", "links": [{"href": "http://172.16.10.2:8774/v2.1/", "rel": "self"}, {"href": "http://docs.openstack.org/", "type": "text/html", "rel": "describedby"}], "min_version": "2.1", "version": "2.38", "media-types": [{"base": "application/json", "type": "application/vnd.openstack.compute+json;version=2.1"}], "id": "v2.1"}}

DEBUG (session:366) RESP: [200] Content-Length: 385 Content-Type: application/json Openstack-Api-Version: compute 2.1 X-Openstack-Nova-Api-Version: 2.1 Vary: OpenStack-API-Version, X-OpenStack-Nova-API-Version X-Compute-Request-Id: req-d5755465-c06f-4e7d-87b5-7de58ffb1c90 Date: Thu, 30 Nov 2017 12:34:54 GMT Connection: keep-alive
RESP BODY: {"version": {"status": "CURRENT", "updated": "2013-07-23T11:33:21Z", "links": [{"href": "http://172.16.10.2:8774/v2.1/", "rel": "self"}, {"href": "http://docs.openstack.org/", "type": "text/html", "rel": "describedby"}], "min_version": "2.1", "version": "2.38", "media-types": [{"base": "application/json", "type": "application/vnd.openstack.compute+json;version=2.1"}], "id": "v2.1"}}

GET call to compute for http://172.16.10.2:8774/v2.1/ used request id req-d5755465-c06f-4e7d-87b5-7de58ffb1c90
DEBUG (client:85) GET call to compute for http://172.16.10.2:8774/v2.1/ used request id req-d5755465-c06f-4e7d-87b5-7de58ffb1c90
DEBUG (extension:157) found extension EntryPoint.parse('gnocchi-noauth = gnocchiclient.noauth:GnocchiNoAuthLoader')
DEBUG (extension:157) found extension EntryPoint.parse('aodh-noauth = aodhclient.noauth:AodhNoAuthLoader')
DEBUG (extension:157) found extension EntryPoint.parse('token_endpoint = openstackclient.api.auth_plugin:TokenEndpoint')
DEBUG (extension:157) found extension EntryPoint.parse('v2token = keystoneauth1.loading._plugins.identity.v2:Token')
DEBUG (extension:157) found extension EntryPoint.parse('v3oauth1 = keystoneauth1.extras.oauth1._loading:V3OAuth1')
DEBUG (extension:157) found extension EntryPoint.parse('admin_token = keystoneauth1.loading._plugins.admin_token:AdminToken')
DEBUG (extension:157) found extension EntryPoint.parse('v3oidcauthcode = keystoneauth1.loading._plugins.identity.v3:OpenIDConnectAuthorizationCode')
DEBUG (extension:157) found extension EntryPoint.parse('v2password = keystoneauth1.loading._plugins.identity.v2:Password')
DEBUG (extension:157) found extension EntryPoint.parse('v3samlpassword = keystoneauth1.extras._saml2._loading:Saml2Password')
DEBUG (extension:157) found extension EntryPoint.parse('v3password = keystoneauth1.loading._plugins.identity.v3:Password')
DEBUG (extension:157) found extension EntryPoint.parse('v3oidcaccesstoken = keystoneauth1.loading._plugins.identity.v3:OpenIDConnectAccessToken')
DEBUG (extension:157) found extension EntryPoint.parse('v3oidcpassword = keystoneauth1.loading._plugins.identity.v3:OpenIDConnectPassword')
DEBUG (extension:157) found extension EntryPoint.parse('v3kerberos = keystoneauth1.extras.kerberos._loading:Kerberos')
DEBUG (extension:157) found extension EntryPoint.parse('token = keystoneauth1.loading._plugins.identity.generic:Token')
DEBUG (extension:157) found extension EntryPoint.parse('v3oidcclientcredentials = keystoneauth1.loading._plugins.identity.v3:OpenIDConnectClientCredentials')
DEBUG (extension:157) found extension EntryPoint.parse('v3tokenlessauth = keystoneauth1.loading._plugins.identity.v3:TokenlessAuth')
DEBUG (extension:157) found extension EntryPoint.parse('v3token = keystoneauth1.loading._plugins.identity.v3:Token')
DEBUG (extension:157) found extension EntryPoint.parse('v3totp = keystoneauth1.loading._plugins.identity.v3:TOTP')
DEBUG (extension:157) found extension EntryPoint.parse('password = keystoneauth1.loading._plugins.identity.generic:Password')
DEBUG (extension:157) found extension EntryPoint.parse('v3fedkerb = keystoneauth1.extras.kerberos._loading:MappedKerberos')
DEBUG (session:337) REQ: curl -g -i -X GET http://172.16.10.2:8774/v2.1/a3109987a7eb4bd4865fe87e4d8ebd6a/servers?name=sqian -H "OpenStack-API-Version: compute 2.29" -H "User-Agent: python-novaclient" -H "Accept: application/json" -H "X-OpenStack-Nova-API-Version: 2.29" -H "X-Auth-Token: {SHA1}3d248d19867aae90678861ea48a80a4275c6fec1"
DEBUG (connectionpool:401) "GET /v2.1/a3109987a7eb4bd4865fe87e4d8ebd6a/servers?name=sqian HTTP/1.1" 200 358
DEBUG (session:366) RESP: [200] Content-Length: 358 Content-Type: application/json Openstack-Api-Version: compute 2.29 X-Openstack-Nova-Api-Version: 2.29 Vary: OpenStack-API-Version, X-OpenStack-Nova-API-Version X-Compute-Request-Id: req-e4b75be0-bc0d-4744-a7c7-69f72cdd3df5 Date: Thu, 30 Nov 2017 12:34:54 GMT Connection: keep-alive
RESP BODY: {"servers": [{"id": "3a211314-4f6f-4e3d-8d8c-3985da949f8c", "links": [{"href": "http://172.16.10.2:8774/v2.1/a3109987a7eb4bd4865fe87e4d8ebd6a/servers/3a211314-4f6f-4e3d-8d8c-3985da949f8c", "rel": "self"}, {"href": "http://172.16.10.2:8774/a3109987a7eb4bd4865fe87e4d8ebd6a/servers/3a211314-4f6f-4e3d-8d8c-3985da949f8c", "rel": "bookmark"}], "name": "sqian"}]}

DEBUG (client:85) GET call to compute for http://172.16.10.2:8774/v2.1/a3109987a7eb4bd4865fe87e4d8ebd6a/servers?name=sqian used request id req-e4b75be0-bc0d-4744-a7c7-69f72cdd3df5
DEBUG (session:337) REQ: curl -g -i -X GET http://172.16.10.2:8774/v2.1/a3109987a7eb4bd4865fe87e4d8ebd6a/servers/3a211314-4f6f-4e3d-8d8c-3985da949f8c -H "OpenStack-API-Version: compute 2.29" -H "User-Agent: python-novaclient" -H "Accept: application/json" -H "X-OpenStack-Nova-API-Version: 2.29" -H "X-Auth-Token: {SHA1}3d248d19867aae90678861ea48a80a4275c6fec1"
DEBUG (connectionpool:401) "GET /v2.1/a3109987a7eb4bd4865fe87e4d8ebd6a/servers/3a211314-4f6f-4e3d-8d8c-3985da949f8c HTTP/1.1" 200 2272
DEBUG (session:366) RESP: [200] Content-Length: 2272 Content-Type: application/json Openstack-Api-Version: compute 2.29 X-Openstack-Nova-Api-Version: 2.29 Vary: OpenStack-API-Version, X-OpenStack-Nova-API-Version X-Compute-Request-Id: req-60929213-b642-4018-ad8e-e4835bcc89bc Date: Thu, 30 Nov 2017 12:34:55 GMT Connection: keep-alive
RESP BODY: {"server": {"OS-EXT-STS:task_state": null, "addresses": {"share_net": [{"OS-EXT-IPS-MAC:mac_addr": "fa:16:3e:46:4a:19", "version": 4, "addr": "192.168.111.43", "OS-EXT-IPS:type": "fixed"}]}, "links": [{"href": "http://172.16.10.2:8774/v2.1/a3109987a7eb4bd4865fe87e4d8ebd6a/servers/3a211314-4f6f-4e3d-8d8c-3985da949f8c", "rel": "self"}, {"href": "http://172.16.10.2:8774/a3109987a7eb4bd4865fe87e4d8ebd6a/servers/3a211314-4f6f-4e3d-8d8c-3985da949f8c", "rel": "bookmark"}], "image": {"id": "26b7b6ac-45b4-469b-8716-540cea1b5191", "links": [{"href": "http://172.16.10.2:8774/a3109987a7eb4bd4865fe87e4d8ebd6a/images/26b7b6ac-45b4-469b-8716-540cea1b5191", "rel": "bookmark"}]}, "OS-EXT-SRV-ATTR:user_data": "Q29udGVudC1UeXBlOiB0ZXh0L3BsYWluOyBjaGFyc2V0PSJ1cy1hc2NpaSIKTUlNRS1WZXJzaW9uOiAxLjAKQ29udGVudC1UcmFuc2Zlci1FbmNvZGluZzogN2JpdAoKI2Nsb3VkLWNvbmZpZwpjaHBhc3N3ZDoKICBsaXN0OiB8CiAgICByb290OnBhc3N3MHJkCiAgZXhwaXJlOiBmYWxzZQ==", "OS-EXT-STS:vm_state": "active", "OS-EXT-SRV-ATTR:instance_name": "instance-0000002e", "OS-EXT-SRV-ATTR:root_device_name": "/dev/vda", "OS-SRV-USG:launched_at": "2017-11-30T07:39:37.000000", "flavor": {"id": "1024-10-1", "links": [{"href": "http://172.16.10.2:8774/a3109987a7eb4bd4865fe87e4d8ebd6a/flavors/1024-10-1", "rel": "bookmark"}]}, "id": "3a211314-4f6f-4e3d-8d8c-3985da949f8c", "security_groups": [{"name": "default"}], "OS-SRV-USG:terminated_at": null, "os-extended-volumes:volumes_attached": [], "user_id": "4cab8982baf345888c0acaf757846b3c", "OS-EXT-SRV-ATTR:hostname": "sqian", "OS-DCF:diskConfig": "AUTO", "accessIPv4": "", "accessIPv6": "", "OS-EXT-SRV-ATTR:reservation_id": "r-66l7gx6p", "progress": 0, "OS-EXT-STS:power_state": 1, "OS-EXT-AZ:availability_zone": "nova", "metadata": {}, "status": "ACTIVE", "OS-EXT-SRV-ATTR:ramdisk_id": "", "updated": "2017-11-30T10:41:35Z", "hostId": "6786cf56178a9cba07237887d5735163bb50fa020c77b45030009f41", "OS-EXT-SRV-ATTR:host": "node-1.domain.tld", "description": "sqian", "tags": [], "key_name": null, "OS-EXT-SRV-ATTR:kernel_id": "", "locked": false, "OS-EXT-SRV-ATTR:hypervisor_hostname": "node-1.domain.tld", "name": "sqian", "OS-EXT-SRV-ATTR:launch_index": 0, "created": "2017-11-30T07:39:33Z", "tenant_id": "a3109987a7eb4bd4865fe87e4d8ebd6a", "host_status": "UP", "config_drive": ""}}

DEBUG (client:85) GET call to compute for http://172.16.10.2:8774/v2.1/a3109987a7eb4bd4865fe87e4d8ebd6a/servers/3a211314-4f6f-4e3d-8d8c-3985da949f8c used request id req-60929213-b642-4018-ad8e-e4835bcc89bc
DEBUG (shell:984) evacuate() takes at least 2 arguments (3 given)
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/novaclient/shell.py", line 982, in main
  File "/usr/lib/python2.7/site-packages/novaclient/shell.py", line 909, in main
  File "/usr/lib/python2.7/site-packages/novaclient/v2/shell.py", line 3122, in do_evacuate
    res = server.evacuate(host=args.host, password=args.password, **update_kwargs)[1]
  File "/usr/lib/python2.7/site-packages/novaclient/api_versions.py", line 402, in substitution
TypeError: evacuate() takes at least 2 arguments (3 given)
ERROR (TypeError): evacuate() takes at least 2 arguments (3 given)

The openstack version is newton.

Revision history for this message
shuangyang.qian (shuangyang.qian) wrote :

in another way i got the same message:
# openstack host list
+-------------------+-------------+----------+
| Host Name | Service | Zone |
+-------------------+-------------+----------+
| node-3.domain.tld | cert | internal |
| node-3.domain.tld | consoleauth | internal |
| node-3.domain.tld | scheduler | internal |
| node-3.domain.tld | conductor | internal |
| node-1.domain.tld | compute | nova |
| node-2.domain.tld | compute | nova |
+-------------------+-------------+----------+
# nova evacuate sqian node-2.domain.tld
ERROR (TypeError): evacuate() takes at least 2 arguments (3 given)

description: updated
description: updated
Revision history for this message
Takashi Natsume (natsume-takashi) wrote :

Needs python-novaclient version.
(The output of the following command.)

# nova --version

Changed in python-novaclient:
status: New → Incomplete
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for python-novaclient because there has been no activity for 60 days.]

Changed in python-novaclient:
status: Incomplete → Expired
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.