Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Obscure openstack client error when an endpoint is setup incorrectly
(ansible-runtime) root@clienterror1:/opt/openstack-ansible/playbooks# openstack --os-cloud default endpoint list --service placement
+----------------------------------+-----------+--------------+--------------+---------+-----------+------------------------------+
| ID | Region | Service Name | Service Type | Enabled | Interface | URL |
+----------------------------------+-----------+--------------+--------------+---------+-----------+------------------------------+
| 0c56bcd813f4468aa17780a7e7e5e280 | RegionOne | placement | placement | True | admin | http://172.29.236.100:8780 |
| 23f18ab141cd4f319725598309735b63 | RegionOne | placement | placement | True | public | https://104.239.231.253:8780 |
| b9fe7ee5e11a443d97abd9390fb28917 | RegionOne | placement | placement | True | internal | http://172.29.236.100:8780 |
+----------------------------------+-----------+--------------+--------------+---------+-----------+------------------------------+
(ansible-runtime) root@clienterror1:/opt/openstack-ansible/playbooks# openstack --os-cloud default endpoint create --region RegionOne --enable compute internal http://172.29.236.100:8780
+--------------+----------------------------------+
| Field | Value |
+--------------+----------------------------------+
| enabled | True |
| id | f49224e11da6480c8859fdc26c0eb6c1 |
| interface | internal |
| region | RegionOne |
| region_id | RegionOne |
| service_id | a7587adb1eb64a9186d333017424130e |
| service_name | nova |
| service_type | compute |
| url | http://172.29.236.100:8780 |
+--------------+----------------------------------+
(ansible-runtime) root@clienterror1:/opt/openstack-ansible/playbooks# openstack --os-cloud default endpoint create --region RegionOne --enable compute admin http://172.29.236.100:8780
+--------------+----------------------------------+
| Field | Value |
+--------------+----------------------------------+
| enabled | True |
| id | 97cd361eb4b247248fae771eb6636cb8 |
| interface | admin |
| region | RegionOne |
| region_id | RegionOne |
| service_id | a7587adb1eb64a9186d333017424130e |
| service_name | nova |
| service_type | compute |
| url | http://172.29.236.100:8780 |
+--------------+----------------------------------+
(ansible-runtime) root@clienterror1:/opt/openstack-ansible/playbooks# openstack --os-cloud default endpoint create --region RegionOne --enable compute public https://172.29.236.100:8780
+--------------+----------------------------------+
| Field | Value |
+--------------+----------------------------------+
| enabled | True |
| id | ee4a82589b9642e88e3bc381943e88c7 |
| interface | public |
| region | RegionOne |
| region_id | RegionOne |
| service_id | a7587adb1eb64a9186d333017424130e |
| service_name | nova |
| service_type | compute |
| url | https://172.29.236.100:8780 |
+--------------+----------------------------------+
(ansible-runtime) root@clienterror1:/opt/openstack-ansible/playbooks# openstack --os-cloud default compute service list --service nova-compute --format value --column Host --debug
START with options: [u'--os-cloud', u'default', u'compute', u'service', u'list', u'--service', u'nova-compute', u'--format', u'value', u'--column', u'Host', u'--debug']
options: Namespace(access_key='', access_secret='***', access_token='***', access_token_endpoint='', access_token_type='', application_credential_id='', application_credential_name='', application_credential_secret='***', auth_type='', auth_url='', cacert=None, cert='', client_id='', client_secret='***', cloud=u'default', code='', consumer_key='', consumer_secret='***', debug=True, default_domain='default', default_domain_id='', default_domain_name='', deferred_help=False, discovery_endpoint='', domain_id='', domain_name='', endpoint='', glare_url='', identity_provider='', identity_provider_url='', insecure=None, interface='', key='', log_file=None, murano_packages_service='murano', murano_url='', openid_scope='', os_application_catalog_api_version='1', os_baremetal_api_version='1.42', os_beta_command=False, os_clustering_api_version='1', os_compute_api_version='', os_container_infra_api_version='1', os_data_processing_api_version='1.1', os_data_processing_url='', os_database_api_version='1', os_dns_api_version='2', os_identity_api_version='', os_image_api_version='', os_infra_optim_api_version='1', os_key_manager_api_version='1', os_metrics_api_version='1', os_network_api_version='', os_object_api_version='', os_orchestration_api_version='1', os_project_id=None, os_project_name=None, os_queues_api_version='2', os_volume_api_version='', os_workflow_api_version='2', passcode='', password='***', project_domain_id='', project_domain_name='', project_id='', project_name='', protocol='', redirect_uri='', region_name='', remote_project_domain_id='', remote_project_domain_name='', remote_project_id='', remote_project_name='', roles='', service_provider='', service_provider_endpoint='', service_provider_entity_id='', system_scope='', timing=False, token='***', trust_id='', url='', user='', user_domain_id='', user_domain_name='', user_id='', username='', verbose_level=3, verify=None)
Auth plugin password selected
auth_config_hook(): {'auth_type': 'password', 'beta_command': False, u'compute_api_version': u'2', 'key': None, u'database_api_version': '1', 'metrics_api_version': '1', 'data_processing_api_version': '1.1', u'network_api_version': u'2', u'message': u'', u'image_format': u'qcow2', 'networks': [], 'cloud': u'default', u'image_api_version': u'2', 'clustering_api_version': '1', 'verify': True, 'timing': False, u'dns_api_version': '2', u'object_store_api_version': u'1', u'status': u'active', u'container_infra_api_version': '1', 'verbose_level': 3, 'region_name': 'RegionOne', 'api_timeout': None, u'baremetal_api_version': '1.42', 'queues_api_version': '2', 'auth': {'username': 'admin', 'project_name': 'admin', 'user_domain_name': 'Default', 'auth_url': 'http://172.29.236.100:5000/v3', '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': '1', u'interface': 'internal', u'application_catalog_api_version': '1', 'murano_packages_service': 'murano', 'cacert': None, u'key_manager_api_version': '1', u'metering_api_version': u'2', 'deferred_help': False, u'identity_api_version': '3', u'workflow_api_version': '2', u'volume_api_version': u'2', 'infra_optim_api_version': '1', 'cert': None, u'secgroup_source': u'neutron', 'debug': True, u'block_storage_api_version': u'2', u'disable_vendor_agent': {}}
defaults: {u'auth_type': 'password', u'status': u'active', 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', u'container_infra_api_version': u'1', u'metering_api_version': u'2', u'image_api_use_tasks': False, u'floating_ip_source': u'neutron', u'orchestration_api_version': u'1', 'cacert': None, u'network_api_version': u'2', u'message': u'', u'image_format': u'qcow2', u'application_catalog_api_version': u'1', u'key_manager_api_version': u'v1', u'workflow_api_version': u'2', 'verify': True, u'identity_api_version': u'2.0', u'volume_api_version': u'2', u'interface': None, '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'block_storage_api_version': u'2', u'disable_vendor_agent': {}}
cloud cfg: {'auth_type': 'password', 'beta_command': False, u'compute_api_version': u'2', u'orchestration_api_version': '1', u'database_api_version': '1', 'metrics_api_version': '1', 'data_processing_api_version': '1.1', u'network_api_version': u'2', u'message': u'', u'image_format': u'qcow2', 'networks': [], 'cloud': u'default', u'image_api_version': u'2', 'clustering_api_version': '1', 'verify': True, u'dns_api_version': '2', u'object_store_api_version': u'1', u'status': u'active', u'container_infra_api_version': '1', 'verbose_level': 3, 'region_name': 'RegionOne', 'api_timeout': None, u'baremetal_api_version': '1.42', 'queues_api_version': '2', 'auth': {'username': 'admin', 'project_name': 'admin', 'user_domain_name': 'Default', 'auth_url': 'http://172.29.236.100:5000/v3', 'password': '***', 'project_domain_name': 'Default'}, 'default_domain': 'default', 'debug': True, u'image_api_use_tasks': False, u'floating_ip_source': u'neutron', 'key': None, 'timing': False, u'application_catalog_api_version': '1', 'murano_packages_service': 'murano', 'cacert': None, u'key_manager_api_version': '1', u'metering_api_version': u'2', 'deferred_help': False, u'block_storage_api_version': u'2', u'identity_api_version': '3', u'workflow_api_version': '2', u'volume_api_version': u'2', 'infra_optim_api_version': '1', 'cert': None, u'secgroup_source': u'neutron', u'container_api_version': u'1', u'interface': 'internal', 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 3, cmd group openstack.identity.v3
object_store API version 1, cmd group openstack.object_store.v1
messaging API version 2, cmd group openstack.messaging.v2
infra-optim API version 1, cmd group openstack.infra_optim.v1
database API version 1, cmd group openstack.database.v1
clustering API version 1, cmd group openstack.clustering.v1
data_processing API version 1.1, cmd group openstack.data_processing.v1
neutronclient API version 2, cmd group openstack.neutronclient.v2
application_catalog API version 1, cmd group openstack.application_catalog.v1
workflow_engine API version 2, cmd group openstack.workflow_engine.v2
container_infra API version 1, cmd group openstack.container_infra.v1
baremetal API version 1.42, cmd group openstack.baremetal.v1
orchestration API version 1, cmd group openstack.orchestration.v1
dns API version 2, cmd group openstack.dns.v2
key_manager API version 1, cmd group openstack.key_manager.v1
metric API version 1, cmd group openstack.metric.v1
Auth plugin password selected
auth_config_hook(): {'auth_type': 'password', 'beta_command': False, u'compute_api_version': u'2', 'key': None, u'database_api_version': '1', 'metrics_api_version': '1', 'data_processing_api_version': '1.1', u'network_api_version': u'2', u'message': u'', u'image_format': u'qcow2', 'networks': [], 'cloud': u'default', u'image_api_version': u'2', 'clustering_api_version': '1', 'verify': True, 'timing': False, u'dns_api_version': '2', u'object_store_api_version': u'1', u'status': u'active', u'container_infra_api_version': '1', 'verbose_level': 3, 'region_name': 'RegionOne', 'api_timeout': None, u'baremetal_api_version': '1.42', 'queues_api_version': '2', 'auth': {'username': 'admin', 'project_name': 'admin', 'user_domain_name': 'Default', 'auth_url': 'http://172.29.236.100:5000/v3', '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': '1', u'interface': 'internal', u'application_catalog_api_version': '1', 'murano_packages_service': 'murano', 'cacert': None, u'key_manager_api_version': '1', u'metering_api_version': u'2', 'deferred_help': False, u'identity_api_version': '3', u'workflow_api_version': '2', u'volume_api_version': u'2', 'infra_optim_api_version': '1', 'cert': None, u'secgroup_source': u'neutron', 'debug': True, u'block_storage_api_version': u'2', u'disable_vendor_agent': {}}
Auth plugin password selected
auth_config_hook(): {'auth_type': 'password', 'beta_command': False, u'compute_api_version': u'2', 'key': None, u'database_api_version': '1', 'metrics_api_version': '1', 'data_processing_api_version': '1.1', u'network_api_version': u'2', u'message': u'', u'image_format': u'qcow2', 'networks': [], 'cloud': u'default', u'image_api_version': u'2', 'clustering_api_version': '1', 'verify': True, 'timing': False, u'dns_api_version': '2', u'object_store_api_version': u'1', u'status': u'active', u'container_infra_api_version': '1', 'verbose_level': 3, 'region_name': 'RegionOne', 'api_timeout': None, u'baremetal_api_version': '1.42', 'queues_api_version': '2', 'auth': {'username': 'admin', 'project_name': 'admin', 'user_domain_name': 'Default', 'auth_url': 'http://172.29.236.100:5000/v3', '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': '1', u'interface': 'internal', u'application_catalog_api_version': '1', 'murano_packages_service': 'murano', 'cacert': None, u'key_manager_api_version': '1', u'metering_api_version': u'2', 'deferred_help': False, u'identity_api_version': '3', u'workflow_api_version': '2', u'volume_api_version': u'2', 'infra_optim_api_version': '1', 'cert': None, u'secgroup_source': u'neutron', 'debug': True, u'block_storage_api_version': u'2', u'disable_vendor_agent': {}}
command: compute service list -> openstackclient.compute.v2.service.ListService (auth=True)
Auth plugin password selected
auth_config_hook(): {'auth_type': 'password', 'beta_command': False, u'compute_api_version': u'2', 'key': None, u'database_api_version': '1', 'metrics_api_version': '1', 'data_processing_api_version': '1.1', u'network_api_version': u'2', u'message': u'', u'image_format': u'qcow2', 'networks': [], 'cloud': u'default', u'image_api_version': u'2', 'clustering_api_version': '1', 'verify': True, 'timing': False, u'dns_api_version': '2', u'object_store_api_version': u'1', u'status': u'active', u'container_infra_api_version': '1', 'verbose_level': 3, 'region_name': 'RegionOne', 'api_timeout': None, u'baremetal_api_version': '1.42', 'queues_api_version': '2', 'auth': {'username': 'admin', 'project_name': 'admin', 'user_domain_name': 'Default', 'auth_url': 'http://172.29.236.100:5000/v3', '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': '1', u'interface': 'internal', u'application_catalog_api_version': '1', 'murano_packages_service': 'murano', 'cacert': None, u'key_manager_api_version': '1', u'metering_api_version': u'2', 'deferred_help': False, u'identity_api_version': '3', u'workflow_api_version': '2', u'volume_api_version': u'2', 'infra_optim_api_version': '1', 'cert': None, u'secgroup_source': u'neutron', 'debug': True, u'block_storage_api_version': u'2', u'disable_vendor_agent': {}}
Using auth plugin: password
Using parameters {'username': 'admin', 'project_name': 'admin', 'user_domain_name': 'Default', 'auth_url': 'http://172.29.236.100:5000/v3', 'password': '***', 'project_domain_name': 'Default'}
Get auth_ref
REQ: curl -g -i -X GET http://172.29.236.100:5000/v3 -H "Accept: application/json" -H "User-Agent: osc-lib/1.10.0 keystoneauth1/3.9.0 python-requests/2.19.1 CPython/2.7.12"
Starting new HTTP connection (1): 172.29.236.100:5000
http://172.29.236.100:5000 "GET /v3 HTTP/1.1" 200 254
RESP: [200] Connection: keep-alive Content-Length: 254 Content-Security-Policy: default-src 'self' https: wss:; Content-Type: application/json Date: Thu, 26 Jul 2018 15:59:24 GMT Keep-Alive: timeout=15 Server: nginx/1.10.3 (Ubuntu) Vary: X-Auth-Token X-Content-Type-Options: nosniff X-Frame-Options: DENY X-XSS-Protection: 1; mode=block x-openstack-request-id: req-9409e946-a700-4a91-b2b3-695ace601e59
RESP BODY: {"version": {"status": "stable", "updated": "2018-02-28T00:00:00Z", "media-types": [{"base": "application/json", "type": "application/vnd.openstack.identity-v3+json"}], "id": "v3.10", "links": [{"href": "http://172.29.236.100:5000/v3/", "rel": "self"}]}}
GET call to http://172.29.236.100:5000/v3 used request id req-9409e946-a700-4a91-b2b3-695ace601e59
Making authentication request to http://172.29.236.100:5000/v3/auth/tokens
http://172.29.236.100:5000 "POST /v3/auth/tokens HTTP/1.1" 201 5058
{"token": {"is_domain": false, "methods": ["password"], "roles": [{"id": "68f7802061724cf39ebc7909da0470eb", "name": "reader"}, {"id": "d5c179c73886415e8642930fcd98fdf3", "name": "member"}, {"id": "f307c0a36efc4aedaedd7320c5d4184f", "name": "admin"}], "expires_at": "2018-07-27T03:59:25.000000Z", "project": {"domain": {"id": "default", "name": "Default"}, "id": "6adf60f3c07444a787a83788cfb61839", "name": "admin"}, "catalog": [{"endpoints": [{"url": "https://104.239.231.253:8776/v2/6adf60f3c07444a787a83788cfb61839", "interface": "public", "region": "RegionOne", "region_id": "RegionOne", "id": "42edf29864d8423d9d61e293894313c3"}, {"url": "http://172.29.236.100:8776/v2/6adf60f3c07444a787a83788cfb61839", "interface": "admin", "region": "RegionOne", "region_id": "RegionOne", "id": "5fbbca64aa75451fb34e8402d298c6a0"}, {"url": "http://172.29.236.100:8776/v2/6adf60f3c07444a787a83788cfb61839", "interface": "internal", "region": "RegionOne", "region_id": "RegionOne", "id": "f219ac2323e246b4acb0962ea3ecf450"}], "type": "volumev2", "id": "2a94f50c5b504b3f99d05a792270de4c", "name": "cinderv2"}, {"endpoints": [], "type": "tempest-type-1337754840", "id": "4d25b3de6c4e419f9523f193c7399e41", "name": "tempest-service-284851921"}, {"endpoints": [{"url": "http://172.29.236.100:5000", "interface": "admin", "region": "RegionOne", "region_id": "RegionOne", "id": "4a8072579f6b49d1914c3b6347398f76"}, {"url": "http://172.29.236.100:5000", "interface": "internal", "region": "RegionOne", "region_id": "RegionOne", "id": "6a01037b89bc4918b1c5a7eafb6cc6d8"}, {"url": "https://104.239.231.253:5000", "interface": "public", "region": "RegionOne", "region_id": "RegionOne", "id": "cf55faeb1988433a992d8e9e0c259d42"}], "type": "identity", "id": "5c370429a0784cb099b781c443b3272c", "name": "keystone"}, {"endpoints": [{"url": "http://172.29.236.100:8780", "interface": "admin", "region": "RegionOne", "region_id": "RegionOne", "id": "97cd361eb4b247248fae771eb6636cb8"}, {"url": "https://172.29.236.100:8780", "interface": "public", "region": "RegionOne", "region_id": "RegionOne", "id": "ee4a82589b9642e88e3bc381943e88c7"}, {"url": "http://172.29.236.100:8780", "interface": "internal", "region": "RegionOne", "region_id": "RegionOne", "id": "f49224e11da6480c8859fdc26c0eb6c1"}], "type": "compute", "id": "a7587adb1eb64a9186d333017424130e", "name": "nova"}, {"endpoints": [], "type": "tempest-type-551335000", "id": "b01bc861e57c41f2984538ac4a037940", "name": "tempest-service-454138743"}, {"endpoints": [{"url": "http://172.29.236.100:8780", "interface": "admin", "region": "RegionOne", "region_id": "RegionOne", "id": "0c56bcd813f4468aa17780a7e7e5e280"}, {"url": "https://104.239.231.253:8780", "interface": "public", "region": "RegionOne", "region_id": "RegionOne", "id": "23f18ab141cd4f319725598309735b63"}, {"url": "http://172.29.236.100:8780", "interface": "internal", "region": "RegionOne", "region_id": "RegionOne", "id": "b9fe7ee5e11a443d97abd9390fb28917"}], "type": "placement", "id": "b8ed09886faa44f68f1bac7bbcf82b42", "name": "placement"}, {"endpoints": [{"url": "http://172.29.236.100:9696", "interface": "admin", "region": "RegionOne", "region_id": "RegionOne", "id": "86c7189ac3d24ae0a235a910e211afe0"}, {"url": "https://104.239.231.253:9696", "interface": "public", "region": "RegionOne", "region_id": "RegionOne", "id": "e8377c6d5898403c92368a486de06ea2"}, {"url": "http://172.29.236.100:9696", "interface": "internal", "region": "RegionOne", "region_id": "RegionOne", "id": "ee69776bcf954327b9570f4d58b2fff6"}], "type": "network", "id": "c0f7b65fc645466d8555e2f5f857c094", "name": "neutron"}, {"endpoints": [{"url": "http://172.29.236.100:8776/v3/6adf60f3c07444a787a83788cfb61839", "interface": "admin", "region": "RegionOne", "region_id": "RegionOne", "id": "0e655dd9c3344a2ba427f4c08a3e3c59"}, {"url": "https://104.239.231.253:8776/v3/6adf60f3c07444a787a83788cfb61839", "interface": "public", "region": "RegionOne", "region_id": "RegionOne", "id": "53507b5c0ab346059422637cac5172e6"}, {"url": "http://172.29.236.100:8776/v3/6adf60f3c07444a787a83788cfb61839", "interface": "internal", "region": "RegionOne", "region_id": "RegionOne", "id": "dc8ccd7ce36b452cb88713f7f9d342c2"}], "type": "volumev3", "id": "cd8912b4a5674e66b8f822e53c18871a", "name": "cinderv3"}, {"endpoints": [{"url": "http://172.29.236.100:9292", "interface": "admin", "region": "RegionOne", "region_id": "RegionOne", "id": "52a3516ca8684b8a80004d2b765c82d9"}, {"url": "https://104.239.231.253:9292", "interface": "public", "region": "RegionOne", "region_id": "RegionOne", "id": "6311d2311ce346feb19cd39b0170ac79"}, {"url": "http://172.29.236.100:9292", "interface": "internal", "region": "RegionOne", "region_id": "RegionOne", "id": "a38a2a8818354e0791afba36511599bd"}], "type": "image", "id": "f857f4eefcda43379fb20c55c2701980", "name": "glance"}], "user": {"domain": {"id": "default", "name": "Default"}, "password_expires_at": null, "name": "admin", "id": "59f581e9274e433bbe27d9c80d631511"}, "audit_ids": ["2rhPqABUQkapve3q_NJbJA"], "issued_at": "2018-07-26T15:59:25.000000Z"}}
run(Namespace(columns=[u'Host'], fit_width=False, formatter=u'value', host=None, long=False, max_width=0, noindent=False, print_empty=False, quote_mode='nonnumeric', service=u'nova-compute', sort_columns=[]))
Instantiating compute client for API Version Major: 2, Minor: 0
Instantiating compute api: <class 'openstackclient.api.compute_v2.APIv2'>
Making authentication request to http://172.29.236.100:5000/v3/auth/tokens
http://172.29.236.100:5000 "POST /v3/auth/tokens HTTP/1.1" 201 5058
{"token": {"is_domain": false, "methods": ["password"], "roles": [{"id": "68f7802061724cf39ebc7909da0470eb", "name": "reader"}, {"id": "d5c179c73886415e8642930fcd98fdf3", "name": "member"}, {"id": "f307c0a36efc4aedaedd7320c5d4184f", "name": "admin"}], "expires_at": "2018-07-27T03:59:25.000000Z", "project": {"domain": {"id": "default", "name": "Default"}, "id": "6adf60f3c07444a787a83788cfb61839", "name": "admin"}, "catalog": [{"endpoints": [{"url": "https://104.239.231.253:8776/v2/6adf60f3c07444a787a83788cfb61839", "interface": "public", "region": "RegionOne", "region_id": "RegionOne", "id": "42edf29864d8423d9d61e293894313c3"}, {"url": "http://172.29.236.100:8776/v2/6adf60f3c07444a787a83788cfb61839", "interface": "admin", "region": "RegionOne", "region_id": "RegionOne", "id": "5fbbca64aa75451fb34e8402d298c6a0"}, {"url": "http://172.29.236.100:8776/v2/6adf60f3c07444a787a83788cfb61839", "interface": "internal", "region": "RegionOne", "region_id": "RegionOne", "id": "f219ac2323e246b4acb0962ea3ecf450"}], "type": "volumev2", "id": "2a94f50c5b504b3f99d05a792270de4c", "name": "cinderv2"}, {"endpoints": [], "type": "tempest-type-1337754840", "id": "4d25b3de6c4e419f9523f193c7399e41", "name": "tempest-service-284851921"}, {"endpoints": [{"url": "http://172.29.236.100:5000", "interface": "admin", "region": "RegionOne", "region_id": "RegionOne", "id": "4a8072579f6b49d1914c3b6347398f76"}, {"url": "http://172.29.236.100:5000", "interface": "internal", "region": "RegionOne", "region_id": "RegionOne", "id": "6a01037b89bc4918b1c5a7eafb6cc6d8"}, {"url": "https://104.239.231.253:5000", "interface": "public", "region": "RegionOne", "region_id": "RegionOne", "id": "cf55faeb1988433a992d8e9e0c259d42"}], "type": "identity", "id": "5c370429a0784cb099b781c443b3272c", "name": "keystone"}, {"endpoints": [{"url": "http://172.29.236.100:8780", "interface": "admin", "region": "RegionOne", "region_id": "RegionOne", "id": "97cd361eb4b247248fae771eb6636cb8"}, {"url": "https://172.29.236.100:8780", "interface": "public", "region": "RegionOne", "region_id": "RegionOne", "id": "ee4a82589b9642e88e3bc381943e88c7"}, {"url": "http://172.29.236.100:8780", "interface": "internal", "region": "RegionOne", "region_id": "RegionOne", "id": "f49224e11da6480c8859fdc26c0eb6c1"}], "type": "compute", "id": "a7587adb1eb64a9186d333017424130e", "name": "nova"}, {"endpoints": [], "type": "tempest-type-551335000", "id": "b01bc861e57c41f2984538ac4a037940", "name": "tempest-service-454138743"}, {"endpoints": [{"url": "http://172.29.236.100:8780", "interface": "admin", "region": "RegionOne", "region_id": "RegionOne", "id": "0c56bcd813f4468aa17780a7e7e5e280"}, {"url": "https://104.239.231.253:8780", "interface": "public", "region": "RegionOne", "region_id": "RegionOne", "id": "23f18ab141cd4f319725598309735b63"}, {"url": "http://172.29.236.100:8780", "interface": "internal", "region": "RegionOne", "region_id": "RegionOne", "id": "b9fe7ee5e11a443d97abd9390fb28917"}], "type": "placement", "id": "b8ed09886faa44f68f1bac7bbcf82b42", "name": "placement"}, {"endpoints": [{"url": "http://172.29.236.100:9696", "interface": "admin", "region": "RegionOne", "region_id": "RegionOne", "id": "86c7189ac3d24ae0a235a910e211afe0"}, {"url": "https://104.239.231.253:9696", "interface": "public", "region": "RegionOne", "region_id": "RegionOne", "id": "e8377c6d5898403c92368a486de06ea2"}, {"url": "http://172.29.236.100:9696", "interface": "internal", "region": "RegionOne", "region_id": "RegionOne", "id": "ee69776bcf954327b9570f4d58b2fff6"}], "type": "network", "id": "c0f7b65fc645466d8555e2f5f857c094", "name": "neutron"}, {"endpoints": [{"url": "http://172.29.236.100:8776/v3/6adf60f3c07444a787a83788cfb61839", "interface": "admin", "region": "RegionOne", "region_id": "RegionOne", "id": "0e655dd9c3344a2ba427f4c08a3e3c59"}, {"url": "https://104.239.231.253:8776/v3/6adf60f3c07444a787a83788cfb61839", "interface": "public", "region": "RegionOne", "region_id": "RegionOne", "id": "53507b5c0ab346059422637cac5172e6"}, {"url": "http://172.29.236.100:8776/v3/6adf60f3c07444a787a83788cfb61839", "interface": "internal", "region": "RegionOne", "region_id": "RegionOne", "id": "dc8ccd7ce36b452cb88713f7f9d342c2"}], "type": "volumev3", "id": "cd8912b4a5674e66b8f822e53c18871a", "name": "cinderv3"}, {"endpoints": [{"url": "http://172.29.236.100:9292", "interface": "admin", "region": "RegionOne", "region_id": "RegionOne", "id": "52a3516ca8684b8a80004d2b765c82d9"}, {"url": "https://104.239.231.253:9292", "interface": "public", "region": "RegionOne", "region_id": "RegionOne", "id": "6311d2311ce346feb19cd39b0170ac79"}, {"url": "http://172.29.236.100:9292", "interface": "internal", "region": "RegionOne", "region_id": "RegionOne", "id": "a38a2a8818354e0791afba36511599bd"}], "type": "image", "id": "f857f4eefcda43379fb20c55c2701980", "name": "glance"}], "user": {"domain": {"id": "default", "name": "Default"}, "password_expires_at": null, "name": "admin", "id": "59f581e9274e433bbe27d9c80d631511"}, "audit_ids": ["c8wCx5CBT3eiCNLlZY6g5Q"], "issued_at": "2018-07-26T15:59:25.000000Z"}}
REQ: curl -g -i -X GET http://172.29.236.100:8780/os-services?binary=nova-compute -H "Accept: application/json" -H "User-Agent: python-novaclient" -H "X-Auth-Token: {SHA1}c140d809a44876b73e8fd9b4e505845694b3599f"
Starting new HTTP connection (1): 172.29.236.100:8780
http://172.29.236.100:8780 "GET /os-services?binary=nova-compute HTTP/1.1" 404 162
RESP: [404] Connection: close Content-Length: 162 Content-Type: application/json openstack-api-version: placement 1.0 x-openstack-request-id: req-7d49e5c5-23a8-47a0-8267-131ec9c642df
RESP BODY: {"errors": [{"status": 404, "request_id": "req-7d49e5c5-23a8-47a0-8267-131ec9c642df", "detail": "The resource could not be found.\n\n ", "title": "Not Found"}]}
GET call to compute for http://172.29.236.100:8780/os-services?binary=nova-compute used request id req-7d49e5c5-23a8-47a0-8267-131ec9c642df
'list' object has no attribute 'get'
Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/cliff/app.py", line 399, in run_subcommand
result = cmd.run(parsed_args)
File "/usr/local/lib/python2.7/dist-packages/osc_lib/command/command.py", line 41, in run
return super(Command, self).run(parsed_args)
File "/usr/local/lib/python2.7/dist-packages/cliff/display.py", line 116, in run
column_names, data = self.take_action(parsed_args)
File "/usr/local/lib/python2.7/dist-packages/openstackclient/compute/v2/service.py", line 108, in take_action
parsed_args.service)
File "/usr/local/lib/python2.7/dist-packages/novaclient/v2/services.py", line 52, in list
return self._list(url, "services")
File "/usr/local/lib/python2.7/dist-packages/novaclient/base.py", line 257, in _list
resp, body = self.api.client.get(url)
File "/usr/local/lib/python2.7/dist-packages/keystoneauth1/adapter.py", line 328, in get
return self.request(url, 'GET', **kwargs)
File "/usr/local/lib/python2.7/dist-packages/novaclient/client.py", line 83, in request
raise exceptions.from_response(resp, body, url, method)
File "/usr/local/lib/python2.7/dist-packages/novaclient/exceptions.py", line 310, in from_response
message = error.get('message')
AttributeError: 'list' object has no attribute 'get'
clean_up ListService: 'list' object has no attribute 'get'
Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/osc_lib/shell.py", line 134, in run
ret_val = super(OpenStackShell, self).run(argv)
File "/usr/local/lib/python2.7/dist-packages/cliff/app.py", line 278, in run
result = self.run_subcommand(remainder)
File "/usr/local/lib/python2.7/dist-packages/osc_lib/shell.py", line 169, in run_subcommand
ret_value = super(OpenStackShell, self).run_subcommand(argv)
File "/usr/local/lib/python2.7/dist-packages/cliff/app.py", line 399, in run_subcommand
result = cmd.run(parsed_args)
File "/usr/local/lib/python2.7/dist-packages/osc_lib/command/command.py", line 41, in run
return super(Command, self).run(parsed_args)
File "/usr/local/lib/python2.7/dist-packages/cliff/display.py", line 116, in run
column_names, data = self.take_action(parsed_args)
File "/usr/local/lib/python2.7/dist-packages/openstackclient/compute/v2/service.py", line 108, in take_action
parsed_args.service)
File "/usr/local/lib/python2.7/dist-packages/novaclient/v2/services.py", line 52, in list
return self._list(url, "services")
File "/usr/local/lib/python2.7/dist-packages/novaclient/base.py", line 257, in _list
resp, body = self.api.client.get(url)
File "/usr/local/lib/python2.7/dist-packages/keystoneauth1/adapter.py", line 328, in get
return self.request(url, 'GET', **kwargs)
File "/usr/local/lib/python2.7/dist-packages/novaclient/client.py", line 83, in request
raise exceptions.from_response(resp, body, url, method)
File "/usr/local/lib/python2.7/dist-packages/novaclient/exceptions.py", line 310, in from_response
message = error.get('message')
AttributeError: 'list' object has no attribute 'get'
END return value: 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment