Can't create a host when using a differen project than what blazar is setup with
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Blazar |
New
|
Undecided
|
Unassigned |
Bug Description
It looks like blazar assumes that the user/project initiating a host-create command will be the same as the os_admin credentials specified in blazar.conf
If not host-create fails with the following error
2020-05-29 13:06:33.560 30541 ERROR blazar.api.v1.utils [-] Traceback (most recent call last):
File "/opt/blazar/
return func(**kwargs)
File "/opt/blazar/
return api_utils.
File "/opt/blazar/
return getattr(
File "/opt/blazar/
return func(self, *args, **kwargs)
File "/opt/blazar/
setattr(
File "/opt/blazar/
return self.manager_
File "/opt/blazar/
host_
File "/opt/blazar/
return self._client.
File "/opt/stein/
return self.prepare(
File "/opt/stein/
retry=
File "/opt/stein/
retry=retry)
File "/opt/stein/
call_
File "/opt/stein/
raise result
oslo_messaging.
I believe this may be solved by removing /%(tenant_id)s from Nova endpoints. See /opendev. org/openstack/ kolla-ansible/ commit/ 82551a2bfb62049 cf7503fd2a54369 7ff7f4b7d4 for how this was changed in Kolla Ansible. If this is not an appropriate solution we would need to allow to provide a custom Nova endpoint URL via blazar.conf. I don't remember whether that's already possible or not.
https:/