Giter Club home page Giter Club logo

Comments (6)

AJNOURI avatar AJNOURI commented on July 22, 2024 1

After deleting cinder user account and role

keystone user-delete ac379f8146a04aecbd3967c42ff08e80
keystone role-delete b33e2292a48148329d3865a5e553b45e

Couldn't re-create cinder user

keystone user-create --name cinder --pass linuxacademy123 --email [email protected]

ERROR: The server has either erred or is incapable of performing the requested operation. (HTTP 500) (Request-ID: req-981395c9-d498-4340-8911-0d682e9b68c1)

So, re-issued the pre-admin token

create pre-environment

export OS_SERVICE_TOKEN=f9b8cdcbc001859b8afd
export OS_SERVICE_ENDPOINT=http://controller:35357/v2.0

keystone user-create --name=admin --pass=linuxacademy123 [email protected]

WARNING: Bypassing authentication using a token & endpoint (authentication credentials are being ignored).

keystone user-role-add --user=admin --tenant=admin --role=admin

WARNING: Bypassing authentication using a token & endpoint (authentication credentials are being ignored).

Had to synchronize cinder db
cinder-manage db sync

cinder create --display-name myVolume 1

+---------------------+--------------------------------------+
| Property | Value |
+---------------------+--------------------------------------+
| attachments | [] |
| availability_zone | nova |
| bootable | false |
| created_at | 2016-09-26T14:05:17.794081 |
| display_description | None |
| display_name | myVolume |
| encrypted | False |
| id | 615f43b6-9cf2-45ac-980c-6ad1af8407e9 |
| metadata | {} |
| size | 1 |
| snapshot_id | None |
| source_volid | None |
| status | creating |
| volume_type | None |
+---------------------+--------------------------------------+

cinder list

+--------------------------------------+----------+--------------+------+-------------+----------+-------------+
| ID | Status | Display Name | Size | Volume Type | Bootable | Attached to |
+--------------------------------------+----------+--------------+------+-------------+----------+-------------+
| 615f43b6-9cf2-45ac-980c-6ad1af8407e9 | creating | myVolume | 1 | None | false | |
+--------------------------------------+----------+--------------+------+-------------+----------+-------------+

from coa.

AJNOURI avatar AJNOURI commented on July 22, 2024

root@controller:/home/ajn# keystone service-list

+----------------------------------+----------+----------+----------------------------+
| id | name | type | description |
+----------------------------------+----------+----------+----------------------------+
| 59444178b0684e2190e4bf72364d233d | cinder | volume | OpenStack Block Storage |
| f77d550f311e43bdaface215126052e8 | cinderv2 | volumev2 | OpenStack Block Storage v2 |
| 5e9e4be37ce34f85aef9cfd14145bf24 | glance | image | OpenStack Image Service |
| c5f7064c56464de29a60f000aa350104 | keystone | identity | Openstack Identity |
| 36295f71b6b74e98ac72b0b5d4fb9078 | neutron | network | OpenStack Networking |
| 581a6d77b5d64f2caac4a626437cffd2 | nova | compute | OpenStack Compute |
+----------------------------------+----------+----------+----------------------------+

root@controller:/home/ajn# keystone endpoint-list

+----------------------------------+-----------+-----------------------------------------+-----------------------------------------+-----------------------------------------+----------------------------------+
| id | region | publicurl | internalurl | adminurl | service_id |
+----------------------------------+-----------+-----------------------------------------+-----------------------------------------+-----------------------------------------+----------------------------------+
| 2acb0ff913984b77b21a23dcee9afd13 | regionOne | http://controller:8776/v2/%(tenant_id)s | http://controller:8776/v2/%(tenant_id)s | http://controller:8776/v2/%(tenant_id)s | 59444178b0684e2190e4bf72364d233d |
| 9c093111dcc34241bf679ed825803791 | regionOne | http://controller:9292 | http://controller:9292 | http://controller:9292 | 5e9e4be37ce34f85aef9cfd14145bf24 |
| a5680e7911c64bea8d6dccd25c2ec894 | regionOne | http://controller:8776/v1/%(tenant_id)s | http://controller:8776/v1/%(tenant_id)s | http://controller:8776/v1/%(tenant_id)s | 59444178b0684e2190e4bf72364d233d |
| d4b65ab910b3455db3e7af86903b4bbc | regionOne | http://controller:9696 | http://controller:9696 | http://controller:9696 | 36295f71b6b74e98ac72b0b5d4fb9078 |
| d51b92db666a462f80c2a568ef9a563d | regionOne | http://controller:5000/v2.0 | http://controller:5000/v2.0 | http://controller:35357/v2.0 | c5f7064c56464de29a60f000aa350104 |
| df9e945fb3bc4d7f9a07d16b59606a61 | regionOne | http://controller:8774/v2/%(tenant_id)s | http://controller:8774/v2/%(tenant_id)s | http://controller:8774/v2/%(tenant_id)s | 581a6d77b5d64f2caac4a626437cffd2 |
+----------------------------------+-----------+-----------------------------------------+-----------------------------------------+-----------------------------------------+----------------------------------+

from coa.

AJNOURI avatar AJNOURI commented on July 22, 2024

Even though I removed v1 cinder endpoint, still refering to it by the client

keystone endpoint-list

+----------------------------------+-----------+-----------------------------------------+-----------------------------------------+-----------------------------------------+----------------------------------+
| id | region | publicurl | internalurl | adminurl | service_id |
+----------------------------------+-----------+-----------------------------------------+-----------------------------------------+-----------------------------------------+----------------------------------+
| 9c093111dcc34241bf679ed825803791 | regionOne | http://controller:9292 | http://controller:9292 | http://controller:9292 | 5e9e4be37ce34f85aef9cfd14145bf24 |
| b8719060a3004e1291d213ba92fcec8a | regionOne | http://controller:8776/v2/%(tenant_id)s | http://controller:8776/v2/%(tenant_id)s | http://controller:8776/v2/%(tenant_id)s | 59444178b0684e2190e4bf72364d233d |
| d4b65ab910b3455db3e7af86903b4bbc | regionOne | http://controller:9696 | http://controller:9696 | http://controller:9696 | 36295f71b6b74e98ac72b0b5d4fb9078 |
| df9e945fb3bc4d7f9a07d16b59606a61 | regionOne | http://controller:8774/v2/%(tenant_id)s | http://controller:8774/v2/%(tenant_id)s | http://controller:8774/v2/%(tenant_id)s | 581a6d77b5d64f2caac4a626437cffd2 |
| e5241b20f25847148e85d57b2feee030 | regionOne | http://controller:5000/v2.0 | http://controller:5000/v2.0 | http://controller:35357/v2.0 | 34392ff821624a07800d04df07720630 |
+----------------------------------+-----------+-----------------------------------------+-----------------------------------------+-----------------------------------------+----------------------------------+

cinder create --display-name myVolume 1

ERROR: Volume API version is set to 1 but you are accessing a 2 endpoint. Change its value via either --os-volume-api-version or env[OS_VOLUME_API_VERSION]

from coa.

AJNOURI avatar AJNOURI commented on July 22, 2024

1- I found that I've created cinder v2 endpoint under the wrong service id (v1)
I've used
$(keystone service-list | awk '/ volume / {print $2}')
to create v2 endpoints , instead of
$(keystone service-list | awk '/ volumev2 / {print $2}')

2- Mistyping is the database configuration section of /etc/cinder/cinder.conf
from
conection = mysql://cinder:linuxacademy123@controller//cinder
to
connection = mysql://cinder:linuxacademy123@controller/cinder
Now I got :
cinder create --display-name myVolume1 1

ERROR: Unauthorized (HTTP 401)

For more investigations, here is an offline skim over of cinder configuration on the controller and cinder block nodes:
https://asciinema.org/a/87000

from coa.

AJNOURI avatar AJNOURI commented on July 22, 2024

Here is a verbose command:

cinder --debug create --display-name myVolume1 1

REQ: curl -i http://controller:5000/v2.0/tokens -X POST -H "Content-Type: application/json" -H "Accept: application/json" -H "User-Agent: python-cinderclient" -d '{"auth": {"tenantName": "admin", "passwordCredentials": {"username": "admin", "password": "linuxacademy123"}}}'

DEBUG:cinderclient.client:
REQ: curl -i http://controller:5000/v2.0/tokens -X POST -H "Content-Type: application/json" -H "Accept: application/json" -H "User-Agent: python-cinderclient" -d '{"auth": {"tenantName": "admin", "passwordCredentials": {"username": "admin", "password": "linuxacademy123"}}}'

RESP: [200] CaseInsensitiveDict({'date': 'Sun, 25 Sep 2016 14:41:40 GMT', 'vary': 'X-Auth-Token', 'content-length': '6313', 'content-type': 'application/json', 'x-distribution': 'Ubuntu'})
RESP BODY: {"access": {"token": {"issued_at": "2016-09-25T14:41:40.751579", "expires": "2016-09-25T15:41:40Z", "id": "MIILVQYJKoZIhvcNAQcCoIILRjCCC0ICAQExDTALBglghkgBZQMEAgEwggmjBgkqhkiG9w0BBwGgggm

Og4IfJHNRRy+aXk4LfzfQG+t9uc-ZFmiKkalH9wHTKABQGrvp1fJpg0B4LC4eGMcw+2vPth1yVEU9WTlHmlmLw1l5Bm77RxB3dcqeDVcUyQzfSHdbj2VjiJ-ASh6pNmVR7859iBhrhpbyZToHWD1eR6NPQFoQJbgOKr8orBM8HGOQri5aj5GzirjP+y28qAIVO4jlWqzbI9rGu5Xm+5aj3Phq049Pu+rZ-SWmnJNhROw==", "tenant": {"description": "Admin tenant", "enabled": true, "id": "cdbcbc3eeb8a472c8abb2b67e749774c", "name": "admin"}}, "serviceCatalog": [{"endpoints": [{"adminURL": "http://controller:8774/v2/cdbcbc3eeb8a472c8abb2b67e749774c", "region": "regionOne", "internalURL": "http://controller:8774/v2/cdbcbc3eeb8a472c8abb2b67e749774c", "id": "0f8ce6c5b57d4e468a7bdf8e05d1277a", "publicURL": "http://controller:8774/v2/cdbcbc3eeb8a472c8abb2b67e749774c"}], "endpoints_links": [], "type": "compute", "name": "nova"}, {"endpoints": [{"adminURL": "http://controller:9696", "region": "regionOne", "internalURL": "http://controller:9696", "id": "50a493f2dcb14cff9eedd2ffca541b14", "publicURL": "http://controller:9696"}], "endpoints_links": [], "type": "network", "name": "neutron"}, {"endpoints": [{"adminURL": "http://controller:8776/v2/cdbcbc3eeb8a472c8abb2b67e749774c", "region": "regionOne", "internalURL": "http://controller:8776/v2/cdbcbc3eeb8a472c8abb2b67e749774c", "id": "5700f74a49ad447d88e9d7189b4532ed", "publicURL": "http://controller:8776/v2/cdbcbc3eeb8a472c8abb2b67e749774c"}], "endpoints_links": [], "type": "volumev2", "name": "cinderv2"}, {"endpoints": [{"adminURL": "http://controller:9292", "region": "regionOne", "internalURL": "http://controller:9292", "id": "06ea9a3f2e384b7693ecd957fcfb337b", "publicURL": "http://controller:9292"}], "endpoints_links": [], "type": "image", "name": "glance"}, {"endpoints": [{"adminURL": "http://controller:8776/v1/cdbcbc3eeb8a472c8abb2b67e749774c", "region": "regionOne", "internalURL": "http://controller:8776/v1/cdbcbc3eeb8a472c8abb2b67e749774c", "id": "60bf9cad87df41f3b58badf3dd81fc1a", "publicURL": "http://controller:8776/v1/cdbcbc3eeb8a472c8abb2b67e749774c"}], "endpoints_links": [], "type": "volume", "name": "cinder"}, {"endpoints": [{"adminURL": "http://controller:35357/v2.0", "region": "regionOne", "internalURL": "http://controller:5000/v2.0", "id": "8f7bce4e0629429e9204efb9d1399ee1", "publicURL": "http://controller:5000/v2.0"}], "endpoints_links": [], "type": "identity", "name": "keystone"}], "user": {"username": "admin", "roles_links": [], "id": "f75636c99f754d0286f20fad1ce0eb33", "roles": [{"name": "member"}, {"name": "admin"}], "name": "admin"}, "metadata": {"is_admin": 0, "roles": ["9fe2ff9ee4384b1894a90878d3e92bab", "b33e2292a48148329d3865a5e553b45e"]}}}

DEBUG:cinderclient.client:RESP: [200] CaseInsensitiveDict({'date': 'Sun, 25 Sep 2016 14:41:40 GMT', 'vary': 'X-Auth-Token', 'content-length': '6313', 'content-type': 'application/json', 'x-distribution': 'Ubuntu'})
RESP BODY: {"access": {"token": {"issued_at": "2016-09-25T14:41:40.751579", "expires": "2016-09-25T15:41:40Z", "id": "MIILVQYJKoZIhvcNAQcCoIILRjCCC0ICAQExDTALBglghkgBZQMEAgEwggmjBgkqhkiG9w0BBwGgggm

Og4IfJHNRRy+aXk4LfzfQG+t9uc-ZFmiKkalH9wHTKABQGrvp1fJpg0B4LC4eGMcw+2vPth1yVEU9WTlHmlmLw1l5Bm77RxB3dcqeDVcUyQzfSHdbj2VjiJ-ASh6pNmVR7859iBhrhpbyZToHWD1eR6NPQFoQJbgOKr8orBM8HGOQri5aj5GzirjP+y28qAIVO4jlWqzbI9rGu5Xm+5aj3Phq049Pu+rZ-SWmnJNhROw==", "tenant": {"description": "Admin tenant", "enabled": true, "id": "cdbcbc3eeb8a472c8abb2b67e749774c", "name": "admin"}}, "serviceCatalog": [{"endpoints": [{"adminURL": "http://controller:8774/v2/cdbcbc3eeb8a472c8abb2b67e749774c", "region": "regionOne", "internalURL": "http://controller:8774/v2/cdbcbc3eeb8a472c8abb2b67e749774c", "id": "0f8ce6c5b57d4e468a7bdf8e05d1277a", "publicURL": "http://controller:8774/v2/cdbcbc3eeb8a472c8abb2b67e749774c"}], "endpoints_links": [], "type": "compute", "name": "nova"}, {"endpoints": [{"adminURL": "http://controller:9696", "region": "regionOne", "internalURL": "http://controller:9696", "id": "50a493f2dcb14cff9eedd2ffca541b14", "publicURL": "http://controller:9696"}], "endpoints_links": [], "type": "network", "name": "neutron"}, {"endpoints": [{"adminURL": "http://controller:8776/v2/cdbcbc3eeb8a472c8abb2b67e749774c", "region": "regionOne", "internalURL": "http://controller:8776/v2/cdbcbc3eeb8a472c8abb2b67e749774c", "id": "5700f74a49ad447d88e9d7189b4532ed", "publicURL": "http://controller:8776/v2/cdbcbc3eeb8a472c8abb2b67e749774c"}], "endpoints_links": [], "type": "volumev2", "name": "cinderv2"}, {"endpoints": [{"adminURL": "http://controller:9292", "region": "regionOne", "internalURL": "http://controller:9292", "id": "06ea9a3f2e384b7693ecd957fcfb337b", "publicURL": "http://controller:9292"}], "endpoints_links": [], "type": "image", "name": "glance"}, {"endpoints": [{"adminURL": "http://controller:8776/v1/cdbcbc3eeb8a472c8abb2b67e749774c", "region": "regionOne", "internalURL": "http://controller:8776/v1/cdbcbc3eeb8a472c8abb2b67e749774c", "id": "60bf9cad87df41f3b58badf3dd81fc1a", "publicURL": "http://controller:8776/v1/cdbcbc3eeb8a472c8abb2b67e749774c"}], "endpoints_links": [], "type": "volume", "name": "cinder"}, {"endpoints": [{"adminURL": "http://controller:35357/v2.0", "region": "regionOne", "internalURL": "http://controller:5000/v2.0", "id": "8f7bce4e0629429e9204efb9d1399ee1", "publicURL": "http://controller:5000/v2.0"}], "endpoints_links": [], "type": "identity", "name": "keystone"}], "user": {"username": "admin", "roles_links": [], "id": "f75636c99f754d0286f20fad1ce0eb33", "roles": [{"name": "member"}, {"name": "admin"}], "name": "admin"}, "metadata": {"is_admin": 0, "roles": ["9fe2ff9ee4384b1894a90878d3e92bab", "b33e2292a48148329d3865a5e553b45e"]}}}

REQ: curl -i http://controller:8776/v1/cdbcbc3eeb8a472c8abb2b67e749774c/volumes -X POST -H "X-Auth-Project-Id: admin" -H "User-Agent: python-cinderclient" -H "Content-Type: application/json" -H "Accept: application/json" -H "X-Auth-Token: MIILVQYJKoZIhvcNAQcCoIILRjCCC0ICAQExDTALBglghkgBZQMEAgEwggmjBgkqhkiG9w0BBwGgggm

U+UbzGHpJMQCCezehFnDXQgVxnEHkhKehijIhrEiUNT2KXEbMkmIKUC0cZ+Ea-Og4IfJHNRRy+aXk4LfzfQG+t9uc-ZFmiKkalH9wHTKABQGrvp1fJpg0B4LC4eGMcw+2vPth1yVEU9WTlHmlmLw1l5Bm77RxB3dcqeDVcUyQzfSHdbj2VjiJ-ASh6pNmVR7859iBhrhpbyZToHWD1eR6NPQFoQJbgOKr8orBM8HGOQri5aj5GzirjP+y28qAIVO4jlWqzbI9rGu5Xm+5aj3Phq049Pu+rZ-SWmnJNhROw==" -d '{"volume": {"status": "creating", "availability_zone": null, "source_volid": null, "display_description": null, "snapshot_id": null, "user_id": null, "size": 1, "display_name": "myVolume1", "imageRef": null, "attach_status": "detached", "volume_type": null, "project_id": null, "metadata": {}}}'

DEBUG:cinderclient.client:
REQ: curl -i http://controller:8776/v1/cdbcbc3eeb8a472c8abb2b67e749774c/volumes -X POST -H "X-Auth-Project-Id: admin" -H "User-Agent: python-cinderclient" -H "Content-Type: application/json" -H "Accept: application/json" -H "X-Auth-Token: MIILVQYJKoZIhvcNAQcCoIILRjCCC0ICAQExDTALBglghkgBZQMEAgEwggmjBgkqhkiG9w0BBwGgggm>

ASh6pNmVR7859iBhrhpbyZToHWD1eR6NPQFoQJbgOKr8orBM8HGOQri5aj5GzirjP+y28qAIVO4jlWqzbI9rGu5Xm+5aj3Phq049Pu+rZ-SWmnJNhROw==" -d '{"volume": {"status": "creating", "availability_zone": null, "source_volid": null, "display_description": null, "snapshot_id": null, "user_id": null, "size": 1, "display_name": "myVolume1", "imageRef": null, "attach_status": "detached", "volume_type": null, "project_id": null, "metadata": {}}}'

RESP: [401] CaseInsensitiveDict({'date': 'Sun, 25 Sep 2016 14:41:44 GMT', 'content-length': '23', 'content-type': 'text/plain', 'www-authenticate': "Keystone uri='https://127.0.0.1:35357'", 'x-openstack-request-id': 'req-5643eb55-fdd2-405a-8948-75bc90952b06'})
RESP BODY: Authentication required

DEBUG:cinderclient.client:RESP: [401] CaseInsensitiveDict({'date': 'Sun, 25 Sep 2016 14:41:44 GMT', 'content-length': '23', 'content-type': 'text/plain', 'www-authenticate': "Keystone uri='https://127.0.0.1:35357'", 'x-openstack-request-id': 'req-5643eb55-fdd2-405a-8948-75bc90952b06'})
RESP BODY: Authentication required

Unauthorized, reauthenticating.
DEBUG:cinderclient.client:Unauthorized, reauthenticating.

REQ: curl -i http://controller:5000/v2.0/tokens -X POST -H "Content-Type: application/json" -H "Accept: application/json" -H "User-Agent: python-cinderclient" -d '{"auth": {"tenantName": "admin", "passwordCredentials": {"username": "admin", "password": "linuxacademy123"}}}'

DEBUG:cinderclient.client:
REQ: curl -i http://controller:5000/v2.0/tokens -X POST -H "Content-Type: application/json" -H "Accept: application/json" -H "User-Agent: python-cinderclient" -d '{"auth": {"tenantName": "admin", "passwordCredentials": {"username": "admin", "password": "linuxacademy123"}}}'

RESP: [200] CaseInsensitiveDict({'date': 'Sun, 25 Sep 2016 14:41:44 GMT', 'vary': 'X-Auth-Token', 'content-length': '6313', 'content-type': 'application/json', 'x-distribution': 'Ubuntu'})
RESP BODY: {"access": {"token": {"issued_at": "2016-09-25T14:41:44.471786", "expires": "2016-09-25T15:41:44Z", "id": "MIILVQYJKoZIhvcNAQcCoIILRjCCC0ICAQExDTALBglghkgBZQMEAgEwggmjBgkqhkiG9w0BBwGgggm>

aNaxk0F6ViD7s4jsAx+YO2m-rPJgCjzZfrzrSXig6BNz0L3Gq9A==", "tenant": {"description": "Admin tenant", "enabled": true, "id": "cdbcbc3eeb8a472c8abb2b67e749774c", "name": "admin"}}, "serviceCatalog": [{"endpoints": [{"adminURL": "http://controller:8774/v2/cdbcbc3eeb8a472c8abb2b67e749774c", "region": "regionOne", "internalURL": "http://controller:8774/v2/cdbcbc3eeb8a472c8abb2b67e749774c", "id": "0f8ce6c5b57d4e468a7bdf8e05d1277a", "publicURL": "http://controller:8774/v2/cdbcbc3eeb8a472c8abb2b67e749774c"}], "endpoints_links": [], "type": "compute", "name": "nova"}, {"endpoints": [{"adminURL": "http://controller:9696", "region": "regionOne", "internalURL": "http://controller:9696", "id": "50a493f2dcb14cff9eedd2ffca541b14", "publicURL": "http://controller:9696"}], "endpoints_links": [], "type": "network", "name": "neutron"}, {"endpoints": [{"adminURL": "http://controller:8776/v2/cdbcbc3eeb8a472c8abb2b67e749774c", "region": "regionOne", "internalURL": "http://controller:8776/v2/cdbcbc3eeb8a472c8abb2b67e749774c", "id": "5700f74a49ad447d88e9d7189b4532ed", "publicURL": "http://controller:8776/v2/cdbcbc3eeb8a472c8abb2b67e749774c"}], "endpoints_links": [], "type": "volumev2", "name": "cinderv2"}, {"endpoints": [{"adminURL": "http://controller:9292", "region": "regionOne", "internalURL": "http://controller:9292", "id": "06ea9a3f2e384b7693ecd957fcfb337b", "publicURL": "http://controller:9292"}], "endpoints_links": [], "type": "image", "name": "glance"}, {"endpoints": [{"adminURL": "http://controller:8776/v1/cdbcbc3eeb8a472c8abb2b67e749774c", "region": "regionOne", "internalURL": "http://controller:8776/v1/cdbcbc3eeb8a472c8abb2b67e749774c", "id": "60bf9cad87df41f3b58badf3dd81fc1a", "publicURL": "http://controller:8776/v1/cdbcbc3eeb8a472c8abb2b67e749774c"}], "endpoints_links": [], "type": "volume", "name": "cinder"}, {"endpoints": [{"adminURL": "http://controller:35357/v2.0", "region": "regionOne", "internalURL": "http://controller:5000/v2.0", "id": "8f7bce4e0629429e9204efb9d1399ee1", "publicURL": "http://controller:5000/v2.0"}], "endpoints_links": [], "type": "identity", "name": "keystone"}], "user": {"username": "admin", "roles_links": [], "id": "f75636c99f754d0286f20fad1ce0eb33", "roles": [{"name": "member"}, {"name": "admin"}], "name": "admin"}, "metadata": {"is_admin": 0, "roles": ["9fe2ff9ee4384b1894a90878d3e92bab", "b33e2292a48148329d3865a5e553b45e"]}}}

DEBUG:cinderclient.client:RESP: [200] CaseInsensitiveDict({'date': 'Sun, 25 Sep 2016 14:41:44 GMT', 'vary': 'X-Auth-Token', 'content-length': '6313', 'content-type': 'application/json', 'x-distribution': 'Ubuntu'})
RESP BODY: {"access": {"token": {"issued_at": "2016-09-25T14:41:44.471786", "expires": "2016-09-25T15:41:44Z", "id": "MIILVQYJKoZIhvcNAQcCoIILRjCCC0ICAQExDTALBglghkgBZQMEAgEwggmjBgkqhkiG9w0BBwGgggm>

aNaxk0F6ViD7s4jsAx+YO2m-rPJgCjzZfrzrSXig6BNz0L3Gq9A==", "tenant": {"description": "Admin tenant", "enabled": true, "id": "cdbcbc3eeb8a472c8abb2b67e749774c", "name": "admin"}}, "serviceCatalog": [{"endpoints": [{"adminURL": "http://controller:8774/v2/cdbcbc3eeb8a472c8abb2b67e749774c", "region": "regionOne", "internalURL": "http://controller:8774/v2/cdbcbc3eeb8a472c8abb2b67e749774c", "id": "0f8ce6c5b57d4e468a7bdf8e05d1277a", "publicURL": "http://controller:8774/v2/cdbcbc3eeb8a472c8abb2b67e749774c"}], "endpoints_links": [], "type": "compute", "name": "nova"}, {"endpoints": [{"adminURL": "http://controller:9696", "region": "regionOne", "internalURL": "http://controller:9696", "id": "50a493f2dcb14cff9eedd2ffca541b14", "publicURL": "http://controller:9696"}], "endpoints_links": [], "type": "network", "name": "neutron"}, {"endpoints": [{"adminURL": "http://controller:8776/v2/cdbcbc3eeb8a472c8abb2b67e749774c", "region": "regionOne", "internalURL": "http://controller:8776/v2/cdbcbc3eeb8a472c8abb2b67e749774c", "id": "5700f74a49ad447d88e9d7189b4532ed", "publicURL": "http://controller:8776/v2/cdbcbc3eeb8a472c8abb2b67e749774c"}], "endpoints_links": [], "type": "volumev2", "name": "cinderv2"}, {"endpoints": [{"adminURL": "http://controller:9292", "region": "regionOne", "internalURL": "http://controller:9292", "id": "06ea9a3f2e384b7693ecd957fcfb337b", "publicURL": "http://controller:9292"}], "endpoints_links": [], "type": "image", "name": "glance"}, {"endpoints": [{"adminURL": "http://controller:8776/v1/cdbcbc3eeb8a472c8abb2b67e749774c", "region": "regionOne", "internalURL": "http://controller:8776/v1/cdbcbc3eeb8a472c8abb2b67e749774c", "id": "60bf9cad87df41f3b58badf3dd81fc1a", "publicURL": "http://controller:8776/v1/cdbcbc3eeb8a472c8abb2b67e749774c"}], "endpoints_links": [], "type": "volume", "name": "cinder"}, {"endpoints": [{"adminURL": "http://controller:35357/v2.0", "region": "regionOne", "internalURL": "http://controller:5000/v2.0", "id": "8f7bce4e0629429e9204efb9d1399ee1", "publicURL": "http://controller:5000/v2.0"}], "endpoints_links": [], "type": "identity", "name": "keystone"}], "user": {"username": "admin", "roles_links": [], "id": "f75636c99f754d0286f20fad1ce0eb33", "roles": [{"name": "member"}, {"name": "admin"}], "name": "admin"}, "metadata": {"is_admin": 0, "roles": ["9fe2ff9ee4384b1894a90878d3e92bab", "b33e2292a48148329d3865a5e553b45e"]}}}

REQ: curl -i http://controller:8776/v1/cdbcbc3eeb8a472c8abb2b67e749774c/volumes -X POST -H "X-Auth-Project-Id: admin" -H "User-Agent: python-cinderclient" -H "Content-Type: application/json" -H "Accept: application/json" -H "X-Auth-Token: >

aNaxk0F6ViD7s4jsAx+YO2m-rPJgCjzZfrzrSXig6BNz0L3Gq9A==" -d '{"volume": {"status": "creating", "availability_zone": null, "source_volid": null, "display_description": null, "snapshot_id": null, "user_id": null, "size": 1, "display_name": "myVolume1", "imageRef": null, "attach_status": "detached", "volume_type": null, "project_id": null, "metadata": {}}}'

DEBUG:cinderclient.client:
REQ: curl -i http://controller:8776/v1/cdbcbc3eeb8a472c8abb2b67e749774c/volumes -X POST -H "X-Auth-Project-Id: admin" -H "User-Agent: python-cinderclient" -H "Content-Type: application/json" -H "Accept: application/json" -H "X-Auth-Token: MIILVQYJKoZIhvcNAQcCoIILRjCCC0ICAQExDTALBglghkgBZQMEAgEwggmjBgkqhkiG9w0BBwGgggm>

G4Rs0B3jUW62pG1TmyjmyCiyvPMsIdMxz7YFDiBXPZ6tyfcO2IG8Yq9aSSjgQWFdVHQNFZ9ogZUxDUJlaNaxk0F6ViD7s4jsAx+YO2m-rPJgCjzZfrzrSXig6BNz0L3Gq9A==" -d '{"volume": {"status": "creating", "availability_zone": null, "source_volid": null, "display_description": null, "snapshot_id": null, "user_id": null, "size": 1, "display_name": "myVolume1", "imageRef": null, "attach_status": "detached", "volume_type": null, "project_id": null, "metadata": {}}}'

RESP: [401] CaseInsensitiveDict({'date': 'Sun, 25 Sep 2016 14:41:48 GMT', 'content-length': '23', 'content-type': 'text/plain', 'www-authenticate': "Keystone uri='https://127.0.0.1:35357'", 'x-openstack-request-id': 'req-af6cbf01-b1a7-4767-93a0-4a6a481528a4'})
RESP BODY: Authentication required

DEBUG:cinderclient.client:RESP: [401] CaseInsensitiveDict({'date': 'Sun, 25 Sep 2016 14:41:48 GMT', 'content-length': '23', 'content-type': 'text/plain', 'www-authenticate': "Keystone uri='https://127.0.0.1:35357'", 'x-openstack-request-id': 'req-af6cbf01-b1a7-4767-93a0-4a6a481528a4'})
RESP BODY: Authentication required

ERROR: Unauthorized (HTTP 401)

from coa.

AJNOURI avatar AJNOURI commented on July 22, 2024

In the controller, I 've tried to change the section title from [keystone_authentication] to [keystone_authtoken] as it was used for previous service configuration:

Dosn't help, got:

ERROR: The server has either erred or is incapable of performing the requested operation. (HTTP 500) (Request-ID: req-3af7bce4-000e-4df6-ae3b-c3b7c42440cd)

So I put back [keystone_authentication]

from coa.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.