Skip to content

Instantly share code, notes, and snippets.

@jon-proulx
Created June 29, 2017 14:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jon-proulx/141b6bd9d9811a124069c2bc42ae7642 to your computer and use it in GitHub Desktop.
Save jon-proulx/141b6bd9d9811a124069c2bc42ae7642 to your computer and use it in GitHub Desktop.
output of: openstack --debug server show <deposed_resource_uuid> 2>&1
START with options: ['--os-cloud=tig-prod', '--debug', 'server', 'show', '36283ccb-069a-4938-872b-9eb4c543b1ae']
options: Namespace(access_token_endpoint='', auth_type='', auth_url='https://nimbus.example.com:5001/v2.0', cacert='', client_id='', client_secret='***', cloud='tig-prod', debug=True, default_domain='default', deferred_help=False, domain_id='', domain_name='', endpoint='', identity_provider='', identity_provider_url='', insecure=None, interface='', log_file=None, os_compute_api_version='', os_identity_api_version='', os_image_api_version='', os_network_api_version='', os_object_api_version='', os_project_id=None, os_project_name=None, os_volume_api_version='', password='***', project_domain_id='', project_domain_name='', project_id='', project_name='tig-production', protocol='', region_name='', scope='', service_provider_endpoint='', timing=False, token='***', trust_id='', url='', user_domain_id='', user_domain_name='', user_id='', username='jon@example.com', verbose_level=3, verify=None)
defaults: {u'auth_type': 'password', u'compute_api_version': u'2', 'key': None, u'database_api_version': u'1.0', 'api_timeout': None, u'baremetal_api_version': u'1', u'image_api_version': u'2', 'cacert': None, u'image_api_use_tasks': False, u'floating_ip_source': u'neutron', u'orchestration_api_version': u'1', u'interface': None, u'network_api_version': u'2', u'image_format': u'qcow2', u'key_manager_api_version': u'v1', u'metering_api_version': u'2', 'verify': True, u'identity_api_version': u'2.0', u'volume_api_version': u'2', 'cert': None, u'secgroup_source': u'neutron', u'container_api_version': u'1', u'dns_api_version': u'2', u'object_store_api_version': u'1', u'disable_vendor_agent': {}}
cloud cfg: {'auth_type': 'password', u'compute_api_version': u'2', 'key': None, u'database_api_version': u'1.0', 'timing': False, u'network_api_version': u'2', u'image_format': u'qcow2', 'cloud': 'tig-prod', u'image_api_version': u'2', 'verify': True, u'dns_api_version': u'2', u'object_store_api_version': u'1', 'verbose_level': 3, 'region_name': 'CSAIL_Stata', 'api_timeout': None, u'baremetal_api_version': u'1', 'auth': {'username': 'jon@example.com', 'project_name': 'tig-production', 'user_domain_name': 'Default', 'auth_url': 'https://keystone.example.com:35358/', 'password': '***', 'project_domain_name': 'Default'}, 'default_domain': 'default', u'container_api_version': u'1', u'image_api_use_tasks': False, u'floating_ip_source': u'neutron', u'orchestration_api_version': u'1', u'interface': None, 'cacert': None, u'key_manager_api_version': u'v1', u'metering_api_version': u'2', 'deferred_help': False, u'identity_api_version': u'2.0', u'volume_api_version': u'2', 'cert': None, u'secgroup_source': u'neutron', 'debug': True, u'disable_vendor_agent': {}}
compute API version 2, cmd group openstack.compute.v2
network API version 2, cmd group openstack.network.v2
image API version 2, cmd group openstack.image.v2
volume API version 2, cmd group openstack.volume.v2
identity API version 2.0, cmd group openstack.identity.v2
object_store API version 1, cmd group openstack.object_store.v1
command: server show -> openstackclient.compute.v2.server.ShowServer
Auth plugin password selected
auth_type: password
Using auth plugin: password
Using parameters {'username': 'jon@example.com', 'project_name': 'tig-production', 'auth_url': 'https://keystone.example.com:35358/', 'user_domain_name': 'Default', 'password': '***', 'project_domain_name': 'Default'}
Get auth_ref
REQ: curl -g -i -X GET https://keystone.example.com:35358/ -H "Accept: application/json" -H "User-Agent: python-openstackclient keystoneauth1/2.4.1 python-requests/2.9.1 CPython/2.7.12"
Starting new HTTPS connection (1): keystone.example.com
"GET / HTTP/1.1" 300 617
RESP: [300] Content-Length: 617 Vary: X-Auth-Token Keep-Alive: timeout=5 Server: Apache/2.4.7 (Ubuntu) Connection: Keep-Alive Date: Thu, 29 Jun 2017 14:03:13 GMT Content-Type: application/json X-Distribution: Ubuntu
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": "https://keystone.example.com:35358/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": "https://keystone.example.com:35358/v2.0/", "rel": "self"}, {"href": "http://docs.openstack.org/", "type": "text/html", "rel": "describedby"}]}]}}
Making authentication request to https://keystone.example.com:35358/v3/auth/tokens
"POST /v3/auth/tokens HTTP/1.1" 201 11420
run(Namespace(columns=[], diagnostics=False, formatter='table', max_width=0, noindent=False, prefix='', server='36283ccb-069a-4938-872b-9eb4c543b1ae', variables=[]))
Instantiating compute client for VAPI Version Major: 2, Minor: 0
Making authentication request to https://keystone.example.com:35358/v3/auth/tokens
"POST /v3/auth/tokens HTTP/1.1" 201 11420
REQ: curl -g -i -X GET http://nimbus.example.com:8774/v2.1/47c0857cf5b5452a86f640fd44be1d40/servers/36283ccb-069a-4938-872b-9eb4c543b1ae -H "User-Agent: python-novaclient" -H "Accept: application/json" -H "X-Auth-Token: {SHA1}3cdaa424c27e029c0b99a6586afc6e00c90ce81d"
Starting new HTTP connection (1): nimbus.example.com
"GET /v2.1/47c0857cf5b5452a86f640fd44be1d40/servers/36283ccb-069a-4938-872b-9eb4c543b1ae HTTP/1.1" 404 111
RESP: [404] Content-Length: 111 X-Compute-Request-Id: req-eed68778-ccc4-4cbc-b9a4-6689cd46672b Vary: X-OpenStack-Nova-API-Version Connection: keep-alive X-Openstack-Nova-Api-Version: 2.1 Date: Thu, 29 Jun 2017 14:03:15 GMT Content-Type: application/json; charset=UTF-8
RESP BODY: {"itemNotFound": {"message": "Instance 36283ccb-069a-4938-872b-9eb4c543b1ae could not be found.", "code": 404}}
REQ: curl -g -i -X GET http://nimbus.example.com:8774/v2.1/47c0857cf5b5452a86f640fd44be1d40/servers?name=36283ccb-069a-4938-872b-9eb4c543b1ae -H "User-Agent: python-novaclient" -H "Accept: application/json" -H "X-Auth-Token: {SHA1}3cdaa424c27e029c0b99a6586afc6e00c90ce81d"
"GET /v2.1/47c0857cf5b5452a86f640fd44be1d40/servers?name=36283ccb-069a-4938-872b-9eb4c543b1ae HTTP/1.1" 200 15
RESP: [200] Content-Length: 15 X-Compute-Request-Id: req-e2e3ba68-61c4-4971-8c4c-4fe7812e5d5f Vary: X-OpenStack-Nova-API-Version Connection: keep-alive X-Openstack-Nova-Api-Version: 2.1 Date: Thu, 29 Jun 2017 14:03:15 GMT Content-Type: application/json
RESP BODY: {"servers": []}
No server with a name or ID of '36283ccb-069a-4938-872b-9eb4c543b1ae' exists.
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/cliff/app.py", line 374, in run_subcommand
result = cmd.run(parsed_args)
File "/usr/lib/python2.7/dist-packages/openstackclient/common/command.py", line 38, in run
return super(Command, self).run(parsed_args)
File "/usr/lib/python2.7/dist-packages/cliff/display.py", line 92, in run
column_names, data = self.take_action(parsed_args)
File "/usr/lib/python2.7/dist-packages/openstackclient/compute/v2/server.py", line 1398, in take_action
parsed_args.server)
File "/usr/lib/python2.7/dist-packages/openstackclient/common/utils.py", line 95, in find_resource
raise exceptions.CommandError(msg)
CommandError: No server with a name or ID of '36283ccb-069a-4938-872b-9eb4c543b1ae' exists.
clean_up ShowServer: No server with a name or ID of '36283ccb-069a-4938-872b-9eb4c543b1ae' exists.
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/openstackclient/shell.py", line 118, in run
ret_val = super(OpenStackShell, self).run(argv)
File "/usr/lib/python2.7/dist-packages/cliff/app.py", line 255, in run
result = self.run_subcommand(remainder)
File "/usr/lib/python2.7/dist-packages/openstackclient/shell.py", line 153, in run_subcommand
ret_value = super(OpenStackShell, self).run_subcommand(argv)
File "/usr/lib/python2.7/dist-packages/cliff/app.py", line 374, in run_subcommand
result = cmd.run(parsed_args)
File "/usr/lib/python2.7/dist-packages/openstackclient/common/command.py", line 38, in run
return super(Command, self).run(parsed_args)
File "/usr/lib/python2.7/dist-packages/cliff/display.py", line 92, in run
column_names, data = self.take_action(parsed_args)
File "/usr/lib/python2.7/dist-packages/openstackclient/compute/v2/server.py", line 1398, in take_action
parsed_args.server)
File "/usr/lib/python2.7/dist-packages/openstackclient/common/utils.py", line 95, in find_resource
raise exceptions.CommandError(msg)
CommandError: No server with a name or ID of '36283ccb-069a-4938-872b-9eb4c543b1ae' exists.
END return value: 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment