Created
July 13, 2018 14:26
-
-
Save spotz/b53d729fc72d24b4454ee55519e72c07 to your computer and use it in GitHub Desktop.
ui breaks CLI
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
root@zunui:~# cat adminrc | |
#!/usr/bin/env bash | |
# To use an OpenStack cloud you need to authenticate against the Identity | |
# service named keystone, which returns a **Token** and **Service Catalog**. | |
# The catalog contains the endpoints for all services the user/tenant has | |
# access to - such as Compute, Image Service, Identity, Object Storage, Block | |
# Storage, and Networking (code-named nova, glance, keystone, swift, | |
# cinder, and neutron). | |
# | |
# *NOTE*: Using the 3 *Identity API* does not necessarily mean any other | |
# OpenStack API is version 3. For example, your cloud provider may implement | |
# Image API v1.1, Block Storage API v2, and Compute API v2.0. OS_AUTH_URL is | |
# only for the Identity API served through keystone. | |
export OS_AUTH_URL=http://104.130.163.16/identity/v3 | |
# With the addition of Keystone we have standardized on the term **project** | |
# as the entity that owns the resources. | |
export OS_PROJECT_ID=5413c93ca822472182ed50d17a308f45 | |
export OS_PROJECT_NAME="admin" | |
export OS_USER_DOMAIN_NAME="Default" | |
if [ -z "$OS_USER_DOMAIN_NAME" ]; then unset OS_USER_DOMAIN_NAME; fi | |
export OS_PROJECT_DOMAIN_ID="default" | |
if [ -z "$OS_PROJECT_DOMAIN_ID" ]; then unset OS_PROJECT_DOMAIN_ID; fi | |
# unset v2.0 items in case set | |
unset OS_TENANT_ID | |
unset OS_TENANT_NAME | |
# In addition to the owning entity (tenant), OpenStack stores the entity | |
# performing the action as the **user**. | |
export OS_USERNAME="admin" | |
# With Keystone you pass the keystone password. | |
echo "Please enter your OpenStack Password for project $OS_PROJECT_NAME as user $OS_USERNAME: " | |
read -sr OS_PASSWORD_INPUT | |
export OS_PASSWORD=$OS_PASSWORD_INPUT | |
# If your configuration has multiple regions, we set that information here. | |
# OS_REGION_NAME is optional and only valid in certain environments. | |
export OS_REGION_NAME="RegionOne" | |
# Don't leave a blank variable, unset it if it was empty | |
if [ -z "$OS_REGION_NAME" ]; then unset OS_REGION_NAME; fi | |
export OS_INTERFACE=public | |
export OS_IDENTITY_API_VERSION=3 | |
root@zunui:~# openstack service list | |
+----------------------------------+------------------+------------------+ | |
| ID | Name | Type | | |
+----------------------------------+------------------+------------------+ | |
| 0e550ac7140041b9b22d29951ba8a6c5 | keystone | identity | | |
| 1cf9675f484142c2926ab3a331072fad | cinderv2 | volumev2 | | |
| 34b3491675664644972aede703e766c7 | nova_legacy | compute_legacy | | |
| 353435a6f3b645ea80309b6920ab261a | heat | orchestration | | |
| 5e24595f61ac4653a956cb1da78f1636 | cinder | volume | | |
| 776034e78a4e4842930e5c6fddc5d956 | kuryr-libnetwork | kuryr-libnetwork | | |
| 7db4b88a98724303b10c2d4f1acd2066 | neutron | network | | |
| 7f41a0036d61429c834c06fb485e7015 | cinderv3 | volumev3 | | |
| 83315db8e58e44b3a558b1a01b47d30b | placement | placement | | |
| 909f2ea812394b46b369ab007ccfc7fc | zun | container | | |
| a2a8e3f06811412a9c31aaaae27b31b3 | nova | compute | | |
| a9f4ea37bd8a4f0db401c5a1ffb383fc | cinder | block-storage | | |
| e905cc48761549979878f7cbbbda04c5 | glance | image | | |
| f064400c5a70458680632264e039933b | heat-cfn | cloudformation | | |
+----------------------------------+------------------+------------------+ | |
root@zunui:~# openstack appcontainer list | |
Unauthorized (HTTP 401) (Request-ID: req-e02cbd2b-a7e6-4c56-a5f2-24b1c0039660) | |
root@zunui:~# openstack appcontainer list --debug | |
START with options: [u'appcontainer', u'list', u'--debug'] | |
options: Namespace(access_key='', access_secret='***', access_token='***', access_token_endpoint='', access_token_type='', aodh_endpoint='', application_credential_id='', application_credential_name='', application_credential_secret='***', auth_type='', auth_url='http://104.130.163.16/identity/v3', cacert=None, cert='', client_id='', client_secret='***', cloud='', 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='', identity_provider='', identity_provider_url='', insecure=None, interface='public', key='', log_file=None, openid_scope='', os_alarming_api_version='2', os_baremetal_api_version='1.42', os_beta_command=False, os_compute_api_version='', os_container_api_version='1.18', 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='3', os_image_api_version='', os_key_manager_api_version='1', os_loadbalancer_api_version='2.0', os_network_api_version='', os_object_api_version='', os_orchestration_api_version='1', os_placement_api_version='1.0', os_project_id=None, os_project_name=None, os_queues_api_version='2', os_volume_api_version='', os_workflow_api_version='2', passcode='', password='***', profile='', project_domain_id='default', project_domain_name='', project_id='5413c93ca822472182ed50d17a308f45', project_name='admin', protocol='', redirect_uri='', region_name='RegionOne', 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_domain_id='', user_domain_name='Default', user_id='', username='admin', verbose_level=3, verify=None) | |
Auth plugin password selected | |
auth_config_hook(): {'auth_type': 'password', u'status': u'active', u'compute_api_version': u'2', 'key': None, u'database_api_version': '1', 'data_processing_api_version': '1.1', 'auth_url': 'http://104.130.163.16/identity/v3', u'network_api_version': u'2', u'message': u'', u'image_format': u'qcow2', 'networks': [], u'image_api_version': u'2', u'clustering_api_version': u'1', 'verify': True, 'placement_api_version': '1.0', u'dns_api_version': '2', u'object_store_api_version': u'1', 'username': 'admin', u'container_infra_api_version': '1', 'loadbalancer_api_version': '2.0', 'verbose_level': 3, 'region_name': 'RegionOne', 'api_timeout': None, u'baremetal_api_version': '1.42', 'queues_api_version': '2', 'auth': {'project_id': '5413c93ca822472182ed50d17a308f45', 'user_domain_name': 'Default', 'project_name': 'admin', 'project_domain_id': 'default'}, 'default_domain': 'default', u'container_api_version': '1.18', u'image_api_use_tasks': False, u'floating_ip_source': u'neutron', u'orchestration_api_version': '1', u'interface': 'public', 'timing': False, 'password': '***', u'application_catalog_api_version': u'1', 'cacert': None, u'key_manager_api_version': '1', 'beta_command': False, 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', 'cert': None, u'secgroup_source': u'neutron', 'alarming_api_version': '2', 'debug': True, u'block_storage_api_version': u'2', u'disable_vendor_agent': {}} | |
defaults: {u'auth_type': 'password', u'compute_api_version': u'2', 'key': None, u'database_api_version': u'1.0', u'metering_api_version': u'2', u'network_api_version': u'2', u'message': u'', u'image_format': u'qcow2', u'image_api_version': u'2', u'clustering_api_version': u'1', 'verify': True, u'interface': None, u'dns_api_version': u'2', u'object_store_api_version': u'1', u'status': u'active', u'container_infra_api_version': u'1', 'api_timeout': None, u'baremetal_api_version': u'1', u'image_api_use_tasks': False, u'floating_ip_source': u'neutron', u'orchestration_api_version': u'1', 'cacert': None, u'application_catalog_api_version': u'1', u'key_manager_api_version': u'v1', u'workflow_api_version': u'2', 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'block_storage_api_version': u'2', u'disable_vendor_agent': {}} | |
cloud cfg: {'auth_type': 'password', 'username': 'admin', u'compute_api_version': u'2', u'orchestration_api_version': '1', u'database_api_version': '1', 'data_processing_api_version': '1.1', 'auth_url': 'http://104.130.163.16/identity/v3', u'network_api_version': u'2', u'message': u'', u'image_format': u'qcow2', 'networks': [], u'image_api_version': u'2', u'clustering_api_version': u'1', 'verify': True, 'placement_api_version': '1.0', u'dns_api_version': '2', u'object_store_api_version': u'1', u'status': u'active', u'container_infra_api_version': '1', 'loadbalancer_api_version': '2.0', 'verbose_level': 3, 'region_name': 'RegionOne', 'api_timeout': None, u'baremetal_api_version': '1.42', 'queues_api_version': '2', 'auth': {'project_name': 'admin', 'user_domain_name': 'Default', 'project_id': '5413c93ca822472182ed50d17a308f45', 'project_domain_id': 'default'}, 'default_domain': 'default', 'debug': True, u'image_api_use_tasks': False, u'floating_ip_source': u'neutron', 'key': None, u'interface': 'public', 'timing': False, 'password': '***', u'application_catalog_api_version': u'1', 'cacert': None, u'key_manager_api_version': '1', 'beta_command': False, 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', 'cert': None, u'secgroup_source': u'neutron', 'alarming_api_version': '2', u'container_api_version': '1.18', u'block_storage_api_version': u'2', 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 | |
container API version 1.18, cmd group openstack.container.v1 | |
messaging API version 2, cmd group openstack.messaging.v2 | |
database API version 1, cmd group openstack.database.v1 | |
data_processing API version 1.1, cmd group openstack.data_processing.v1 | |
load_balancer API version 2.0, cmd group openstack.load_balancer.v2 | |
neutronclient API version 2, cmd group openstack.neutronclient.v2 | |
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 | |
placement API version 1.0, cmd group openstack.placement.v1 | |
alarming API version 2, cmd group openstack.alarming.v2 | |
Auth plugin password selected | |
auth_config_hook(): {'auth_type': 'password', u'status': u'active', u'compute_api_version': u'2', 'key': None, u'database_api_version': '1', 'data_processing_api_version': '1.1', 'auth_url': 'http://104.130.163.16/identity/v3', u'network_api_version': u'2', u'message': u'', u'image_format': u'qcow2', 'networks': [], u'image_api_version': u'2', u'clustering_api_version': u'1', 'verify': True, 'placement_api_version': '1.0', u'dns_api_version': '2', u'object_store_api_version': u'1', 'username': 'admin', u'container_infra_api_version': '1', 'loadbalancer_api_version': '2.0', 'verbose_level': 3, 'region_name': 'RegionOne', 'api_timeout': None, u'baremetal_api_version': '1.42', 'queues_api_version': '2', 'auth': {'project_id': '5413c93ca822472182ed50d17a308f45', 'user_domain_name': 'Default', 'project_name': 'admin', 'project_domain_id': 'default'}, 'default_domain': 'default', u'container_api_version': '1.18', u'image_api_use_tasks': False, u'floating_ip_source': u'neutron', u'orchestration_api_version': '1', u'interface': 'public', 'timing': False, 'password': '***', u'application_catalog_api_version': u'1', 'cacert': None, u'key_manager_api_version': '1', 'beta_command': False, 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', 'cert': None, u'secgroup_source': u'neutron', 'alarming_api_version': '2', 'debug': True, u'block_storage_api_version': u'2', u'disable_vendor_agent': {}} | |
Auth plugin password selected | |
auth_config_hook(): {'auth_type': 'password', u'status': u'active', u'compute_api_version': u'2', 'key': None, u'database_api_version': '1', 'data_processing_api_version': '1.1', 'auth_url': 'http://104.130.163.16/identity/v3', u'network_api_version': u'2', u'message': u'', u'image_format': u'qcow2', 'networks': [], u'image_api_version': u'2', u'clustering_api_version': u'1', 'verify': True, 'placement_api_version': '1.0', u'dns_api_version': '2', u'object_store_api_version': u'1', 'username': 'admin', u'container_infra_api_version': '1', 'loadbalancer_api_version': '2.0', 'verbose_level': 3, 'region_name': 'RegionOne', 'api_timeout': None, u'baremetal_api_version': '1.42', 'queues_api_version': '2', 'auth': {'project_id': '5413c93ca822472182ed50d17a308f45', 'user_domain_name': 'Default', 'project_name': 'admin', 'project_domain_id': 'default'}, 'default_domain': 'default', u'container_api_version': '1.18', u'image_api_use_tasks': False, u'floating_ip_source': u'neutron', u'orchestration_api_version': '1', u'interface': 'public', 'timing': False, 'password': '***', u'application_catalog_api_version': u'1', 'cacert': None, u'key_manager_api_version': '1', 'beta_command': False, 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', 'cert': None, u'secgroup_source': u'neutron', 'alarming_api_version': '2', 'debug': True, u'block_storage_api_version': u'2', u'disable_vendor_agent': {}} | |
command: appcontainer list -> zunclient.osc.v1.containers.ListContainer (auth=True) | |
Auth plugin password selected | |
auth_config_hook(): {'auth_type': 'password', u'status': u'active', u'compute_api_version': u'2', 'key': None, u'database_api_version': '1', 'data_processing_api_version': '1.1', 'auth_url': 'http://104.130.163.16/identity/v3', u'network_api_version': u'2', u'message': u'', u'image_format': u'qcow2', 'networks': [], u'image_api_version': u'2', u'clustering_api_version': u'1', 'verify': True, 'placement_api_version': '1.0', u'dns_api_version': '2', u'object_store_api_version': u'1', 'username': 'admin', u'container_infra_api_version': '1', 'loadbalancer_api_version': '2.0', 'verbose_level': 3, 'region_name': 'RegionOne', 'api_timeout': None, u'baremetal_api_version': '1.42', 'queues_api_version': '2', 'auth': {'project_id': '5413c93ca822472182ed50d17a308f45', 'user_domain_name': 'Default', 'project_name': 'admin', 'project_domain_id': 'default'}, 'default_domain': 'default', u'container_api_version': '1.18', u'image_api_use_tasks': False, u'floating_ip_source': u'neutron', u'orchestration_api_version': '1', u'interface': 'public', 'timing': False, 'password': '***', u'application_catalog_api_version': u'1', 'cacert': None, u'key_manager_api_version': '1', 'beta_command': False, 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', 'cert': None, u'secgroup_source': u'neutron', 'alarming_api_version': '2', 'debug': True, u'block_storage_api_version': u'2', u'disable_vendor_agent': {}} | |
Using auth plugin: password | |
Using parameters {'username': 'admin', 'password': '***', 'project_name': 'admin', 'user_domain_name': 'Default', 'auth_url': 'http://104.130.163.16/identity/v3', 'project_id': '5413c93ca822472182ed50d17a308f45', 'project_domain_id': 'default'} | |
Get auth_ref | |
REQ: curl -g -i -X GET http://104.130.163.16/identity/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): 104.130.163.16:80 | |
http://104.130.163.16:80 "GET /identity/v3 HTTP/1.1" 200 258 | |
RESP: [200] Connection: close Content-Length: 258 Content-Type: application/json Date: Fri, 13 Jul 2018 14:25:41 GMT Server: Apache/2.4.18 (Ubuntu) Vary: X-Auth-Token x-openstack-request-id: req-e497797c-287f-427a-9277-20c1f7ec6655 | |
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://104.130.163.16/identity/v3/", "rel": "self"}]}} | |
GET call to http://104.130.163.16/identity/v3 used request id req-e497797c-287f-427a-9277-20c1f7ec6655 | |
Making authentication request to http://104.130.163.16/identity/v3/auth/tokens | |
Resetting dropped connection: 104.130.163.16 | |
http://104.130.163.16:80 "POST /identity/v3/auth/tokens HTTP/1.1" 201 5519 | |
{"token": {"is_domain": false, "methods": ["password"], "roles": [{"id": "35e6fef49db3446ab3ef8a133f8a6175", "name": "admin"}, {"id": "24c225a3359448429a06ee62a295b6d7", "name": "member"}, {"id": "06d84787135645ab9e887cf23eff8392", "name": "reader"}], "expires_at": "2018-07-13T15:25:41.000000Z", "project": {"domain": {"id": "default", "name": "Default"}, "id": "5413c93ca822472182ed50d17a308f45", "name": "admin"}, "catalog": [{"endpoints": [{"url": "http://104.130.163.16/identity", "interface": "public", "region": "RegionOne", "region_id": "RegionOne", "id": "45d1c5aa19e74a26bc903212c718f789"}, {"url": "http://104.130.163.16/identity", "interface": "admin", "region": "RegionOne", "region_id": "RegionOne", "id": "bff1aac2aaac462b9b1897a0aef9d2b8"}], "type": "identity", "id": "0e550ac7140041b9b22d29951ba8a6c5", "name": "keystone"}, {"endpoints": [{"url": "http://104.130.163.16/volume/v2/5413c93ca822472182ed50d17a308f45", "interface": "public", "region": "RegionOne", "region_id": "RegionOne", "id": "76cb07c91cf243698d168dfb6842c020"}], "type": "volumev2", "id": "1cf9675f484142c2926ab3a331072fad", "name": "cinderv2"}, {"endpoints": [{"url": "http://104.130.163.16/compute/v2/5413c93ca822472182ed50d17a308f45", "interface": "public", "region": "RegionOne", "region_id": "RegionOne", "id": "0354950337c2412aada7170b7d94c9c0"}], "type": "compute_legacy", "id": "34b3491675664644972aede703e766c7", "name": "nova_legacy"}, {"endpoints": [{"url": "http://104.130.163.16/heat-api/v1/5413c93ca822472182ed50d17a308f45", "interface": "admin", "region": "RegionOne", "region_id": "RegionOne", "id": "016cb671380040c2b096dc2546b5111b"}, {"url": "http://104.130.163.16/heat-api/v1/5413c93ca822472182ed50d17a308f45", "interface": "public", "region": "RegionOne", "region_id": "RegionOne", "id": "9598d8d6ccb74915b01d28ce436d3dfe"}, {"url": "http://104.130.163.16/heat-api/v1/5413c93ca822472182ed50d17a308f45", "interface": "internal", "region": "RegionOne", "region_id": "RegionOne", "id": "d57f0318af4943f0a2d892c1348fc2ea"}], "type": "orchestration", "id": "353435a6f3b645ea80309b6920ab261a", "name": "heat"}, {"endpoints": [{"url": "http://104.130.163.16/volume/v1/5413c93ca822472182ed50d17a308f45", "interface": "public", "region": "RegionOne", "region_id": "RegionOne", "id": "cbdc28c31dcd41969471757193f2287f"}], "type": "volume", "id": "5e24595f61ac4653a956cb1da78f1636", "name": "cinder"}, {"endpoints": [], "type": "kuryr-libnetwork", "id": "776034e78a4e4842930e5c6fddc5d956", "name": "kuryr-libnetwork"}, {"endpoints": [{"url": "http://104.130.163.16:9696/", "interface": "public", "region": "RegionOne", "region_id": "RegionOne", "id": "c10e844c7e964a2d8f9a4caef24bdec0"}], "type": "network", "id": "7db4b88a98724303b10c2d4f1acd2066", "name": "neutron"}, {"endpoints": [{"url": "http://104.130.163.16/volume/v3/5413c93ca822472182ed50d17a308f45", "interface": "public", "region": "RegionOne", "region_id": "RegionOne", "id": "3f9a677443974fd8aa0740f15762cbec"}], "type": "volumev3", "id": "7f41a0036d61429c834c06fb485e7015", "name": "cinderv3"}, {"endpoints": [{"url": "http://104.130.163.16/placement", "interface": "public", "region": "RegionOne", "region_id": "RegionOne", "id": "685ed26630cb4d099e53040052a2c4ff"}], "type": "placement", "id": "83315db8e58e44b3a558b1a01b47d30b", "name": "placement"}, {"endpoints": [{"url": "http://104.130.163.16/container/v1", "interface": "internal", "region": "RegionOne", "region_id": "RegionOne", "id": "10620de80b374267bce519b96a747ace"}, {"url": "http://104.130.163.16/container/v1", "interface": "public", "region": "RegionOne", "region_id": "RegionOne", "id": "4dae8f14c0ee447ea85735abf254e29d"}, {"url": "http://104.130.163.16/container/v1", "interface": "admin", "region": "RegionOne", "region_id": "RegionOne", "id": "6259347018f0476f81f5b7c21ba4ee02"}], "type": "container", "id": "909f2ea812394b46b369ab007ccfc7fc", "name": "zun"}, {"endpoints": [{"url": "http://104.130.163.16/compute/v2.1", "interface": "public", "region": "RegionOne", "region_id": "RegionOne", "id": "e3620742e9954cd39ba5b60f2afa6ceb"}], "type": "compute", "id": "a2a8e3f06811412a9c31aaaae27b31b3", "name": "nova"}, {"endpoints": [{"url": "http://104.130.163.16/volume/v3/5413c93ca822472182ed50d17a308f45", "interface": "public", "region": "RegionOne", "region_id": "RegionOne", "id": "8277740d11b44dddb1d08a90520c6023"}], "type": "block-storage", "id": "a9f4ea37bd8a4f0db401c5a1ffb383fc", "name": "cinder"}, {"endpoints": [{"url": "http://104.130.163.16/image", "interface": "public", "region": "RegionOne", "region_id": "RegionOne", "id": "aa896d7bb0b24af189b930310ec1a847"}], "type": "image", "id": "e905cc48761549979878f7cbbbda04c5", "name": "glance"}, {"endpoints": [{"url": "http://104.130.163.16/heat-api-cfn/v1", "interface": "public", "region": "RegionOne", "region_id": "RegionOne", "id": "18cf86db48dd464b8beba64ab416a092"}, {"url": "http://104.130.163.16/heat-api-cfn/v1", "interface": "admin", "region": "RegionOne", "region_id": "RegionOne", "id": "7fc8ed908b644c82b47d14c18ea44adb"}, {"url": "http://104.130.163.16/heat-api-cfn/v1", "interface": "internal", "region": "RegionOne", "region_id": "RegionOne", "id": "e9f9fe75eb0149acaeb84230ba82fa45"}], "type": "cloudformation", "id": "f064400c5a70458680632264e039933b", "name": "heat-cfn"}], "user": {"domain": {"id": "default", "name": "Default"}, "password_expires_at": null, "name": "admin", "id": "36efb4ed93204d4a84ef10dcddf22c3c"}, "audit_ids": ["Es9fk48BT5yhdKJ5ch3p_g"], "issued_at": "2018-07-13T14:25:41.000000Z"}} | |
run(Namespace(all_projects=False, auto_remove=None, columns=[], fit_width=False, formatter='table', host=None, image=None, limit=None, marker=None, max_width=0, memory=None, name=None, noindent=False, print_empty=False, project_id=None, quote_mode='nonnumeric', sort_columns=[], sort_dir=None, sort_key=None, status=None, task_state=None, user_id=None)) | |
take_action(Namespace(all_projects=False, auto_remove=None, columns=[], fit_width=False, formatter='table', host=None, image=None, limit=None, marker=None, max_width=0, memory=None, name=None, noindent=False, print_empty=False, project_id=None, quote_mode='nonnumeric', sort_columns=[], sort_dir=None, sort_key=None, status=None, task_state=None, user_id=None)) | |
Instantiating zun client: <class 'zunclient.v1.client.Client'> | |
Making authentication request to http://104.130.163.16/identity/v3/auth/tokens | |
Resetting dropped connection: 104.130.163.16 | |
http://104.130.163.16:80 "POST /identity/v3/auth/tokens HTTP/1.1" 201 5519 | |
{"token": {"is_domain": false, "methods": ["password"], "roles": [{"id": "35e6fef49db3446ab3ef8a133f8a6175", "name": "admin"}, {"id": "24c225a3359448429a06ee62a295b6d7", "name": "member"}, {"id": "06d84787135645ab9e887cf23eff8392", "name": "reader"}], "expires_at": "2018-07-13T15:25:41.000000Z", "project": {"domain": {"id": "default", "name": "Default"}, "id": "5413c93ca822472182ed50d17a308f45", "name": "admin"}, "catalog": [{"endpoints": [{"url": "http://104.130.163.16/identity", "interface": "public", "region": "RegionOne", "region_id": "RegionOne", "id": "45d1c5aa19e74a26bc903212c718f789"}, {"url": "http://104.130.163.16/identity", "interface": "admin", "region": "RegionOne", "region_id": "RegionOne", "id": "bff1aac2aaac462b9b1897a0aef9d2b8"}], "type": "identity", "id": "0e550ac7140041b9b22d29951ba8a6c5", "name": "keystone"}, {"endpoints": [{"url": "http://104.130.163.16/volume/v2/5413c93ca822472182ed50d17a308f45", "interface": "public", "region": "RegionOne", "region_id": "RegionOne", "id": "76cb07c91cf243698d168dfb6842c020"}], "type": "volumev2", "id": "1cf9675f484142c2926ab3a331072fad", "name": "cinderv2"}, {"endpoints": [{"url": "http://104.130.163.16/compute/v2/5413c93ca822472182ed50d17a308f45", "interface": "public", "region": "RegionOne", "region_id": "RegionOne", "id": "0354950337c2412aada7170b7d94c9c0"}], "type": "compute_legacy", "id": "34b3491675664644972aede703e766c7", "name": "nova_legacy"}, {"endpoints": [{"url": "http://104.130.163.16/heat-api/v1/5413c93ca822472182ed50d17a308f45", "interface": "admin", "region": "RegionOne", "region_id": "RegionOne", "id": "016cb671380040c2b096dc2546b5111b"}, {"url": "http://104.130.163.16/heat-api/v1/5413c93ca822472182ed50d17a308f45", "interface": "public", "region": "RegionOne", "region_id": "RegionOne", "id": "9598d8d6ccb74915b01d28ce436d3dfe"}, {"url": "http://104.130.163.16/heat-api/v1/5413c93ca822472182ed50d17a308f45", "interface": "internal", "region": "RegionOne", "region_id": "RegionOne", "id": "d57f0318af4943f0a2d892c1348fc2ea"}], "type": "orchestration", "id": "353435a6f3b645ea80309b6920ab261a", "name": "heat"}, {"endpoints": [{"url": "http://104.130.163.16/volume/v1/5413c93ca822472182ed50d17a308f45", "interface": "public", "region": "RegionOne", "region_id": "RegionOne", "id": "cbdc28c31dcd41969471757193f2287f"}], "type": "volume", "id": "5e24595f61ac4653a956cb1da78f1636", "name": "cinder"}, {"endpoints": [], "type": "kuryr-libnetwork", "id": "776034e78a4e4842930e5c6fddc5d956", "name": "kuryr-libnetwork"}, {"endpoints": [{"url": "http://104.130.163.16:9696/", "interface": "public", "region": "RegionOne", "region_id": "RegionOne", "id": "c10e844c7e964a2d8f9a4caef24bdec0"}], "type": "network", "id": "7db4b88a98724303b10c2d4f1acd2066", "name": "neutron"}, {"endpoints": [{"url": "http://104.130.163.16/volume/v3/5413c93ca822472182ed50d17a308f45", "interface": "public", "region": "RegionOne", "region_id": "RegionOne", "id": "3f9a677443974fd8aa0740f15762cbec"}], "type": "volumev3", "id": "7f41a0036d61429c834c06fb485e7015", "name": "cinderv3"}, {"endpoints": [{"url": "http://104.130.163.16/placement", "interface": "public", "region": "RegionOne", "region_id": "RegionOne", "id": "685ed26630cb4d099e53040052a2c4ff"}], "type": "placement", "id": "83315db8e58e44b3a558b1a01b47d30b", "name": "placement"}, {"endpoints": [{"url": "http://104.130.163.16/container/v1", "interface": "internal", "region": "RegionOne", "region_id": "RegionOne", "id": "10620de80b374267bce519b96a747ace"}, {"url": "http://104.130.163.16/container/v1", "interface": "public", "region": "RegionOne", "region_id": "RegionOne", "id": "4dae8f14c0ee447ea85735abf254e29d"}, {"url": "http://104.130.163.16/container/v1", "interface": "admin", "region": "RegionOne", "region_id": "RegionOne", "id": "6259347018f0476f81f5b7c21ba4ee02"}], "type": "container", "id": "909f2ea812394b46b369ab007ccfc7fc", "name": "zun"}, {"endpoints": [{"url": "http://104.130.163.16/compute/v2.1", "interface": "public", "region": "RegionOne", "region_id": "RegionOne", "id": "e3620742e9954cd39ba5b60f2afa6ceb"}], "type": "compute", "id": "a2a8e3f06811412a9c31aaaae27b31b3", "name": "nova"}, {"endpoints": [{"url": "http://104.130.163.16/volume/v3/5413c93ca822472182ed50d17a308f45", "interface": "public", "region": "RegionOne", "region_id": "RegionOne", "id": "8277740d11b44dddb1d08a90520c6023"}], "type": "block-storage", "id": "a9f4ea37bd8a4f0db401c5a1ffb383fc", "name": "cinder"}, {"endpoints": [{"url": "http://104.130.163.16/image", "interface": "public", "region": "RegionOne", "region_id": "RegionOne", "id": "aa896d7bb0b24af189b930310ec1a847"}], "type": "image", "id": "e905cc48761549979878f7cbbbda04c5", "name": "glance"}, {"endpoints": [{"url": "http://104.130.163.16/heat-api-cfn/v1", "interface": "public", "region": "RegionOne", "region_id": "RegionOne", "id": "18cf86db48dd464b8beba64ab416a092"}, {"url": "http://104.130.163.16/heat-api-cfn/v1", "interface": "admin", "region": "RegionOne", "region_id": "RegionOne", "id": "7fc8ed908b644c82b47d14c18ea44adb"}, {"url": "http://104.130.163.16/heat-api-cfn/v1", "interface": "internal", "region": "RegionOne", "region_id": "RegionOne", "id": "e9f9fe75eb0149acaeb84230ba82fa45"}], "type": "cloudformation", "id": "f064400c5a70458680632264e039933b", "name": "heat-cfn"}], "user": {"domain": {"id": "default", "name": "Default"}, "password_expires_at": null, "name": "admin", "id": "36efb4ed93204d4a84ef10dcddf22c3c"}, "audit_ids": ["7YeQeyEfTRuTDZkYMjTwIA"], "issued_at": "2018-07-13T14:25:41.000000Z"}} | |
REQ: curl -g -i -X GET http://104.130.163.16/container/v1/containers -H "Accept: application/json" -H "Content-Type: application/json" -H "OpenStack-API-Version: container 1.18" -H "User-Agent: None" -H "X-Auth-Token: {SHA1}7355d483c0b3645c514caaa78d98f13f8435511a" | |
Resetting dropped connection: 104.130.163.16 | |
http://104.130.163.16:80 "GET /container/v1/containers HTTP/1.1" 401 114 | |
RESP: [401] Connection: close Content-Length: 114 Content-Type: application/json Date: Fri, 13 Jul 2018 14:25:41 GMT Server: Apache/2.4.18 (Ubuntu) WWW-Authenticate: Keystone uri="http://172.99.67.143/identity/v3" x-openstack-request-id: req-4d6ab3a9-4bc9-4a87-bac7-28e94d638cf8 | |
RESP BODY: {"error": {"message": "The request you have made requires authentication.", "code": 401, "title": "Unauthorized"}} | |
GET call to container for http://104.130.163.16/container/v1/containers used request id req-4d6ab3a9-4bc9-4a87-bac7-28e94d638cf8 | |
Making authentication request to http://104.130.163.16/identity/v3/auth/tokens | |
Resetting dropped connection: 104.130.163.16 | |
http://104.130.163.16:80 "POST /identity/v3/auth/tokens HTTP/1.1" 201 5519 | |
{"token": {"is_domain": false, "methods": ["password"], "roles": [{"id": "35e6fef49db3446ab3ef8a133f8a6175", "name": "admin"}, {"id": "24c225a3359448429a06ee62a295b6d7", "name": "member"}, {"id": "06d84787135645ab9e887cf23eff8392", "name": "reader"}], "expires_at": "2018-07-13T15:25:41.000000Z", "project": {"domain": {"id": "default", "name": "Default"}, "id": "5413c93ca822472182ed50d17a308f45", "name": "admin"}, "catalog": [{"endpoints": [{"url": "http://104.130.163.16/identity", "interface": "public", "region": "RegionOne", "region_id": "RegionOne", "id": "45d1c5aa19e74a26bc903212c718f789"}, {"url": "http://104.130.163.16/identity", "interface": "admin", "region": "RegionOne", "region_id": "RegionOne", "id": "bff1aac2aaac462b9b1897a0aef9d2b8"}], "type": "identity", "id": "0e550ac7140041b9b22d29951ba8a6c5", "name": "keystone"}, {"endpoints": [{"url": "http://104.130.163.16/volume/v2/5413c93ca822472182ed50d17a308f45", "interface": "public", "region": "RegionOne", "region_id": "RegionOne", "id": "76cb07c91cf243698d168dfb6842c020"}], "type": "volumev2", "id": "1cf9675f484142c2926ab3a331072fad", "name": "cinderv2"}, {"endpoints": [{"url": "http://104.130.163.16/compute/v2/5413c93ca822472182ed50d17a308f45", "interface": "public", "region": "RegionOne", "region_id": "RegionOne", "id": "0354950337c2412aada7170b7d94c9c0"}], "type": "compute_legacy", "id": "34b3491675664644972aede703e766c7", "name": "nova_legacy"}, {"endpoints": [{"url": "http://104.130.163.16/heat-api/v1/5413c93ca822472182ed50d17a308f45", "interface": "admin", "region": "RegionOne", "region_id": "RegionOne", "id": "016cb671380040c2b096dc2546b5111b"}, {"url": "http://104.130.163.16/heat-api/v1/5413c93ca822472182ed50d17a308f45", "interface": "public", "region": "RegionOne", "region_id": "RegionOne", "id": "9598d8d6ccb74915b01d28ce436d3dfe"}, {"url": "http://104.130.163.16/heat-api/v1/5413c93ca822472182ed50d17a308f45", "interface": "internal", "region": "RegionOne", "region_id": "RegionOne", "id": "d57f0318af4943f0a2d892c1348fc2ea"}], "type": "orchestration", "id": "353435a6f3b645ea80309b6920ab261a", "name": "heat"}, {"endpoints": [{"url": "http://104.130.163.16/volume/v1/5413c93ca822472182ed50d17a308f45", "interface": "public", "region": "RegionOne", "region_id": "RegionOne", "id": "cbdc28c31dcd41969471757193f2287f"}], "type": "volume", "id": "5e24595f61ac4653a956cb1da78f1636", "name": "cinder"}, {"endpoints": [], "type": "kuryr-libnetwork", "id": "776034e78a4e4842930e5c6fddc5d956", "name": "kuryr-libnetwork"}, {"endpoints": [{"url": "http://104.130.163.16:9696/", "interface": "public", "region": "RegionOne", "region_id": "RegionOne", "id": "c10e844c7e964a2d8f9a4caef24bdec0"}], "type": "network", "id": "7db4b88a98724303b10c2d4f1acd2066", "name": "neutron"}, {"endpoints": [{"url": "http://104.130.163.16/volume/v3/5413c93ca822472182ed50d17a308f45", "interface": "public", "region": "RegionOne", "region_id": "RegionOne", "id": "3f9a677443974fd8aa0740f15762cbec"}], "type": "volumev3", "id": "7f41a0036d61429c834c06fb485e7015", "name": "cinderv3"}, {"endpoints": [{"url": "http://104.130.163.16/placement", "interface": "public", "region": "RegionOne", "region_id": "RegionOne", "id": "685ed26630cb4d099e53040052a2c4ff"}], "type": "placement", "id": "83315db8e58e44b3a558b1a01b47d30b", "name": "placement"}, {"endpoints": [{"url": "http://104.130.163.16/container/v1", "interface": "internal", "region": "RegionOne", "region_id": "RegionOne", "id": "10620de80b374267bce519b96a747ace"}, {"url": "http://104.130.163.16/container/v1", "interface": "public", "region": "RegionOne", "region_id": "RegionOne", "id": "4dae8f14c0ee447ea85735abf254e29d"}, {"url": "http://104.130.163.16/container/v1", "interface": "admin", "region": "RegionOne", "region_id": "RegionOne", "id": "6259347018f0476f81f5b7c21ba4ee02"}], "type": "container", "id": "909f2ea812394b46b369ab007ccfc7fc", "name": "zun"}, {"endpoints": [{"url": "http://104.130.163.16/compute/v2.1", "interface": "public", "region": "RegionOne", "region_id": "RegionOne", "id": "e3620742e9954cd39ba5b60f2afa6ceb"}], "type": "compute", "id": "a2a8e3f06811412a9c31aaaae27b31b3", "name": "nova"}, {"endpoints": [{"url": "http://104.130.163.16/volume/v3/5413c93ca822472182ed50d17a308f45", "interface": "public", "region": "RegionOne", "region_id": "RegionOne", "id": "8277740d11b44dddb1d08a90520c6023"}], "type": "block-storage", "id": "a9f4ea37bd8a4f0db401c5a1ffb383fc", "name": "cinder"}, {"endpoints": [{"url": "http://104.130.163.16/image", "interface": "public", "region": "RegionOne", "region_id": "RegionOne", "id": "aa896d7bb0b24af189b930310ec1a847"}], "type": "image", "id": "e905cc48761549979878f7cbbbda04c5", "name": "glance"}, {"endpoints": [{"url": "http://104.130.163.16/heat-api-cfn/v1", "interface": "public", "region": "RegionOne", "region_id": "RegionOne", "id": "18cf86db48dd464b8beba64ab416a092"}, {"url": "http://104.130.163.16/heat-api-cfn/v1", "interface": "admin", "region": "RegionOne", "region_id": "RegionOne", "id": "7fc8ed908b644c82b47d14c18ea44adb"}, {"url": "http://104.130.163.16/heat-api-cfn/v1", "interface": "internal", "region": "RegionOne", "region_id": "RegionOne", "id": "e9f9fe75eb0149acaeb84230ba82fa45"}], "type": "cloudformation", "id": "f064400c5a70458680632264e039933b", "name": "heat-cfn"}], "user": {"domain": {"id": "default", "name": "Default"}, "password_expires_at": null, "name": "admin", "id": "36efb4ed93204d4a84ef10dcddf22c3c"}, "audit_ids": ["ShyjSE7dTIeeAfURKfvq0g"], "issued_at": "2018-07-13T14:25:41.000000Z"}} | |
Resetting dropped connection: 104.130.163.16 | |
http://104.130.163.16:80 "GET /container/v1/containers HTTP/1.1" 401 114 | |
RESP: [401] Connection: close Content-Length: 114 Content-Type: application/json Date: Fri, 13 Jul 2018 14:25:41 GMT Server: Apache/2.4.18 (Ubuntu) WWW-Authenticate: Keystone uri="http://172.99.67.143/identity/v3" x-openstack-request-id: req-1137b718-9f3d-494b-a446-ebb5164ea775 | |
RESP BODY: {"error": {"message": "The request you have made requires authentication.", "code": 401, "title": "Unauthorized"}} | |
Unauthorized (HTTP 401) (Request-ID: req-1137b718-9f3d-494b-a446-ebb5164ea775) | |
Traceback (most recent call last): | |
File "/usr/local/lib/python2.7/dist-packages/cliff/app.py", line 402, 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 "/opt/stack/python-zunclient/zunclient/osc/v1/containers.py", line 339, in take_action | |
containers = client.containers.list(**opts) | |
File "/opt/stack/python-zunclient/zunclient/v1/containers.py", line 83, in list | |
"containers", qparams=kwargs) | |
File "/opt/stack/python-zunclient/zunclient/common/base.py", line 128, in _list | |
resp, body = self.api.json_request('GET', url) | |
File "/opt/stack/python-zunclient/zunclient/common/httpclient.py", line 367, in json_request | |
resp = self._http_request(url, method, **kwargs) | |
File "/opt/stack/python-zunclient/zunclient/common/httpclient.py", line 350, in _http_request | |
error_json.get('debuginfo'), method, url) | |
Unauthorized: Unauthorized (HTTP 401) (Request-ID: req-1137b718-9f3d-494b-a446-ebb5164ea775) | |
clean_up ListContainer: Unauthorized (HTTP 401) (Request-ID: req-1137b718-9f3d-494b-a446-ebb5164ea775) | |
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 281, 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 402, 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 "/opt/stack/python-zunclient/zunclient/osc/v1/containers.py", line 339, in take_action | |
containers = client.containers.list(**opts) | |
File "/opt/stack/python-zunclient/zunclient/v1/containers.py", line 83, in list | |
"containers", qparams=kwargs) | |
File "/opt/stack/python-zunclient/zunclient/common/base.py", line 128, in _list | |
resp, body = self.api.json_request('GET', url) | |
File "/opt/stack/python-zunclient/zunclient/common/httpclient.py", line 367, in json_request | |
resp = self._http_request(url, method, **kwargs) | |
File "/opt/stack/python-zunclient/zunclient/common/httpclient.py", line 350, in _http_request | |
error_json.get('debuginfo'), method, url) | |
Unauthorized: Unauthorized (HTTP 401) (Request-ID: req-1137b718-9f3d-494b-a446-ebb5164ea775) | |
END return value: 1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment