[masakari] Compute service with name XXXXX not found.

at bkslash at poczta.onet.pl
Fri Jun 11 12:47:03 UTC 2021


Hi, thx for the answer.
> openstack compute service list --service nova-compute --host $HOSTNAME
so in 

openstack segment host create 

I should use name which is displayed in "Host" column, right? So that's what I do :(

openstack compute service list --service nova-compute

ID   Binary                 Host       Zone  Status  State
20   nova-compute  XXXXX  nova   enabled up

openstack segment host create XXXXX COMPUTE SSH 00dd5bxxxxxx

and still "Compute service with name XXXXX could not be found".....

How masakari discovers hosts?

Best regards
Adam Tomas

> Wiadomość napisana przez Radosław Piliszek <radoslaw.piliszek at gmail.com> w dniu 11.06.2021, o godz. 13:26:
> 
> On Fri, Jun 11, 2021 at 11:49 AM at <bkslash at poczta.onet.pl> wrote:
>> 
>> Hi,
> 
> Hello,
> 
>> I have some problem with masakari. I can create segment (from CLI and Horizon), but can't create host (the same result from Horizon and CLI).
>> 
>> openstack segment host create XXXXX COMPUTE SSH segment_id
>> 
>> returns BadRequest: Compute service with name XXXXX could not be found.
>> XXXXX is the name which Horizon suggest, and it's a name of compute host.
>> 
>> openstack compute service list
>> returns proper list with state up/enabled on compute hosts (zone nova)
>> Maybe I misunderstood some parameters of host create? As "type" I use COMPUTE, what value should it be? From "Binary" column of  openstack compute service list? What is "control_attributes" field, because documentation lacks preceise information what value should be there and what is it use for. Tried to found some info on this error but I haven't found anything...
> 
> The name should be as it is listed by nova. Masakari is querying nova
> for that compute host. The exact query can be run using:
>  openstack compute service list --service nova-compute --host $HOSTNAME
> where $HOSTNAME is the desired hostname.
> The type should be "COMPUTE" and folks often use "SSH" for
> control_attributes (but it has no meaning).
> 
> -yoctozepto




More information about the openstack-discuss mailing list