Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- root@node-6:~# wget http://cloud-images.ubuntu.com/xenial/current/xenial-server-cloudimg-amd64-disk1.img
- --2016-08-25 07:36:50-- http://cloud-images.ubuntu.com/xenial/current/xenial-server-cloudimg-amd64-disk1.img
- Resolving cloud-images.ubuntu.com (cloud-images.ubuntu.com)... 91.189.88.141, 2001:67c:1360:8001:ffff:ffff:ffff:fffe
- Connecting to cloud-images.ubuntu.com (cloud-images.ubuntu.com)|91.189.88.141|:80... connected.
- HTTP request sent, awaiting response... 200 OK
- Length: 309657600 (295M) [application/octet-stream]
- Saving to: ‘xenial-server-cloudimg-amd64-disk1.img’
- 100%[=====================================================================================================================================================================================================================================>] 309,657,600 20.6MB/s in 14s
- 2016-08-25 07:37:04 (21.5 MB/s) - ‘xenial-server-cloudimg-amd64-disk1.img’ saved [309657600/309657600]
- root@node-6:~# openstack image create Ubuntu --disk-format raw --container-format bare --file xenial-server-cloudimg-amd64-disk1.img
- +------------------+------------------------------------------------------+
- | Field | Value |
- +------------------+------------------------------------------------------+
- | checksum | d6e6b52b6bdccb9491a3184fdcbec748 |
- | container_format | bare |
- | created_at | 2016-08-25T07:40:39Z |
- | disk_format | raw |
- | file | /v2/images/bd959aab-9aed-4b2b-9b10-608de616e3ff/file |
- | id | bd959aab-9aed-4b2b-9b10-608de616e3ff |
- | min_disk | 0 |
- | min_ram | 0 |
- | name | Ubuntu |
- | owner | 5e04d6d8ba91489283ec480a3472387e |
- | protected | False |
- | schema | /v2/schemas/image |
- | size | 309657600 |
- | status | active |
- | tags | |
- | updated_at | 2016-08-25T07:40:51Z |
- | virtual_size | None |
- | visibility | private |
- +------------------+------------------------------------------------------+
- root@node-6:~/.ssh# nova keypair-list
- +-------+------+-------------------------------------------------+
- | Name | Type | Fingerprint |
- +-------+------+-------------------------------------------------+
- | mykey | ssh | 70:9c:1d:9e:81:fd:9f:ff:06:93:70:ba:ad:14:6a:36 |
- +-------+------+-------------------------------------------------+
- root@node-6:~/.ssh#
- root@node-6:~/.ssh# nova --debug boot --image Ubuntu --flavor m1.small --nic net-id=$(neutron net-list | awk '/inter/{print $2}') --key_name mykey MyTestVPS333
- DEBUG (extension:157) found extension EntryPoint.parse('password-ceilometer-legacy = ceilometer.keystone_client:LegacyCeilometerKeystoneLoader')
- DEBUG (extension:157) found extension EntryPoint.parse('aodh-noauth = aodhclient.noauth:AodhNoAuthLoader')
- DEBUG (extension:157) found extension EntryPoint.parse('password-aodh-legacy = aodh.keystone_client:LegacyAodhKeystoneLoader')
- DEBUG (extension:157) found extension EntryPoint.parse('v2token = keystoneauth1.loading._plugins.identity.v2:Token')
- 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('v3password = keystoneauth1.loading._plugins.identity.v3:Password')
- DEBUG (extension:157) found extension EntryPoint.parse('v3oidcpassword = keystoneauth1.loading._plugins.identity.v3:OpenIDConnectPassword')
- DEBUG (extension:157) found extension EntryPoint.parse('token = keystoneauth1.loading._plugins.identity.generic:Token')
- DEBUG (extension:157) found extension EntryPoint.parse('v3token = keystoneauth1.loading._plugins.identity.v3:Token')
- DEBUG (extension:157) found extension EntryPoint.parse('password = keystoneauth1.loading._plugins.identity.generic:Password')
- DEBUG (extension:157) found extension EntryPoint.parse('gnocchi-noauth = gnocchiclient.noauth:GnocchiNoAuthLoader')
- DEBUG (session:248) REQ: curl -g -i -X GET http://10.109.1.9:5000/ -H "Accept: application/json" -H "User-Agent: keystoneauth1/2.3.0 python-requests/2.9.1 CPython/2.7.6"
- INFO (connectionpool:207) Starting new HTTP connection (1): 10.109.1.9
- DEBUG (connectionpool:387) "GET / HTTP/1.1" 300 589
- DEBUG (session:277) RESP: [300] Content-Length: 589 Vary: X-Auth-Token Server: Apache Connection: close Date: Thu, 25 Aug 2016 07:53:48 GMT Content-Type: application/json
- RESP BODY: {"versions": {"values": [{"status": "stable", "updated": "2016-04-04T00:00:00Z", "media-types": [{"base": "application/json", "type": "application/vnd.openstack.identity-v3+json"}], "id": "v3.6", "links": [{"href": "http://10.109.1.9:5000/v3/", "rel": "self"}]
- }, {"status": "stable", "updated": "2014-04-17T00:00:00Z", "media-types": [{"base": "application/json", "type": "application/vnd.openstack.identity-v2.0+json"}], "id": "v2.0", "links": [{"href": "http://10.109.1.9:5000/v2.0/", "rel": "self"}, {"href": "http://docs.openst
- ack.org/", "type": "text/html", "rel": "describedby"}]}]}}
- DEBUG (v2:63) Making authentication request to http://10.109.1.9:5000/v2.0/tokens
- INFO (connectionpool:242) Resetting dropped connection: 10.109.1.9
- DEBUG (connectionpool:387) "POST /v2.0/tokens HTTP/1.1" 200 6009
- DEBUG (session:248) REQ: curl -g -i -X GET http://10.109.1.9:8774/v2.1 -H "User-Agent: python-novaclient" -H "Accept: application/json" -H "X-Auth-Token: {SHA1}836341a9e41575187b8788d1b2e5b27ae78ff93e"
- INFO (connectionpool:207) Starting new HTTP connection (1): 10.109.1.9
- DEBUG (connectionpool:387) "GET /v2.1 HTTP/1.1" 302 0
- DEBUG (session:277) RESP: [302] Content-Length: 0 X-Compute-Request-Id: req-671763ef-95f9-4403-8202-217fae99d805 Connection: close Location: http://10.109.1.9:8774/v2.1/ Date: Thu, 25 Aug 2016 07:53:48 GMT Content-Type: text/plain; charset=utf8
- INFO (connectionpool:242) Resetting dropped connection: 10.109.1.9
- DEBUG (connectionpool:387) "GET /v2.1/ HTTP/1.1" 200 384
- DEBUG (session:277) RESP: [200] Content-Length: 384 X-Compute-Request-Id: req-dad40a29-4395-4426-baab-40484cbc9011 Vary: X-OpenStack-Nova-API-Version Connection: close X-Openstack-Nova-Api-Version: 2.1 Date: Thu, 25 Aug 2016 07:53:48 GMT Content-Type: application/json
- RESP BODY: {"version": {"status": "CURRENT", "updated": "2013-07-23T11:33:21Z", "links": [{"href": "http://10.109.1.9:8774/v2.1/", "rel": "self"}, {"href": "http://docs.openstack.org/", "type": "text/html", "rel": "describedby"}], "min_version": "2.1", "version": "2.25",
- "media-types": [{"base": "application/json", "type": "application/vnd.openstack.compute+json;version=2.1"}], "id": "v2.1"}}
- DEBUG (extension:157) found extension EntryPoint.parse('password-ceilometer-legacy = ceilometer.keystone_client:LegacyCeilometerKeystoneLoader')
- DEBUG (extension:157) found extension EntryPoint.parse('aodh-noauth = aodhclient.noauth:AodhNoAuthLoader')
- DEBUG (extension:157) found extension EntryPoint.parse('password-aodh-legacy = aodh.keystone_client:LegacyAodhKeystoneLoader')
- DEBUG (extension:157) found extension EntryPoint.parse('v2token = keystoneauth1.loading._plugins.identity.v2:Token')
- 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('v3password = keystoneauth1.loading._plugins.identity.v3:Password')
- DEBUG (extension:157) found extension EntryPoint.parse('v3oidcpassword = keystoneauth1.loading._plugins.identity.v3:OpenIDConnectPassword')
- DEBUG (extension:157) found extension EntryPoint.parse('token = keystoneauth1.loading._plugins.identity.generic:Token')
- DEBUG (extension:157) found extension EntryPoint.parse('v3token = keystoneauth1.loading._plugins.identity.v3:Token')
- DEBUG (extension:157) found extension EntryPoint.parse('password = keystoneauth1.loading._plugins.identity.generic:Password')
- DEBUG (extension:157) found extension EntryPoint.parse('gnocchi-noauth = gnocchiclient.noauth:GnocchiNoAuthLoader')
- WARNING: Option "--key_name" is deprecated; use "--key-name"; this option will be removed in novaclient 3.3.0.
- DEBUG (session:248) REQ: curl -g -i -X GET http://10.109.1.9:8774/v2.1/images -H "User-Agent: python-novaclient" -H "Accept: application/json" -H "X-OpenStack-Nova-API-Version: 2.25" -H "X-Auth-Token: {SHA1}836341a9e41575187b8788d1b2e5b27ae78ff93e"
- INFO (connectionpool:242) Resetting dropped connection: 10.109.1.9
- DEBUG (connectionpool:387) "GET /v2.1/images HTTP/1.1" 200 2153
- DEBUG (session:277) RESP: [200] Content-Length: 2153 X-Compute-Request-Id: req-31d7fc14-c242-402a-9b8b-35c6e53a3bb5 Vary: X-OpenStack-Nova-API-Version Connection: close X-Openstack-Nova-Api-Version: 2.25 Date: Thu, 25 Aug 2016 07:53:49 GMT Content-Type: application/json
- RESP BODY: {"images": [{"id": "bd959aab-9aed-4b2b-9b10-608de616e3ff", "links": [{"href": "http://10.109.1.9:8774/v2.1/images/bd959aab-9aed-4b2b-9b10-608de616e3ff", "rel": "self"}, {"href": "http://10.109.1.9:8774/images/bd959aab-9aed-4b2b-9b10-608de616e3ff", "rel": "bookmark"}, {"href": "http://10.109.4.3:9292/images/bd959aab-9aed-4b2b-9b10-608de616e3ff", "type": "application/vnd.openstack.image", "rel": "alternate"}], "name": "Ubuntu"}, {"id": "a5681feb-4a53-4054-abf5-593375d83967", "links": [{"href": "http://10.109.1.9:8774/v2.1/images/a5681feb-4a53-4054-abf5-593375d83967", "rel": "self"}, {"href": "http://10.109.1.9:8774/images/a5681feb-4a53-4054-abf5-593375d83967", "rel": "bookmark"}, {"href": "http://10.109.4.3:9292/images/a5681feb-4a53-4054-abf5-593375d83967", "type": "application/vnd.openstack.image", "rel": "alternate"}], "name": "ironic-deploy-squashfs"}, {"id": "f28bf2aa-6cf8-41db-b6cf-b45f91a380df", "links": [{"href": "http://10.109.1.9:8774/v2.1/images/f28bf2aa-6cf8-41db-b6cf-b45f91a380df", "rel": "self"}, {"href": "http://10.109.1.9:8774/images/f28bf2aa-6cf8-41db-b6cf-b45f91a380df", "rel": "bookmark"}, {"href": "http://10.109.4.3:9292/images/f28bf2aa-6cf8-41db-b6cf-b45f91a380df", "type": "application/vnd.openstack.image", "rel": "alternate"}], "name": "ironic-deploy-initramfs"}, {"id": "6b4f4a26-6dc1-46ac-9f38-617a6bd36928", "links": [{"href": "http://10.109.1.9:8774/v2.1/images/6b4f4a26-6dc1-46ac-9f38-617a6bd36928", "rel": "self"}, {"href": "http://10.109.1.9:8774/images/6b4f4a26-6dc1-46ac-9f38-617a6bd36928", "rel": "bookmark"}, {"href": "http://10.109.4.3:9292/images/6b4f4a26-6dc1-46ac-9f38-617a6bd36928", "type": "application/vnd.openstack.image", "rel": "alternate"}], "name": "ironic-deploy-linux"}, {"id": "6dd92f6b-7072-4709-a972-3ecf7265d1ce", "links": [{"href": "http://10.109.1.9:8774/v2.1/images/6dd92f6b-7072-4709-a972-3ecf7265d1ce", "rel": "self"}, {"href": "http://10.109.1.9:8774/images/6dd92f6b-7072-4709-a972-3ecf7265d1ce", "rel": "bookmark"}, {"href": "http://10.109.4.3:9292/images/6dd92f6b-7072-4709-a972-3ecf7265d1ce", "type": "application/vnd.openstack.image", "rel": "alternate"}], "name": "TestVM"}]}
- DEBUG (session:248) REQ: curl -g -i -X GET http://10.109.1.9:8774/v2.1/images/bd959aab-9aed-4b2b-9b10-608de616e3ff -H "User-Agent: python-novaclient" -H "Accept: application/json" -H "X-OpenStack-Nova-API-Version: 2.25" -H "X-Auth-Token: {SHA1}836341a9e41575187b8788d1b2e5b27ae78ff93e"
- INFO (connectionpool:242) Resetting dropped connection: 10.109.1.9
- DEBUG (connectionpool:387) "GET /v2.1/images/bd959aab-9aed-4b2b-9b10-608de616e3ff HTTP/1.1" 200 613
- DEBUG (session:277) RESP: [200] Content-Length: 613 X-Compute-Request-Id: req-554c0070-dcfe-4c4c-b553-f331f93aa2d0 Vary: X-OpenStack-Nova-API-Version Connection: close X-Openstack-Nova-Api-Version: 2.25 Date: Thu, 25 Aug 2016 07:53:50 GMT Content-Type: application/json
- RESP BODY: {"image": {"status": "ACTIVE", "updated": "2016-08-25T07:40:51Z", "links": [{"href": "http://10.109.1.9:8774/v2.1/images/bd959aab-9aed-4b2b-9b10-608de616e3ff", "rel": "self"}, {"href": "http://10.109.1.9:8774/images/bd959aab-9aed-4b2b-9b10-608de616e3ff", "rel": "bookmark"}, {"href": "http://10.109.4.2:9292/images/bd959aab-9aed-4b2b-9b10-608de616e3ff", "type": "application/vnd.openstack.image", "rel": "alternate"}], "id": "bd959aab-9aed-4b2b-9b10-608de616e3ff", "OS-EXT-IMG-SIZE:size": 309657600, "name": "Ubuntu", "created": "2016-08-25T07:40:39Z", "minDisk": 0, "progress": 100, "minRam": 0, "metadata": {}}}
- DEBUG (session:248) REQ: curl -g -i -X GET http://10.109.1.9:8774/v2.1/flavors/m1.small -H "User-Agent: python-novaclient" -H "Accept: application/json" -H "X-OpenStack-Nova-API-Version: 2.25" -H "X-Auth-Token: {SHA1}836341a9e41575187b8788d1b2e5b27ae78ff93e"
- INFO (connectionpool:242) Resetting dropped connection: 10.109.1.9
- DEBUG (connectionpool:387) "GET /v2.1/flavors/m1.small HTTP/1.1" 404 81
- DEBUG (session:277) RESP: [404] Content-Length: 81 X-Compute-Request-Id: req-94f408a8-c767-4f8d-9865-a85dd8d43dcf Vary: X-OpenStack-Nova-API-Version Connection: close X-Openstack-Nova-Api-Version: 2.25 Date: Thu, 25 Aug 2016 07:53:50 GMT Content-Type: application/json; charset=UTF-8
- RESP BODY: {"itemNotFound": {"message": "Flavor m1.small could not be found.", "code": 404}}
- DEBUG (session:248) REQ: curl -g -i -X GET http://10.109.1.9:8774/v2.1/flavors?is_public=None -H "User-Agent: python-novaclient" -H "Accept: application/json" -H "X-OpenStack-Nova-API-Version: 2.25" -H "X-Auth-Token: {SHA1}836341a9e41575187b8788d1b2e5b27ae78ff93e"
- INFO (connectionpool:242) Resetting dropped connection: 10.109.1.9
- DEBUG (connectionpool:387) "GET /v2.1/flavors?is_public=None HTTP/1.1" 200 1169
- DEBUG (session:277) RESP: [200] Content-Length: 1169 X-Compute-Request-Id: req-c2ea9da8-fa8d-435c-b219-856d96f7356f Vary: X-OpenStack-Nova-API-Version Connection: close X-Openstack-Nova-Api-Version: 2.25 Date: Thu, 25 Aug 2016 07:53:50 GMT Content-Type: application/json
- RESP BODY: {"flavors": [{"id": "1", "links": [{"href": "http://10.109.1.9:8774/v2.1/flavors/1", "rel": "self"}, {"href": "http://10.109.1.9:8774/flavors/1", "rel": "bookmark"}], "name": "m1.tiny"}, {"id": "2", "links": [{"href": "http://10.109.1.9:8774/v2.1/flavors/2", "rel": "self"}, {"href": "http://10.109.1.9:8774/flavors/2", "rel": "bookmark"}], "name": "m1.small"}, {"id": "3", "links": [{"href": "http://10.109.1.9:8774/v2.1/flavors/3", "rel": "self"}, {"href": "http://10.109.1.9:8774/flavors/3", "rel": "bookmark"}], "name": "m1.medium"}, {"id": "36874b50-bc7c-4652-87b4-ba4d7c5d32cb", "links": [{"href": "http://10.109.1.9:8774/v2.1/flavors/36874b50-bc7c-4652-87b4-ba4d7c5d32cb", "rel": "self"}, {"href": "http://10.109.1.9:8774/flavors/36874b50-bc7c-4652-87b4-ba4d7c5d32cb", "rel": "bookmark"}], "name": "m1.micro"}, {"id": "4", "links": [{"href": "http://10.109.1.9:8774/v2.1/flavors/4", "rel": "self"}, {"href": "http://10.109.1.9:8774/flavors/4", "rel": "bookmark"}], "name": "m1.large"}, {"id": "5", "links": [{"href": "http://10.109.1.9:8774/v2.1/flavors/5", "rel": "self"}, {"href": "http://10.109.1.9:8774/flavors/5", "rel": "bookmark"}], "name": "m1.xlarge"}]}
- DEBUG (session:248) REQ: curl -g -i -X GET http://10.109.1.9:8774/v2.1/flavors/2 -H "User-Agent: python-novaclient" -H "Accept: application/json" -H "X-OpenStack-Nova-API-Version: 2.25" -H "X-Auth-Token: {SHA1}836341a9e41575187b8788d1b2e5b27ae78ff93e"
- INFO (connectionpool:242) Resetting dropped connection: 10.109.1.9
- DEBUG (connectionpool:387) "GET /v2.1/flavors/2 HTTP/1.1" 200 357
- DEBUG (session:277) RESP: [200] Content-Length: 357 X-Compute-Request-Id: req-2c4affb5-4b6e-46af-9d54-50c2365a56c1 Vary: X-OpenStack-Nova-API-Version Connection: close X-Openstack-Nova-Api-Version: 2.25 Date: Thu, 25 Aug 2016 07:53:50 GMT Content-Type: application/json
- RESP BODY: {"flavor": {"name": "m1.small", "links": [{"href": "http://10.109.1.9:8774/v2.1/flavors/2", "rel": "self"}, {"href": "http://10.109.1.9:8774/flavors/2", "rel": "bookmark"}], "ram": 2048, "OS-FLV-DISABLED:disabled": false, "vcpus": 1, "swap": "", "os-flavor-access:is_public": true, "rxtx_factor": 1.0, "OS-FLV-EXT-DATA:ephemeral": 0, "disk": 20, "id": "2"}}
- DEBUG (session:248) REQ: curl -g -i -X POST http://10.109.1.9:8774/v2.1/servers -H "User-Agent: python-novaclient" -H "Content-Type: application/json" -H "Accept: application/json" -H "X-OpenStack-Nova-API-Version: 2.25" -H "X-Auth-Token: {SHA1}836341a9e41575187b8788d1b2e5b27ae78ff93e" -d '{"server": {"name": "MyTestVPS333", "imageRef": "bd959aab-9aed-4b2b-9b10-608de616e3ff", "key_name": "mykey", "flavorRef": "2", "max_count": 1, "min_count": 1, "networks": [{"uuid": "c02eaffc-18ef-4219-9944-f269e6838c5e"}]}}'
- INFO (connectionpool:242) Resetting dropped connection: 10.109.1.9
- DEBUG (connectionpool:387) "POST /v2.1/servers HTTP/1.1" 202 372
- DEBUG (session:277) RESP: [202] Content-Length: 372 X-Compute-Request-Id: req-735d9724-5a56-40b9-9c4f-37e71c7b6094 Vary: X-OpenStack-Nova-API-Version Connection: close Location: http://10.109.1.9:8774/v2.1/servers/b47e83f9-deac-4700-88b8-5609507c1b0d X-Openstack-Nova-Api-Version: 2.25 Date: Thu, 25 Aug 2016 07:53:53 GMT Content-Type: application/json
- RESP BODY: {"server": {"security_groups": [{"name": "default"}], "OS-DCF:diskConfig": "MANUAL", "id": "b47e83f9-deac-4700-88b8-5609507c1b0d", "links": [{"href": "http://10.109.1.9:8774/v2.1/servers/b47e83f9-deac-4700-88b8-5609507c1b0d", "rel": "self"}, {"href": "http://10.109.1.9:8774/servers/b47e83f9-deac-4700-88b8-5609507c1b0d", "rel": "bookmark"}], "adminPass": "bzR2mZZ5kQoT"}}
- DEBUG (session:248) REQ: curl -g -i -X GET http://10.109.1.9:8774/v2.1/servers/b47e83f9-deac-4700-88b8-5609507c1b0d -H "User-Agent: python-novaclient" -H "Accept: application/json" -H "X-OpenStack-Nova-API-Version: 2.25" -H "X-Auth-Token: {SHA1}836341a9e41575187b8788d1b2e5b27ae78ff93e"
- INFO (connectionpool:242) Resetting dropped connection: 10.109.1.9
- DEBUG (connectionpool:387) "GET /v2.1/servers/b47e83f9-deac-4700-88b8-5609507c1b0d HTTP/1.1" 200 1620
- DEBUG (session:277) RESP: [200] Content-Length: 1620 X-Compute-Request-Id: req-dcc808e7-0045-45eb-b06d-f91e1814a3aa Vary: X-OpenStack-Nova-API-Version Connection: close X-Openstack-Nova-Api-Version: 2.25 Date: Thu, 25 Aug 2016 07:53:53 GMT Content-Type: application/json
- RESP BODY: {"server": {"status": "BUILD", "OS-EXT-SRV-ATTR:ramdisk_id": "", "updated": "2016-08-25T07:53:53Z", "hostId": "", "OS-EXT-SRV-ATTR:host": null, "addresses": {}, "links": [{"href": "http://10.109.1.9:8774/v2.1/servers/b47e83f9-deac-4700-88b8-5609507c1b0d", "rel": "self"}, {"href": "http://10.109.1.9:8774/servers/b47e83f9-deac-4700-88b8-5609507c1b0d", "rel": "bookmark"}], "key_name": "mykey", "image": {"id": "bd959aab-9aed-4b2b-9b10-608de616e3ff", "links": [{"href": "http://10.109.1.9:8774/images/bd959aab-9aed-4b2b-9b10-608de616e3ff", "rel": "bookmark"}]}, "OS-EXT-SRV-ATTR:user_data": null, "OS-EXT-STS:task_state": "scheduling", "OS-EXT-STS:vm_state": "building", "OS-EXT-SRV-ATTR:instance_name": "instance-0000023c", "OS-EXT-SRV-ATTR:root_device_name": null, "OS-SRV-USG:launched_at": null, "locked": false, "flavor": {"id": "2", "links": [{"href": "http://10.109.1.9:8774/flavors/2", "rel": "bookmark"}]}, "id": "b47e83f9-deac-4700-88b8-5609507c1b0d", "description": null, "OS-EXT-SRV-ATTR:kernel_id": "", "host_status": "", "OS-EXT-AZ:availability_zone": "", "user_id": "cb9dd32d7bb94d1ebcb257f98ae39458", "name": "MyTestVPS333", "OS-EXT-SRV-ATTR:launch_index": 0, "created": "2016-08-25T07:53:53Z", "tenant_id": "5e04d6d8ba91489283ec480a3472387e", "OS-DCF:diskConfig": "MANUAL", "OS-EXT-SRV-ATTR:hypervisor_hostname": null, "os-extended-volumes:volumes_attached": [], "accessIPv4": "", "accessIPv6": "", "OS-EXT-SRV-ATTR:reservation_id": "r-smw1kgl2", "OS-EXT-SRV-ATTR:hostname": "mytestvps333", "progress": 0, "OS-EXT-STS:power_state": 0, "config_drive": "", "OS-SRV-USG:terminated_at": null, "metadata": {}}}
- DEBUG (session:248) REQ: curl -g -i -X GET http://10.109.1.9:8774/v2.1/flavors/2 -H "User-Agent: python-novaclient" -H "Accept: application/json" -H "X-OpenStack-Nova-API-Version: 2.25" -H "X-Auth-Token: {SHA1}836341a9e41575187b8788d1b2e5b27ae78ff93e"
- INFO (connectionpool:242) Resetting dropped connection: 10.109.1.9
- DEBUG (connectionpool:387) "GET /v2.1/flavors/2 HTTP/1.1" 200 357
- DEBUG (session:277) RESP: [200] Content-Length: 357 X-Compute-Request-Id: req-b20dc623-0c2c-4b54-81e8-207bb993eb11 Vary: X-OpenStack-Nova-API-Version Connection: close X-Openstack-Nova-Api-Version: 2.25 Date: Thu, 25 Aug 2016 07:53:53 GMT Content-Type: application/json
- RESP BODY: {"flavor": {"name": "m1.small", "links": [{"href": "http://10.109.1.9:8774/v2.1/flavors/2", "rel": "self"}, {"href": "http://10.109.1.9:8774/flavors/2", "rel": "bookmark"}], "ram": 2048, "OS-FLV-DISABLED:disabled": false, "vcpus": 1, "swap": "", "os-flavor-access:is_public": true, "rxtx_factor": 1.0, "OS-FLV-EXT-DATA:ephemeral": 0, "disk": 20, "id": "2"}}
- DEBUG (session:248) REQ: curl -g -i -X GET http://10.109.1.9:8774/v2.1/images/bd959aab-9aed-4b2b-9b10-608de616e3ff -H "User-Agent: python-novaclient" -H "Accept: application/json" -H "X-OpenStack-Nova-API-Version: 2.25" -H "X-Auth-Token: {SHA1}836341a9e41575187b8788d1b2e5b27ae78ff93e"
- INFO (connectionpool:242) Resetting dropped connection: 10.109.1.9
- DEBUG (connectionpool:387) "GET /v2.1/images/bd959aab-9aed-4b2b-9b10-608de616e3ff HTTP/1.1" 200 613
- DEBUG (session:277) RESP: [200] Content-Length: 613 X-Compute-Request-Id: req-e836548c-5df0-4d3a-a3b8-cccd6a23d0cb Vary: X-OpenStack-Nova-API-Version Connection: close X-Openstack-Nova-Api-Version: 2.25 Date: Thu, 25 Aug 2016 07:53:54 GMT Content-Type: application/json
- RESP BODY: {"image": {"status": "ACTIVE", "updated": "2016-08-25T07:40:51Z", "links": [{"href": "http://10.109.1.9:8774/v2.1/images/bd959aab-9aed-4b2b-9b10-608de616e3ff", "rel": "self"}, {"href": "http://10.109.1.9:8774/images/bd959aab-9aed-4b2b-9b10-608de616e3ff", "rel": "bookmark"}, {"href": "http://10.109.4.4:9292/images/bd959aab-9aed-4b2b-9b10-608de616e3ff", "type": "application/vnd.openstack.image", "rel": "alternate"}], "id": "bd959aab-9aed-4b2b-9b10-608de616e3ff", "OS-EXT-IMG-SIZE:size": 309657600, "name": "Ubuntu", "created": "2016-08-25T07:40:39Z", "minDisk": 0, "progress": 100, "minRam": 0, "metadata": {}}}
- +--------------------------------------+-----------------------------------------------+
- | Property | Value |
- +--------------------------------------+-----------------------------------------------+
- | OS-DCF:diskConfig | MANUAL |
- | OS-EXT-AZ:availability_zone | |
- | OS-EXT-SRV-ATTR:host | - |
- | OS-EXT-SRV-ATTR:hostname | mytestvps333 |
- | OS-EXT-SRV-ATTR:hypervisor_hostname | - |
- | OS-EXT-SRV-ATTR:instance_name | instance-0000023c |
- | 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-smw1kgl2 |
- | 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 | bzR2mZZ5kQoT |
- | config_drive | |
- | created | 2016-08-25T07:53:53Z |
- | description | - |
- | flavor | m1.small (2) |
- | hostId | |
- | host_status | |
- | id | b47e83f9-deac-4700-88b8-5609507c1b0d |
- | image | Ubuntu (bd959aab-9aed-4b2b-9b10-608de616e3ff) |
- | key_name | mykey |
- | locked | False |
- | metadata | {} |
- | name | MyTestVPS333 |
- | os-extended-volumes:volumes_attached | [] |
- | progress | 0 |
- | security_groups | default |
- | status | BUILD |
- | tenant_id | 5e04d6d8ba91489283ec480a3472387e |
- | updated | 2016-08-25T07:53:53Z |
- | user_id | cb9dd32d7bb94d1ebcb257f98ae39458 |
- +--------------------------------------+-----------------------------------------------+
- root@node-6:~/.ssh# nova floating-ip-associate b47e83f9-deac-4700-88b8-5609507c1b0d 10.109.4.153
- root@node-6:~/.ssh# nova list
- +--------------------------------------+--------------+--------+------------+-------------+----------------------------------------------+
- | ID | Name | Status | Task State | Power State | Networks |
- +--------------------------------------+--------------+--------+------------+-------------+----------------------------------------------+
- | 1c451ccf-caf4-4a0e-b78a-292b9917a1cc | MyTestVPS | ACTIVE | - | Running | admin_internal_net=10.109.5.11, 10.109.4.152 |
- | b47e83f9-deac-4700-88b8-5609507c1b0d | MyTestVPS333 | ACTIVE | - | Running | admin_internal_net=10.109.5.13, 10.109.4.153 |
- +--------------------------------------+--------------+--------+------------+-------------+----------------------------------------------+
- root@node-6:~/.ssh# ssh ubuntu@10.109.4.153
- The authenticity of host '10.109.4.153 (10.109.4.153)' can't be established.
- ECDSA key fingerprint is 61:b5:75:2d:f1:ff:57:c7:2e:1a:f8:66:64:44:9b:00.
- Are you sure you want to continue connecting (yes/no)? yes
- Warning: Permanently added '10.109.4.153' (ECDSA) to the list of known hosts.
- Welcome to Ubuntu 16.04.1 LTS (GNU/Linux 4.4.0-34-generic x86_64)
- * Documentation: https://help.ubuntu.com
- * Management: https://landscape.canonical.com
- * Support: https://ubuntu.com/advantage
- Get cloud support with Ubuntu Advantage Cloud Guest:
- http://www.ubuntu.com/business/services/cloud
- 0 packages can be updated.
- 0 updates are security updates.
- The programs included with the Ubuntu system are free software;
- the exact distribution terms for each program are described in the
- individual files in /usr/share/doc/*/copyright.
- Ubuntu comes with ABSOLUTELY NO WARRANTY, to the extent permitted by
- applicable law.
- To run a command as administrator (user "root"), use "sudo <command>".
- See "man sudo_root" for details.
- ubuntu@mytestvps333:~$ hostname
- mytestvps333
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement