Advertisement
Guest User

Untitled

a guest
Aug 25th, 2016
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 28.77 KB | None | 0 0
  1. root@node-6:~# wget http://cloud-images.ubuntu.com/xenial/current/xenial-server-cloudimg-amd64-disk1.img
  2. --2016-08-25 07:36:50-- http://cloud-images.ubuntu.com/xenial/current/xenial-server-cloudimg-amd64-disk1.img
  3. Resolving cloud-images.ubuntu.com (cloud-images.ubuntu.com)... 91.189.88.141, 2001:67c:1360:8001:ffff:ffff:ffff:fffe
  4. Connecting to cloud-images.ubuntu.com (cloud-images.ubuntu.com)|91.189.88.141|:80... connected.
  5. HTTP request sent, awaiting response... 200 OK
  6. Length: 309657600 (295M) [application/octet-stream]
  7. Saving to: ‘xenial-server-cloudimg-amd64-disk1.img’
  8.  
  9. 100%[=====================================================================================================================================================================================================================================>] 309,657,600 20.6MB/s in 14s
  10.  
  11. 2016-08-25 07:37:04 (21.5 MB/s) - ‘xenial-server-cloudimg-amd64-disk1.img’ saved [309657600/309657600]
  12.  
  13. root@node-6:~# openstack image create Ubuntu --disk-format raw --container-format bare --file xenial-server-cloudimg-amd64-disk1.img
  14. +------------------+------------------------------------------------------+
  15. | Field | Value |
  16. +------------------+------------------------------------------------------+
  17. | checksum | d6e6b52b6bdccb9491a3184fdcbec748 |
  18. | container_format | bare |
  19. | created_at | 2016-08-25T07:40:39Z |
  20. | disk_format | raw |
  21. | file | /v2/images/bd959aab-9aed-4b2b-9b10-608de616e3ff/file |
  22. | id | bd959aab-9aed-4b2b-9b10-608de616e3ff |
  23. | min_disk | 0 |
  24. | min_ram | 0 |
  25. | name | Ubuntu |
  26. | owner | 5e04d6d8ba91489283ec480a3472387e |
  27. | protected | False |
  28. | schema | /v2/schemas/image |
  29. | size | 309657600 |
  30. | status | active |
  31. | tags | |
  32. | updated_at | 2016-08-25T07:40:51Z |
  33. | virtual_size | None |
  34. | visibility | private |
  35. +------------------+------------------------------------------------------+
  36.  
  37.  
  38. root@node-6:~/.ssh# nova keypair-list
  39. +-------+------+-------------------------------------------------+
  40. | Name | Type | Fingerprint |
  41. +-------+------+-------------------------------------------------+
  42. | mykey | ssh | 70:9c:1d:9e:81:fd:9f:ff:06:93:70:ba:ad:14:6a:36 |
  43. +-------+------+-------------------------------------------------+
  44. root@node-6:~/.ssh#
  45. 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
  46. DEBUG (extension:157) found extension EntryPoint.parse('password-ceilometer-legacy = ceilometer.keystone_client:LegacyCeilometerKeystoneLoader')
  47. DEBUG (extension:157) found extension EntryPoint.parse('aodh-noauth = aodhclient.noauth:AodhNoAuthLoader')
  48. DEBUG (extension:157) found extension EntryPoint.parse('password-aodh-legacy = aodh.keystone_client:LegacyAodhKeystoneLoader')
  49. DEBUG (extension:157) found extension EntryPoint.parse('v2token = keystoneauth1.loading._plugins.identity.v2:Token')
  50. DEBUG (extension:157) found extension EntryPoint.parse('admin_token = keystoneauth1.loading._plugins.admin_token:AdminToken')
  51. DEBUG (extension:157) found extension EntryPoint.parse('v3oidcauthcode = keystoneauth1.loading._plugins.identity.v3:OpenIDConnectAuthorizationCode')
  52. DEBUG (extension:157) found extension EntryPoint.parse('v2password = keystoneauth1.loading._plugins.identity.v2:Password')
  53. DEBUG (extension:157) found extension EntryPoint.parse('v3password = keystoneauth1.loading._plugins.identity.v3:Password')
  54. DEBUG (extension:157) found extension EntryPoint.parse('v3oidcpassword = keystoneauth1.loading._plugins.identity.v3:OpenIDConnectPassword')
  55. DEBUG (extension:157) found extension EntryPoint.parse('token = keystoneauth1.loading._plugins.identity.generic:Token')
  56. DEBUG (extension:157) found extension EntryPoint.parse('v3token = keystoneauth1.loading._plugins.identity.v3:Token')
  57. DEBUG (extension:157) found extension EntryPoint.parse('password = keystoneauth1.loading._plugins.identity.generic:Password')
  58. DEBUG (extension:157) found extension EntryPoint.parse('gnocchi-noauth = gnocchiclient.noauth:GnocchiNoAuthLoader')
  59. 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"
  60. INFO (connectionpool:207) Starting new HTTP connection (1): 10.109.1.9
  61. DEBUG (connectionpool:387) "GET / HTTP/1.1" 300 589
  62. 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
  63. 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"}]
  64. }, {"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
  65. ack.org/", "type": "text/html", "rel": "describedby"}]}]}}
  66.  
  67. DEBUG (v2:63) Making authentication request to http://10.109.1.9:5000/v2.0/tokens
  68. INFO (connectionpool:242) Resetting dropped connection: 10.109.1.9
  69. DEBUG (connectionpool:387) "POST /v2.0/tokens HTTP/1.1" 200 6009
  70. 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"
  71. INFO (connectionpool:207) Starting new HTTP connection (1): 10.109.1.9
  72. DEBUG (connectionpool:387) "GET /v2.1 HTTP/1.1" 302 0
  73. 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
  74. INFO (connectionpool:242) Resetting dropped connection: 10.109.1.9
  75. DEBUG (connectionpool:387) "GET /v2.1/ HTTP/1.1" 200 384
  76. 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
  77. 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",
  78. "media-types": [{"base": "application/json", "type": "application/vnd.openstack.compute+json;version=2.1"}], "id": "v2.1"}}
  79.  
  80. DEBUG (extension:157) found extension EntryPoint.parse('password-ceilometer-legacy = ceilometer.keystone_client:LegacyCeilometerKeystoneLoader')
  81. DEBUG (extension:157) found extension EntryPoint.parse('aodh-noauth = aodhclient.noauth:AodhNoAuthLoader')
  82. DEBUG (extension:157) found extension EntryPoint.parse('password-aodh-legacy = aodh.keystone_client:LegacyAodhKeystoneLoader')
  83. DEBUG (extension:157) found extension EntryPoint.parse('v2token = keystoneauth1.loading._plugins.identity.v2:Token')
  84. DEBUG (extension:157) found extension EntryPoint.parse('admin_token = keystoneauth1.loading._plugins.admin_token:AdminToken')
  85. DEBUG (extension:157) found extension EntryPoint.parse('v3oidcauthcode = keystoneauth1.loading._plugins.identity.v3:OpenIDConnectAuthorizationCode')
  86. DEBUG (extension:157) found extension EntryPoint.parse('v2password = keystoneauth1.loading._plugins.identity.v2:Password')
  87. DEBUG (extension:157) found extension EntryPoint.parse('v3password = keystoneauth1.loading._plugins.identity.v3:Password')
  88. DEBUG (extension:157) found extension EntryPoint.parse('v3oidcpassword = keystoneauth1.loading._plugins.identity.v3:OpenIDConnectPassword')
  89. DEBUG (extension:157) found extension EntryPoint.parse('token = keystoneauth1.loading._plugins.identity.generic:Token')
  90. DEBUG (extension:157) found extension EntryPoint.parse('v3token = keystoneauth1.loading._plugins.identity.v3:Token')
  91. DEBUG (extension:157) found extension EntryPoint.parse('password = keystoneauth1.loading._plugins.identity.generic:Password')
  92. DEBUG (extension:157) found extension EntryPoint.parse('gnocchi-noauth = gnocchiclient.noauth:GnocchiNoAuthLoader')
  93. WARNING: Option "--key_name" is deprecated; use "--key-name"; this option will be removed in novaclient 3.3.0.
  94. 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"
  95.  
  96. INFO (connectionpool:242) Resetting dropped connection: 10.109.1.9
  97. DEBUG (connectionpool:387) "GET /v2.1/images HTTP/1.1" 200 2153
  98. 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
  99. 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"}]}
  100.  
  101. 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"
  102. INFO (connectionpool:242) Resetting dropped connection: 10.109.1.9
  103. DEBUG (connectionpool:387) "GET /v2.1/images/bd959aab-9aed-4b2b-9b10-608de616e3ff HTTP/1.1" 200 613
  104. 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
  105. 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": {}}}
  106.  
  107. 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"
  108. INFO (connectionpool:242) Resetting dropped connection: 10.109.1.9
  109. DEBUG (connectionpool:387) "GET /v2.1/flavors/m1.small HTTP/1.1" 404 81
  110. 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
  111. RESP BODY: {"itemNotFound": {"message": "Flavor m1.small could not be found.", "code": 404}}
  112.  
  113. 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"
  114. INFO (connectionpool:242) Resetting dropped connection: 10.109.1.9
  115. DEBUG (connectionpool:387) "GET /v2.1/flavors?is_public=None HTTP/1.1" 200 1169
  116. 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
  117. 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"}]}
  118.  
  119. 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"
  120. INFO (connectionpool:242) Resetting dropped connection: 10.109.1.9
  121. DEBUG (connectionpool:387) "GET /v2.1/flavors/2 HTTP/1.1" 200 357
  122. 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
  123. 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"}}
  124.  
  125. 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"}]}}'
  126. INFO (connectionpool:242) Resetting dropped connection: 10.109.1.9
  127. DEBUG (connectionpool:387) "POST /v2.1/servers HTTP/1.1" 202 372
  128. 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
  129. 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"}}
  130.  
  131. 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"
  132. INFO (connectionpool:242) Resetting dropped connection: 10.109.1.9
  133. DEBUG (connectionpool:387) "GET /v2.1/servers/b47e83f9-deac-4700-88b8-5609507c1b0d HTTP/1.1" 200 1620
  134. 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
  135. 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": {}}}
  136.  
  137. 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"
  138. INFO (connectionpool:242) Resetting dropped connection: 10.109.1.9
  139. DEBUG (connectionpool:387) "GET /v2.1/flavors/2 HTTP/1.1" 200 357
  140. 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
  141. 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"}}
  142.  
  143. 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"
  144. INFO (connectionpool:242) Resetting dropped connection: 10.109.1.9
  145. DEBUG (connectionpool:387) "GET /v2.1/images/bd959aab-9aed-4b2b-9b10-608de616e3ff HTTP/1.1" 200 613
  146. 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
  147. 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": {}}}
  148.  
  149. +--------------------------------------+-----------------------------------------------+
  150. | Property | Value |
  151. +--------------------------------------+-----------------------------------------------+
  152. | OS-DCF:diskConfig | MANUAL |
  153. | OS-EXT-AZ:availability_zone | |
  154. | OS-EXT-SRV-ATTR:host | - |
  155. | OS-EXT-SRV-ATTR:hostname | mytestvps333 |
  156. | OS-EXT-SRV-ATTR:hypervisor_hostname | - |
  157. | OS-EXT-SRV-ATTR:instance_name | instance-0000023c |
  158. | OS-EXT-SRV-ATTR:kernel_id | |
  159. | OS-EXT-SRV-ATTR:launch_index | 0 |
  160. | OS-EXT-SRV-ATTR:ramdisk_id | |
  161. | OS-EXT-SRV-ATTR:reservation_id | r-smw1kgl2 |
  162. | OS-EXT-SRV-ATTR:root_device_name | - |
  163. | OS-EXT-SRV-ATTR:user_data | - |
  164. | OS-EXT-STS:power_state | 0 |
  165. | OS-EXT-STS:task_state | scheduling |
  166. | OS-EXT-STS:vm_state | building |
  167. | OS-SRV-USG:launched_at | - |
  168. | OS-SRV-USG:terminated_at | - |
  169. | accessIPv4 | |
  170. | accessIPv6 | |
  171. | adminPass | bzR2mZZ5kQoT |
  172. | config_drive | |
  173. | created | 2016-08-25T07:53:53Z |
  174. | description | - |
  175. | flavor | m1.small (2) |
  176. | hostId | |
  177. | host_status | |
  178. | id | b47e83f9-deac-4700-88b8-5609507c1b0d |
  179. | image | Ubuntu (bd959aab-9aed-4b2b-9b10-608de616e3ff) |
  180. | key_name | mykey |
  181. | locked | False |
  182. | metadata | {} |
  183. | name | MyTestVPS333 |
  184. | os-extended-volumes:volumes_attached | [] |
  185. | progress | 0 |
  186. | security_groups | default |
  187. | status | BUILD |
  188. | tenant_id | 5e04d6d8ba91489283ec480a3472387e |
  189. | updated | 2016-08-25T07:53:53Z |
  190. | user_id | cb9dd32d7bb94d1ebcb257f98ae39458 |
  191. +--------------------------------------+-----------------------------------------------+
  192.  
  193.  
  194. root@node-6:~/.ssh# nova floating-ip-associate b47e83f9-deac-4700-88b8-5609507c1b0d 10.109.4.153
  195. root@node-6:~/.ssh# nova list
  196. +--------------------------------------+--------------+--------+------------+-------------+----------------------------------------------+
  197. | ID | Name | Status | Task State | Power State | Networks |
  198. +--------------------------------------+--------------+--------+------------+-------------+----------------------------------------------+
  199. | 1c451ccf-caf4-4a0e-b78a-292b9917a1cc | MyTestVPS | ACTIVE | - | Running | admin_internal_net=10.109.5.11, 10.109.4.152 |
  200. | b47e83f9-deac-4700-88b8-5609507c1b0d | MyTestVPS333 | ACTIVE | - | Running | admin_internal_net=10.109.5.13, 10.109.4.153 |
  201. +--------------------------------------+--------------+--------+------------+-------------+----------------------------------------------+
  202.  
  203. root@node-6:~/.ssh# ssh ubuntu@10.109.4.153
  204. The authenticity of host '10.109.4.153 (10.109.4.153)' can't be established.
  205. ECDSA key fingerprint is 61:b5:75:2d:f1:ff:57:c7:2e:1a:f8:66:64:44:9b:00.
  206. Are you sure you want to continue connecting (yes/no)? yes
  207. Warning: Permanently added '10.109.4.153' (ECDSA) to the list of known hosts.
  208. Welcome to Ubuntu 16.04.1 LTS (GNU/Linux 4.4.0-34-generic x86_64)
  209.  
  210. * Documentation: https://help.ubuntu.com
  211. * Management: https://landscape.canonical.com
  212. * Support: https://ubuntu.com/advantage
  213.  
  214. Get cloud support with Ubuntu Advantage Cloud Guest:
  215. http://www.ubuntu.com/business/services/cloud
  216.  
  217. 0 packages can be updated.
  218. 0 updates are security updates.
  219.  
  220.  
  221.  
  222. The programs included with the Ubuntu system are free software;
  223. the exact distribution terms for each program are described in the
  224. individual files in /usr/share/doc/*/copyright.
  225.  
  226. Ubuntu comes with ABSOLUTELY NO WARRANTY, to the extent permitted by
  227. applicable law.
  228.  
  229. To run a command as administrator (user "root"), use "sudo <command>".
  230. See "man sudo_root" for details.
  231.  
  232. ubuntu@mytestvps333:~$ hostname
  233. mytestvps333
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement