Guest User

Untitled

a guest
Mar 24th, 2015
310
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 14.42 KB | None | 0 0
  1. [root@localhost ~]# nova service-list
  2. +------------------+------------+----------+---------+-------+------------------
  3. | Binary | Host | Zone | Status | State | Updated_at
  4. +------------------+------------+----------+---------+-------+------------------
  5. | nova-conductor | controller | internal | enabled | up | 2015-03-25T00:20:
  6. | nova-consoleauth | controller | internal | enabled | up | 2015-03-25T00:20:
  7. | nova-cert | controller | internal | enabled | up | 2015-03-25T00:20:
  8. | nova-scheduler | controller | internal | enabled | up | 2015-03-25T00:20:
  9. | nova-compute | controller | nova | enabled | up | 2015-03-25T00:20:
  10. +------------------+------------+----------+---------+-------+------------------
  11.  
  12.  
  13. [root@localhost ~]# neutron net-list
  14. +--------------------------------------+----------+-------------------------------------------------------+
  15. | id | name | subnets |
  16. +--------------------------------------+----------+-------------------------------------------------------+
  17. | fb2b5579-ba43-4d0d-bc9b-a484bd17db0f | ext-net | 43a898c1-73ae-446a-b0ef-382af6eeb231 103.244.237.0/24 |
  18. | 383dad2a-2d05-43dd-8ac0-2c56cff676c7 | demo-net | 242b7a39-f897-443d-83d4-734cd6d1d8c5 192.168.1.0/24 |
  19. +--------------------------------------+----------+-------------------------------------------------------+
  20.  
  21. [root@localhost ~]# nova --debug boot --flavor m1.tiny --image cirros-0.3.3-x86_64 --nic net-id=383dad2a-2d05-43dd-8ac0-2c56cff676c7 --security-group default --key-name demo-key demo-instance112
  22.  
  23. REQ: curl -i 'http://controller:35357/v2.0/tokens' -X POST -H "Content-Type: application/json" -H "Accept: application/json" -H "User-Agent: python-novaclient" -d '{"auth": {"tenantName": "admin", "passwordCredentials": {"username": "admin", "password": "xool3iAr"}}}'
  24.  
  25. INFO (connectionpool:203) Starting new HTTP connection (1): controller
  26. DEBUG (connectionpool:295) "POST /v2.0/tokens HTTP/1.1" 200 1669
  27. RESP: [200] {'date': 'Wed, 25 Mar 2015 00:21:15 GMT', 'content-type': 'application/json', 'content-length': '1669', 'vary': 'X-Auth-Token'}
  28. RESP BODY: {"access": {"token": {"issued_at": "2015-03-25T00:21:15.786595", "expires": "2015-03-25T01:21:15Z", "id": "7d4f5604e07745648367508171b5d7e5", "tenant": {"description": "Admin Tenant", "enabled": true, "id": "f740e94ed19f410cba6f2ec6800075f6", "name": "admin"}}, "serviceCatalog": [{"endpoints": [{"adminURL": "http://controller:9292", "region": "regionOne", "internalURL": "http://controller:9292", "id": "373c1c12807c492d9bf931309d7400f0", "publicURL": "http://controller:9292"}], "endpoints_links": [], "type": "image", "name": "glance"}, {"endpoints": [{"adminURL": "http://controller:8774/v2/f740e94ed19f410cba6f2ec6800075f6", "region": "regionOne", "internalURL": "http://controller:8774/v2/f740e94ed19f410cba6f2ec6800075f6", "id": "106bea71cb7c4700bc611301bf0feed7", "publicURL": "http://controller:8774/v2/f740e94ed19f410cba6f2ec6800075f6"}], "endpoints_links": [], "type": "compute", "name": "nova"}, {"endpoints": [{"adminURL": "http://controller:9696", "region": "regionOne", "internalURL": "http://controller:9696", "id": "2110f284a4424bcfac1e2e6da049c29f", "publicURL": "http://controller:9696"}], "endpoints_links": [], "type": "network", "name": "neutron"}, {"endpoints": [{"adminURL": "http://controller:35357/v2.0", "region": "regionOne", "internalURL": "http://controller:5000/v2.0", "id": "33d959ece425455ab83d04da50a999b6", "publicURL": "http://controller:5000/v2.0"}], "endpoints_links": [], "type": "identity", "name": "keystone"}], "user": {"username": "admin", "roles_links": [], "id": "e5cc77a41ce447188e8150e842929ee4", "roles": [{"name": "admin"}], "name": "admin"}, "metadata": {"is_admin": 0, "roles": ["2009d3102e2f4b69830d95e21215fa5e"]}}}
  29.  
  30.  
  31. REQ: curl -i 'http://controller:8774/v2/f740e94ed19f410cba6f2ec6800075f6/images' -X GET -H "X-Auth-Project-Id: admin" -H "User-Agent: python-novaclient" -H "Accept: application/json" -H "X-Auth-Token: 7d4f5604e07745648367508171b5d7e5"
  32.  
  33. INFO (connectionpool:203) Starting new HTTP connection (1): controller
  34. DEBUG (connectionpool:295) "GET /v2/f740e94ed19f410cba6f2ec6800075f6/images HTTP/1.1" 200 543
  35. RESP: [200] {'date': 'Wed, 25 Mar 2015 00:21:15 GMT', 'content-length': '543', 'content-type': 'application/json', 'x-compute-request-id': 'req-59a4416e-cc3c-4676-b296-77bdd7a12784'}
  36. RESP BODY: {"images": [{"id": "6b3a5452-e0ef-4eea-9cce-1e1ccf7cf5da", "links": [{"href": "http://controller:8774/v2/f740e94ed19f410cba6f2ec6800075f6/images/6b3a5452-e0ef-4eea-9cce-1e1ccf7cf5da", "rel": "self"}, {"href": "http://controller:8774/f740e94ed19f410cba6f2ec6800075f6/images/6b3a5452-e0ef-4eea-9cce-1e1ccf7cf5da", "rel": "bookmark"}, {"href": "http://172.26.7.111:9292/f740e94ed19f410cba6f2ec6800075f6/images/6b3a5452-e0ef-4eea-9cce-1e1ccf7cf5da", "type": "application/vnd.openstack.image", "rel": "alternate"}], "name": "cirros-0.3.3-x86_64"}]}
  37.  
  38.  
  39. REQ: curl -i 'http://controller:8774/v2/f740e94ed19f410cba6f2ec6800075f6/images' -X GET -H "X-Auth-Project-Id: admin" -H "User-Agent: python-novaclient" -H "Accept: application/json" -H "X-Auth-Token: 7d4f5604e07745648367508171b5d7e5"
  40.  
  41. INFO (connectionpool:203) Starting new HTTP connection (1): controller
  42. DEBUG (connectionpool:295) "GET /v2/f740e94ed19f410cba6f2ec6800075f6/images HTTP/1.1" 200 543
  43. RESP: [200] {'date': 'Wed, 25 Mar 2015 00:21:15 GMT', 'content-length': '543', 'content-type': 'application/json', 'x-compute-request-id': 'req-d55f3699-67d7-45af-a57e-1f8d8898a582'}
  44. RESP BODY: {"images": [{"id": "6b3a5452-e0ef-4eea-9cce-1e1ccf7cf5da", "links": [{"href": "http://controller:8774/v2/f740e94ed19f410cba6f2ec6800075f6/images/6b3a5452-e0ef-4eea-9cce-1e1ccf7cf5da", "rel": "self"}, {"href": "http://controller:8774/f740e94ed19f410cba6f2ec6800075f6/images/6b3a5452-e0ef-4eea-9cce-1e1ccf7cf5da", "rel": "bookmark"}, {"href": "http://172.26.7.111:9292/f740e94ed19f410cba6f2ec6800075f6/images/6b3a5452-e0ef-4eea-9cce-1e1ccf7cf5da", "type": "application/vnd.openstack.image", "rel": "alternate"}], "name": "cirros-0.3.3-x86_64"}]}
  45.  
  46.  
  47. REQ: curl -i 'http://controller:8774/v2/f740e94ed19f410cba6f2ec6800075f6/images/6b3a5452-e0ef-4eea-9cce-1e1ccf7cf5da' -X GET -H "X-Auth-Project-Id: admin" -H "User-Agent: python-novaclient" -H "Accept: application/json" -H "X-Auth-Token: 7d4f5604e07745648367508171b5d7e5"
  48.  
  49. INFO (connectionpool:203) Starting new HTTP connection (1): controller
  50. DEBUG (connectionpool:295) "GET /v2/f740e94ed19f410cba6f2ec6800075f6/images/6b3a5452-e0ef-4eea-9cce-1e1ccf7cf5da HTTP/1.1" 200 724
  51. RESP: [200] {'date': 'Wed, 25 Mar 2015 00:21:15 GMT', 'content-length': '724', 'content-type': 'application/json', 'x-compute-request-id': 'req-7efa6cd8-416c-487d-a1fd-8630d7eae09c'}
  52. RESP BODY: {"image": {"status": "ACTIVE", "updated": "2015-03-23T05:07:16Z", "links": [{"href": "http://controller:8774/v2/f740e94ed19f410cba6f2ec6800075f6/images/6b3a5452-e0ef-4eea-9cce-1e1ccf7cf5da", "rel": "self"}, {"href": "http://controller:8774/f740e94ed19f410cba6f2ec6800075f6/images/6b3a5452-e0ef-4eea-9cce-1e1ccf7cf5da", "rel": "bookmark"}, {"href": "http://172.26.7.111:9292/f740e94ed19f410cba6f2ec6800075f6/images/6b3a5452-e0ef-4eea-9cce-1e1ccf7cf5da", "type": "application/vnd.openstack.image", "rel": "alternate"}], "id": "6b3a5452-e0ef-4eea-9cce-1e1ccf7cf5da", "OS-EXT-IMG-SIZE:size": 13167616, "name": "cirros-0.3.3-x86_64", "created": "2015-03-23T05:07:15Z", "minDisk": 0, "progress": 100, "minRam": 0, "metadata": {}}}
  53.  
  54.  
  55. REQ: curl -i 'http://controller:8774/v2/f740e94ed19f410cba6f2ec6800075f6/flavors/m1.tiny' -X GET -H "X-Auth-Project-Id: admin" -H "User-Agent: python-novaclient" -H "Accept: application/json" -H "X-Auth-Token: 7d4f5604e07745648367508171b5d7e5"
  56.  
  57. INFO (connectionpool:203) Starting new HTTP connection (1): controller
  58. DEBUG (connectionpool:295) "GET /v2/f740e94ed19f410cba6f2ec6800075f6/flavors/m1.tiny HTTP/1.1" 404 78
  59. RESP: [404] {'date': 'Wed, 25 Mar 2015 00:21:15 GMT', 'content-length': '78', 'content-type': 'application/json; charset=UTF-8', 'x-compute-request-id': 'req-3142b55b-aedb-4f7f-baa3-7353274bab6b'}
  60. RESP BODY: {"itemNotFound": {"message": "The resource could not be found.", "code": 404}}
  61.  
  62.  
  63. REQ: curl -i 'http://controller:8774/v2/f740e94ed19f410cba6f2ec6800075f6/flavors' -X GET -H "X-Auth-Project-Id: admin" -H "User-Agent: python-novaclient" -H "Accept: application/json" -H "X-Auth-Token: 7d4f5604e07745648367508171b5d7e5"
  64.  
  65. INFO (connectionpool:203) Starting new HTTP connection (1): controller
  66. DEBUG (connectionpool:295) "GET /v2/f740e94ed19f410cba6f2ec6800075f6/flavors HTTP/1.1" 200 1209
  67. RESP: [200] {'date': 'Wed, 25 Mar 2015 00:21:16 GMT', 'content-length': '1209', 'content-type': 'application/json', 'x-compute-request-id': 'req-4ae41c6f-1694-4661-9fac-16097ba9c096'}
  68. RESP BODY: {"flavors": [{"id": "1", "links": [{"href": "http://controller:8774/v2/f740e94ed19f410cba6f2ec6800075f6/flavors/1", "rel": "self"}, {"href": "http://controller:8774/f740e94ed19f410cba6f2ec6800075f6/flavors/1", "rel": "bookmark"}], "name": "m1.tiny"}, {"id": "2", "links": [{"href": "http://controller:8774/v2/f740e94ed19f410cba6f2ec6800075f6/flavors/2", "rel": "self"}, {"href": "http://controller:8774/f740e94ed19f410cba6f2ec6800075f6/flavors/2", "rel": "bookmark"}], "name": "m1.small"}, {"id": "3", "links": [{"href": "http://controller:8774/v2/f740e94ed19f410cba6f2ec6800075f6/flavors/3", "rel": "self"}, {"href": "http://controller:8774/f740e94ed19f410cba6f2ec6800075f6/flavors/3", "rel": "bookmark"}], "name": "m1.medium"}, {"id": "4", "links": [{"href": "http://controller:8774/v2/f740e94ed19f410cba6f2ec6800075f6/flavors/4", "rel": "self"}, {"href": "http://controller:8774/f740e94ed19f410cba6f2ec6800075f6/flavors/4", "rel": "bookmark"}], "name": "m1.large"}, {"id": "5", "links": [{"href": "http://controller:8774/v2/f740e94ed19f410cba6f2ec6800075f6/flavors/5", "rel": "self"}, {"href": "http://controller:8774/f740e94ed19f410cba6f2ec6800075f6/flavors/5", "rel": "bookmark"}], "name": "m1.xlarge"}]}
  69.  
  70.  
  71. REQ: curl -i 'http://controller:8774/v2/f740e94ed19f410cba6f2ec6800075f6/flavors
  72.  
  73. INFO (connectionpool:203) Starting new HTTP connection (1): controller
  74. DEBUG (connectionpool:295) "GET /v2/f740e94ed19f410cba6f2ec6800075f6/flavors HTT
  75. RESP: [200] {'date': 'Wed, 25 Mar 2015 00:21:16 GMT', 'content-length': '1209',
  76. RESP BODY: {"flavors": [{"id": "1", "links": [{"href": "http://controller:8774/v "}], "name": "m1.tiny"}, {"id": "2", "links": [{"href": "http://controller:8774/ k"}], "name": "m1.small"}, {"id": "3", "links": [{"href": "http://controller:877 ark"}], "name": "m1.medium"}, {"id": "4", "links": [{"href": "http://controller: okmark"}], "name": "m1.large"}, {"id": "5", "links": [{"href": "http://controlle bookmark"}], "name": "m1.xlarge"}]}
  77.  
  78.  
  79. REQ: curl -i 'http://controller:8774/v2/f740e94ed19f410cba6f2ec6800075f6/flavors
  80.  
  81. INFO (connectionpool:203) Starting new HTTP connection (1): controller
  82. DEBUG (connectionpool:295) "GET /v2/f740e94ed19f410cba6f2ec6800075f6/flavors/1 H
  83. RESP: [200] {'date': 'Wed, 25 Mar 2015 00:21:16 GMT', 'content-length': '418', '
  84. RESP BODY: {"flavor": {"name": "m1.tiny", "links": [{"href": "http://controller: okmark"}], "ram": 512, "OS-FLV-DISABLED:disabled": false, "vcpus": 1, "swap": ""
  85.  
  86.  
  87. REQ: curl -i 'http://controller:8774/v2/f740e94ed19f410cba6f2ec6800075f6/servers : 7d4f5604e07745648367508171b5d7e5" -d '{"server": {"name": "demo-instance112", -2d05-43dd-8ac0-2c56cff676c7"}], "security_groups": [{"name": "default"}]}}'
  88.  
  89. INFO (connectionpool:203) Starting new HTTP connection (1): controller
  90. DEBUG (connectionpool:295) "POST /v2/f740e94ed19f410cba6f2ec6800075f6/servers HT
  91. RESP: [500] {'date': 'Wed, 25 Mar 2015 00:22:16 GMT', 'content-length': '128', '
  92. RESP BODY: {"computeFault": {"message": "The server has either erred or is incap
  93.  
  94. DEBUG (shell:783) The server has either erred or is incapable of performing the
  95. Traceback (most recent call last):
  96. File "/usr/lib/python2.7/site-packages/novaclient/shell.py", line 780, in main
  97. OpenStackComputeShell().main(map(strutils.safe_decode, sys.argv[1:]))
  98. File "/usr/lib/python2.7/site-packages/novaclient/shell.py", line 716, in main
  99. args.func(self.cs, args)
  100. File "/usr/lib/python2.7/site-packages/novaclient/v1_1/shell.py", line 433, in
  101. server = cs.servers.create(*boot_args, **boot_kwargs)
  102. File "/usr/lib/python2.7/site-packages/novaclient/v1_1/servers.py", line 871,
  103. **boot_kwargs)
  104. File "/usr/lib/python2.7/site-packages/novaclient/v1_1/servers.py", line 534,
  105. return_raw=return_raw, **kwargs)
  106. File "/usr/lib/python2.7/site-packages/novaclient/base.py", line 152, in _crea
  107. _resp, body = self.api.client.post(url, body=body)
  108. File "/usr/lib/python2.7/site-packages/novaclient/client.py", line 312, in pos
  109. return self._cs_request(url, 'POST', **kwargs)
  110. File "/usr/lib/python2.7/site-packages/novaclient/client.py", line 286, in _cs
  111. **kwargs)
  112. File "/usr/lib/python2.7/site-packages/novaclient/client.py", line 268, in _ti
  113. resp, body = self.request(url, method, **kwargs)
  114. File "/usr/lib/python2.7/site-packages/novaclient/client.py", line 262, in req
  115. raise exceptions.from_response(resp, body, url, method)
  116. ClientException: The server has either erred or is incapable of performing the r
  117. ERROR: The server has either erred or is incapable of performing the requested o
Advertisement
Add Comment
Please, Sign In to add comment