← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1639685] [NEW] glance image-create creates an image with no name

 

Public bug reported:

I'd expected glance image-create command to return the usage syntax,
instead it did this.

[rvalavan@AlfredWallace ~]$ glance image-create
+------------------+--------------------------------------+
| Property         | Value                                |
+------------------+--------------------------------------+
| checksum         | None                                 |
| container_format | None                                 |
| created_at       | 2016-11-07T04:07:50Z                 |
| disk_format      | None                                 |
| id               | 5173c08b-97e5-4e73-8479-3c0a3263bc74 |
| min_disk         | 0                                    |
| min_ram          | 0                                    |
| name             | None                                 |
| owner            | 7315fbd1e2d84b6fa107c02c604c70b5     |
| protected        | False                                |
| size             | None                                 |
| status           | queued                               |
| tags             | []                                   |
| updated_at       | 2016-11-07T04:07:50Z                 |
| virtual_size     | None                                 |
| visibility       | private                              |
+------------------+--------------------------------------+
[rvalavan@AlfredWallace ~]$ glance image-list
+--------------------------------------+------+
| ID                                   | Name |
+--------------------------------------+------+
| 5173c08b-97e5-4e73-8479-3c0a3263bc74 |      |
+--------------------------------------+------+

[rvalavan@AlfredWallace ~]$ glance --version
2.5.0


[rvalavan@AlfredWallace ~]$ nova --version
6.0.0


After deleting the image, recreated with debug option:

[rvalavan@AlfredWallace ~]$ glance --debug image-create
DEBUG:keystoneclient.session:REQ: curl -g -i -X GET http://192.168.154.32:5000/v2.0 -H "Accept: application/json" -H "User-Agent: python-keystoneclient"
INFO:requests.packages.urllib3.connectionpool:Starting new HTTP connection (1): 192.168.154.32
DEBUG:requests.packages.urllib3.connectionpool:"GET /v2.0 HTTP/1.1" 200 233
DEBUG:keystoneclient.session:RESP: [200] Date: Mon, 07 Nov 2016 04:17:11 GMT Server: Apache/2.4.6 (CentOS) Vary: X-Auth-Token,Accept-Encoding x-openstack-request-id: req-ba78762c-d651-475d-864f-dc54ea1aec15 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.154.32:5000/v2.0/";, "rel": "self"}, {"href": "http://docs.openstack.org/";, "type": "text/html", "rel": "describedby"}]}}

DEBUG:keystoneclient.auth.identity.v2:Making authentication request to http://192.168.154.32:5000/v2.0/tokens
INFO:requests.packages.urllib3.connectionpool:Resetting dropped connection: 192.168.154.32
DEBUG:requests.packages.urllib3.connectionpool:"POST /v2.0/tokens HTTP/1.1" 200 1099
DEBUG:keystoneclient.session:REQ: curl -g -i -X GET http://192.168.154.32:9292/v2/schemas/image -H "User-Agent: python-glanceclient" -H "Content-Type: application/octet-stream" -H "X-Auth-Token: {SHA1}63edd458acbd166ddc0f3e59bcd10fb0c9878e87"
INFO:requests.packages.urllib3.connectionpool:Starting new HTTP connection (1): 192.168.154.32
DEBUG:requests.packages.urllib3.connectionpool:"GET /v2/schemas/image HTTP/1.1" 200 4137
DEBUG:keystoneclient.session:RESP: [200] Content-Type: application/json; charset=UTF-8 Content-Length: 4137 X-Openstack-Request-Id: req-ea95ff03-78fd-4ec3-91a4-e68f86421f8d Date: Mon, 07 Nov 2016 04:17:11 GMT Connection: keep-alive
RESP BODY: {"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": ["public", "private"], "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"], "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"}}}

GET call to glance-api for http://192.168.154.32:9292/v2/schemas/image used request id req-ea95ff03-78fd-4ec3-91a4-e68f86421f8d
DEBUG:glanceclient.common.http:GET call to glance-api for http://192.168.154.32:9292/v2/schemas/image used request id req-ea95ff03-78fd-4ec3-91a4-e68f86421f8d
DEBUG:keystoneclient.session:REQ: curl -g -i -X GET http://192.168.154.32:9292/v2/schemas/image -H "User-Agent: python-glanceclient" -H "Content-Type: application/octet-stream" -H "X-Auth-Token: {SHA1}63edd458acbd166ddc0f3e59bcd10fb0c9878e87"
DEBUG:requests.packages.urllib3.connectionpool:"GET /v2/schemas/image HTTP/1.1" 200 4137
DEBUG:keystoneclient.session:RESP: [200] Content-Type: application/json; charset=UTF-8 Content-Length: 4137 X-Openstack-Request-Id: req-aa250207-bcab-4835-9e3b-14d0f27e5122 Date: Mon, 07 Nov 2016 04:17:11 GMT Connection: keep-alive
RESP BODY: {"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": ["public", "private"], "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"], "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"}}}

GET call to glance-api for http://192.168.154.32:9292/v2/schemas/image used request id req-aa250207-bcab-4835-9e3b-14d0f27e5122
DEBUG:glanceclient.common.http:GET call to glance-api for http://192.168.154.32:9292/v2/schemas/image used request id req-aa250207-bcab-4835-9e3b-14d0f27e5122
DEBUG:keystoneclient.session:REQ: curl -g -i -X POST http://192.168.154.32:9292/v2/images -H "User-Agent: python-glanceclient" -H "Content-Type: application/json" -H "X-Auth-Token: {SHA1}63edd458acbd166ddc0f3e59bcd10fb0c9878e87" -d '{}'
DEBUG:requests.packages.urllib3.connectionpool:"POST /v2/images HTTP/1.1" 201 542
DEBUG:keystoneclient.session:RESP: [201] Content-Length: 542 Content-Type: application/json; charset=UTF-8 Location: http://192.168.154.32:9292/v2/images/116520e1-09e9-4384-808d-8f6311c0f31d X-Openstack-Request-Id: req-2becbdd7-78d0-4439-ab79-421d9f081d14 Date: Mon, 07 Nov 2016 04:17:11 GMT Connection: keep-alive
RESP BODY: {"status": "queued", "name": null, "tags": [], "container_format": null, "created_at": "2016-11-07T04:17:11Z", "size": null, "disk_format": null, "updated_at": "2016-11-07T04:17:11Z", "visibility": "private", "self": "/v2/images/116520e1-09e9-4384-808d-8f6311c0f31d", "min_disk": 0, "protected": false, "id": "116520e1-09e9-4384-808d-8f6311c0f31d", "file": "/v2/images/116520e1-09e9-4384-808d-8f6311c0f31d/file", "checksum": null, "owner": "7315fbd1e2d84b6fa107c02c604c70b5", "virtual_size": null, "min_ram": 0, "schema": "/v2/schemas/image"}

POST call to glance-api for http://192.168.154.32:9292/v2/images used request id req-2becbdd7-78d0-4439-ab79-421d9f081d14
DEBUG:glanceclient.common.http:POST call to glance-api for http://192.168.154.32:9292/v2/images used request id req-2becbdd7-78d0-4439-ab79-421d9f081d14
+------------------+--------------------------------------+
| Property         | Value                                |
+------------------+--------------------------------------+
| checksum         | None                                 |
| container_format | None                                 |
| created_at       | 2016-11-07T04:17:11Z                 |
| disk_format      | None                                 |
| id               | 116520e1-09e9-4384-808d-8f6311c0f31d |
| min_disk         | 0                                    |
| min_ram          | 0                                    |
| name             | None                                 |
| owner            | 7315fbd1e2d84b6fa107c02c604c70b5     |
| protected        | False                                |
| size             | None                                 |
| status           | queued                               |
| tags             | []                                   |
| updated_at       | 2016-11-07T04:17:11Z                 |
| virtual_size     | None                                 |
| visibility       | private                              |
+------------------+--------------------------------------+
[rvalavan@AlfredWallace ~]$

** Affects: glance
     Importance: Undecided
         Status: New


** Tags: glance image null

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to Glance.
https://bugs.launchpad.net/bugs/1639685

Title:
   glance image-create creates an image with no name

Status in Glance:
  New

Bug description:
  I'd expected glance image-create command to return the usage syntax,
  instead it did this.

  [rvalavan@AlfredWallace ~]$ glance image-create
  +------------------+--------------------------------------+
  | Property         | Value                                |
  +------------------+--------------------------------------+
  | checksum         | None                                 |
  | container_format | None                                 |
  | created_at       | 2016-11-07T04:07:50Z                 |
  | disk_format      | None                                 |
  | id               | 5173c08b-97e5-4e73-8479-3c0a3263bc74 |
  | min_disk         | 0                                    |
  | min_ram          | 0                                    |
  | name             | None                                 |
  | owner            | 7315fbd1e2d84b6fa107c02c604c70b5     |
  | protected        | False                                |
  | size             | None                                 |
  | status           | queued                               |
  | tags             | []                                   |
  | updated_at       | 2016-11-07T04:07:50Z                 |
  | virtual_size     | None                                 |
  | visibility       | private                              |
  +------------------+--------------------------------------+
  [rvalavan@AlfredWallace ~]$ glance image-list
  +--------------------------------------+------+
  | ID                                   | Name |
  +--------------------------------------+------+
  | 5173c08b-97e5-4e73-8479-3c0a3263bc74 |      |
  +--------------------------------------+------+

  [rvalavan@AlfredWallace ~]$ glance --version
  2.5.0

  
  [rvalavan@AlfredWallace ~]$ nova --version
  6.0.0

  
  After deleting the image, recreated with debug option:

  [rvalavan@AlfredWallace ~]$ glance --debug image-create
  DEBUG:keystoneclient.session:REQ: curl -g -i -X GET http://192.168.154.32:5000/v2.0 -H "Accept: application/json" -H "User-Agent: python-keystoneclient"
  INFO:requests.packages.urllib3.connectionpool:Starting new HTTP connection (1): 192.168.154.32
  DEBUG:requests.packages.urllib3.connectionpool:"GET /v2.0 HTTP/1.1" 200 233
  DEBUG:keystoneclient.session:RESP: [200] Date: Mon, 07 Nov 2016 04:17:11 GMT Server: Apache/2.4.6 (CentOS) Vary: X-Auth-Token,Accept-Encoding x-openstack-request-id: req-ba78762c-d651-475d-864f-dc54ea1aec15 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.154.32:5000/v2.0/";, "rel": "self"}, {"href": "http://docs.openstack.org/";, "type": "text/html", "rel": "describedby"}]}}

  DEBUG:keystoneclient.auth.identity.v2:Making authentication request to http://192.168.154.32:5000/v2.0/tokens
  INFO:requests.packages.urllib3.connectionpool:Resetting dropped connection: 192.168.154.32
  DEBUG:requests.packages.urllib3.connectionpool:"POST /v2.0/tokens HTTP/1.1" 200 1099
  DEBUG:keystoneclient.session:REQ: curl -g -i -X GET http://192.168.154.32:9292/v2/schemas/image -H "User-Agent: python-glanceclient" -H "Content-Type: application/octet-stream" -H "X-Auth-Token: {SHA1}63edd458acbd166ddc0f3e59bcd10fb0c9878e87"
  INFO:requests.packages.urllib3.connectionpool:Starting new HTTP connection (1): 192.168.154.32
  DEBUG:requests.packages.urllib3.connectionpool:"GET /v2/schemas/image HTTP/1.1" 200 4137
  DEBUG:keystoneclient.session:RESP: [200] Content-Type: application/json; charset=UTF-8 Content-Length: 4137 X-Openstack-Request-Id: req-ea95ff03-78fd-4ec3-91a4-e68f86421f8d Date: Mon, 07 Nov 2016 04:17:11 GMT Connection: keep-alive
  RESP BODY: {"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": ["public", "private"], "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"], "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"}}}

  GET call to glance-api for http://192.168.154.32:9292/v2/schemas/image used request id req-ea95ff03-78fd-4ec3-91a4-e68f86421f8d
  DEBUG:glanceclient.common.http:GET call to glance-api for http://192.168.154.32:9292/v2/schemas/image used request id req-ea95ff03-78fd-4ec3-91a4-e68f86421f8d
  DEBUG:keystoneclient.session:REQ: curl -g -i -X GET http://192.168.154.32:9292/v2/schemas/image -H "User-Agent: python-glanceclient" -H "Content-Type: application/octet-stream" -H "X-Auth-Token: {SHA1}63edd458acbd166ddc0f3e59bcd10fb0c9878e87"
  DEBUG:requests.packages.urllib3.connectionpool:"GET /v2/schemas/image HTTP/1.1" 200 4137
  DEBUG:keystoneclient.session:RESP: [200] Content-Type: application/json; charset=UTF-8 Content-Length: 4137 X-Openstack-Request-Id: req-aa250207-bcab-4835-9e3b-14d0f27e5122 Date: Mon, 07 Nov 2016 04:17:11 GMT Connection: keep-alive
  RESP BODY: {"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": ["public", "private"], "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"], "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"}}}

  GET call to glance-api for http://192.168.154.32:9292/v2/schemas/image used request id req-aa250207-bcab-4835-9e3b-14d0f27e5122
  DEBUG:glanceclient.common.http:GET call to glance-api for http://192.168.154.32:9292/v2/schemas/image used request id req-aa250207-bcab-4835-9e3b-14d0f27e5122
  DEBUG:keystoneclient.session:REQ: curl -g -i -X POST http://192.168.154.32:9292/v2/images -H "User-Agent: python-glanceclient" -H "Content-Type: application/json" -H "X-Auth-Token: {SHA1}63edd458acbd166ddc0f3e59bcd10fb0c9878e87" -d '{}'
  DEBUG:requests.packages.urllib3.connectionpool:"POST /v2/images HTTP/1.1" 201 542
  DEBUG:keystoneclient.session:RESP: [201] Content-Length: 542 Content-Type: application/json; charset=UTF-8 Location: http://192.168.154.32:9292/v2/images/116520e1-09e9-4384-808d-8f6311c0f31d X-Openstack-Request-Id: req-2becbdd7-78d0-4439-ab79-421d9f081d14 Date: Mon, 07 Nov 2016 04:17:11 GMT Connection: keep-alive
  RESP BODY: {"status": "queued", "name": null, "tags": [], "container_format": null, "created_at": "2016-11-07T04:17:11Z", "size": null, "disk_format": null, "updated_at": "2016-11-07T04:17:11Z", "visibility": "private", "self": "/v2/images/116520e1-09e9-4384-808d-8f6311c0f31d", "min_disk": 0, "protected": false, "id": "116520e1-09e9-4384-808d-8f6311c0f31d", "file": "/v2/images/116520e1-09e9-4384-808d-8f6311c0f31d/file", "checksum": null, "owner": "7315fbd1e2d84b6fa107c02c604c70b5", "virtual_size": null, "min_ram": 0, "schema": "/v2/schemas/image"}

  POST call to glance-api for http://192.168.154.32:9292/v2/images used request id req-2becbdd7-78d0-4439-ab79-421d9f081d14
  DEBUG:glanceclient.common.http:POST call to glance-api for http://192.168.154.32:9292/v2/images used request id req-2becbdd7-78d0-4439-ab79-421d9f081d14
  +------------------+--------------------------------------+
  | Property         | Value                                |
  +------------------+--------------------------------------+
  | checksum         | None                                 |
  | container_format | None                                 |
  | created_at       | 2016-11-07T04:17:11Z                 |
  | disk_format      | None                                 |
  | id               | 116520e1-09e9-4384-808d-8f6311c0f31d |
  | min_disk         | 0                                    |
  | min_ram          | 0                                    |
  | name             | None                                 |
  | owner            | 7315fbd1e2d84b6fa107c02c604c70b5     |
  | protected        | False                                |
  | size             | None                                 |
  | status           | queued                               |
  | tags             | []                                   |
  | updated_at       | 2016-11-07T04:17:11Z                 |
  | virtual_size     | None                                 |
  | visibility       | private                              |
  +------------------+--------------------------------------+
  [rvalavan@AlfredWallace ~]$

To manage notifications about this bug go to:
https://bugs.launchpad.net/glance/+bug/1639685/+subscriptions


Follow ups