Steps to reproduce.
1. Delete glanceclient cache in ~/.glanceclient
2. Change server credentials to invalid in /etc/glance/glance-api.conf: section [keystone_authtoken], param 'password'
3. Restart the server
4. Try to create image with v2 api (glance --os-image-api-version 2 image-create --name Privetik --disk-format raw --container-format bare)
Steps to reproduce. glance- api.conf: section [keystone_ authtoken] , param 'password' api-version 2 image-create --name Privetik --disk-format raw --container-format bare)
1. Delete glanceclient cache in ~/.glanceclient
2. Change server credentials to invalid in /etc/glance/
3. Restart the server
4. Try to create image with v2 api (glance --os-image-
Expected result: Invalid OpenStack Identity credentials.
Actual result:
[--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> ...
usage: glance [--version] [-d] [-v] [--get-schema] [--timeout TIMEOUT]
glance: error: unrecognized arguments: --name --disk-format raw --container-format bare