When set wrong credentials in glance-api.conf and not exist ~/.glanceclient/image_schema.json, image-create returns unrecognized arguments.
ex) glance-api.conf [keystone_authtoken] ... password = wrongpassword ...
$ 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
When set wrong credentials in glance-api.conf and not exist ~/.glanceclient /image_ schema. json,
image-create returns unrecognized arguments.
ex) authtoken]
glance-api.conf
[keystone_
...
password = wrongpassword
...
$ 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