Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [root@localhost ~]# nova service-list
- +------------------+------------+----------+---------+-------+------------------
- | Binary | Host | Zone | Status | State | Updated_at
- +------------------+------------+----------+---------+-------+------------------
- | nova-conductor | controller | internal | enabled | up | 2015-03-25T00:20:
- | nova-consoleauth | controller | internal | enabled | up | 2015-03-25T00:20:
- | nova-cert | controller | internal | enabled | up | 2015-03-25T00:20:
- | nova-scheduler | controller | internal | enabled | up | 2015-03-25T00:20:
- | nova-compute | controller | nova | enabled | up | 2015-03-25T00:20:
- +------------------+------------+----------+---------+-------+------------------
- [root@localhost ~]# neutron net-list
- +--------------------------------------+----------+-------------------------------------------------------+
- | id | name | subnets |
- +--------------------------------------+----------+-------------------------------------------------------+
- | fb2b5579-ba43-4d0d-bc9b-a484bd17db0f | ext-net | 43a898c1-73ae-446a-b0ef-382af6eeb231 103.244.237.0/24 |
- | 383dad2a-2d05-43dd-8ac0-2c56cff676c7 | demo-net | 242b7a39-f897-443d-83d4-734cd6d1d8c5 192.168.1.0/24 |
- +--------------------------------------+----------+-------------------------------------------------------+
- [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
- 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"}}}'
- INFO (connectionpool:203) Starting new HTTP connection (1): controller
- DEBUG (connectionpool:295) "POST /v2.0/tokens HTTP/1.1" 200 1669
- RESP: [200] {'date': 'Wed, 25 Mar 2015 00:21:15 GMT', 'content-type': 'application/json', 'content-length': '1669', 'vary': 'X-Auth-Token'}
- 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"]}}}
- 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"
- INFO (connectionpool:203) Starting new HTTP connection (1): controller
- DEBUG (connectionpool:295) "GET /v2/f740e94ed19f410cba6f2ec6800075f6/images HTTP/1.1" 200 543
- 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'}
- 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"}]}
- 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"
- INFO (connectionpool:203) Starting new HTTP connection (1): controller
- DEBUG (connectionpool:295) "GET /v2/f740e94ed19f410cba6f2ec6800075f6/images HTTP/1.1" 200 543
- 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'}
- 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"}]}
- 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"
- INFO (connectionpool:203) Starting new HTTP connection (1): controller
- DEBUG (connectionpool:295) "GET /v2/f740e94ed19f410cba6f2ec6800075f6/images/6b3a5452-e0ef-4eea-9cce-1e1ccf7cf5da HTTP/1.1" 200 724
- 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'}
- 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": {}}}
- 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"
- INFO (connectionpool:203) Starting new HTTP connection (1): controller
- DEBUG (connectionpool:295) "GET /v2/f740e94ed19f410cba6f2ec6800075f6/flavors/m1.tiny HTTP/1.1" 404 78
- 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'}
- RESP BODY: {"itemNotFound": {"message": "The resource could not be found.", "code": 404}}
- 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"
- INFO (connectionpool:203) Starting new HTTP connection (1): controller
- DEBUG (connectionpool:295) "GET /v2/f740e94ed19f410cba6f2ec6800075f6/flavors HTTP/1.1" 200 1209
- 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'}
- 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"}]}
- REQ: curl -i 'http://controller:8774/v2/f740e94ed19f410cba6f2ec6800075f6/flavors
- INFO (connectionpool:203) Starting new HTTP connection (1): controller
- DEBUG (connectionpool:295) "GET /v2/f740e94ed19f410cba6f2ec6800075f6/flavors HTT
- RESP: [200] {'date': 'Wed, 25 Mar 2015 00:21:16 GMT', 'content-length': '1209',
- 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"}]}
- REQ: curl -i 'http://controller:8774/v2/f740e94ed19f410cba6f2ec6800075f6/flavors
- INFO (connectionpool:203) Starting new HTTP connection (1): controller
- DEBUG (connectionpool:295) "GET /v2/f740e94ed19f410cba6f2ec6800075f6/flavors/1 H
- RESP: [200] {'date': 'Wed, 25 Mar 2015 00:21:16 GMT', 'content-length': '418', '
- RESP BODY: {"flavor": {"name": "m1.tiny", "links": [{"href": "http://controller: okmark"}], "ram": 512, "OS-FLV-DISABLED:disabled": false, "vcpus": 1, "swap": ""
- REQ: curl -i 'http://controller:8774/v2/f740e94ed19f410cba6f2ec6800075f6/servers : 7d4f5604e07745648367508171b5d7e5" -d '{"server": {"name": "demo-instance112", -2d05-43dd-8ac0-2c56cff676c7"}], "security_groups": [{"name": "default"}]}}'
- INFO (connectionpool:203) Starting new HTTP connection (1): controller
- DEBUG (connectionpool:295) "POST /v2/f740e94ed19f410cba6f2ec6800075f6/servers HT
- RESP: [500] {'date': 'Wed, 25 Mar 2015 00:22:16 GMT', 'content-length': '128', '
- RESP BODY: {"computeFault": {"message": "The server has either erred or is incap
- DEBUG (shell:783) The server has either erred or is incapable of performing the
- Traceback (most recent call last):
- File "/usr/lib/python2.7/site-packages/novaclient/shell.py", line 780, in main
- OpenStackComputeShell().main(map(strutils.safe_decode, sys.argv[1:]))
- File "/usr/lib/python2.7/site-packages/novaclient/shell.py", line 716, in main
- args.func(self.cs, args)
- File "/usr/lib/python2.7/site-packages/novaclient/v1_1/shell.py", line 433, in
- server = cs.servers.create(*boot_args, **boot_kwargs)
- File "/usr/lib/python2.7/site-packages/novaclient/v1_1/servers.py", line 871,
- **boot_kwargs)
- File "/usr/lib/python2.7/site-packages/novaclient/v1_1/servers.py", line 534,
- return_raw=return_raw, **kwargs)
- File "/usr/lib/python2.7/site-packages/novaclient/base.py", line 152, in _crea
- _resp, body = self.api.client.post(url, body=body)
- File "/usr/lib/python2.7/site-packages/novaclient/client.py", line 312, in pos
- return self._cs_request(url, 'POST', **kwargs)
- File "/usr/lib/python2.7/site-packages/novaclient/client.py", line 286, in _cs
- **kwargs)
- File "/usr/lib/python2.7/site-packages/novaclient/client.py", line 268, in _ti
- resp, body = self.request(url, method, **kwargs)
- File "/usr/lib/python2.7/site-packages/novaclient/client.py", line 262, in req
- raise exceptions.from_response(resp, body, url, method)
- ClientException: The server has either erred or is incapable of performing the r
- ERROR: The server has either erred or is incapable of performing the requested o
Advertisement
Add Comment
Please, Sign In to add comment