[stack@undercloud ~]$ bash overcloud-prep-images.sh + source /home/stack/stackrc ++ export OS_PASSWORD=yDTWkDxvAWEnWWCwpu2HCvNzq ++ OS_PASSWORD=yDTWkDxvAWEnWWCwpu2HCvNzq ++ export OS_AUTH_URL=http://192.168.23.44:5000/v2.0 ++ OS_AUTH_URL=http://192.168.23.44:5000/v2.0 ++ export OS_USERNAME=admin ++ OS_USERNAME=admin ++ export OS_TENANT_NAME=admin ++ OS_TENANT_NAME=admin ++ export COMPUTE_API_VERSION=1.1 ++ COMPUTE_API_VERSION=1.1 ++ export NOVA_VERSION=1.1 ++ NOVA_VERSION=1.1 ++ export OS_BAREMETAL_API_VERSION=1.15 ++ OS_BAREMETAL_API_VERSION=1.15 ++ export OS_NO_CACHE=True ++ OS_NO_CACHE=True ++ export OS_CLOUDNAME=undercloud ++ OS_CLOUDNAME=undercloud + openstack --debug overcloud image upload START with options: [u'--debug', u'overcloud', u'image', u'upload'] options: Namespace(access_key='', access_secret='***', access_token='***', access_token_endpoint='', access_token_type='', aodh_endpoint='', auth_type='', auth_url='http://192.168.23.44:5000/v2.0', 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='', glare_url='', identity_provider='', identity_provider_url='', insecure=None, inspector_api_version='1', inspector_url=None, interface='', key='', log_file=None, murano_packages_service='murano', murano_url='', old_profile=None, openid_scope='', os_alarming_api_version='2', os_application_catalog_api_version='1', os_baremetal_api_version='1.15', os_beta_command=False, 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_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_translator_api_version='1', os_tripleoclient_api_version='1', os_volume_api_version='', os_workflow_api_version='2', passcode='', password='***', profile=None, project_domain_id='', project_domain_name='', project_id='', project_name='admin', protocol='', redirect_uri='', region_name='', roles='', timing=False, token='***', trust_id='', url='', user='', user_domain_id='', user_domain_name='', user_id='', username='admin', verbose_level=3, verify=None) Auth plugin password selected auth_config_hook(): {'auth_type': 'password', 'beta_command': False, 'tripleoclient_api_version': '1', u'compute_api_version': u'2', 'key': None, u'database_api_version': '1', 'metrics_api_version': '1', 'data_processing_api_version': '1.1', 'inspector_api_version': '1', 'auth_url': 'http://192.168.23.44:5000/v2.0', u'network_api_version': u'2', u'message': u'', u'image_format': u'qcow2', 'networks': [], u'image_api_version': u'2', 'verify': True, u'status': u'active', 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': '', 'api_timeout': None, u'baremetal_api_version': '1.15', 'queues_api_version': '2', 'auth': {'project_name': 'admin'}, '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': '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': u'2.0', 'workflow_api_version': '2', u'volume_api_version': u'2', 'cert': None, u'secgroup_source': u'neutron', 'translator_api_version': '1', 'alarming_api_version': '2', 'debug': True, u'interface': None, 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, 'tripleoclient_api_version': '1', u'compute_api_version': u'2', 'key': None, u'database_api_version': '1', 'metrics_api_version': '1', 'data_processing_api_version': '1.1', 'inspector_api_version': '1', 'auth_url': 'http://192.168.23.44:5000/v2.0', u'network_api_version': u'2', u'message': u'', u'image_format': u'qcow2', 'networks': [], u'image_api_version': u'2', 'verify': True, u'status': u'active', 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': '', 'api_timeout': None, u'baremetal_api_version': '1.15', 'queues_api_version': '2', 'auth': {'project_name': 'admin'}, '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': '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': u'2.0', 'workflow_api_version': '2', u'volume_api_version': u'2', 'cert': None, u'secgroup_source': u'neutron', 'translator_api_version': '1', 'alarming_api_version': '2', 'debug': True, u'interface': None, u'disable_vendor_agent': {}} compute API version 2, cmd group openstack.compute.v2 network API version 2, cmd group openstack.network.v2 image API version 2, cmd group openstack.image.v2 volume API version 2, cmd group openstack.volume.v2 identity API version 2.0, cmd group openstack.identity.v2 object_store API version 1, cmd group openstack.object_store.v1 container_infra API version 1, cmd group openstack.container_infra.v1 data_processing API version 1.1, cmd group openstack.data_processing.v1 application_catalog API version 1, cmd group openstack.application_catalog.v1 neutronclient API version 2, cmd group openstack.neutronclient.v2 messaging API version 2, cmd group openstack.messaging.v2 baremetal API version 1.15, cmd group openstack.baremetal.v1 metric API version 1, cmd group openstack.metric.v1 key_manager API version 1, cmd group openstack.key_manager.v1 database API version 1, cmd group openstack.database.v1 dns API version 2, cmd group openstack.dns.v2 translator API version 1, cmd group openstack.translator.v1 alarming API version 2, cmd group openstack.alarming.v2 workflow_engine API version 2, cmd group openstack.workflow_engine.v2 orchestration API version 1, cmd group openstack.orchestration.v1 baremetal_introspection API version 1, cmd group openstack.baremetal_introspection.v1 tripleoclient API version 1, cmd group openstack.tripleoclient.v1 Auth plugin password selected auth_config_hook(): {'auth_type': 'password', 'beta_command': False, 'tripleoclient_api_version': '1', u'compute_api_version': u'2', 'key': None, u'database_api_version': '1', 'metrics_api_version': '1', 'data_processing_api_version': '1.1', 'inspector_api_version': '1', 'auth_url': 'http://192.168.23.44:5000/v2.0', u'network_api_version': u'2', u'message': u'', u'image_format': u'qcow2', 'networks': [], u'image_api_version': u'2', 'verify': True, u'status': u'active', 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': '', 'api_timeout': None, u'baremetal_api_version': '1.15', 'queues_api_version': '2', 'auth': {'project_name': 'admin'}, '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': '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': u'2.0', 'workflow_api_version': '2', u'volume_api_version': u'2', 'cert': None, u'secgroup_source': u'neutron', 'translator_api_version': '1', 'alarming_api_version': '2', 'debug': True, u'interface': None, u'disable_vendor_agent': {}} Auth plugin password selected auth_config_hook(): {'auth_type': 'password', 'beta_command': False, 'tripleoclient_api_version': '1', u'compute_api_version': u'2', 'key': None, u'database_api_version': '1', 'metrics_api_version': '1', 'data_processing_api_version': '1.1', 'inspector_api_version': '1', 'auth_url': 'http://192.168.23.44:5000/v2.0', u'network_api_version': u'2', u'message': u'', u'image_format': u'qcow2', 'networks': [], u'image_api_version': u'2', 'verify': True, u'status': u'active', 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': '', 'api_timeout': None, u'baremetal_api_version': '1.15', 'queues_api_version': '2', 'auth': {'project_name': 'admin'}, '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': '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': u'2.0', 'workflow_api_version': '2', u'volume_api_version': u'2', 'cert': None, u'secgroup_source': u'neutron', 'translator_api_version': '1', 'alarming_api_version': '2', 'debug': True, u'interface': None, u'disable_vendor_agent': {}} command: overcloud image upload -> tripleoclient.v1.overcloud_image.UploadOvercloudImage Auth plugin password selected auth_config_hook(): {'auth_type': 'password', 'beta_command': False, 'tripleoclient_api_version': '1', u'compute_api_version': u'2', 'key': None, u'database_api_version': '1', 'metrics_api_version': '1', 'data_processing_api_version': '1.1', 'inspector_api_version': '1', 'auth_url': 'http://192.168.23.44:5000/v2.0', u'network_api_version': u'2', u'message': u'', u'image_format': u'qcow2', 'networks': [], u'image_api_version': u'2', 'verify': True, u'status': u'active', 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': '', 'api_timeout': None, u'baremetal_api_version': '1.15', 'queues_api_version': '2', 'auth': {'project_name': 'admin'}, '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': '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': u'2.0', 'workflow_api_version': '2', u'volume_api_version': u'2', 'cert': None, u'secgroup_source': u'neutron', 'translator_api_version': '1', 'alarming_api_version': '2', 'debug': True, u'interface': None, u'disable_vendor_agent': {}} Using auth plugin: password Using parameters {'username': 'admin', 'password': '***', 'project_name': 'admin', 'auth_url': 'http://192.168.23.44:5000/v2.0'} Get auth_ref REQ: curl -g -i -X GET http://192.168.23.44:5000/v2.0 -H "Accept: application/json" -H "User-Agent: osc-lib/1.3.0 keystoneauth1/2.18.0 python-requests/2.11.1 CPython/2.7.5" Starting new HTTP connection (1): 192.168.23.44 "GET /v2.0 HTTP/1.1" 200 233 RESP: [200] Date: Thu, 02 Mar 2017 00:10:38 GMT Server: Apache Vary: X-Auth-Token,Accept-Encoding x-openstack-request-id: req-a348c366-3118-482c-a07e-8bc3bb19abd0 Content-Encoding: gzip Content-Length: 233 Connection: close Content-Type: application/json RESP BODY: {"version": {"status": "deprecated", "updated": "2016-08-04T00:00:00Z", "media-types": [{"base": "application/json", "type": "application/vnd.openstack.identity-v2.0+json"}], "id": "v2.0", "links": [{"href": "http://192.168.23.44:5000/v2.0/", "rel": "self"}, {"href": "https://docs.openstack.org/", "type": "text/html", "rel": "describedby"}]}} GET call to None for http://192.168.23.44:5000/v2.0 used request id req-a348c366-3118-482c-a07e-8bc3bb19abd0 Making authentication request to http://192.168.23.44:5000/v2.0/tokens Resetting dropped connection: 192.168.23.44 "POST /v2.0/tokens HTTP/1.1" 200 1052 run(Namespace(http_boot='/httpboot', image_path='./', os_image='overcloud-full.qcow2', update_existing=False, whole_disk=False)) take_action(Namespace(http_boot='/httpboot', image_path='./', os_image='overcloud-full.qcow2', update_existing=False, whole_disk=False)) Instantiating image client: Making authentication request to http://192.168.23.44:5000/v2.0/tokens Resetting dropped connection: 192.168.23.44 "POST /v2.0/tokens HTTP/1.1" 200 1053 Instantiating image api: checking if image files exist uploading partition overcloud images to glance 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}3e3a806e089c13617ce25a1546b49f95d7d06dfb' -H 'Content-Type: application/octet-stream' http://192.168.23.44:9292/v2/images/overcloud-full-vmlinuz Starting new HTTP connection (1): 192.168.23.44 "GET /v2/images/overcloud-full-vmlinuz HTTP/1.1" 404 65 GET call to glance-api for http://192.168.23.44:9292/v2/images/overcloud-full-vmlinuz used request id req-905c9cf5-7738-4390-b017-0914074f66c1 Request returned failure status 404. 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}3e3a806e089c13617ce25a1546b49f95d7d06dfb' -H 'Content-Type: application/octet-stream' http://192.168.23.44:9292/v2/images/overcloud-full-vmlinuz "GET /v2/images/overcloud-full-vmlinuz HTTP/1.1" 404 65 GET call to glance-api for http://192.168.23.44:9292/v2/images/overcloud-full-vmlinuz used request id req-3e35dcf5-fd7c-4c35-947b-1c7c0b6375d9 Request returned failure status 404. 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}3e3a806e089c13617ce25a1546b49f95d7d06dfb' -H 'Content-Type: application/octet-stream' http://192.168.23.44:9292/v2/images?limit=20 "GET /v2/images?limit=20 HTTP/1.1" 200 78 GET call to glance-api for http://192.168.23.44:9292/v2/images?limit=20 used request id req-0a482755-5ed1-48c4-91ce-4d2a577463de HTTP/1.1 200 OK Content-Length: 78 Content-Type: application/json; charset=UTF-8 X-Openstack-Request-Id: req-0a482755-5ed1-48c4-91ce-4d2a577463de Date: Thu, 02 Mar 2017 00:10:38 GMT Connection: keep-alive {"images": [], "schema": "/v2/schemas/images", "first": "/v2/images?limit=20"} Image "overcloud-full-vmlinuz" does not exists, no problem. 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}3e3a806e089c13617ce25a1546b49f95d7d06dfb' -H 'Content-Type: application/octet-stream' http://192.168.23.44:9292/v2/schemas/image "GET /v2/schemas/image HTTP/1.1" 200 4169 GET call to glance-api for http://192.168.23.44:9292/v2/schemas/image used request id req-a3737d82-e9ca-476c-a09f-42b37641811d HTTP/1.1 200 OK Content-Type: application/json; charset=UTF-8 Content-Length: 4169 X-Openstack-Request-Id: req-a3737d82-e9ca-476c-a09f-42b37641811d Date: Thu, 02 Mar 2017 00:10:38 GMT Connection: keep-alive {"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": "Metadata which can be used to record which instance this image is associated with. (Informational only, does not create an instance snapshot.)", "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}3e3a806e089c13617ce25a1546b49f95d7d06dfb' -H 'Content-Type: application/json' -d '{"container_format": "bare", "disk_format": "aki", "name": "overcloud-full-vmlinuz", "visibility": "public"}' http://192.168.23.44:9292/v2/images "POST /v2/images HTTP/1.1" 201 564 POST call to glance-api for http://192.168.23.44:9292/v2/images used request id req-f2668d2b-396a-48b2-9c0d-73ee0657963d HTTP/1.1 201 Created Content-Length: 564 Content-Type: application/json; charset=UTF-8 Location: http://192.168.23.44:9292/v2/images/410d45da-490b-4d1a-a241-deb0d4764a8e X-Openstack-Request-Id: req-f2668d2b-396a-48b2-9c0d-73ee0657963d Date: Thu, 02 Mar 2017 00:10:38 GMT Connection: keep-alive {"status": "queued", "name": "overcloud-full-vmlinuz", "tags": [], "container_format": "bare", "created_at": "2017-03-02T00:10:38Z", "size": null, "disk_format": "aki", "updated_at": "2017-03-02T00:10:38Z", "visibility": "public", "self": "/v2/images/410d45da-490b-4d1a-a241-deb0d4764a8e", "min_disk": 0, "protected": false, "id": "410d45da-490b-4d1a-a241-deb0d4764a8e", "file": "/v2/images/410d45da-490b-4d1a-a241-deb0d4764a8e/file", "checksum": null, "owner": "9cd7eac8310e4a0d978dcd2351cdaa16", "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}3e3a806e089c13617ce25a1546b49f95d7d06dfb' -H 'Content-Type: application/octet-stream' http://192.168.23.44:9292/v2/images/410d45da-490b-4d1a-a241-deb0d4764a8e/file PUT call to glance-api for http://192.168.23.44:9292/v2/images/410d45da-490b-4d1a-a241-deb0d4764a8e/file used request id req-780b69a4-4c34-460c-ab4a-680d1ec815db HTTP/1.1 204 No Content Content-Type: text/html; charset=UTF-8 Content-Length: 0 X-Openstack-Request-Id: req-780b69a4-4c34-460c-ab4a-680d1ec815db Date: Thu, 02 Mar 2017 00:10:39 GMT Connection: keep-alive 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}3e3a806e089c13617ce25a1546b49f95d7d06dfb' -H 'Content-Type: application/octet-stream' http://192.168.23.44:9292/v2/images/410d45da-490b-4d1a-a241-deb0d4764a8e "GET /v2/images/410d45da-490b-4d1a-a241-deb0d4764a8e HTTP/1.1" 200 678 GET call to glance-api for http://192.168.23.44:9292/v2/images/410d45da-490b-4d1a-a241-deb0d4764a8e used request id req-db03b029-8b93-467f-a416-9614a85cb462 HTTP/1.1 200 OK Content-Length: 678 Content-Type: application/json; charset=UTF-8 X-Openstack-Request-Id: req-db03b029-8b93-467f-a416-9614a85cb462 Date: Thu, 02 Mar 2017 00:10:39 GMT Connection: keep-alive {"status": "active", "virtual_size": null, "name": "overcloud-full-vmlinuz", "tags": [], "container_format": "bare", "created_at": "2017-03-02T00:10:38Z", "size": 5392752, "disk_format": "aki", "updated_at": "2017-03-02T00:10:39Z", "visibility": "public", "self": "/v2/images/410d45da-490b-4d1a-a241-deb0d4764a8e", "min_disk": 0, "protected": false, "id": "410d45da-490b-4d1a-a241-deb0d4764a8e", "file": "/v2/images/410d45da-490b-4d1a-a241-deb0d4764a8e/file", "checksum": "62e4eb02d58df2a17dfa3342ed212784", "owner": "9cd7eac8310e4a0d978dcd2351cdaa16", "direct_url": "swift+config://ref1/glance/410d45da-490b-4d1a-a241-deb0d4764a8e", "min_ram": 0, "schema": "/v2/schemas/image"} 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}3e3a806e089c13617ce25a1546b49f95d7d06dfb' -H 'Content-Type: application/octet-stream' http://192.168.23.44:9292/v2/schemas/image "GET /v2/schemas/image HTTP/1.1" 200 4169 GET call to glance-api for http://192.168.23.44:9292/v2/schemas/image used request id req-e3760535-7dcd-4ba5-b8f7-b10afb995e41 HTTP/1.1 200 OK Content-Type: application/json; charset=UTF-8 Content-Length: 4169 X-Openstack-Request-Id: req-e3760535-7dcd-4ba5-b8f7-b10afb995e41 Date: Thu, 02 Mar 2017 00:10:39 GMT Connection: keep-alive {"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": "Metadata which can be used to record which instance this image is associated with. (Informational only, does not create an instance snapshot.)", "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"}}} Image "overcloud-full-vmlinuz" was uploaded. +--------------------------------------+------------------------+-------------+---------+--------+ | ID | Name | Disk Format | Size | Status | +--------------------------------------+------------------------+-------------+---------+--------+ | 410d45da-490b-4d1a-a241-deb0d4764a8e | overcloud-full-vmlinuz | aki | 5392752 | active | +--------------------------------------+------------------------+-------------+---------+--------+ 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}3e3a806e089c13617ce25a1546b49f95d7d06dfb' -H 'Content-Type: application/octet-stream' http://192.168.23.44:9292/v2/images/overcloud-full-initrd "GET /v2/images/overcloud-full-initrd HTTP/1.1" 404 64 GET call to glance-api for http://192.168.23.44:9292/v2/images/overcloud-full-initrd used request id req-a46c0051-d93c-49a1-93a7-8ccfbb528d8e Request returned failure status 404. 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}3e3a806e089c13617ce25a1546b49f95d7d06dfb' -H 'Content-Type: application/octet-stream' http://192.168.23.44:9292/v2/images/overcloud-full-initrd "GET /v2/images/overcloud-full-initrd HTTP/1.1" 404 64 GET call to glance-api for http://192.168.23.44:9292/v2/images/overcloud-full-initrd used request id req-cb46c8c6-1ebd-423f-a471-82a3d04862c3 Request returned failure status 404. 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}3e3a806e089c13617ce25a1546b49f95d7d06dfb' -H 'Content-Type: application/octet-stream' http://192.168.23.44:9292/v2/images?limit=20 "GET /v2/images?limit=20 HTTP/1.1" 200 756 GET call to glance-api for http://192.168.23.44:9292/v2/images?limit=20 used request id req-80397056-f155-4a37-9ca4-4db97e489cda HTTP/1.1 200 OK Content-Length: 756 Content-Type: application/json; charset=UTF-8 X-Openstack-Request-Id: req-80397056-f155-4a37-9ca4-4db97e489cda Date: Thu, 02 Mar 2017 00:10:39 GMT Connection: keep-alive {"images": [{"status": "active", "virtual_size": null, "name": "overcloud-full-vmlinuz", "tags": [], "container_format": "bare", "created_at": "2017-03-02T00:10:38Z", "size": 5392752, "disk_format": "aki", "updated_at": "2017-03-02T00:10:39Z", "visibility": "public", "self": "/v2/images/410d45da-490b-4d1a-a241-deb0d4764a8e", "min_disk": 0, "protected": false, "id": "410d45da-490b-4d1a-a241-deb0d4764a8e", "file": "/v2/images/410d45da-490b-4d1a-a241-deb0d4764a8e/file", "checksum": "62e4eb02d58df2a17dfa3342ed212784", "owner": "9cd7eac8310e4a0d978dcd2351cdaa16", "direct_url": "swift+config://ref1/glance/410d45da-490b-4d1a-a241-deb0d4764a8e", "min_ram": 0, "schema": "/v2/schemas/image"}], "schema": "/v2/schemas/images", "first": "/v2/images?limit=20"} Image "overcloud-full-initrd" does not exists, no problem. 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}3e3a806e089c13617ce25a1546b49f95d7d06dfb' -H 'Content-Type: application/json' -d '{"container_format": "bare", "disk_format": "ari", "name": "overcloud-full-initrd", "visibility": "public"}' http://192.168.23.44:9292/v2/images "POST /v2/images HTTP/1.1" 201 563 POST call to glance-api for http://192.168.23.44:9292/v2/images used request id req-6d7dcbd5-c085-4796-be08-a5a06e07099b HTTP/1.1 201 Created Content-Length: 563 Content-Type: application/json; charset=UTF-8 Location: http://192.168.23.44:9292/v2/images/82f0ed01-6d16-4eaf-a5ce-ef7a232b0063 X-Openstack-Request-Id: req-6d7dcbd5-c085-4796-be08-a5a06e07099b Date: Thu, 02 Mar 2017 00:10:39 GMT Connection: keep-alive {"status": "queued", "name": "overcloud-full-initrd", "tags": [], "container_format": "bare", "created_at": "2017-03-02T00:10:39Z", "size": null, "disk_format": "ari", "updated_at": "2017-03-02T00:10:39Z", "visibility": "public", "self": "/v2/images/82f0ed01-6d16-4eaf-a5ce-ef7a232b0063", "min_disk": 0, "protected": false, "id": "82f0ed01-6d16-4eaf-a5ce-ef7a232b0063", "file": "/v2/images/82f0ed01-6d16-4eaf-a5ce-ef7a232b0063/file", "checksum": null, "owner": "9cd7eac8310e4a0d978dcd2351cdaa16", "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}3e3a806e089c13617ce25a1546b49f95d7d06dfb' -H 'Content-Type: application/octet-stream' http://192.168.23.44:9292/v2/images/82f0ed01-6d16-4eaf-a5ce-ef7a232b0063/file PUT call to glance-api for http://192.168.23.44:9292/v2/images/82f0ed01-6d16-4eaf-a5ce-ef7a232b0063/file used request id req-ac87df9b-b722-48da-a12f-52efb42963eb HTTP/1.1 204 No Content Content-Type: text/html; charset=UTF-8 Content-Length: 0 X-Openstack-Request-Id: req-ac87df9b-b722-48da-a12f-52efb42963eb Date: Thu, 02 Mar 2017 00:10:42 GMT Connection: keep-alive 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}3e3a806e089c13617ce25a1546b49f95d7d06dfb' -H 'Content-Type: application/octet-stream' http://192.168.23.44:9292/v2/images/82f0ed01-6d16-4eaf-a5ce-ef7a232b0063 "GET /v2/images/82f0ed01-6d16-4eaf-a5ce-ef7a232b0063 HTTP/1.1" 200 678 GET call to glance-api for http://192.168.23.44:9292/v2/images/82f0ed01-6d16-4eaf-a5ce-ef7a232b0063 used request id req-14e7647d-42b0-42e1-9c21-90d76be39735 HTTP/1.1 200 OK Content-Length: 678 Content-Type: application/json; charset=UTF-8 X-Openstack-Request-Id: req-14e7647d-42b0-42e1-9c21-90d76be39735 Date: Thu, 02 Mar 2017 00:10:42 GMT Connection: keep-alive {"status": "active", "virtual_size": null, "name": "overcloud-full-initrd", "tags": [], "container_format": "bare", "created_at": "2017-03-02T00:10:39Z", "size": 46963090, "disk_format": "ari", "updated_at": "2017-03-02T00:10:42Z", "visibility": "public", "self": "/v2/images/82f0ed01-6d16-4eaf-a5ce-ef7a232b0063", "min_disk": 0, "protected": false, "id": "82f0ed01-6d16-4eaf-a5ce-ef7a232b0063", "file": "/v2/images/82f0ed01-6d16-4eaf-a5ce-ef7a232b0063/file", "checksum": "9b26b60c9e294d54792393a565b0d112", "owner": "9cd7eac8310e4a0d978dcd2351cdaa16", "direct_url": "swift+config://ref1/glance/82f0ed01-6d16-4eaf-a5ce-ef7a232b0063", "min_ram": 0, "schema": "/v2/schemas/image"} Image "overcloud-full-initrd" was uploaded. +--------------------------------------+-----------------------+-------------+----------+--------+ | ID | Name | Disk Format | Size | Status | +--------------------------------------+-----------------------+-------------+----------+--------+ | 82f0ed01-6d16-4eaf-a5ce-ef7a232b0063 | overcloud-full-initrd | ari | 46963090 | active | +--------------------------------------+-----------------------+-------------+----------+--------+ 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}3e3a806e089c13617ce25a1546b49f95d7d06dfb' -H 'Content-Type: application/octet-stream' http://192.168.23.44:9292/v2/images/overcloud-full "GET /v2/images/overcloud-full HTTP/1.1" 404 57 GET call to glance-api for http://192.168.23.44:9292/v2/images/overcloud-full used request id req-df52c3c7-de9c-4f78-82dc-8364ac94eb7b Request returned failure status 404. 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}3e3a806e089c13617ce25a1546b49f95d7d06dfb' -H 'Content-Type: application/octet-stream' http://192.168.23.44:9292/v2/images/overcloud-full "GET /v2/images/overcloud-full HTTP/1.1" 404 57 GET call to glance-api for http://192.168.23.44:9292/v2/images/overcloud-full used request id req-52ff97cf-7589-415b-9919-769f5e033072 Request returned failure status 404. 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}3e3a806e089c13617ce25a1546b49f95d7d06dfb' -H 'Content-Type: application/octet-stream' http://192.168.23.44:9292/v2/images?limit=20 "GET /v2/images?limit=20 HTTP/1.1" 200 1436 GET call to glance-api for http://192.168.23.44:9292/v2/images?limit=20 used request id req-c1149793-80a4-4a4e-8ee1-e01e8ee2539f HTTP/1.1 200 OK Content-Length: 1436 Content-Type: application/json; charset=UTF-8 X-Openstack-Request-Id: req-c1149793-80a4-4a4e-8ee1-e01e8ee2539f Date: Thu, 02 Mar 2017 00:10:42 GMT Connection: keep-alive {"images": [{"status": "active", "virtual_size": null, "name": "overcloud-full-initrd", "tags": [], "container_format": "bare", "created_at": "2017-03-02T00:10:39Z", "size": 46963090, "disk_format": "ari", "updated_at": "2017-03-02T00:10:42Z", "visibility": "public", "self": "/v2/images/82f0ed01-6d16-4eaf-a5ce-ef7a232b0063", "min_disk": 0, "protected": false, "id": "82f0ed01-6d16-4eaf-a5ce-ef7a232b0063", "file": "/v2/images/82f0ed01-6d16-4eaf-a5ce-ef7a232b0063/file", "checksum": "9b26b60c9e294d54792393a565b0d112", "owner": "9cd7eac8310e4a0d978dcd2351cdaa16", "direct_url": "swift+config://ref1/glance/82f0ed01-6d16-4eaf-a5ce-ef7a232b0063", "min_ram": 0, "schema": "/v2/schemas/image"}, {"status": "active", "virtual_size": null, "name": "overcloud-full-vmlinuz", "tags": [], "container_format": "bare", "created_at": "2017-03-02T00:10:38Z", "size": 5392752, "disk_format": "aki", "updated_at": "2017-03-02T00:10:39Z", "visibility": "public", "self": "/v2/images/410d45da-490b-4d1a-a241-deb0d4764a8e", "min_disk": 0, "protected": false, "id": "410d45da-490b-4d1a-a241-deb0d4764a8e", "file": "/v2/images/410d45da-490b-4d1a-a241-deb0d4764a8e/file", "checksum": "62e4eb02d58df2a17dfa3342ed212784", "owner": "9cd7eac8310e4a0d978dcd2351cdaa16", "direct_url": "swift+config://ref1/glance/410d45da-490b-4d1a-a241-deb0d4764a8e", "min_ram": 0, "schema": "/v2/schemas/image"}], "schema": "/v2/schemas/images", "first": "/v2/images?limit=20"} Image "overcloud-full" does not exists, no problem. 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}3e3a806e089c13617ce25a1546b49f95d7d06dfb' -H 'Content-Type: application/json' -d '{"container_format": "bare", "disk_format": "qcow2", "name": "overcloud-full", "visibility": "public"}' http://192.168.23.44:9292/v2/images "POST /v2/images HTTP/1.1" 201 558 POST call to glance-api for http://192.168.23.44:9292/v2/images used request id req-bc96455e-0e44-4857-a614-0d6a69b4f914 HTTP/1.1 201 Created Content-Length: 558 Content-Type: application/json; charset=UTF-8 Location: http://192.168.23.44:9292/v2/images/4178bdaa-a1ca-48ca-a469-5b76dee9871a X-Openstack-Request-Id: req-bc96455e-0e44-4857-a614-0d6a69b4f914 Date: Thu, 02 Mar 2017 00:10:42 GMT Connection: keep-alive {"status": "queued", "name": "overcloud-full", "tags": [], "container_format": "bare", "created_at": "2017-03-02T00:10:42Z", "size": null, "disk_format": "qcow2", "updated_at": "2017-03-02T00:10:42Z", "visibility": "public", "self": "/v2/images/4178bdaa-a1ca-48ca-a469-5b76dee9871a", "min_disk": 0, "protected": false, "id": "4178bdaa-a1ca-48ca-a469-5b76dee9871a", "file": "/v2/images/4178bdaa-a1ca-48ca-a469-5b76dee9871a/file", "checksum": null, "owner": "9cd7eac8310e4a0d978dcd2351cdaa16", "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}3e3a806e089c13617ce25a1546b49f95d7d06dfb' -H 'Content-Type: application/octet-stream' http://192.168.23.44:9292/v2/images/4178bdaa-a1ca-48ca-a469-5b76dee9871a/file PUT call to glance-api for http://192.168.23.44:9292/v2/images/4178bdaa-a1ca-48ca-a469-5b76dee9871a/file used request id req-1f6e94d2-b618-4232-83b6-e9690bc82a88 HTTP/1.1 204 No Content Content-Type: text/html; charset=UTF-8 Content-Length: 0 X-Openstack-Request-Id: req-1f6e94d2-b618-4232-83b6-e9690bc82a88 Date: Thu, 02 Mar 2017 00:11:10 GMT Connection: keep-alive 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}3e3a806e089c13617ce25a1546b49f95d7d06dfb' -H 'Content-Type: application/octet-stream' http://192.168.23.44:9292/v2/images/4178bdaa-a1ca-48ca-a469-5b76dee9871a "GET /v2/images/4178bdaa-a1ca-48ca-a469-5b76dee9871a HTTP/1.1" 200 675 GET call to glance-api for http://192.168.23.44:9292/v2/images/4178bdaa-a1ca-48ca-a469-5b76dee9871a used request id req-2e646ba5-9711-41e3-820e-5fb6efc900e2 HTTP/1.1 200 OK Content-Length: 675 Content-Type: application/json; charset=UTF-8 X-Openstack-Request-Id: req-2e646ba5-9711-41e3-820e-5fb6efc900e2 Date: Thu, 02 Mar 2017 00:11:10 GMT Connection: keep-alive {"status": "active", "virtual_size": null, "name": "overcloud-full", "tags": [], "container_format": "bare", "created_at": "2017-03-02T00:10:42Z", "size": 1244987392, "disk_format": "qcow2", "updated_at": "2017-03-02T00:11:10Z", "visibility": "public", "self": "/v2/images/4178bdaa-a1ca-48ca-a469-5b76dee9871a", "min_disk": 0, "protected": false, "id": "4178bdaa-a1ca-48ca-a469-5b76dee9871a", "file": "/v2/images/4178bdaa-a1ca-48ca-a469-5b76dee9871a/file", "checksum": "620dfe10eaa4b98d77bf97a6497d22be", "owner": "9cd7eac8310e4a0d978dcd2351cdaa16", "direct_url": "swift+config://ref1/glance/4178bdaa-a1ca-48ca-a469-5b76dee9871a", "min_ram": 0, "schema": "/v2/schemas/image"} curl -g -i -X PATCH -H 'Accept-Encoding: gzip, deflate' -H 'Accept: */*' -H 'User-Agent: python-glanceclient' -H 'Connection: keep-alive' -H 'X-Auth-Token: {SHA1}3e3a806e089c13617ce25a1546b49f95d7d06dfb' -H 'Content-Type: application/openstack-images-v2.1-json-patch' -d '[{"path": "/kernel_id", "value": "410d45da-490b-4d1a-a241-deb0d4764a8e", "op": "add"}, {"path": "/ramdisk_id", "value": "82f0ed01-6d16-4eaf-a5ce-ef7a232b0063", "op": "add"}]' http://192.168.23.44:9292/v2/images/4178bdaa-a1ca-48ca-a469-5b76dee9871a "PATCH /v2/images/4178bdaa-a1ca-48ca-a469-5b76dee9871a HTTP/1.1" 200 782 PATCH call to glance-api for http://192.168.23.44:9292/v2/images/4178bdaa-a1ca-48ca-a469-5b76dee9871a used request id req-39c1099b-e917-4aa9-a19b-ddfbeccf505c HTTP/1.1 200 OK Content-Length: 782 Content-Type: application/json; charset=UTF-8 X-Openstack-Request-Id: req-39c1099b-e917-4aa9-a19b-ddfbeccf505c Date: Thu, 02 Mar 2017 00:11:11 GMT Connection: keep-alive {"container_format": "bare", "min_ram": 0, "ramdisk_id": "82f0ed01-6d16-4eaf-a5ce-ef7a232b0063", "updated_at": "2017-03-02T00:11:10Z", "file": "/v2/images/4178bdaa-a1ca-48ca-a469-5b76dee9871a/file", "owner": "9cd7eac8310e4a0d978dcd2351cdaa16", "id": "4178bdaa-a1ca-48ca-a469-5b76dee9871a", "size": 1244987392, "self": "/v2/images/4178bdaa-a1ca-48ca-a469-5b76dee9871a", "disk_format": "qcow2", "direct_url": "swift+config://ref1/glance/4178bdaa-a1ca-48ca-a469-5b76dee9871a", "schema": "/v2/schemas/image", "status": "active", "tags": [], "kernel_id": "410d45da-490b-4d1a-a241-deb0d4764a8e", "visibility": "public", "min_disk": 0, "virtual_size": null, "name": "overcloud-full", "checksum": "620dfe10eaa4b98d77bf97a6497d22be", "created_at": "2017-03-02T00:10:42Z", "protected": false} curl -g -i -X GET -H 'Accept-Encoding: gzip, deflate' -H 'Accept: */*' -H 'X-Auth-Token: {SHA1}3e3a806e089c13617ce25a1546b49f95d7d06dfb' -H 'Connection: keep-alive' -H 'User-Agent: python-glanceclient' -H 'Content-Type: application/octet-stream' -H 'x-openstack-request-id: req-39c1099b-e917-4aa9-a19b-ddfbeccf505c' http://192.168.23.44:9292/v2/images/4178bdaa-a1ca-48ca-a469-5b76dee9871a "GET /v2/images/4178bdaa-a1ca-48ca-a469-5b76dee9871a HTTP/1.1" 200 782 GET call to glance-api for http://192.168.23.44:9292/v2/images/4178bdaa-a1ca-48ca-a469-5b76dee9871a used request id req-39c1099b-e917-4aa9-a19b-ddfbeccf505c HTTP/1.1 200 OK Content-Length: 782 Content-Type: application/json; charset=UTF-8 X-Openstack-Request-Id: req-39c1099b-e917-4aa9-a19b-ddfbeccf505c Date: Thu, 02 Mar 2017 00:11:11 GMT Connection: keep-alive {"container_format": "bare", "min_ram": 0, "ramdisk_id": "82f0ed01-6d16-4eaf-a5ce-ef7a232b0063", "updated_at": "2017-03-02T00:11:10Z", "file": "/v2/images/4178bdaa-a1ca-48ca-a469-5b76dee9871a/file", "owner": "9cd7eac8310e4a0d978dcd2351cdaa16", "id": "4178bdaa-a1ca-48ca-a469-5b76dee9871a", "size": 1244987392, "self": "/v2/images/4178bdaa-a1ca-48ca-a469-5b76dee9871a", "disk_format": "qcow2", "direct_url": "swift+config://ref1/glance/4178bdaa-a1ca-48ca-a469-5b76dee9871a", "schema": "/v2/schemas/image", "status": "active", "tags": [], "kernel_id": "410d45da-490b-4d1a-a241-deb0d4764a8e", "visibility": "public", "min_disk": 0, "virtual_size": null, "name": "overcloud-full", "checksum": "620dfe10eaa4b98d77bf97a6497d22be", "created_at": "2017-03-02T00:10:42Z", "protected": false} 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}3e3a806e089c13617ce25a1546b49f95d7d06dfb' -H 'Content-Type: application/octet-stream' http://192.168.23.44:9292/v2/images/4178bdaa-a1ca-48ca-a469-5b76dee9871a "GET /v2/images/4178bdaa-a1ca-48ca-a469-5b76dee9871a HTTP/1.1" 200 782 GET call to glance-api for http://192.168.23.44:9292/v2/images/4178bdaa-a1ca-48ca-a469-5b76dee9871a used request id req-b1f017c6-6922-4878-8971-b19a0f05b1d6 HTTP/1.1 200 OK Content-Length: 782 Content-Type: application/json; charset=UTF-8 X-Openstack-Request-Id: req-b1f017c6-6922-4878-8971-b19a0f05b1d6 Date: Thu, 02 Mar 2017 00:11:11 GMT Connection: keep-alive {"container_format": "bare", "min_ram": 0, "ramdisk_id": "82f0ed01-6d16-4eaf-a5ce-ef7a232b0063", "updated_at": "2017-03-02T00:11:10Z", "file": "/v2/images/4178bdaa-a1ca-48ca-a469-5b76dee9871a/file", "owner": "9cd7eac8310e4a0d978dcd2351cdaa16", "id": "4178bdaa-a1ca-48ca-a469-5b76dee9871a", "size": 1244987392, "self": "/v2/images/4178bdaa-a1ca-48ca-a469-5b76dee9871a", "disk_format": "qcow2", "direct_url": "swift+config://ref1/glance/4178bdaa-a1ca-48ca-a469-5b76dee9871a", "schema": "/v2/schemas/image", "status": "active", "tags": [], "kernel_id": "410d45da-490b-4d1a-a241-deb0d4764a8e", "visibility": "public", "min_disk": 0, "virtual_size": null, "name": "overcloud-full", "checksum": "620dfe10eaa4b98d77bf97a6497d22be", "created_at": "2017-03-02T00:10:42Z", "protected": false} Image "overcloud-full" was uploaded. +--------------------------------------+----------------+-------------+------------+--------+ | ID | Name | Disk Format | Size | Status | +--------------------------------------+----------------+-------------+------------+--------+ | 4178bdaa-a1ca-48ca-a469-5b76dee9871a | overcloud-full | qcow2 | 1244987392 | active | +--------------------------------------+----------------+-------------+------------+--------+ uploading bm images to glance 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}3e3a806e089c13617ce25a1546b49f95d7d06dfb' -H 'Content-Type: application/octet-stream' http://192.168.23.44:9292/v2/images/bm-deploy-kernel "GET /v2/images/bm-deploy-kernel HTTP/1.1" 404 59 GET call to glance-api for http://192.168.23.44:9292/v2/images/bm-deploy-kernel used request id req-5b8f1853-fd1c-46d0-9654-1705f2900b73 Request returned failure status 404. 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}3e3a806e089c13617ce25a1546b49f95d7d06dfb' -H 'Content-Type: application/octet-stream' http://192.168.23.44:9292/v2/images/bm-deploy-kernel "GET /v2/images/bm-deploy-kernel HTTP/1.1" 404 59 GET call to glance-api for http://192.168.23.44:9292/v2/images/bm-deploy-kernel used request id req-9990cf64-a6cd-4df9-89a9-3f0b427e2651 Request returned failure status 404. 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}3e3a806e089c13617ce25a1546b49f95d7d06dfb' -H 'Content-Type: application/octet-stream' http://192.168.23.44:9292/v2/images?limit=20 "GET /v2/images?limit=20 HTTP/1.1" 200 2220 GET call to glance-api for http://192.168.23.44:9292/v2/images?limit=20 used request id req-7d03d22b-2978-4262-8f16-59c7380fd258 HTTP/1.1 200 OK Content-Length: 2220 Content-Type: application/json; charset=UTF-8 X-Openstack-Request-Id: req-7d03d22b-2978-4262-8f16-59c7380fd258 Date: Thu, 02 Mar 2017 00:11:11 GMT Connection: keep-alive {"images": [{"container_format": "bare", "min_ram": 0, "ramdisk_id": "82f0ed01-6d16-4eaf-a5ce-ef7a232b0063", "updated_at": "2017-03-02T00:11:10Z", "file": "/v2/images/4178bdaa-a1ca-48ca-a469-5b76dee9871a/file", "owner": "9cd7eac8310e4a0d978dcd2351cdaa16", "id": "4178bdaa-a1ca-48ca-a469-5b76dee9871a", "size": 1244987392, "self": "/v2/images/4178bdaa-a1ca-48ca-a469-5b76dee9871a", "disk_format": "qcow2", "direct_url": "swift+config://ref1/glance/4178bdaa-a1ca-48ca-a469-5b76dee9871a", "schema": "/v2/schemas/image", "status": "active", "tags": [], "kernel_id": "410d45da-490b-4d1a-a241-deb0d4764a8e", "visibility": "public", "min_disk": 0, "virtual_size": null, "name": "overcloud-full", "checksum": "620dfe10eaa4b98d77bf97a6497d22be", "created_at": "2017-03-02T00:10:42Z", "protected": false}, {"status": "active", "virtual_size": null, "name": "overcloud-full-initrd", "tags": [], "container_format": "bare", "created_at": "2017-03-02T00:10:39Z", "size": 46963090, "disk_format": "ari", "updated_at": "2017-03-02T00:10:42Z", "visibility": "public", "self": "/v2/images/82f0ed01-6d16-4eaf-a5ce-ef7a232b0063", "min_disk": 0, "protected": false, "id": "82f0ed01-6d16-4eaf-a5ce-ef7a232b0063", "file": "/v2/images/82f0ed01-6d16-4eaf-a5ce-ef7a232b0063/file", "checksum": "9b26b60c9e294d54792393a565b0d112", "owner": "9cd7eac8310e4a0d978dcd2351cdaa16", "direct_url": "swift+config://ref1/glance/82f0ed01-6d16-4eaf-a5ce-ef7a232b0063", "min_ram": 0, "schema": "/v2/schemas/image"}, {"status": "active", "virtual_size": null, "name": "overcloud-full-vmlinuz", "tags": [], "container_format": "bare", "created_at": "2017-03-02T00:10:38Z", "size": 5392752, "disk_format": "aki", "updated_at": "2017-03-02T00:10:39Z", "visibility": "public", "self": "/v2/images/410d45da-490b-4d1a-a241-deb0d4764a8e", "min_disk": 0, "protected": false, "id": "410d45da-490b-4d1a-a241-deb0d4764a8e", "file": "/v2/images/410d45da-490b-4d1a-a241-deb0d4764a8e/file", "checksum": "62e4eb02d58df2a17dfa3342ed212784", "owner": "9cd7eac8310e4a0d978dcd2351cdaa16", "direct_url": "swift+config://ref1/glance/410d45da-490b-4d1a-a241-deb0d4764a8e", "min_ram": 0, "schema": "/v2/schemas/image"}], "schema": "/v2/schemas/images", "first": "/v2/images?limit=20"} Image "bm-deploy-kernel" does not exists, no problem. 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}3e3a806e089c13617ce25a1546b49f95d7d06dfb' -H 'Content-Type: application/json' -d '{"container_format": "bare", "disk_format": "aki", "name": "bm-deploy-kernel", "visibility": "public"}' http://192.168.23.44:9292/v2/images "POST /v2/images HTTP/1.1" 201 558 POST call to glance-api for http://192.168.23.44:9292/v2/images used request id req-6ef65de8-0292-4457-b472-f46ebc4e26bc HTTP/1.1 201 Created Content-Length: 558 Content-Type: application/json; charset=UTF-8 Location: http://192.168.23.44:9292/v2/images/1aa59dda-ea54-49cd-9b10-edcd601b8a1a X-Openstack-Request-Id: req-6ef65de8-0292-4457-b472-f46ebc4e26bc Date: Thu, 02 Mar 2017 00:11:11 GMT Connection: keep-alive {"status": "queued", "name": "bm-deploy-kernel", "tags": [], "container_format": "bare", "created_at": "2017-03-02T00:11:11Z", "size": null, "disk_format": "aki", "updated_at": "2017-03-02T00:11:11Z", "visibility": "public", "self": "/v2/images/1aa59dda-ea54-49cd-9b10-edcd601b8a1a", "min_disk": 0, "protected": false, "id": "1aa59dda-ea54-49cd-9b10-edcd601b8a1a", "file": "/v2/images/1aa59dda-ea54-49cd-9b10-edcd601b8a1a/file", "checksum": null, "owner": "9cd7eac8310e4a0d978dcd2351cdaa16", "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}3e3a806e089c13617ce25a1546b49f95d7d06dfb' -H 'Content-Type: application/octet-stream' http://192.168.23.44:9292/v2/images/1aa59dda-ea54-49cd-9b10-edcd601b8a1a/file PUT call to glance-api for http://192.168.23.44:9292/v2/images/1aa59dda-ea54-49cd-9b10-edcd601b8a1a/file used request id req-ca526708-2c55-4d20-af77-2c9df47ad2fa HTTP/1.1 204 No Content Content-Type: text/html; charset=UTF-8 Content-Length: 0 X-Openstack-Request-Id: req-ca526708-2c55-4d20-af77-2c9df47ad2fa Date: Thu, 02 Mar 2017 00:11:12 GMT Connection: keep-alive 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}3e3a806e089c13617ce25a1546b49f95d7d06dfb' -H 'Content-Type: application/octet-stream' http://192.168.23.44:9292/v2/images/1aa59dda-ea54-49cd-9b10-edcd601b8a1a "GET /v2/images/1aa59dda-ea54-49cd-9b10-edcd601b8a1a HTTP/1.1" 200 672 GET call to glance-api for http://192.168.23.44:9292/v2/images/1aa59dda-ea54-49cd-9b10-edcd601b8a1a used request id req-e5f8f08c-d8b6-4110-9b1d-d7d6b50fb85c HTTP/1.1 200 OK Content-Length: 672 Content-Type: application/json; charset=UTF-8 X-Openstack-Request-Id: req-e5f8f08c-d8b6-4110-9b1d-d7d6b50fb85c Date: Thu, 02 Mar 2017 00:11:12 GMT Connection: keep-alive {"status": "active", "virtual_size": null, "name": "bm-deploy-kernel", "tags": [], "container_format": "bare", "created_at": "2017-03-02T00:11:11Z", "size": 5392752, "disk_format": "aki", "updated_at": "2017-03-02T00:11:12Z", "visibility": "public", "self": "/v2/images/1aa59dda-ea54-49cd-9b10-edcd601b8a1a", "min_disk": 0, "protected": false, "id": "1aa59dda-ea54-49cd-9b10-edcd601b8a1a", "file": "/v2/images/1aa59dda-ea54-49cd-9b10-edcd601b8a1a/file", "checksum": "62e4eb02d58df2a17dfa3342ed212784", "owner": "9cd7eac8310e4a0d978dcd2351cdaa16", "direct_url": "swift+config://ref1/glance/1aa59dda-ea54-49cd-9b10-edcd601b8a1a", "min_ram": 0, "schema": "/v2/schemas/image"} Image "bm-deploy-kernel" was uploaded. +--------------------------------------+------------------+-------------+---------+--------+ | ID | Name | Disk Format | Size | Status | +--------------------------------------+------------------+-------------+---------+--------+ | 1aa59dda-ea54-49cd-9b10-edcd601b8a1a | bm-deploy-kernel | aki | 5392752 | active | +--------------------------------------+------------------+-------------+---------+--------+ 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}3e3a806e089c13617ce25a1546b49f95d7d06dfb' -H 'Content-Type: application/octet-stream' http://192.168.23.44:9292/v2/images/bm-deploy-ramdisk "GET /v2/images/bm-deploy-ramdisk HTTP/1.1" 404 60 GET call to glance-api for http://192.168.23.44:9292/v2/images/bm-deploy-ramdisk used request id req-055ac439-7df6-41a9-9d72-95818e1d1606 Request returned failure status 404. 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}3e3a806e089c13617ce25a1546b49f95d7d06dfb' -H 'Content-Type: application/octet-stream' http://192.168.23.44:9292/v2/images/bm-deploy-ramdisk "GET /v2/images/bm-deploy-ramdisk HTTP/1.1" 404 60 GET call to glance-api for http://192.168.23.44:9292/v2/images/bm-deploy-ramdisk used request id req-f2da8704-dac4-4c1f-b64b-f86c98dbaf72 Request returned failure status 404. 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}3e3a806e089c13617ce25a1546b49f95d7d06dfb' -H 'Content-Type: application/octet-stream' http://192.168.23.44:9292/v2/images?limit=20 "GET /v2/images?limit=20 HTTP/1.1" 200 2894 GET call to glance-api for http://192.168.23.44:9292/v2/images?limit=20 used request id req-30c71c7b-bd41-47f4-afdb-8b42685cf1b2 HTTP/1.1 200 OK Content-Length: 2894 Content-Type: application/json; charset=UTF-8 X-Openstack-Request-Id: req-30c71c7b-bd41-47f4-afdb-8b42685cf1b2 Date: Thu, 02 Mar 2017 00:11:12 GMT Connection: keep-alive {"images": [{"status": "active", "virtual_size": null, "name": "bm-deploy-kernel", "tags": [], "container_format": "bare", "created_at": "2017-03-02T00:11:11Z", "size": 5392752, "disk_format": "aki", "updated_at": "2017-03-02T00:11:12Z", "visibility": "public", "self": "/v2/images/1aa59dda-ea54-49cd-9b10-edcd601b8a1a", "min_disk": 0, "protected": false, "id": "1aa59dda-ea54-49cd-9b10-edcd601b8a1a", "file": "/v2/images/1aa59dda-ea54-49cd-9b10-edcd601b8a1a/file", "checksum": "62e4eb02d58df2a17dfa3342ed212784", "owner": "9cd7eac8310e4a0d978dcd2351cdaa16", "direct_url": "swift+config://ref1/glance/1aa59dda-ea54-49cd-9b10-edcd601b8a1a", "min_ram": 0, "schema": "/v2/schemas/image"}, {"container_format": "bare", "min_ram": 0, "ramdisk_id": "82f0ed01-6d16-4eaf-a5ce-ef7a232b0063", "updated_at": "2017-03-02T00:11:10Z", "file": "/v2/images/4178bdaa-a1ca-48ca-a469-5b76dee9871a/file", "owner": "9cd7eac8310e4a0d978dcd2351cdaa16", "id": "4178bdaa-a1ca-48ca-a469-5b76dee9871a", "size": 1244987392, "self": "/v2/images/4178bdaa-a1ca-48ca-a469-5b76dee9871a", "disk_format": "qcow2", "direct_url": "swift+config://ref1/glance/4178bdaa-a1ca-48ca-a469-5b76dee9871a", "schema": "/v2/schemas/image", "status": "active", "tags": [], "kernel_id": "410d45da-490b-4d1a-a241-deb0d4764a8e", "visibility": "public", "min_disk": 0, "virtual_size": null, "name": "overcloud-full", "checksum": "620dfe10eaa4b98d77bf97a6497d22be", "created_at": "2017-03-02T00:10:42Z", "protected": false}, {"status": "active", "virtual_size": null, "name": "overcloud-full-initrd", "tags": [], "container_format": "bare", "created_at": "2017-03-02T00:10:39Z", "size": 46963090, "disk_format": "ari", "updated_at": "2017-03-02T00:10:42Z", "visibility": "public", "self": "/v2/images/82f0ed01-6d16-4eaf-a5ce-ef7a232b0063", "min_disk": 0, "protected": false, "id": "82f0ed01-6d16-4eaf-a5ce-ef7a232b0063", "file": "/v2/images/82f0ed01-6d16-4eaf-a5ce-ef7a232b0063/file", "checksum": "9b26b60c9e294d54792393a565b0d112", "owner": "9cd7eac8310e4a0d978dcd2351cdaa16", "direct_url": "swift+config://ref1/glance/82f0ed01-6d16-4eaf-a5ce-ef7a232b0063", "min_ram": 0, "schema": "/v2/schemas/image"}, {"status": "active", "virtual_size": null, "name": "overcloud-full-vmlinuz", "tags": [], "container_format": "bare", "created_at": "2017-03-02T00:10:38Z", "size": 5392752, "disk_format": "aki", "updated_at": "2017-03-02T00:10:39Z", "visibility": "public", "self": "/v2/images/410d45da-490b-4d1a-a241-deb0d4764a8e", "min_disk": 0, "protected": false, "id": "410d45da-490b-4d1a-a241-deb0d4764a8e", "file": "/v2/images/410d45da-490b-4d1a-a241-deb0d4764a8e/file", "checksum": "62e4eb02d58df2a17dfa3342ed212784", "owner": "9cd7eac8310e4a0d978dcd2351cdaa16", "direct_url": "swift+config://ref1/glance/410d45da-490b-4d1a-a241-deb0d4764a8e", "min_ram": 0, "schema": "/v2/schemas/image"}], "schema": "/v2/schemas/images", "first": "/v2/images?limit=20"} Image "bm-deploy-ramdisk" does not exists, no problem. 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}3e3a806e089c13617ce25a1546b49f95d7d06dfb' -H 'Content-Type: application/json' -d '{"container_format": "bare", "disk_format": "ari", "name": "bm-deploy-ramdisk", "visibility": "public"}' http://192.168.23.44:9292/v2/images "POST /v2/images HTTP/1.1" 201 559 POST call to glance-api for http://192.168.23.44:9292/v2/images used request id req-80b03899-2536-4242-aebb-5c87562de0df HTTP/1.1 201 Created Content-Length: 559 Content-Type: application/json; charset=UTF-8 Location: http://192.168.23.44:9292/v2/images/2225bf53-1c83-456c-8cbb-f835ad10807a X-Openstack-Request-Id: req-80b03899-2536-4242-aebb-5c87562de0df Date: Thu, 02 Mar 2017 00:11:12 GMT Connection: keep-alive {"status": "queued", "name": "bm-deploy-ramdisk", "tags": [], "container_format": "bare", "created_at": "2017-03-02T00:11:12Z", "size": null, "disk_format": "ari", "updated_at": "2017-03-02T00:11:12Z", "visibility": "public", "self": "/v2/images/2225bf53-1c83-456c-8cbb-f835ad10807a", "min_disk": 0, "protected": false, "id": "2225bf53-1c83-456c-8cbb-f835ad10807a", "file": "/v2/images/2225bf53-1c83-456c-8cbb-f835ad10807a/file", "checksum": null, "owner": "9cd7eac8310e4a0d978dcd2351cdaa16", "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}3e3a806e089c13617ce25a1546b49f95d7d06dfb' -H 'Content-Type: application/octet-stream' http://192.168.23.44:9292/v2/images/2225bf53-1c83-456c-8cbb-f835ad10807a/file PUT call to glance-api for http://192.168.23.44:9292/v2/images/2225bf53-1c83-456c-8cbb-f835ad10807a/file used request id req-7bb6725a-e2ae-492f-94ad-e9c310705df2 HTTP/1.1 204 No Content Content-Type: text/html; charset=UTF-8 Content-Length: 0 X-Openstack-Request-Id: req-7bb6725a-e2ae-492f-94ad-e9c310705df2 Date: Thu, 02 Mar 2017 00:11:17 GMT Connection: keep-alive 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}3e3a806e089c13617ce25a1546b49f95d7d06dfb' -H 'Content-Type: application/octet-stream' http://192.168.23.44:9292/v2/images/2225bf53-1c83-456c-8cbb-f835ad10807a "GET /v2/images/2225bf53-1c83-456c-8cbb-f835ad10807a HTTP/1.1" 200 675 GET call to glance-api for http://192.168.23.44:9292/v2/images/2225bf53-1c83-456c-8cbb-f835ad10807a used request id req-ee83f4d7-3928-4b0c-aa06-e17582f5e278 HTTP/1.1 200 OK Content-Length: 675 Content-Type: application/json; charset=UTF-8 X-Openstack-Request-Id: req-ee83f4d7-3928-4b0c-aa06-e17582f5e278 Date: Thu, 02 Mar 2017 00:11:17 GMT Connection: keep-alive {"status": "active", "virtual_size": null, "name": "bm-deploy-ramdisk", "tags": [], "container_format": "bare", "created_at": "2017-03-02T00:11:12Z", "size": 355413025, "disk_format": "ari", "updated_at": "2017-03-02T00:11:17Z", "visibility": "public", "self": "/v2/images/2225bf53-1c83-456c-8cbb-f835ad10807a", "min_disk": 0, "protected": false, "id": "2225bf53-1c83-456c-8cbb-f835ad10807a", "file": "/v2/images/2225bf53-1c83-456c-8cbb-f835ad10807a/file", "checksum": "8450d19df52938c02e0ea7264c6327a3", "owner": "9cd7eac8310e4a0d978dcd2351cdaa16", "direct_url": "swift+config://ref1/glance/2225bf53-1c83-456c-8cbb-f835ad10807a", "min_ram": 0, "schema": "/v2/schemas/image"} Image "bm-deploy-ramdisk" was uploaded. +--------------------------------------+-------------------+-------------+-----------+--------+ | ID | Name | Disk Format | Size | Status | +--------------------------------------+-------------------+-------------+-----------+--------+ | 2225bf53-1c83-456c-8cbb-f835ad10807a | bm-deploy-ramdisk | ari | 355413025 | active | +--------------------------------------+-------------------+-------------+-----------+--------+ copy agent images to HTTP BOOT dir cp: cannot create regular file ‘/httpboot/agent.kernel’: No such file or directory Command 'sudo cp -f "./ironic-python-agent.kernel" "/httpboot/agent.kernel"' returned non-zero exit status 1 Traceback (most recent call last): File "/usr/lib/python2.7/site-packages/cliff/app.py", line 400, in run_subcommand result = cmd.run(parsed_args) File "/usr/lib/python2.7/site-packages/osc_lib/command/command.py", line 41, in run return super(Command, self).run(parsed_args) File "/usr/lib/python2.7/site-packages/cliff/command.py", line 90, in run return self.take_action(parsed_args) or 0 File "/usr/lib/python2.7/site-packages/tripleoclient/v1/overcloud_image.py", line 930, in take_action parsed_args.update_existing File "/usr/lib/python2.7/site-packages/tripleoclient/v1/overcloud_image.py", line 742, in _file_create_or_update self._copy_file(src_file, dest_file) File "/usr/lib/python2.7/site-packages/tripleoclient/v1/overcloud_image.py", line 703, in _copy_file shell=True) File "/usr/lib64/python2.7/subprocess.py", line 542, in check_call raise CalledProcessError(retcode, cmd) CalledProcessError: Command 'sudo cp -f "./ironic-python-agent.kernel" "/httpboot/agent.kernel"' returned non-zero exit status 1 clean_up UploadOvercloudImage: Command 'sudo cp -f "./ironic-python-agent.kernel" "/httpboot/agent.kernel"' returned non-zero exit status 1 Traceback (most recent call last): File "/usr/lib/python2.7/site-packages/osc_lib/shell.py", line 135, in run ret_val = super(OpenStackShell, self).run(argv) File "/usr/lib/python2.7/site-packages/cliff/app.py", line 279, in run result = self.run_subcommand(remainder) File "/usr/lib/python2.7/site-packages/osc_lib/shell.py", line 180, in run_subcommand ret_value = super(OpenStackShell, self).run_subcommand(argv) File "/usr/lib/python2.7/site-packages/cliff/app.py", line 400, in run_subcommand result = cmd.run(parsed_args) File "/usr/lib/python2.7/site-packages/osc_lib/command/command.py", line 41, in run return super(Command, self).run(parsed_args) File "/usr/lib/python2.7/site-packages/cliff/command.py", line 90, in run return self.take_action(parsed_args) or 0 File "/usr/lib/python2.7/site-packages/tripleoclient/v1/overcloud_image.py", line 930, in take_action parsed_args.update_existing File "/usr/lib/python2.7/site-packages/tripleoclient/v1/overcloud_image.py", line 742, in _file_create_or_update self._copy_file(src_file, dest_file) File "/usr/lib/python2.7/site-packages/tripleoclient/v1/overcloud_image.py", line 703, in _copy_file shell=True) File "/usr/lib64/python2.7/subprocess.py", line 542, in check_call raise CalledProcessError(retcode, cmd) CalledProcessError: Command 'sudo cp -f "./ironic-python-agent.kernel" "/httpboot/agent.kernel"' returned non-zero exit status 1 END return value: 1