magnum unable to authorise request in Openstack queens
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Magnum |
New
|
Undecided
|
Unassigned |
Bug Description
I have Openstack queens setup. I have followed steps in openstack intsllation guide. https:/
But when I try to verify steps its failing as magnum-api shows errors default domain not found. All other services working as expected.
<pre><code>
2020-04-24 10:21:45.786 169545 WARNING keystonemiddlew
2020-04-24 10:21:45.786 169545 CRITICAL keystonemiddlew
2020-04-24 10:21:45.788 169545 INFO werkzeug [-] 10.43.10.8 - - [24/Apr/2020 10:21:45] "GET /v1/mservices HTTP/1.1" 503 -</code></pre>
Even for any api in magnum it shows 503 service not available.
My magnum.conf file as follows :
<pre><code>
[DEFAULT]
transport_url = rabbit:
pybasedir = /usr/lib/
bindir = /usr/bin
state_path = /var/lib/magnum
host = controller1
[api]
port = 9511
host = 0.0.0.0
[barbican_client]
[certificates]
cert_manager_type = x509keypair
[cinder]
[cinder_client]
region_name = RegionOne
[cluster]
[cluster_heat]
[cluster_template]
[conductor]
topic = magnum-conductor
conductor_
[cors]
[database]
connection = mysql+pymysql:
[docker]
[docker_registry]
[drivers]
[glance_client]
[heat_client]
[keystone_auth]
[keystone_
www_authenticat
auth_uri = http://
auth_version = v3
auth_protocol = http
memcached_servers = controller:11211
project_domain_id = default
project_name = service
user_domain_id = default
password = ########
username = magnum
auth_url = http://
auth_type = password
admin_user = magnum
admin_password = ########
admin_tenant_name = service
[magnum_client]
[matchmaker_redis]
[neutron_client]
[nova_client]
[oslo_concurrency]
lock_path = /var/lock/magnum
[oslo_messaging
[oslo_messaging
[oslo_messaging
driver = messaging
[oslo_messaging
rabbit_host = localhost
rabbit_port = 5672
rabbit_userid = guest
rabbit_password =
[oslo_messaging
[oslo_policy]
[profiler]
[quotas]
[trust]
trustee_domain_name = magnum
trustee_
trustee_
trustee_
[x509]</code></pre>
When I try to list magnum service list getting following error
<pre>openstack coe service list --debug</pre>
<pre><code>REQ: curl -g -i -X GET http://
Starting new HTTP connection (1): controller
http://
RESP: [503] content-length: 170 content-type: application/json x-openstack-
RESP BODY: {"message": "The server is currently unavailable. Please try again at a later time.<br /><br />\n\n\n", "code": "503 Service Unavailable", "title": "Service Unavailable"}
GET call to container-infra for http://
'errors'
Traceback (most recent call last):
File "/usr/lib/
result = cmd.run(
File "/usr/lib/
return super(Command, self).run(
File "/usr/lib/
column_names, data = self.take_
File "/usr/lib/
services = client.
File "/usr/lib/
return self._list(
File "/usr/lib/
resp, body = self.api.
File "/usr/lib/
resp = self._http_
File "/usr/lib/
error_json = _extract_
File "/usr/lib/
error_body = body_json[
KeyError: 'errors'
clean_up ListService: 'errors'
Traceback (most recent call last):
File "/usr/lib/
ret_val = super(OpenStack
File "/usr/lib/
result = self.run_
File "/usr/lib/
ret_value = super(OpenStack
File "/usr/lib/
result = cmd.run(
File "/usr/lib/
return super(Command, self).run(
File "/usr/lib/
column_names, data = self.take_
File "/usr/lib/
services = client.
File "/usr/lib/
return self._list(
File "/usr/lib/
resp, body = self.api.
File "/usr/lib/
resp = self._http_
File "/usr/lib/
error_json = _extract_
File "/usr/lib/
error_body = body_json[
KeyError: 'errors'
END return value: 1
</code></pre>
affects: | murano → magnum |
I have get the same issue. The cause is that the user password is incorrect in my environment. Reset the user password to solve this issue.
## Reset user password DOMAIN_ ADMIN_PASS> magnum_domain_admin
```
openstack user password --password <MAGNUM_PASS> magnum
openstack user password --password <MAGNUM_
```
## My environment
OS: Rocky Linux 9.2
OpenStack: zed
Magnum: zed
## cat /etc/magnum/ magnum. conf //openstack: <RABBIT_ PASS>@controlle r:5672/ python3. 9/site- packages/ magnum/
```bash
[DEFAULT]
transport_url = rabbit:
pybasedir = /usr/lib/
host = 192.168.40.11
state_path = /var/lib/magnum
debug = True
log_dir = /var/log/magnum
[api]
host = 192.168.40.11
port = 9511
enabled_ssl = False
[barbican_client]
region_name = RegionOne
[certificates] magnum/ certificates/
cert_manager_type = barbican
storage_path = /var/lib/
[cinder]
[cinder_client]
region_name = RegionOne
endpoint_type = publicURL
api_version = 3
[cluster]
[cluster_heat]
[cluster_template]
[conductor]
[cors]
[database] //magnum: <MAGNUM_ DB_PASS> @controller: 3306/magnum
connection = mysql+pymysql:
[docker]
[docker_registry]
[drivers]
[glance_client]
[heat_client]
region_name = RegionOne
[keystone_auth] e_uri = http:// controller: 5000/v3/ controller: 5000/v3/
www_authenticat
auth_url = http://
memcached_servers = controller:11211
auth_type = password
project_domain_id = default
user_domain_id = default
project_name = service
username = magnum
password = <MAGNUM_PASS>
[keystone_ authtoken] e_uri = http:// controller: 5000/v3/ controller: 5000/v3/
region_name = RegionOne
interface = public
auth_version = v3
www_authenticat
auth_url = http://
memcached_servers = controller:11211
auth_type = password
project_domain_id = default
user_domain_id = default
project_name = service
username = magnum
password = <MAGNUM_PASS>
admin_user = magnum
admin_password = <MAGNUM_PASS>
admin_tenant_name = service
[kubernetes]
[magnum_client]
region_name = RegionOne
[neutron_client]
[nova_client]
[octavia_client]
[oslo_concurrency]
lock_path = $state_path/tmp
[oslo_messaging _amqp]
[oslo_messaging _kafka]
[oslo_messaging _notifications]
driver = messaging
[oslo_messaging _rabbit]
[oslo_policy]
[profiler]
[quotas]
[trust] domain_ admin_name = magnum_domain_admin domain_ admin_domain_ name = magnum domain_ admin_password = <MAGNUM_ DOMAIN_ ADMIN_PASS> keystone_ interface = public
cluster_user_trust = True
trustee_domain_name = magnum
trustee_
trustee_
trustee_
trustee_
[x509]
```