← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1467719] [NEW] image-create returns wrong error

 

Public bug reported:

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

** Affects: glance
     Importance: Undecided
     Assignee: takmatsu (takeaki-matsumoto)
         Status: New

** Changed in: glance
     Assignee: (unassigned) => takmatsu (takeaki-matsumoto)

-- 
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 OpenStack Image Registry and Delivery Service (Glance):
  New

Bug description:
  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

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


Follow ups

References