[Bug 1461170] [NEW] glance parses " incorrectly when creating new images.
Mike Lloyd
kevin.michael.lloyd at gmail.com
Tue Jun 2 17:02:08 UTC 2015
Public bug reported:
This command fails:
root at controller-1:~# glance image-create --name "cirros-0.3.4-x86_64" --file /tmp/images/cirros-0.3.4-x86_64-disk.img --disk-format qcow2 --container-format bare --visibility public --progress
usage: glance [--version] [-d] [-v] [--get-schema] [--timeout TIMEOUT]
[--no-ssl-compression] [-f] [--os-image-url OS_IMAGE_URL]
[--os-image-api-version OS_IMAGE_API_VERSION]
[--profile HMAC_KEY] [-k] [--os-cert OS_CERT]
[--cert-file OS_CERT] [--os-key OS_KEY] [--key-file OS_KEY]
[--os-cacert <ca-certificate-file>] [--ca-file OS_CACERT]
[--os-username OS_USERNAME] [--os-user-id OS_USER_ID]
[--os-user-domain-id OS_USER_DOMAIN_ID]
[--os-user-domain-name OS_USER_DOMAIN_NAME]
[--os-project-id OS_PROJECT_ID]
[--os-project-name OS_PROJECT_NAME]
[--os-project-domain-id OS_PROJECT_DOMAIN_ID]
[--os-project-domain-name OS_PROJECT_DOMAIN_NAME]
[--os-password OS_PASSWORD] [--os-tenant-id OS_TENANT_ID]
[--os-tenant-name OS_TENANT_NAME] [--os-auth-url OS_AUTH_URL]
[--os-region-name OS_REGION_NAME]
[--os-auth-token OS_AUTH_TOKEN]
[--os-service-type OS_SERVICE_TYPE]
[--os-endpoint-type OS_ENDPOINT_TYPE]
<subcommand> ...
glance: error: unrecognized arguments: --name --disk-format qcow2 --container-format bare --visibility public
This command succeeds:
root at controller-1:~# glance image-create --name cirros-0.3.4-x86_64 --file /tmp/images/cirros-0.3.4-x86_64-disk.img --disk-format qcow2 --container-format bare --visibility public --progress
[=============================>] 100%
+------------------+--------------------------------------+
| Property | Value |
+------------------+--------------------------------------+
| checksum | ee1eca47dc88f4879d8a229cc70a07c6 |
| container_format | bare |
| created_at | 2015-06-02T16:56:45Z |
| disk_format | qcow2 |
| id | c6d64ec3-c2cc-43d0-bcfb-b1e1afd02793 |
| min_disk | 0 |
| min_ram | 0 |
| name | cirros-0.3.4-x86_64 |
| owner | 8dd1052ce0204770ad22cc4e38df88cc |
| protected | False |
| size | 13287936 |
| status | active |
| tags | [] |
| updated_at | 2015-06-02T16:56:47Z |
| virtual_size | None |
| visibility | public |
+------------------+--------------------------------------+
Glance version:
root at controller-1:~# glance --version
0.15.0
root at controller-1:~# bash --version
GNU bash, version 4.3.11(1)-release (x86_64-pc-linux-gnu)
Ubuntu Version:
root at controller-1:~# cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=14.04
DISTRIB_CODENAME=trusty
DISTRIB_DESCRIPTION="Ubuntu 14.04.2 LTS"
The documentation uses " around cirros-0.3.4-x86_64 and that is causing
the command to fail.
-----------------------------------
Built: 2015-06-02T07:28:13 00:00
git SHA: ec9656cef3faba478bc2796034515fa60c14773d
URL: http://docs.openstack.org/kilo/install-guide/install/apt/content/glance-verify.html
source File: file:/home/jenkins/workspace/openstack-manuals-tox-doc-publishdocs/doc/install-guide/section_glance-verify.xml
xml:id: glance-verify
** Affects: openstack-manuals
Importance: Undecided
Status: New
** Affects: python-glanceclient (Ubuntu)
Importance: Undecided
Status: New
** Tags: glance
** Also affects: python-glanceclient (Ubuntu)
Importance: Undecided
Status: New
** Description changed:
This command fails:
- glance image-create --name "cirros-0.3.4-x86_64" --file /tmp/images/cirros-0.3.4-x86_64-disk.img --disk-format qcow2 --container-format bare --visibility public --progress
+ root at controller-1:~# glance image-create --name "cirros-0.3.4-x86_64" --file /tmp/images/cirros-0.3.4-x86_64-disk.img --disk-format qcow2 --container-format bare --visibility public --progress
+ usage: glance [--version] [-d] [-v] [--get-schema] [--timeout TIMEOUT]
+ [--no-ssl-compression] [-f] [--os-image-url OS_IMAGE_URL]
+ [--os-image-api-version OS_IMAGE_API_VERSION]
+ [--profile HMAC_KEY] [-k] [--os-cert OS_CERT]
+ [--cert-file OS_CERT] [--os-key OS_KEY] [--key-file OS_KEY]
+ [--os-cacert <ca-certificate-file>] [--ca-file OS_CACERT]
+ [--os-username OS_USERNAME] [--os-user-id OS_USER_ID]
+ [--os-user-domain-id OS_USER_DOMAIN_ID]
+ [--os-user-domain-name OS_USER_DOMAIN_NAME]
+ [--os-project-id OS_PROJECT_ID]
+ [--os-project-name OS_PROJECT_NAME]
+ [--os-project-domain-id OS_PROJECT_DOMAIN_ID]
+ [--os-project-domain-name OS_PROJECT_DOMAIN_NAME]
+ [--os-password OS_PASSWORD] [--os-tenant-id OS_TENANT_ID]
+ [--os-tenant-name OS_TENANT_NAME] [--os-auth-url OS_AUTH_URL]
+ [--os-region-name OS_REGION_NAME]
+ [--os-auth-token OS_AUTH_TOKEN]
+ [--os-service-type OS_SERVICE_TYPE]
+ [--os-endpoint-type OS_ENDPOINT_TYPE]
+ <subcommand> ...
+ glance: error: unrecognized arguments: --name --disk-format qcow2 --container-format bare --visibility public
This command succeeds:
- glance image-create --name cirros-0.3.4-x86_64 --file /tmp/images/cirros-0.3.4-x86_64-disk.img --disk-format qcow2 --container-format bare --visibility public --progress
+ root at controller-1:~# glance image-create --name cirros-0.3.4-x86_64 --file /tmp/images/cirros-0.3.4-x86_64-disk.img --disk-format qcow2 --container-format bare --visibility public --progress
+ [=============================>] 100%
+ +------------------+--------------------------------------+
+ | Property | Value |
+ +------------------+--------------------------------------+
+ | checksum | ee1eca47dc88f4879d8a229cc70a07c6 |
+ | container_format | bare |
+ | created_at | 2015-06-02T16:56:45Z |
+ | disk_format | qcow2 |
+ | id | c6d64ec3-c2cc-43d0-bcfb-b1e1afd02793 |
+ | min_disk | 0 |
+ | min_ram | 0 |
+ | name | cirros-0.3.4-x86_64 |
+ | owner | 8dd1052ce0204770ad22cc4e38df88cc |
+ | protected | False |
+ | size | 13287936 |
+ | status | active |
+ | tags | [] |
+ | updated_at | 2015-06-02T16:56:47Z |
+ | virtual_size | None |
+ | visibility | public |
+ +------------------+--------------------------------------+
Glance version:
root at controller-1:~# glance --version
0.15.0
root at controller-1:~# bash --version
GNU bash, version 4.3.11(1)-release (x86_64-pc-linux-gnu)
Ubuntu Version:
root at controller-1:~# cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=14.04
DISTRIB_CODENAME=trusty
DISTRIB_DESCRIPTION="Ubuntu 14.04.2 LTS"
The documentation uses " around cirros-0.3.4-x86_64 and that is causing
the command to fail.
-----------------------------------
Built: 2015-06-02T07:28:13 00:00
git SHA: ec9656cef3faba478bc2796034515fa60c14773d
URL: http://docs.openstack.org/kilo/install-guide/install/apt/content/glance-verify.html
source File: file:/home/jenkins/workspace/openstack-manuals-tox-doc-publishdocs/doc/install-guide/section_glance-verify.xml
xml:id: glance-verify
--
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to python-glanceclient in Ubuntu.
https://bugs.launchpad.net/bugs/1461170
Title:
glance parses " incorrectly when creating new images.
To manage notifications about this bug go to:
https://bugs.launchpad.net/openstack-manuals/+bug/1461170/+subscriptions
More information about the Ubuntu-server-bugs
mailing list