Comment 18 for bug 1196666

Revision history for this message
weiguo sun (wsun2) wrote :

Hmm, maybe glance-client v2 does not implement "create" function and cinder is calling glance-client v2? See the following command output, which indicate no "create function". If you reset the API_VERSION to 1, you can see the difference.

root@svl-ceph-10:~# export OS_IMAGE_API_VERSION="2"
root@svl-ceph-10:~# glance --help
usage: glance [--version] [-d] [-v] [-k] [--cert-file CERT_FILE]
              [--key-file KEY_FILE] [--os-cacert <ca-certificate-file>]
              [--ca-file OS_CACERT] [--timeout TIMEOUT] [--no-ssl-compression]
              [-f] [--dry-run] [--ssl] [-H ADDRESS] [-p PORT]
              [--os-username OS_USERNAME] [-I OS_USERNAME]
              [--os-password OS_PASSWORD] [-K OS_PASSWORD]
              [--os-tenant-id OS_TENANT_ID] [--os-tenant-name OS_TENANT_NAME]
              [-T OS_TENANT_NAME] [--os-auth-url OS_AUTH_URL] [-N OS_AUTH_URL]
              [--os-region-name OS_REGION_NAME] [-R OS_REGION_NAME]
              [--os-auth-token OS_AUTH_TOKEN] [-A OS_AUTH_TOKEN]
              [--os-image-url OS_IMAGE_URL] [-U OS_IMAGE_URL]
              [--os-image-api-version OS_IMAGE_API_VERSION]
              [--os-service-type OS_SERVICE_TYPE]
              [--os-endpoint-type OS_ENDPOINT_TYPE] [-S OS_AUTH_STRATEGY]
              <subcommand> ...

Command-line interface to the OpenStack Images API.

Positional arguments:
  <subcommand>
    explain Describe a specific model.
    image-delete Delete specified image.
    image-download Download a specific image.
    image-list List images you can access.
    image-show Describe a specific image.
    help Display help about this program or one of its
                        subcommands.

Optional arguments: