Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- START with options: [u'image', u'create', u'--debug', u'--disk-format', u'qcow2', u'--container-format', u'bare', u'--public', u'--file', u'cirros-0.3.5-x86_64-disk.img', u'cirros']
- options: Namespace(access_token='***', access_token_endpoint='', access_token_type='', aodh_endpoint='', auth_type='', auth_url='http://192.168.58.10:5000/v3', cacert=None, cert='', client_id='', client_secret='***', cloud='', code='', debug=True, default_domain='default', default_domain_id='', default_domain_name='', deferred_help=False, discovery_endpoint='', domain_id='', domain_name='', endpoint='', identity_provider='', insecure=None, interface='internalURL', key='', log_file=None, openid_scope='', os_alarming_api_version='2', os_baremetal_api_version='1.9', 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='3', os_image_api_version='', os_key_manager_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='Default', project_id='', project_name='admin', protocol='', redirect_uri='', region_name='RegionOne', roles='', 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', 'beta_command': False, u'compute_api_version': u'2', 'key': None, u'database_api_version': '1', 'data_processing_api_version': '1.1', 'auth_url': 'http://192.168.58.10:5000/v3', u'network_api_version': u'2', u'message': u'', u'image_format': u'qcow2', 'networks': [], u'image_api_version': u'2', 'clustering_api_version': '1', 'verify': True, u'dns_api_version': '2', u'object_store_api_version': u'1', 'username': 'admin', u'container_infra_api_version': '1', 'verbose_level': 3, 'region_name': 'RegionOne', 'api_timeout': None, u'baremetal_api_version': '1.9', 'queues_api_version': '2', 'auth': {'user_domain_name': 'Default', 'project_name': 'admin', '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', 'timing': False, 'password': '***', u'application_catalog_api_version': u'1', 'cacert': None, u'key_manager_api_version': '1', u'metering_api_version': u'2', 'deferred_help': False, u'identity_api_version': '3', 'workflow_api_version': '2', u'volume_api_version': u'2', 'cert': None, u'secgroup_source': u'neutron', u'status': u'active', 'alarming_api_version': '2', 'debug': True, u'interface': 'internalURL', 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', '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'interface': None, u'disable_vendor_agent': {}}
- cloud cfg: {'auth_type': 'password', 'beta_command': False, u'compute_api_version': u'2', 'key': None, u'database_api_version': '1', 'data_processing_api_version': '1.1', 'auth_url': 'http://192.168.58.10:5000/v3', u'network_api_version': u'2', u'message': u'', u'image_format': u'qcow2', 'networks': [], u'image_api_version': u'2', 'clustering_api_version': '1', 'verify': True, u'dns_api_version': '2', u'object_store_api_version': u'1', 'username': 'admin', u'container_infra_api_version': '1', 'verbose_level': 3, 'region_name': 'RegionOne', 'api_timeout': None, u'baremetal_api_version': '1.9', 'queues_api_version': '2', 'auth': {'user_domain_name': 'Default', 'project_name': 'admin', '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', 'timing': False, 'password': '***', u'application_catalog_api_version': u'1', 'cacert': None, u'key_manager_api_version': '1', u'metering_api_version': u'2', 'deferred_help': False, u'identity_api_version': '3', 'workflow_api_version': '2', u'volume_api_version': u'2', 'cert': None, u'secgroup_source': u'neutron', u'status': u'active', 'alarming_api_version': '2', 'debug': True, u'interface': 'internalURL', 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
- 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
- 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.9, 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
- alarming API version 2, cmd group openstack.alarming.v2
- 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', 'data_processing_api_version': '1.1', 'auth_url': 'http://192.168.58.10:5000/v3', u'network_api_version': u'2', u'message': u'', u'image_format': u'qcow2', 'networks': [], u'image_api_version': u'2', 'clustering_api_version': '1', 'verify': True, u'dns_api_version': '2', u'object_store_api_version': u'1', 'username': 'admin', u'container_infra_api_version': '1', 'verbose_level': 3, 'region_name': 'RegionOne', 'api_timeout': None, u'baremetal_api_version': '1.9', 'queues_api_version': '2', 'auth': {'user_domain_name': 'Default', 'project_name': 'admin', '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', 'timing': False, 'password': '***', u'application_catalog_api_version': u'1', 'cacert': None, u'key_manager_api_version': '1', u'metering_api_version': u'2', 'deferred_help': False, u'identity_api_version': '3', 'workflow_api_version': '2', u'volume_api_version': u'2', 'cert': None, u'secgroup_source': u'neutron', u'status': u'active', 'alarming_api_version': '2', 'debug': True, u'interface': 'internalURL', 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', 'data_processing_api_version': '1.1', 'auth_url': 'http://192.168.58.10:5000/v3', u'network_api_version': u'2', u'message': u'', u'image_format': u'qcow2', 'networks': [], u'image_api_version': u'2', 'clustering_api_version': '1', 'verify': True, u'dns_api_version': '2', u'object_store_api_version': u'1', 'username': 'admin', u'container_infra_api_version': '1', 'verbose_level': 3, 'region_name': 'RegionOne', 'api_timeout': None, u'baremetal_api_version': '1.9', 'queues_api_version': '2', 'auth': {'user_domain_name': 'Default', 'project_name': 'admin', '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', 'timing': False, 'password': '***', u'application_catalog_api_version': u'1', 'cacert': None, u'key_manager_api_version': '1', u'metering_api_version': u'2', 'deferred_help': False, u'identity_api_version': '3', 'workflow_api_version': '2', u'volume_api_version': u'2', 'cert': None, u'secgroup_source': u'neutron', u'status': u'active', 'alarming_api_version': '2', 'debug': True, u'interface': 'internalURL', u'disable_vendor_agent': {}}
- command: image create -> openstackclient.image.v2.image.CreateImage
- 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', 'data_processing_api_version': '1.1', 'auth_url': 'http://192.168.58.10:5000/v3', u'network_api_version': u'2', u'message': u'', u'image_format': u'qcow2', 'networks': [], u'image_api_version': u'2', 'clustering_api_version': '1', 'verify': True, u'dns_api_version': '2', u'object_store_api_version': u'1', 'username': 'admin', u'container_infra_api_version': '1', 'verbose_level': 3, 'region_name': 'RegionOne', 'api_timeout': None, u'baremetal_api_version': '1.9', 'queues_api_version': '2', 'auth': {'user_domain_name': 'Default', 'project_name': 'admin', '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', 'timing': False, 'password': '***', u'application_catalog_api_version': u'1', 'cacert': None, u'key_manager_api_version': '1', u'metering_api_version': u'2', 'deferred_help': False, u'identity_api_version': '3', 'workflow_api_version': '2', u'volume_api_version': u'2', 'cert': None, u'secgroup_source': u'neutron', u'status': u'active', 'alarming_api_version': '2', 'debug': True, u'interface': 'internalURL', u'disable_vendor_agent': {}}
- Using auth plugin: password
- Using parameters {'username': 'admin', 'project_name': 'admin', 'user_domain_name': 'Default', 'auth_url': 'http://192.168.58.10:5000/v3', 'password': '***', 'project_domain_name': 'Default'}
- Get auth_ref
- REQ: curl -g -i -X GET http://192.168.58.10:5000/v3 -H "Accept: application/json" -H "User-Agent: osc-lib/1.3.0 keystoneauth1/2.18.0 python-requests/2.12.5 CPython/2.7.12"
- Starting new HTTP connection (1): 192.168.58.10
- http://192.168.58.10:5000 "GET /v3 HTTP/1.1" 200 252
- RESP: [200] Date: Thu, 23 Mar 2017 00:15:50 GMT Server: Apache Vary: X-Auth-Token x-openstack-request-id: req-2413007b-39f8-42ac-a812-ba6950f48b9d Content-Length: 252 Content-Type: application/json
- RESP BODY: {"version": {"status": "stable", "updated": "2017-02-22T00:00:00Z", "media-types": [{"base": "application/json", "type": "application/vnd.openstack.identity-v3+json"}], "id": "v3.8", "links": [{"href": "http://192.168.58.10:5000/v3/", "rel": "self"}]}}
- GET call to None for http://192.168.58.10:5000/v3 used request id req-2413007b-39f8-42ac-a812-ba6950f48b9d
- Making authentication request to http://192.168.58.10:5000/v3/auth/tokens
- http://192.168.58.10:5000 "POST /v3/auth/tokens HTTP/1.1" 201 7121
- {"token": {"is_domain": false, "methods": ["password"], "roles": [{"id": "4549e640afd14980bebc4f8c42f4827a", "name": "admin"}, {"id": "1858bd526da64a8c9b35688b6621f95c", "name": "heat_stack_owner"}], "expires_at": "2017-03-23T12:15:42.000000Z", "project": {"domain": {"id": "default", "name": "Default"}, "id": "9d9b1dae67d34072a635666c281bb299", "name": "admin"}, "catalog": [{"endpoints": [{"url": "http://192.168.58.10:35357/v3", "interface": "admin", "region": "RegionOne", "region_id": "RegionOne", "id": "22a22a078e7d4eafad30c65140b37c5b"}, {"url": "https://192.168.57.10:5000/v3", "interface": "public", "region": "RegionOne", "region_id": "RegionOne", "id": "3a931353d8c8406cacd7dffecb89a4a0"}, {"url": "http://192.168.58.10:5000/v3", "interface": "internal", "region": "RegionOne", "region_id": "RegionOne", "id": "61e08ba8a2d44b3d82bd8bb26dbfdaae"}], "type": "identity", "id": "2ea3b419ca6e4f40bf929ac71e55ed75", "name": "keystone"}, {"endpoints": [{"url": "http://192.168.58.10:8776/v2/9d9b1dae67d34072a635666c281bb299", "interface": "internal", "region": "RegionOne", "region_id": "RegionOne", "id": "837c617799e244fc9589b5412bf284ea"}, {"url": "http://192.168.58.10:8776/v2/9d9b1dae67d34072a635666c281bb299", "interface": "admin", "region": "RegionOne", "region_id": "RegionOne", "id": "d42df9cb2845437280d62c7d518f4bdf"}, {"url": "https://192.168.57.10:8776/v2/9d9b1dae67d34072a635666c281bb299", "interface": "public", "region": "RegionOne", "region_id": "RegionOne", "id": "e3191324fac041b099ff1a1dc5708e41"}], "type": "volumev2", "id": "3209055629c643d28a08c10b99a7bf9b", "name": "cinderv2"}, {"endpoints": [{"url": "https://192.168.57.10:9696", "interface": "public", "region": "RegionOne", "region_id": "RegionOne", "id": "370ccc76ac8b40499b9ddf1401002ef4"}, {"url": "http://192.168.58.10:9696", "interface": "admin", "region": "RegionOne", "region_id": "RegionOne", "id": "65667b856eff4b12af3727c49f1c154a"}, {"url": "http://192.168.58.10:9696", "interface": "internal", "region": "RegionOne", "region_id": "RegionOne", "id": "a134771d0b084f29b67f55d19af69cd5"}], "type": "network", "id": "4adac5a0810b45488f36461f0fae8acb", "name": "neutron"}, {"endpoints": [{"url": "http://192.168.58.10:8004/v1/9d9b1dae67d34072a635666c281bb299", "interface": "admin", "region": "RegionOne", "region_id": "RegionOne", "id": "374eb7185698401aa3c5475f0f7d0819"}, {"url": "http://192.168.58.10:8004/v1/9d9b1dae67d34072a635666c281bb299", "interface": "internal", "region": "RegionOne", "region_id": "RegionOne", "id": "53a9fbe49cb44388ac5c4e5064b0b9ac"}, {"url": "https://192.168.57.10:8004/v1/9d9b1dae67d34072a635666c281bb299", "interface": "public", "region": "RegionOne", "region_id": "RegionOne", "id": "b094f0d7721949cb9655a60104671ca4"}], "type": "orchestration", "id": "7eae5c19fd6b45d5931743019e9f621e", "name": "heat"}, {"endpoints": [{"url": "http://192.168.58.10:8780/placement", "interface": "internal", "region": "RegionOne", "region_id": "RegionOne", "id": "008e6f0bef0147d689b5257d4296dce8"}, {"url": "http://192.168.58.10:8780/placement", "interface": "admin", "region": "RegionOne", "region_id": "RegionOne", "id": "140b0b6b0f9d4d409e0d8b56d0f976b7"}, {"url": "https://192.168.57.10:8780/placement", "interface": "public", "region": "RegionOne", "region_id": "RegionOne", "id": "14c5ff4818794a389cdf4b58895ce836"}, {"url": "http://192.168.58.10:8780/placement", "interface": "admin", "region": "RegionOne", "region_id": "RegionOne", "id": "1c10227a17ff47f3b61ad9283c4b257f"}, {"url": "http://192.168.58.10:8780/placement", "interface": "internal", "region": "RegionOne", "region_id": "RegionOne", "id": "a0836ae4d74141c39903fa6ce5e2bc8e"}, {"url": "http://192.168.58.10:8780/placement", "interface": "admin", "region": "RegionOne", "region_id": "RegionOne", "id": "c506ec79d9d84c998aed96016d7455a6"}, {"url": "https://192.168.57.10:8780/placement", "interface": "public", "region": "RegionOne", "region_id": "RegionOne", "id": "cafd3003431a46bcae999070b6bfc3c8"}, {"url": "http://192.168.58.10:8780/placement", "interface": "internal", "region": "RegionOne", "region_id": "RegionOne", "id": "db5680929a554ea0aed61fbae9ed8aea"}], "type": "placement", "id": "8c4dca00eb674cfc95088859856137a6", "name": "placement"}, {"endpoints": [], "type": "placement", "id": "9613a4668b66412ebc0ef64c6e1db5a7", "name": "placement"}, {"endpoints": [{"url": "http://192.168.58.10:8000/v1", "interface": "admin", "region": "RegionOne", "region_id": "RegionOne", "id": "7482d0ef0cf74b688a29396320d431fa"}, {"url": "https://192.168.57.10:8000/v1", "interface": "public", "region": "RegionOne", "region_id": "RegionOne", "id": "7aaf94678668416897739b73a61d5341"}, {"url": "http://192.168.58.10:8000/v1", "interface": "internal", "region": "RegionOne", "region_id": "RegionOne", "id": "f26ef470e3424f96aded52c54c878f7a"}], "type": "cloudformation", "id": "9a73e0738ad5444eb966ea8a2ee0539f", "name": "heat-cfn"}, {"endpoints": [], "type": "placement", "id": "ab1744af4a254807b1deadeb09f8e303", "name": "placement"}, {"endpoints": [{"url": "http://192.168.58.10:8774/v2.1/9d9b1dae67d34072a635666c281bb299", "interface": "admin", "region": "RegionOne", "region_id": "RegionOne", "id": "8137a4cb2af740ecada85404eeacb073"}, {"url": "https://192.168.57.10:8774/v2.1/9d9b1dae67d34072a635666c281bb299", "interface": "public", "region": "RegionOne", "region_id": "RegionOne", "id": "91fbf207c2f948c2be2db65c5af1601b"}, {"url": "http://192.168.58.10:8774/v2.1/9d9b1dae67d34072a635666c281bb299", "interface": "internal", "region": "RegionOne", "region_id": "RegionOne", "id": "d1695d1a5363450d8e126d8bb8f7beff"}], "type": "compute", "id": "b84a38b5696b46fa8d807f53f527b090", "name": "nova"}, {"endpoints": [{"url": "http://192.168.58.10:8776/v1/9d9b1dae67d34072a635666c281bb299", "interface": "internal", "region": "RegionOne", "region_id": "RegionOne", "id": "87455ec40f6f4687b290e38dec537bc7"}, {"url": "https://192.168.57.10:8776/v1/9d9b1dae67d34072a635666c281bb299", "interface": "public", "region": "RegionOne", "region_id": "RegionOne", "id": "ae70ea5ff2224eff82add14f979d48e9"}, {"url": "http://192.168.58.10:8776/v1/9d9b1dae67d34072a635666c281bb299", "interface": "admin", "region": "RegionOne", "region_id": "RegionOne", "id": "d74591d7af0e4ec28ad8f55421b31581"}], "type": "volume", "id": "ca766c8722324029a5d505dbb08ae809", "name": "cinder"}, {"endpoints": [{"url": "http://192.168.58.10:9292", "interface": "internal", "region": "RegionOne", "region_id": "RegionOne", "id": "2f0444fbe8b24834aa7969082e88fa72"}, {"url": "http://192.168.58.10:9292", "interface": "admin", "region": "RegionOne", "region_id": "RegionOne", "id": "be3125d6deed48aa990ddb9e641fbf00"}, {"url": "https://192.168.57.10:9292", "interface": "public", "region": "RegionOne", "region_id": "RegionOne", "id": "ea00f44bdba34dd2b0ce814761505ce1"}], "type": "image", "id": "e2e60f14453748419224e26a23497ae1", "name": "glance"}], "user": {"domain": {"id": "default", "name": "Default"}, "password_expires_at": null, "name": "admin", "id": "72fb83d653ad41ada2cb17506dc1371c"}, "audit_ids": ["Uml845wZQUu0lgxqrAWryA"], "issued_at": "2017-03-23T00:15:42.000000Z"}}
- run(Namespace(checksum=None, columns=[], container_format=u'bare', copy_from=None, disk_format=u'qcow2', file=u'cirros-0.3.5-x86_64-disk.img', force=False, formatter='table', id=None, location=None, max_width=0, min_disk=None, min_ram=None, name=u'cirros', noindent=False, owner=None, prefix='', print_empty=False, private=False, project=None, project_domain=None, properties=None, protected=False, public=True, size=None, store=None, tags=None, unprotected=False, variables=[], volume=None))
- Instantiating identity client: <class 'keystoneclient.v3.client.Client'>
- Instantiating image client: <class 'glanceclient.v2.client.Client'>
- Making authentication request to http://192.168.58.10:5000/v3/auth/tokens
- http://192.168.58.10:5000 "POST /v3/auth/tokens HTTP/1.1" 201 7121
- {"token": {"is_domain": false, "methods": ["password"], "roles": [{"id": "4549e640afd14980bebc4f8c42f4827a", "name": "admin"}, {"id": "1858bd526da64a8c9b35688b6621f95c", "name": "heat_stack_owner"}], "expires_at": "2017-03-23T12:15:42.000000Z", "project": {"domain": {"id": "default", "name": "Default"}, "id": "9d9b1dae67d34072a635666c281bb299", "name": "admin"}, "catalog": [{"endpoints": [{"url": "http://192.168.58.10:35357/v3", "interface": "admin", "region": "RegionOne", "region_id": "RegionOne", "id": "22a22a078e7d4eafad30c65140b37c5b"}, {"url": "https://192.168.57.10:5000/v3", "interface": "public", "region": "RegionOne", "region_id": "RegionOne", "id": "3a931353d8c8406cacd7dffecb89a4a0"}, {"url": "http://192.168.58.10:5000/v3", "interface": "internal", "region": "RegionOne", "region_id": "RegionOne", "id": "61e08ba8a2d44b3d82bd8bb26dbfdaae"}], "type": "identity", "id": "2ea3b419ca6e4f40bf929ac71e55ed75", "name": "keystone"}, {"endpoints": [{"url": "http://192.168.58.10:8776/v2/9d9b1dae67d34072a635666c281bb299", "interface": "internal", "region": "RegionOne", "region_id": "RegionOne", "id": "837c617799e244fc9589b5412bf284ea"}, {"url": "http://192.168.58.10:8776/v2/9d9b1dae67d34072a635666c281bb299", "interface": "admin", "region": "RegionOne", "region_id": "RegionOne", "id": "d42df9cb2845437280d62c7d518f4bdf"}, {"url": "https://192.168.57.10:8776/v2/9d9b1dae67d34072a635666c281bb299", "interface": "public", "region": "RegionOne", "region_id": "RegionOne", "id": "e3191324fac041b099ff1a1dc5708e41"}], "type": "volumev2", "id": "3209055629c643d28a08c10b99a7bf9b", "name": "cinderv2"}, {"endpoints": [{"url": "https://192.168.57.10:9696", "interface": "public", "region": "RegionOne", "region_id": "RegionOne", "id": "370ccc76ac8b40499b9ddf1401002ef4"}, {"url": "http://192.168.58.10:9696", "interface": "admin", "region": "RegionOne", "region_id": "RegionOne", "id": "65667b856eff4b12af3727c49f1c154a"}, {"url": "http://192.168.58.10:9696", "interface": "internal", "region": "RegionOne", "region_id": "RegionOne", "id": "a134771d0b084f29b67f55d19af69cd5"}], "type": "network", "id": "4adac5a0810b45488f36461f0fae8acb", "name": "neutron"}, {"endpoints": [{"url": "http://192.168.58.10:8004/v1/9d9b1dae67d34072a635666c281bb299", "interface": "admin", "region": "RegionOne", "region_id": "RegionOne", "id": "374eb7185698401aa3c5475f0f7d0819"}, {"url": "http://192.168.58.10:8004/v1/9d9b1dae67d34072a635666c281bb299", "interface": "internal", "region": "RegionOne", "region_id": "RegionOne", "id": "53a9fbe49cb44388ac5c4e5064b0b9ac"}, {"url": "https://192.168.57.10:8004/v1/9d9b1dae67d34072a635666c281bb299", "interface": "public", "region": "RegionOne", "region_id": "RegionOne", "id": "b094f0d7721949cb9655a60104671ca4"}], "type": "orchestration", "id": "7eae5c19fd6b45d5931743019e9f621e", "name": "heat"}, {"endpoints": [{"url": "http://192.168.58.10:8780/placement", "interface": "internal", "region": "RegionOne", "region_id": "RegionOne", "id": "008e6f0bef0147d689b5257d4296dce8"}, {"url": "http://192.168.58.10:8780/placement", "interface": "admin", "region": "RegionOne", "region_id": "RegionOne", "id": "140b0b6b0f9d4d409e0d8b56d0f976b7"}, {"url": "https://192.168.57.10:8780/placement", "interface": "public", "region": "RegionOne", "region_id": "RegionOne", "id": "14c5ff4818794a389cdf4b58895ce836"}, {"url": "http://192.168.58.10:8780/placement", "interface": "admin", "region": "RegionOne", "region_id": "RegionOne", "id": "1c10227a17ff47f3b61ad9283c4b257f"}, {"url": "http://192.168.58.10:8780/placement", "interface": "internal", "region": "RegionOne", "region_id": "RegionOne", "id": "a0836ae4d74141c39903fa6ce5e2bc8e"}, {"url": "http://192.168.58.10:8780/placement", "interface": "admin", "region": "RegionOne", "region_id": "RegionOne", "id": "c506ec79d9d84c998aed96016d7455a6"}, {"url": "https://192.168.57.10:8780/placement", "interface": "public", "region": "RegionOne", "region_id": "RegionOne", "id": "cafd3003431a46bcae999070b6bfc3c8"}, {"url": "http://192.168.58.10:8780/placement", "interface": "internal", "region": "RegionOne", "region_id": "RegionOne", "id": "db5680929a554ea0aed61fbae9ed8aea"}], "type": "placement", "id": "8c4dca00eb674cfc95088859856137a6", "name": "placement"}, {"endpoints": [], "type": "placement", "id": "9613a4668b66412ebc0ef64c6e1db5a7", "name": "placement"}, {"endpoints": [{"url": "http://192.168.58.10:8000/v1", "interface": "admin", "region": "RegionOne", "region_id": "RegionOne", "id": "7482d0ef0cf74b688a29396320d431fa"}, {"url": "https://192.168.57.10:8000/v1", "interface": "public", "region": "RegionOne", "region_id": "RegionOne", "id": "7aaf94678668416897739b73a61d5341"}, {"url": "http://192.168.58.10:8000/v1", "interface": "internal", "region": "RegionOne", "region_id": "RegionOne", "id": "f26ef470e3424f96aded52c54c878f7a"}], "type": "cloudformation", "id": "9a73e0738ad5444eb966ea8a2ee0539f", "name": "heat-cfn"}, {"endpoints": [], "type": "placement", "id": "ab1744af4a254807b1deadeb09f8e303", "name": "placement"}, {"endpoints": [{"url": "http://192.168.58.10:8774/v2.1/9d9b1dae67d34072a635666c281bb299", "interface": "admin", "region": "RegionOne", "region_id": "RegionOne", "id": "8137a4cb2af740ecada85404eeacb073"}, {"url": "https://192.168.57.10:8774/v2.1/9d9b1dae67d34072a635666c281bb299", "interface": "public", "region": "RegionOne", "region_id": "RegionOne", "id": "91fbf207c2f948c2be2db65c5af1601b"}, {"url": "http://192.168.58.10:8774/v2.1/9d9b1dae67d34072a635666c281bb299", "interface": "internal", "region": "RegionOne", "region_id": "RegionOne", "id": "d1695d1a5363450d8e126d8bb8f7beff"}], "type": "compute", "id": "b84a38b5696b46fa8d807f53f527b090", "name": "nova"}, {"endpoints": [{"url": "http://192.168.58.10:8776/v1/9d9b1dae67d34072a635666c281bb299", "interface": "internal", "region": "RegionOne", "region_id": "RegionOne", "id": "87455ec40f6f4687b290e38dec537bc7"}, {"url": "https://192.168.57.10:8776/v1/9d9b1dae67d34072a635666c281bb299", "interface": "public", "region": "RegionOne", "region_id": "RegionOne", "id": "ae70ea5ff2224eff82add14f979d48e9"}, {"url": "http://192.168.58.10:8776/v1/9d9b1dae67d34072a635666c281bb299", "interface": "admin", "region": "RegionOne", "region_id": "RegionOne", "id": "d74591d7af0e4ec28ad8f55421b31581"}], "type": "volume", "id": "ca766c8722324029a5d505dbb08ae809", "name": "cinder"}, {"endpoints": [{"url": "http://192.168.58.10:9292", "interface": "internal", "region": "RegionOne", "region_id": "RegionOne", "id": "2f0444fbe8b24834aa7969082e88fa72"}, {"url": "http://192.168.58.10:9292", "interface": "admin", "region": "RegionOne", "region_id": "RegionOne", "id": "be3125d6deed48aa990ddb9e641fbf00"}, {"url": "https://192.168.57.10:9292", "interface": "public", "region": "RegionOne", "region_id": "RegionOne", "id": "ea00f44bdba34dd2b0ce814761505ce1"}], "type": "image", "id": "e2e60f14453748419224e26a23497ae1", "name": "glance"}], "user": {"domain": {"id": "default", "name": "Default"}, "password_expires_at": null, "name": "admin", "id": "72fb83d653ad41ada2cb17506dc1371c"}, "audit_ids": ["06vh8S73S5eLmttT7sQF5Q"], "issued_at": "2017-03-23T00:15:42.000000Z"}}
- Instantiating image api: <class 'openstackclient.api.image_v2.APIv2'>
- curl -g -i -X GET -H 'Accept-Encoding: gzip, deflate' -H 'Accept: */*' -H 'User-Agent: python-glanceclient' -H 'Connection: keep-alive' -H 'X-Auth-Token: {SHA1}8aae365d863f318a7c23c57e935f67c97372bffc' -H 'Content-Type: application/octet-stream' http://192.168.58.10:9292/v2/schemas/image
- Starting new HTTP connection (1): 192.168.58.10
- http://192.168.58.10:9292 "GET /v2/schemas/image HTTP/1.1" 200 4068
- GET call to glance-api for http://192.168.58.10:9292/v2/schemas/image used request id req-7ddc78a2-3265-4bc4-809c-aedcfb9bf023
- HTTP/1.1 200 OK
- Content-Type: application/json; charset=UTF-8
- Content-Length: 4068
- X-Openstack-Request-Id: req-7ddc78a2-3265-4bc4-809c-aedcfb9bf023
- Date: Thu, 23 Mar 2017 00:15:43 GMT
- {"additionalProperties": {"type": "string"}, "name": "image", "links": [{"href": "{self}", "rel": "self"}, {"href": "{file}", "rel": "enclosure"}, {"href": "{schema}", "rel": "describedby"}], "properties": {"status": {"readOnly": true, "enum": ["queued", "saving", "active", "killed", "deleted", "pending_delete", "deactivated"], "type": "string", "description": "Status of the image"}, "tags": {"items": {"type": "string", "maxLength": 255}, "type": "array", "description": "List of strings related to the image"}, "kernel_id": {"pattern": "^([0-9a-fA-F]){8}-([0-9a-fA-F]){4}-([0-9a-fA-F]){4}-([0-9a-fA-F]){4}-([0-9a-fA-F]){12}$", "type": ["null", "string"], "description": "ID of image stored in Glance that should be used as the kernel when booting an AMI-style image.", "is_base": false}, "container_format": {"enum": [null, "ami", "ari", "aki", "bare", "ovf", "ova", "docker"], "type": ["null", "string"], "description": "Format of the container"}, "min_ram": {"type": "integer", "description": "Amount of ram (in MB) required to boot image."}, "ramdisk_id": {"pattern": "^([0-9a-fA-F]){8}-([0-9a-fA-F]){4}-([0-9a-fA-F]){4}-([0-9a-fA-F]){4}-([0-9a-fA-F]){12}$", "type": ["null", "string"], "description": "ID of image stored in Glance that should be used as the ramdisk when booting an AMI-style image.", "is_base": false}, "locations": {"items": {"required": ["url", "metadata"], "type": "object", "properties": {"url": {"type": "string", "maxLength": 255}, "metadata": {"type": "object"}}}, "type": "array", "description": "A set of URLs to access the image file kept in external store"}, "visibility": {"enum": ["community", "public", "private", "shared"], "type": "string", "description": "Scope of image accessibility"}, "updated_at": {"readOnly": true, "type": "string", "description": "Date and time of the last image modification"}, "owner": {"type": ["null", "string"], "description": "Owner of the image", "maxLength": 255}, "file": {"readOnly": true, "type": "string", "description": "An image file url"}, "min_disk": {"type": "integer", "description": "Amount of disk space (in GB) required to boot image."}, "virtual_size": {"readOnly": true, "type": ["null", "integer"], "description": "Virtual size of image in bytes"}, "id": {"pattern": "^([0-9a-fA-F]){8}-([0-9a-fA-F]){4}-([0-9a-fA-F]){4}-([0-9a-fA-F]){4}-([0-9a-fA-F]){12}$", "type": "string", "description": "An identifier for the image"}, "size": {"readOnly": true, "type": ["null", "integer"], "description": "Size of image file in bytes"}, "instance_uuid": {"type": "string", "description": "ID of instance used to create this image.", "is_base": false}, "os_distro": {"type": "string", "description": "Common name of operating system distribution as specified in http://docs.openstack.org/trunk/openstack-compute/admin/content/adding-images.html", "is_base": false}, "name": {"type": ["null", "string"], "description": "Descriptive name for the image", "maxLength": 255}, "checksum": {"readOnly": true, "type": ["null", "string"], "description": "md5 hash of image contents.", "maxLength": 32}, "created_at": {"readOnly": true, "type": "string", "description": "Date and time of image registration"}, "disk_format": {"enum": [null, "ami", "ari", "aki", "vhd", "vhdx", "vmdk", "raw", "qcow2", "vdi", "iso", "ploop"], "type": ["null", "string"], "description": "Format of the disk"}, "os_version": {"type": "string", "description": "Operating system version as specified by the distributor", "is_base": false}, "protected": {"type": "boolean", "description": "If true, image will not be deletable."}, "architecture": {"type": "string", "description": "Operating system architecture as specified in http://docs.openstack.org/trunk/openstack-compute/admin/content/adding-images.html", "is_base": false}, "direct_url": {"readOnly": true, "type": "string", "description": "URL to access the image file kept in external store"}, "self": {"readOnly": true, "type": "string", "description": "An image self url"}, "schema": {"readOnly": true, "type": "string", "description": "An image schema url"}}}
- curl -g -i -X POST -H 'Accept-Encoding: gzip, deflate' -H 'Accept: */*' -H 'User-Agent: python-glanceclient' -H 'Connection: keep-alive' -H 'X-Auth-Token: {SHA1}8aae365d863f318a7c23c57e935f67c97372bffc' -H 'Content-Type: application/json' -d '{"container_format": "bare", "disk_format": "qcow2", "name": "cirros", "visibility": "public"}' http://192.168.58.10:9292/v2/images
- http://192.168.58.10:9292 "POST /v2/images HTTP/1.1" 201 550
- POST call to glance-api for http://192.168.58.10:9292/v2/images used request id req-2ec94229-8324-49ae-a821-b231ab9cbb5c
- HTTP/1.1 201 Created
- Content-Length: 550
- Content-Type: application/json; charset=UTF-8
- Location: http://192.168.58.10:9292/v2/images/dfb5ae71-ac33-407c-8da9-b5441e7d4378
- X-Openstack-Request-Id: req-2ec94229-8324-49ae-a821-b231ab9cbb5c
- Date: Thu, 23 Mar 2017 00:15:52 GMT
- {"status": "queued", "name": "cirros", "tags": [], "container_format": "bare", "created_at": "2017-03-23T00:15:52Z", "size": null, "disk_format": "qcow2", "updated_at": "2017-03-23T00:15:52Z", "visibility": "public", "self": "/v2/images/dfb5ae71-ac33-407c-8da9-b5441e7d4378", "min_disk": 0, "protected": false, "id": "dfb5ae71-ac33-407c-8da9-b5441e7d4378", "file": "/v2/images/dfb5ae71-ac33-407c-8da9-b5441e7d4378/file", "checksum": null, "owner": "9d9b1dae67d34072a635666c281bb299", "virtual_size": null, "min_ram": 0, "schema": "/v2/schemas/image"}
- curl -g -i -X PUT -H 'Accept-Encoding: gzip, deflate' -H 'Accept: */*' -H 'User-Agent: python-glanceclient' -H 'Connection: keep-alive' -H 'X-Auth-Token: {SHA1}8aae365d863f318a7c23c57e935f67c97372bffc' -H 'Content-Type: application/octet-stream' http://192.168.58.10:9292/v2/images/dfb5ae71-ac33-407c-8da9-b5441e7d4378/file
- curl -g -i -X DELETE -H 'Accept-Encoding: gzip, deflate' -H 'Accept: */*' -H 'User-Agent: python-glanceclient' -H 'Connection: keep-alive' -H 'X-Auth-Token: {SHA1}8aae365d863f318a7c23c57e935f67c97372bffc' -H 'Content-Type: application/octet-stream' http://192.168.58.10:9292/v2/images/dfb5ae71-ac33-407c-8da9-b5441e7d4378
- Starting new HTTP connection (2): 192.168.58.10
- http://192.168.58.10:9292 "DELETE /v2/images/dfb5ae71-ac33-407c-8da9-b5441e7d4378 HTTP/1.1" 204 0
- DELETE call to glance-api for http://192.168.58.10:9292/v2/images/dfb5ae71-ac33-407c-8da9-b5441e7d4378 used request id req-f829ec4a-b0ff-4f28-8ed5-10d79e465fc6
- HTTP/1.1 204 No Content
- Content-Type: text/html; charset=UTF-8
- Content-Length: 0
- X-Openstack-Request-Id: req-f829ec4a-b0ff-4f28-8ed5-10d79e465fc6
- Date: Thu, 23 Mar 2017 00:15:44 GMT
- Error finding address for http://192.168.58.10:9292/v2/images/dfb5ae71-ac33-407c-8da9-b5441e7d4378/file: [Errno 32] Broken pipe
- Traceback (most recent call last):
- File "/usr/local/lib/python2.7/dist-packages/cliff/app.py", line 400, 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 112, in run
- column_names, data = self.take_action(parsed_args)
- File "/usr/local/lib/python2.7/dist-packages/openstackclient/image/v2/image.py", line 349, in take_action
- image_client.images.upload(image.id, fp)
- File "/usr/local/lib/python2.7/dist-packages/glanceclient/common/utils.py", line 535, in inner
- return RequestIdProxy(wrapped(*args, **kwargs))
- File "/usr/local/lib/python2.7/dist-packages/glanceclient/v2/images.py", line 231, in upload
- resp, body = self.http_client.put(url, headers=hdrs, data=body)
- File "/usr/local/lib/python2.7/dist-packages/glanceclient/common/http.py", line 291, in put
- return self._request('PUT', url, **kwargs)
- File "/usr/local/lib/python2.7/dist-packages/glanceclient/common/http.py", line 266, in _request
- raise exc.CommunicationError(message=message)
- CommunicationError: Error finding address for http://192.168.58.10:9292/v2/images/dfb5ae71-ac33-407c-8da9-b5441e7d4378/file: [Errno 32] Broken pipe
- clean_up CreateImage: Error finding address for http://192.168.58.10:9292/v2/images/dfb5ae71-ac33-407c-8da9-b5441e7d4378/file: [Errno 32] Broken pipe
- Traceback (most recent call last):
- File "/usr/local/lib/python2.7/dist-packages/osc_lib/shell.py", line 135, in run
- ret_val = super(OpenStackShell, self).run(argv)
- File "/usr/local/lib/python2.7/dist-packages/cliff/app.py", line 279, in run
- result = self.run_subcommand(remainder)
- File "/usr/local/lib/python2.7/dist-packages/osc_lib/shell.py", line 180, in run_subcommand
- ret_value = super(OpenStackShell, self).run_subcommand(argv)
- File "/usr/local/lib/python2.7/dist-packages/cliff/app.py", line 400, 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 112, in run
- column_names, data = self.take_action(parsed_args)
- File "/usr/local/lib/python2.7/dist-packages/openstackclient/image/v2/image.py", line 349, in take_action
- image_client.images.upload(image.id, fp)
- File "/usr/local/lib/python2.7/dist-packages/glanceclient/common/utils.py", line 535, in inner
- return RequestIdProxy(wrapped(*args, **kwargs))
- File "/usr/local/lib/python2.7/dist-packages/glanceclient/v2/images.py", line 231, in upload
- resp, body = self.http_client.put(url, headers=hdrs, data=body)
- File "/usr/local/lib/python2.7/dist-packages/glanceclient/common/http.py", line 291, in put
- return self._request('PUT', url, **kwargs)
- File "/usr/local/lib/python2.7/dist-packages/glanceclient/common/http.py", line 266, in _request
- raise exc.CommunicationError(message=message)
- CommunicationError: Error finding address for http://192.168.58.10:9292/v2/images/dfb5ae71-ac33-407c-8da9-b5441e7d4378/file: [Errno 32] Broken pipe
- END return value: 1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement