root@controller:~# nova --debug p_w_picpath-list
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": "password"}}}'
INFO (connectionpool:191) Starting new HTTP connection (1): controllerDEBUG (connectionpool:283) "POST /v2.0/tokens HTTP/1.1" 200 1406RESP: [200] {'date': 'Mon, 30 Dec 2013 08:01:20 GMT', 'content-type': 'application/json', 'content-length': '1406', 'vary': 'X-Auth-Token'}RESP BODY: {"access": {"token": {"issued_at": "2013-12-30T08:01:20.941558", "expires": "2013-12-31T08:01:20Z", "id": "a6c87a5916294216a32893fadd5b2a53", "tenant": {"description": "Admin Tenant", "enabled": true, "id": "b062f1e52d264aecac9e453fd6299f39", "name": "admin"}}, "serviceCatalog": [{"endpoints": [{"adminURL": "http://controller:9292", "region": "regionOne", "internalURL": "http://controller:9292", "id": "8c4f4bc8884540d28400d780d74564e9", "publicURL": "http://controller:9292"}], "endpoints_links": [], "type": "p_w_picpath", "name": "glance"}, {"endpoints": [{"adminURL": "http://controller:8774/v2/b062f1e52d264aecac9e453fd6299f39", "region": "regionOne", "internalURL": "http://controller:8774/v2/b062f1e52d264aecac9e453fd6299f39", "id": "24fb6798cbfb45a99a74283bb5d4ed26", "publicURL": "http://controller:8774/v2/b062f1e52d264aecac9e453fd6299f39"}], "endpoints_links": [], "type": "compute", "name": "nova"}, {"endpoints": [{"adminURL": "http://controller:35357/v2.0", "region": "regionOne", "internalURL": "http://controller:5000/v2.0", "id": "16556978977a42579d170948fa126c70", "publicURL": "http://controller:5000/v2.0"}], "endpoints_links": [], "type": "identity", "name": "keystone"}], "user": {"username": "admin", "roles_links": [], "id": "fdf0ebbb214e4dec90ffebb12824cd84", "roles": [{"name": "admin"}], "name": "admin"}, "metadata": {"is_admin": 0, "roles": ["a5cce06fed5346d680b87ba382bc069c"]}}}REQ: curl -i http://controller:8774/v2/b062f1e52d264aecac9e453fd6299f39/p_w_picpaths/detail -X GET -H "X-Auth-Project-Id: admin" -H "User-Agent: python-novaclient" -H "Accept: application/json" -H "X-Auth-Token: a6c87a5916294216a32893fadd5b2a53"INFO (connectionpool:191) Starting new HTTP connection (1): controllerDEBUG (shell:768) [Errno 111] Connection refusedTraceback (most recent call last): File "/usr/lib/python2.7/dist-packages/novaclient/shell.py", line 765, in main OpenStackComputeShell().main(map(strutils.safe_decode, sys.argv[1:])) File "/usr/lib/python2.7/dist-packages/novaclient/shell.py", line 701, in main args.func(self.cs, args) File "/usr/lib/python2.7/dist-packages/novaclient/v1_1/shell.py", line 727, in do_p_w_picpath_list p_w_picpath_list = cs.p_w_picpaths.list(limit=limit) File "/usr/lib/python2.7/dist-packages/novaclient/v1_1/p_w_picpaths.py", line 55, in list return self._list('/p_w_picpaths%s%s' % (detail, query), 'p_w_picpaths') File "/usr/lib/python2.7/dist-packages/novaclient/base.py", line 62, in _list _resp, body = self.api.client.get(url) File "/usr/lib/python2.7/dist-packages/novaclient/client.py", line 228, in get return self._cs_request(url, 'GET', **kwargs) File "/usr/lib/python2.7/dist-packages/novaclient/client.py", line 215, in _cs_request **kwargs) File "/usr/lib/python2.7/dist-packages/novaclient/client.py", line 197, in _time_request resp, body = self.request(url, method, **kwargs) File "/usr/lib/python2.7/dist-packages/novaclient/client.py", line 168, in request **kwargs) File "/usr/lib/python2.7/dist-packages/requests/api.py", line 44, in request return session.request(method=method, url=url, **kwargs) File "/usr/lib/python2.7/dist-packages/requests/sessions.py", line 279, in request resp = self.send(prep, stream=stream, timeout=timeout, verify=verify, cert=cert, proxies=proxies) File "/usr/lib/python2.7/dist-packages/requests/sessions.py", line 374, in send r = adapter.send(request, **kwargs) File "/usr/lib/python2.7/dist-packages/requests/adapters.py", line 206, in send raise ConnectionError(sockerr)ConnectionError: [Errno 111] Connection refusedERROR: [Errno 111] Connection refusedroot@controller:~# vim /root/export.shroot@controller:~# vim /root/export.shroot@controller:~# source /root/export.shroot@controller:~# nova --debug p_w_picpath-listREQ: 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": "password"}}}'INFO (connectionpool:191) Starting new HTTP connection (1): controllerDEBUG (connectionpool:283) "POST /v2.0/tokens HTTP/1.1" 200 1406RESP: [200] {'date': 'Mon, 30 Dec 2013 09:17:32 GMT', 'content-type': 'application/json', 'content-length': '1406', 'vary': 'X-Auth-Token'}RESP BODY: {"access": {"token": {"issued_at": "2013-12-30T09:17:32.275739", "expires": "2013-12-31T09:17:32Z", "id": "0708620864d1424195f144a0b20c82a2", "tenant": {"description": "Admin Tenant", "enabled": true, "id": "b062f1e52d264aecac9e453fd6299f39", "name": "admin"}}, "serviceCatalog": [{"endpoints": [{"adminURL": "http://controller:9292", "region": "regionOne", "internalURL": "http://controller:9292", "id": "8c4f4bc8884540d28400d780d74564e9", "publicURL": "http://controller:9292"}], "endpoints_links": [], "type": "p_w_picpath", "name": "glance"}, {"endpoints": [{"adminURL": "http://controller:8774/v2/b062f1e52d264aecac9e453fd6299f39", "region": "regionOne", "internalURL": "http://controller:8774/v2/b062f1e52d264aecac9e453fd6299f39", "id": "24fb6798cbfb45a99a74283bb5d4ed26", "publicURL": "http://controller:8774/v2/b062f1e52d264aecac9e453fd6299f39"}], "endpoints_links": [], "type": "compute", "name": "nova"}, {"endpoints": [{"adminURL": "http://controller:35357/v2.0", "region": "regionOne", "internalURL": "http://controller:5000/v2.0", "id": "16556978977a42579d170948fa126c70", "publicURL": "http://controller:5000/v2.0"}], "endpoints_links": [], "type": "identity", "name": "keystone"}], "user": {"username": "admin", "roles_links": [], "id": "fdf0ebbb214e4dec90ffebb12824cd84", "roles": [{"name": "admin"}], "name": "admin"}, "metadata": {"is_admin": 0, "roles": ["a5cce06fed5346d680b87ba382bc069c"]}}}REQ: curl -i http://controller:8774/v2/b062f1e52d264aecac9e453fd6299f39/p_w_picpaths/detail -X GET -H "X-Auth-Project-Id: admin" -H "User-Agent: python-novaclient" -H "Accept: application/json" -H "X-Auth-Token: 0708620864d1424195f144a0b20c82a2"INFO (connectionpool:191) Starting new HTTP connection (1): controllerDEBUG (shell:768) [Errno 111] Connection refusedTraceback (most recent call last): File "/usr/lib/python2.7/dist-packages/novaclient/shell.py", line 765, in main OpenStackComputeShell().main(map(strutils.safe_decode, sys.argv[1:])) File "/usr/lib/python2.7/dist-packages/novaclient/shell.py", line 701, in main args.func(self.cs, args) File "/usr/lib/python2.7/dist-packages/novaclient/v1_1/shell.py", line 727, in do_p_w_picpath_list p_w_picpath_list = cs.p_w_picpaths.list(limit=limit) File "/usr/lib/python2.7/dist-packages/novaclient/v1_1/p_w_picpaths.py", line 55, in list return self._list('/p_w_picpaths%s%s' % (detail, query), 'p_w_picpaths') File "/usr/lib/python2.7/dist-packages/novaclient/base.py", line 62, in _list _resp, body = self.api.client.get(url) File "/usr/lib/python2.7/dist-packages/novaclient/client.py", line 228, in get return self._cs_request(url, 'GET', **kwargs) File "/usr/lib/python2.7/dist-packages/novaclient/client.py", line 215, in _cs_request **kwargs) File "/usr/lib/python2.7/dist-packages/novaclient/client.py", line 197, in _time_request resp, body = self.request(url, method, **kwargs) File "/usr/lib/python2.7/dist-packages/novaclient/client.py", line 168, in request **kwargs) File "/usr/lib/python2.7/dist-packages/requests/api.py", line 44, in request return session.request(method=method, url=url, **kwargs) File "/usr/lib/python2.7/dist-packages/requests/sessions.py", line 279, in request resp = self.send(prep, stream=stream, timeout=timeout, verify=verify, cert=cert, proxies=proxies) File "/usr/lib/python2.7/dist-packages/requests/sessions.py", line 374, in send r = adapter.send(request, **kwargs) File "/usr/lib/python2.7/dist-packages/requests/adapters.py", line 206, in send raise ConnectionError(sockerr)ConnectionError: [Errno 111] Connection refusedERROR: [Errno 111] Connection refused