Openstack CLI
程序员文章站
2022-07-12 21:12:04
...
配置CLI
[email protected]-virtual-machine:~$ source /opt/stack/nova/tools/nova-manage.bash_completion
[email protected]-virtual-machine:~$ cd ~
caas[email protected]-virtual-machine:~$ cd devstack/
[email protected]-virtual-machine:~/devstack$ source openrc demo demo
[email protected]-virtual-machine:~/devstack$ export OS_USERNAME=admin
[email protected]-virtual-machine:~/devstack$ export OS_PASSWORD=devstack
[email protected]-virtual-machine:~/devstack$ export OS_TENANT_NAME=admin
[email protected]-virtual-machine:~/devstack$ export OS_AUTH_URL=http://127.18.141.11/identity/
[email protected]-virtual-machine:~/devstack$ nova service-list
使用CLI创建实例
[email protected]:~/devstack$ nova --debug boot --flavor 84 --image 8c9b0a73-6d3f-48a0-9b60-72fe6171c0ab liu_Instance_demo
DEBUG (extension:189) found extension EntryPoint.parse('v1password = swiftclient.authv1:PasswordLoader')
DEBUG (extension:189) found extension EntryPoint.parse('token_endpoint = openstackclient.api.auth_plugin:TokenEndpoint')
DEBUG (extension:189) found extension EntryPoint.parse('noauth = cinderclient.contrib.noauth:CinderNoAuthLoader')
DEBUG (extension:189) found extension EntryPoint.parse('v2token = keystoneauth1.loading._plugins.identity.v2:Token')
DEBUG (extension:189) found extension EntryPoint.parse('none = keystoneauth1.loading._plugins.noauth:NoAuth')
DEBUG (extension:189) found extension EntryPoint.parse('v3oauth1 = keystoneauth1.extras.oauth1._loading:V3OAuth1')
DEBUG (extension:189) found extension EntryPoint.parse('admin_token = keystoneauth1.loading._plugins.admin_token:AdminToken')
DEBUG (extension:189) found extension EntryPoint.parse('v3oidcauthcode = keystoneauth1.loading._plugins.identity.v3:OpenIDConnectAuthorizationCode')
DEBUG (extension:189) found extension EntryPoint.parse('v2password = keystoneauth1.loading._plugins.identity.v2:Password')
DEBUG (extension:189) found extension EntryPoint.parse('v3samlpassword = keystoneauth1.extras._saml2._loading:Saml2Password')
DEBUG (extension:189) found extension EntryPoint.parse('v3password = keystoneauth1.loading._plugins.identity.v3:Password')
DEBUG (extension:189) found extension EntryPoint.parse('v3adfspassword = keystoneauth1.extras._saml2._loading:ADFSPassword')
DEBUG (extension:189) found extension EntryPoint.parse('v3oidcaccesstoken = keystoneauth1.loading._plugins.identity.v3:OpenIDConnectAccessToken')
DEBUG (extension:189) found extension EntryPoint.parse('v3oidcpassword = keystoneauth1.loading._plugins.identity.v3:OpenIDConnectPassword')
DEBUG (extension:189) found extension EntryPoint.parse('v3kerberos = keystoneauth1.extras.kerberos._loading:Kerberos')
DEBUG (extension:189) found extension EntryPoint.parse('token = keystoneauth1.loading._plugins.identity.generic:Token')
DEBUG (extension:189) found extension EntryPoint.parse('v3oidcclientcredentials = keystoneauth1.loading._plugins.identity.v3:OpenIDConnectClientCredentials')
DEBUG (extension:189) found extension EntryPoint.parse('v3tokenlessauth = keystoneauth1.loading._plugins.identity.v3:TokenlessAuth')
DEBUG (extension:189) found extension EntryPoint.parse('v3token = keystoneauth1.loading._plugins.identity.v3:Token')
DEBUG (extension:189) found extension EntryPoint.parse('v3totp = keystoneauth1.loading._plugins.identity.v3:TOTP')
DEBUG (extension:189) found extension EntryPoint.parse('v3applicationcredential = keystoneauth1.loading._plugins.identity.v3:ApplicationCredential')
DEBUG (extension:189) found extension EntryPoint.parse('password = keystoneauth1.loading._plugins.identity.generic:Password')
DEBUG (extension:189) found extension EntryPoint.parse('v3fedkerb = keystoneauth1.extras.kerberos._loading:MappedKerberos')
DEBUG (session:448) REQ: curl -g -i -X GET http://172.18.141.113/identity/ -H "Accept: application/json" -H "User-Agent: nova keystoneauth1/3.7.0 python-requests/2.18.4 CPython/2.7.12"
DEBUG (connectionpool:208) Starting new HTTP connection (1): 172.18.141.113
DEBUG (connectionpool:396) http://172.18.141.113:80 "GET /identity/ HTTP/1.1" 300 273
DEBUG (session:479) RESP: [300] Connection: close Content-Length: 273 Content-Type: application/json Date: Wed, 18 Jul 2018 09:00:28 GMT Server: Apache/2.4.18 (Ubuntu) Vary: X-Auth-Token x-openstack-request-id: req-10105ebe-a170-4c38-9f89-33bf8d0e044b
DEBUG (session:511) RESP BODY: {"versions": {"values": [{"status": "stable", "updated": "2018-02-28T00:00:00Z", "media-types": [{"base": "application/json", "type": "application/vnd.openstack.identity-v3+json"}], "id": "v3.10", "links": [{"href": "http://172.18.141.113/identity/v3/", "rel": "self"}]}]}}
DEBUG (session:841) GET call to http://172.18.141.113/identity/ used request id req-10105ebe-a170-4c38-9f89-33bf8d0e044b
DEBUG (base:176) Making authentication request to http://172.18.141.113/identity/v3/auth/tokens
DEBUG (connectionpool:243) Resetting dropped connection: 172.18.141.113
DEBUG (connectionpool:396) http://172.18.141.113:80 "POST /identity/v3/auth/tokens HTTP/1.1" 201 3420
DEBUG (base:181) {"token": {"is_domain": false, "methods": ["password"], "roles": [{"id": "cd9d64c3236f496bbfa78bd5ec472972", "name": "admin"}], "expires_at": "2018-07-18T10:00:28.000000Z", "project": {"domain": {"id": "default", "name": "Default"}, "id": "399ae78852ad42108ddcb3063957d55f", "name": "demo"}, "catalog": [{"endpoints": [{"url": "http://172.18.141.113/placement", "interface": "public", "region": "RegionOne", "region_id": "RegionOne", "id": "b0905c0fdd254f5484454b46e42e6fbe"}], "type": "placement", "id": "1ac2b3ba9bb54256bdf6f161467a7180", "name": "placement"}, {"endpoints": [{"url": "http://172.18.141.113/volume/v1/399ae78852ad42108ddcb3063957d55f", "interface": "public", "region": "RegionOne", "region_id": "RegionOne", "id": "fbc6feab1b084249a7f7db3ea445d3f6"}], "type": "volume", "id": "25a0fe543c694f1d931763dc0d9b355f", "name": "cinder"}, {"endpoints": [{"url": "http://172.18.141.113/identity", "interface": "admin", "region": "RegionOne", "region_id": "RegionOne", "id": "eb764e3c520f48f1a850e2d6a53d9596"}, {"url": "http://172.18.141.113/identity", "interface": "public", "region": "RegionOne", "region_id": "RegionOne", "id": "f512c9f1828a469f8cd6d056850c30e9"}], "type": "identity", "id": "2bd39cd826f64241836fd8ee0a0915ac", "name": "keystone"}, {"endpoints": [{"url": "http://172.18.141.113/volume/v2/399ae78852ad42108ddcb3063957d55f", "interface": "public", "region": "RegionOne", "region_id": "RegionOne", "id": "c96a18eeeed74e49a20ac088ad185caa"}], "type": "volumev2", "id": "6e0c7c171c14462b8256f95543788fdd", "name": "cinderv2"}, {"endpoints": [{"url": "http://172.18.141.113/compute/v2.1", "interface": "public", "region": "RegionOne", "region_id": "RegionOne", "id": "95b79543b4d844a3baf9fdd1a36d4d36"}], "type": "compute", "id": "9be5be86f119476daea25e3f7863fe05", "name": "nova"}, {"endpoints": [{"url": "http://172.18.141.113:9696/", "interface": "public", "region": "RegionOne", "region_id": "RegionOne", "id": "a95e7f2a2f404af4b1f9c987087c2d75"}], "type": "network", "id": "c645905bd38a4a26a7901241664ce3d0", "name": "neutron"}, {"endpoints": [{"url": "http://172.18.141.113/image", "interface": "public", "region": "RegionOne", "region_id": "RegionOne", "id": "d7b5050722a3498983cb3ee52530cdd0"}], "type": "image", "id": "cf81a04eb3884197b8d521c0f7835dc7", "name": "glance"}, {"endpoints": [{"url": "http://172.18.141.113/volume/v3/399ae78852ad42108ddcb3063957d55f", "interface": "public", "region": "RegionOne", "region_id": "RegionOne", "id": "7512bbbbc1d94335bdb1cece516df978"}], "type": "volumev3", "id": "f68ba3d52e424746aec1f0c07bd0fff2", "name": "cinderv3"}, {"endpoints": [{"url": "http://172.18.141.113/compute/v2/399ae78852ad42108ddcb3063957d55f", "interface": "public", "region": "RegionOne", "region_id": "RegionOne", "id": "40bfd6e1570c4ec18aac92c0e91e83a6"}], "type": "compute_legacy", "id": "f86cf0f65afa466c8d98f2aee002b74c", "name": "nova_legacy"}, {"endpoints": [{"url": "http://172.18.141.113/volume/v3/399ae78852ad42108ddcb3063957d55f", "interface": "public", "region": "RegionOne", "region_id": "RegionOne", "id": "7898aed4caaf4da19905c9e92f73e821"}], "type": "block-storage", "id": "fada048b057a4679ba09357c6fcfeadb", "name": "cinder"}], "user": {"domain": {"id": "default", "name": "Default"}, "password_expires_at": null, "name": "admin", "id": "6407dd59f1c04058be2c064ef3ab0ab6"}, "audit_ids": ["yuSUjiWpSRaVWLW5p8n7kQ"], "issued_at": "2018-07-18T09:00:28.000000Z"}}
REQ: curl -g -i -X GET http://172.18.141.113/compute/v2.1 -H "Accept: application/json" -H "User-Agent: python-novaclient" -H "X-Auth-Token: {SHA1}907b90ccbe929b0725fbc3804d11bc64417844c4"
DEBUG (session:448) REQ: curl -g -i -X GET http://172.18.141.113/compute/v2.1 -H "Accept: application/json" -H "User-Agent: python-novaclient" -H "X-Auth-Token: {SHA1}907b90ccbe929b0725fbc3804d11bc64417844c4"
DEBUG (connectionpool:243) Resetting dropped connection: 172.18.141.113
DEBUG (connectionpool:396) http://172.18.141.113:80 "GET /compute/v2.1 HTTP/1.1" 302 None
RESP: [302] Connection: close Content-Type: text/plain; charset=utf8 Date: Wed, 18 Jul 2018 09:00:28 GMT Location: http://172.18.141.113/compute/v2.1/ Server: Apache/2.4.18 (Ubuntu) Transfer-Encoding: chunked x-compute-request-id: req-fc8ffea8-d574-4dd5-8299-7c93fd56d188 x-openstack-request-id: req-fc8ffea8-d574-4dd5-8299-7c93fd56d188
DEBUG (session:479) RESP: [302] Connection: close Content-Type: text/plain; charset=utf8 Date: Wed, 18 Jul 2018 09:00:28 GMT Location: http://172.18.141.113/compute/v2.1/ Server: Apache/2.4.18 (Ubuntu) Transfer-Encoding: chunked x-compute-request-id: req-fc8ffea8-d574-4dd5-8299-7c93fd56d188 x-openstack-request-id: req-fc8ffea8-d574-4dd5-8299-7c93fd56d188
RESP BODY: Omitted, Content-Type is set to text/plain; charset=utf8. Only application/json responses have their bodies logged.
DEBUG (session:511) RESP BODY: Omitted, Content-Type is set to text/plain; charset=utf8. Only application/json responses have their bodies logged.
DEBUG (connectionpool:243) Resetting dropped connection: 172.18.141.113
DEBUG (connectionpool:396) http://172.18.141.113:80 "GET /compute/v2.1/ HTTP/1.1" 200 391
RESP: [200] Connection: close Content-Length: 391 Content-Type: application/json Date: Wed, 18 Jul 2018 09:00:28 GMT OpenStack-API-Version: compute 2.1 Server: Apache/2.4.18 (Ubuntu) Vary: OpenStack-API-Version,X-OpenStack-Nova-API-Version X-OpenStack-Nova-API-Version: 2.1 x-compute-request-id: req-abaa29a0-c33f-4658-a82b-b56b5001f6cd x-openstack-request-id: req-abaa29a0-c33f-4658-a82b-b56b5001f6cd
DEBUG (session:479) RESP: [200] Connection: close Content-Length: 391 Content-Type: application/json Date: Wed, 18 Jul 2018 09:00:28 GMT OpenStack-API-Version: compute 2.1 Server: Apache/2.4.18 (Ubuntu) Vary: OpenStack-API-Version,X-OpenStack-Nova-API-Version X-OpenStack-Nova-API-Version: 2.1 x-compute-request-id: req-abaa29a0-c33f-4658-a82b-b56b5001f6cd x-openstack-request-id: req-abaa29a0-c33f-4658-a82b-b56b5001f6cd
RESP BODY: {"version": {"status": "CURRENT", "updated": "2013-07-23T11:33:21Z", "links": [{"href": "http://172.18.141.113/compute/v2.1/", "rel": "self"}, {"href": "http://docs.openstack.org/", "type": "text/html", "rel": "describedby"}], "min_version": "2.1", "version": "2.62", "media-types": [{"base": "application/json", "type": "application/vnd.openstack.compute+json;version=2.1"}], "id": "v2.1"}}
DEBUG (session:511) RESP BODY: {"version": {"status": "CURRENT", "updated": "2013-07-23T11:33:21Z", "links": [{"href": "http://172.18.141.113/compute/v2.1/", "rel": "self"}, {"href": "http://docs.openstack.org/", "type": "text/html", "rel": "describedby"}], "min_version": "2.1", "version": "2.62", "media-types": [{"base": "application/json", "type": "application/vnd.openstack.compute+json;version=2.1"}], "id": "v2.1"}}
GET call to compute for http://172.18.141.113/compute/v2.1/ used request id req-abaa29a0-c33f-4658-a82b-b56b5001f6cd
DEBUG (session:832) GET call to compute for http://172.18.141.113/compute/v2.1/ used request id req-abaa29a0-c33f-4658-a82b-b56b5001f6cd
DEBUG (extension:189) found extension EntryPoint.parse('v1password = swiftclient.authv1:PasswordLoader')
DEBUG (extension:189) found extension EntryPoint.parse('token_endpoint = openstackclient.api.auth_plugin:TokenEndpoint')
DEBUG (extension:189) found extension EntryPoint.parse('noauth = cinderclient.contrib.noauth:CinderNoAuthLoader')
DEBUG (extension:189) found extension EntryPoint.parse('v2token = keystoneauth1.loading._plugins.identity.v2:Token')
DEBUG (extension:189) found extension EntryPoint.parse('none = keystoneauth1.loading._plugins.noauth:NoAuth')
DEBUG (extension:189) found extension EntryPoint.parse('v3oauth1 = keystoneauth1.extras.oauth1._loading:V3OAuth1')
DEBUG (extension:189) found extension EntryPoint.parse('admin_token = keystoneauth1.loading._plugins.admin_token:AdminToken')
DEBUG (extension:189) found extension EntryPoint.parse('v3oidcauthcode = keystoneauth1.loading._plugins.identity.v3:OpenIDConnectAuthorizationCode')
DEBUG (extension:189) found extension EntryPoint.parse('v2password = keystoneauth1.loading._plugins.identity.v2:Password')
DEBUG (extension:189) found extension EntryPoint.parse('v3samlpassword = keystoneauth1.extras._saml2._loading:Saml2Password')
DEBUG (extension:189) found extension EntryPoint.parse('v3password = keystoneauth1.loading._plugins.identity.v3:Password')
DEBUG (extension:189) found extension EntryPoint.parse('v3adfspassword = keystoneauth1.extras._saml2._loading:ADFSPassword')
DEBUG (extension:189) found extension EntryPoint.parse('v3oidcaccesstoken = keystoneauth1.loading._plugins.identity.v3:OpenIDConnectAccessToken')
DEBUG (extension:189) found extension EntryPoint.parse('v3oidcpassword = keystoneauth1.loading._plugins.identity.v3:OpenIDConnectPassword')
DEBUG (extension:189) found extension EntryPoint.parse('v3kerberos = keystoneauth1.extras.kerberos._loading:Kerberos')
DEBUG (extension:189) found extension EntryPoint.parse('token = keystoneauth1.loading._plugins.identity.generic:Token')
DEBUG (extension:189) found extension EntryPoint.parse('v3oidcclientcredentials = keystoneauth1.loading._plugins.identity.v3:OpenIDConnectClientCredentials')
DEBUG (extension:189) found extension EntryPoint.parse('v3tokenlessauth = keystoneauth1.loading._plugins.identity.v3:TokenlessAuth')
DEBUG (extension:189) found extension EntryPoint.parse('v3token = keystoneauth1.loading._plugins.identity.v3:Token')
DEBUG (extension:189) found extension EntryPoint.parse('v3totp = keystoneauth1.loading._plugins.identity.v3:TOTP')
DEBUG (extension:189) found extension EntryPoint.parse('v3applicationcredential = keystoneauth1.loading._plugins.identity.v3:ApplicationCredential')
DEBUG (extension:189) found extension EntryPoint.parse('password = keystoneauth1.loading._plugins.identity.generic:Password')
DEBUG (extension:189) found extension EntryPoint.parse('v3fedkerb = keystoneauth1.extras.kerberos._loading:MappedKerberos')
DEBUG (session:448) REQ: curl -g -i -X GET http://172.18.141.113/image/v2/images/8c9b0a73-6d3f-48a0-9b60-72fe6171c0ab -H "Accept: application/json" -H "OpenStack-API-Version: compute 2.62" -H "User-Agent: python-novaclient" -H "X-Auth-Token: {SHA1}907b90ccbe929b0725fbc3804d11bc64417844c4" -H "X-OpenStack-Nova-API-Version: 2.62"
DEBUG (connectionpool:243) Resetting dropped connection: 172.18.141.113
DEBUG (connectionpool:396) http://172.18.141.113:80 "GET /image/v2/images/8c9b0a73-6d3f-48a0-9b60-72fe6171c0ab HTTP/1.1" 200 602
DEBUG (session:479) RESP: [200] Connection: close Content-Length: 602 Content-Type: application/json Date: Wed, 18 Jul 2018 09:00:28 GMT Server: Apache/2.4.18 (Ubuntu) x-openstack-request-id: req-9f643119-8e48-4bd1-a26e-5317d89ccbb2
DEBUG (session:511) RESP BODY: {"status": "active", "name": "cirros-0.3.5-x86_64-disk", "tags": [], "container_format": "bare", "created_at": "2018-07-17T02:37:10Z", "size": 13267968, "disk_format": "qcow2", "updated_at": "2018-07-17T02:37:11Z", "visibility": "public", "self": "/v2/images/8c9b0a73-6d3f-48a0-9b60-72fe6171c0ab", "min_disk": 0, "protected": false, "id": "8c9b0a73-6d3f-48a0-9b60-72fe6171c0ab", "file": "/v2/images/8c9b0a73-6d3f-48a0-9b60-72fe6171c0ab/file", "checksum": "f8ab98ff5e73ebab884d80c9dc9c7290", "owner": "dc370ab927054502bab4dfbdd9f83dfb", "virtual_size": null, "min_ram": 0, "schema": "/v2/schemas/image"}
DEBUG (session:832) GET call to image for http://172.18.141.113/image/v2/images/8c9b0a73-6d3f-48a0-9b60-72fe6171c0ab used request id req-9f643119-8e48-4bd1-a26e-5317d89ccbb2
DEBUG (session:448) REQ: curl -g -i -X GET http://172.18.141.113/compute/v2.1/flavors/84 -H "Accept: application/json" -H "OpenStack-API-Version: compute 2.62" -H "User-Agent: python-novaclient" -H "X-Auth-Token: {SHA1}907b90ccbe929b0725fbc3804d11bc64417844c4" -H "X-OpenStack-Nova-API-Version: 2.62"
DEBUG (connectionpool:243) Resetting dropped connection: 172.18.141.113
DEBUG (connectionpool:396) http://172.18.141.113:80 "GET /compute/v2.1/flavors/84 HTTP/1.1" 200 412
DEBUG (session:479) RESP: [200] Connection: close Content-Length: 412 Content-Type: application/json Date: Wed, 18 Jul 2018 09:00:28 GMT OpenStack-API-Version: compute 2.62 Server: Apache/2.4.18 (Ubuntu) Vary: OpenStack-API-Version,X-OpenStack-Nova-API-Version X-OpenStack-Nova-API-Version: 2.62 x-compute-request-id: req-f5f9de57-b175-4606-9f7e-a1a2fdfa73b4 x-openstack-request-id: req-f5f9de57-b175-4606-9f7e-a1a2fdfa73b4
DEBUG (session:511) RESP BODY: {"flavor": {"description": null, "links": [{"href": "http://172.18.141.113/compute/v2.1/flavors/84", "rel": "self"}, {"href": "http://172.18.141.113/compute/flavors/84", "rel": "bookmark"}], "ram": 128, "OS-FLV-DISABLED:disabled": false, "extra_specs": {}, "os-flavor-access:is_public": true, "rxtx_factor": 1.0, "disk": 0, "id": "84", "name": "m1.micro", "vcpus": 1, "swap": "", "OS-FLV-EXT-DATA:ephemeral": 0}}
DEBUG (session:832) GET call to compute for http://172.18.141.113/compute/v2.1/flavors/84 used request id req-f5f9de57-b175-4606-9f7e-a1a2fdfa73b4
DEBUG (session:448) REQ: curl -g -i -X POST http://172.18.141.113/compute/v2.1/servers -H "Accept: application/json" -H "Content-Type: application/json" -H "OpenStack-API-Version: compute 2.62" -H "User-Agent: python-novaclient" -H "X-Auth-Token: {SHA1}907b90ccbe929b0725fbc3804d11bc64417844c4" -H "X-OpenStack-Nova-API-Version: 2.62" -d '{"server": {"name": "liu_Instance_demo", "imageRef": "8c9b0a73-6d3f-48a0-9b60-72fe6171c0ab", "flavorRef": "84", "max_count": 1, "min_count": 1, "networks": "auto"}}'
DEBUG (connectionpool:243) Resetting dropped connection: 172.18.141.113
DEBUG (connectionpool:396) http://172.18.141.113:80 "POST /compute/v2.1/servers HTTP/1.1" 202 386
DEBUG (session:479) RESP: [202] Connection: close Content-Length: 386 Content-Type: application/json Date: Wed, 18 Jul 2018 09:00:28 GMT OpenStack-API-Version: compute 2.62 Server: Apache/2.4.18 (Ubuntu) Vary: OpenStack-API-Version,X-OpenStack-Nova-API-Version X-OpenStack-Nova-API-Version: 2.62 location: http://172.18.141.113/compute/v2.1/servers/c88c0a7d-6b59-407a-bff2-1a587dfb9948 x-compute-request-id: req-e0ddb8a2-c378-4e8a-8f20-8eec564f2caa x-openstack-request-id: req-e0ddb8a2-c378-4e8a-8f20-8eec564f2caa
DEBUG (session:511) RESP BODY: {"server": {"security_groups": [{"name": "default"}], "OS-DCF:diskConfig": "MANUAL", "id": "c88c0a7d-6b59-407a-bff2-1a587dfb9948", "links": [{"href": "http://172.18.141.113/compute/v2.1/servers/c88c0a7d-6b59-407a-bff2-1a587dfb9948", "rel": "self"}, {"href": "http://172.18.141.113/compute/servers/c88c0a7d-6b59-407a-bff2-1a587dfb9948", "rel": "bookmark"}], "adminPass": "eCc2WsPBGB3a"}}
DEBUG (session:832) POST call to compute for http://172.18.141.113/compute/v2.1/servers used request id req-e0ddb8a2-c378-4e8a-8f20-8eec564f2caa
DEBUG (session:448) REQ: curl -g -i -X GET http://172.18.141.113/compute/v2.1/servers/c88c0a7d-6b59-407a-bff2-1a587dfb9948 -H "Accept: application/json" -H "OpenStack-API-Version: compute 2.62" -H "User-Agent: python-novaclient" -H "X-Auth-Token: {SHA1}907b90ccbe929b0725fbc3804d11bc64417844c4" -H "X-OpenStack-Nova-API-Version: 2.62"
DEBUG (connectionpool:243) Resetting dropped connection: 172.18.141.113
DEBUG (connectionpool:396) http://172.18.141.113:80 "GET /compute/v2.1/servers/c88c0a7d-6b59-407a-bff2-1a587dfb9948 HTTP/1.1" 200 1666
DEBUG (session:479) RESP: [200] Connection: close Content-Length: 1666 Content-Type: application/json Date: Wed, 18 Jul 2018 09:00:30 GMT OpenStack-API-Version: compute 2.62 Server: Apache/2.4.18 (Ubuntu) Vary: OpenStack-API-Version,X-OpenStack-Nova-API-Version X-OpenStack-Nova-API-Version: 2.62 x-compute-request-id: req-b3fe10b9-35d4-40b4-b4f9-b79200c7987c x-openstack-request-id: req-b3fe10b9-35d4-40b4-b4f9-b79200c7987c
DEBUG (session:511) RESP BODY: {"server": {"OS-EXT-STS:task_state": "scheduling", "addresses": {}, "links": [{"href": "http://172.18.141.113/compute/v2.1/servers/c88c0a7d-6b59-407a-bff2-1a587dfb9948", "rel": "self"}, {"href": "http://172.18.141.113/compute/servers/c88c0a7d-6b59-407a-bff2-1a587dfb9948", "rel": "bookmark"}], "image": {"id": "8c9b0a73-6d3f-48a0-9b60-72fe6171c0ab", "links": [{"href": "http://172.18.141.113/compute/images/8c9b0a73-6d3f-48a0-9b60-72fe6171c0ab", "rel": "bookmark"}]}, "OS-EXT-SRV-ATTR:user_data": null, "OS-EXT-STS:vm_state": "building", "OS-EXT-SRV-ATTR:instance_name": "", "OS-EXT-SRV-ATTR:root_device_name": null, "OS-SRV-USG:launched_at": null, "flavor": {"ephemeral": 0, "ram": 128, "original_name": "m1.micro", "vcpus": 1, "extra_specs": {}, "swap": 0, "disk": 0}, "id": "c88c0a7d-6b59-407a-bff2-1a587dfb9948", "OS-SRV-USG:terminated_at": null, "os-extended-volumes:volumes_attached": [], "user_id": "6407dd59f1c04058be2c064ef3ab0ab6", "OS-EXT-SRV-ATTR:hostname": "liu-instance-demo", "OS-DCF:diskConfig": "MANUAL", "accessIPv4": "", "accessIPv6": "", "OS-EXT-SRV-ATTR:reservation_id": "r-zp9xzbdv", "progress": 0, "OS-EXT-STS:power_state": 0, "OS-EXT-AZ:availability_zone": "", "config_drive": "", "status": "BUILD", "OS-EXT-SRV-ATTR:ramdisk_id": "", "updated": "2018-07-18T09:00:30Z", "hostId": "", "OS-EXT-SRV-ATTR:host": null, "description": null, "tags": [], "key_name": null, "OS-EXT-SRV-ATTR:kernel_id": "", "OS-EXT-SRV-ATTR:hypervisor_hostname": null, "locked": false, "name": "liu_Instance_demo", "OS-EXT-SRV-ATTR:launch_index": 0, "created": "2018-07-18T09:00:30Z", "tenant_id": "399ae78852ad42108ddcb3063957d55f", "host_status": "", "metadata": {}}}
DEBUG (session:832) GET call to compute for http://172.18.141.113/compute/v2.1/servers/c88c0a7d-6b59-407a-bff2-1a587dfb9948 used request id req-b3fe10b9-35d4-40b4-b4f9-b79200c7987c
DEBUG (session:448) REQ: curl -g -i -X GET http://172.18.141.113/image/v2/images/8c9b0a73-6d3f-48a0-9b60-72fe6171c0ab -H "Accept: application/json" -H "OpenStack-API-Version: compute 2.62" -H "User-Agent: python-novaclient" -H "X-Auth-Token: {SHA1}907b90ccbe929b0725fbc3804d11bc64417844c4" -H "X-OpenStack-Nova-API-Version: 2.62"
DEBUG (connectionpool:243) Resetting dropped connection: 172.18.141.113
DEBUG (connectionpool:396) http://172.18.141.113:80 "GET /image/v2/images/8c9b0a73-6d3f-48a0-9b60-72fe6171c0ab HTTP/1.1" 200 602
DEBUG (session:479) RESP: [200] Connection: close Content-Length: 602 Content-Type: application/json Date: Wed, 18 Jul 2018 09:00:30 GMT Server: Apache/2.4.18 (Ubuntu) x-openstack-request-id: req-946871cb-3555-427d-bb7d-92bff6d7e821
DEBUG (session:511) RESP BODY: {"status": "active", "name": "cirros-0.3.5-x86_64-disk", "tags": [], "container_format": "bare", "created_at": "2018-07-17T02:37:10Z", "size": 13267968, "disk_format": "qcow2", "updated_at": "2018-07-17T02:37:11Z", "visibility": "public", "self": "/v2/images/8c9b0a73-6d3f-48a0-9b60-72fe6171c0ab", "min_disk": 0, "protected": false, "id": "8c9b0a73-6d3f-48a0-9b60-72fe6171c0ab", "file": "/v2/images/8c9b0a73-6d3f-48a0-9b60-72fe6171c0ab/file", "checksum": "f8ab98ff5e73ebab884d80c9dc9c7290", "owner": "dc370ab927054502bab4dfbdd9f83dfb", "virtual_size": null, "min_ram": 0, "schema": "/v2/schemas/image"}
DEBUG (session:832) GET call to image for http://172.18.141.113/image/v2/images/8c9b0a73-6d3f-48a0-9b60-72fe6171c0ab used request id req-946871cb-3555-427d-bb7d-92bff6d7e821
+--------------------------------------+-----------------------------------------------------------------+
| Property | Value |
+--------------------------------------+-----------------------------------------------------------------+
| OS-DCF:diskConfig | MANUAL |
| OS-EXT-AZ:availability_zone | |
| OS-EXT-SRV-ATTR:host | - |
| OS-EXT-SRV-ATTR:hostname | liu-instance-demo |
| OS-EXT-SRV-ATTR:hypervisor_hostname | - |
| OS-EXT-SRV-ATTR:instance_name | |
| OS-EXT-SRV-ATTR:kernel_id | |
| OS-EXT-SRV-ATTR:launch_index | 0 |
| OS-EXT-SRV-ATTR:ramdisk_id | |
| OS-EXT-SRV-ATTR:reservation_id | r-zp9xzbdv |
| OS-EXT-SRV-ATTR:root_device_name | - |
| OS-EXT-SRV-ATTR:user_data | - |
| OS-EXT-STS:power_state | 0 |
| OS-EXT-STS:task_state | scheduling |
| OS-EXT-STS:vm_state | building |
| OS-SRV-USG:launched_at | - |
| OS-SRV-USG:terminated_at | - |
| accessIPv4 | |
| accessIPv6 | |
| adminPass | eCc2WsPBGB3a |
| config_drive | |
| created | 2018-07-18T09:00:30Z |
| description | - |
| flavor:disk | 0 |
| flavor:ephemeral | 0 |
| flavor:extra_specs | {} |
| flavor:original_name | m1.micro |
| flavor:ram | 128 |
| flavor:swap | 0 |
| flavor:vcpus | 1 |
| hostId | |
| host_status | |
| id | c88c0a7d-6b59-407a-bff2-1a587dfb9948 |
| image | cirros-0.3.5-x86_64-disk (8c9b0a73-6d3f-48a0-9b60-72fe6171c0ab) |
| key_name | - |
| locked | False |
| metadata | {} |
| name | liu_Instance_demo |
| os-extended-volumes:volumes_attached | [] |
| progress | 0 |
| security_groups | default |
| status | BUILD |
| tags | [] |
| tenant_id | 399ae78852ad42108ddcb3063957d55f |
| updated | 2018-07-18T09:00:30Z |
| user_id | 6407dd59f1c04058be2c064ef3ab0ab6 |
+--------------------------------------+-----------------------------------------------------------------+
调试CLI/暴露API
[email protected]:~/devstack$ nova --debug version-list
...
...
Client supported API versions:
Minimum version 2.1
Maximum version 2.62
Server supported API versions:
+------+-----------+----------------------+-------------+---------+
| Id | Status | Updated | Min Version | Version |
+------+-----------+----------------------+-------------+---------+
| v2.0 | SUPPORTED | 2011-01-21T11:33:21Z | | |
| v2.1 | CURRENT | 2013-07-23T11:33:21Z | 2.1 | 2.62 |
+------+-----------+----------------------+-------------+---------+
上一篇: (一)python简单应用
下一篇: Webpack:基础使用