Host creation failed with the error "Remote error: ResourceProviderCreationFailed Failed to create resource provider blazar_<hostname>
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Blazar |
Fix Released
|
Undecided
|
Tetsuro Nakamura |
Bug Description
Description
===========
Getting below error while creating host:
ERROR blazar.api.v1.utils [-] Request aborted with status code 500 and message 'Internal Server Error': RemoteError: Remote error: ResourceProvide
2019-01-21 06:49:33.110 3430 ERROR blazar.api.v1.utils [-] Traceback (most recent call last):
File "/opt/stack/
return func(**kwargs)
File "/opt/stack/
return api_utils.
File "/opt/stack/
return getattr(
File "/opt/stack/
return func(self, *args, **kwargs)
File "/opt/stack/
return func(self, to_update)
File "/opt/stack/
return self.manager_
File "/opt/stack/
host_
File "/opt/stack/
return self._client.
File "/usr/local/
return self.prepare(
File "/usr/local/
retry=
File "/usr/local/
retry=retry)
File "/usr/local/
call_
File "/usr/local/
raise result
RemoteError: Remote error: ResourceProvide
Steps to reproduce
=================
1) Create host with command $blazar host-create <hostname> and after placement service creates resource provider and before host is created in Blazar restart the Blazar services forcefully.
2) After services successfully restart, try to create host again with above command ($blazar host-create <hostname>)
Expected result
===============
Host should create successfully
Actual result
=============
Request aborted with status code 500 and message 'Internal Server Error'.
Before the placement support in rocky, this resulted in HTTP 409, manager. exceptions. AggregateAlread yHasHost: Aggregate freepool already has host(s) ubuntu01
blazar.
Therefore I think we should change this back to HTTP 409 from 500 with better message that tells one that they have already created that host in Blazar.