** Changed in: glance
Importance: Undecided => Low
** Also affects: glance/liberty
Importance: Low
Assignee: takmatsu (takeaki-matsumoto)
Status: In Progress
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to Glance.
https://bugs.launchpad.net/bugs/1467719
Title:
image-create returns wrong error
Status in Glance:
In Progress
Status in Glance liberty series:
In Progress
Bug description:
When set wrong credentials in glance-api.conf and not exist
~/.glanceclient/image_schema.json,
image-create returns unrecognized arguments.
ex)
$vim /etc/glance/glance-api.conf
[keystone_authtoken]
...
password = wrongpassword #set wrong password
...
$ sudo service glance-api restart
$ rm ~/.glanceclient/image_schema.json
$ export OS_IMAGE_API_VERSION=2
$ wget -P /tmp/images
http://download.cirros-cloud.net/0.3.4/cirros-0.3.4-x86_64-disk.img
$ 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
To manage notifications about this bug go to:
https://bugs.launchpad.net/glance/+bug/1467719/+subscriptions
--
Mailing list: https://launchpad.net/~yahoo-eng-team
Post to : [email protected]
Unsubscribe : https://launchpad.net/~yahoo-eng-team
More help : https://help.launchpad.net/ListHelp