[masakari] Compute service with name XXXXX not found.

bkslash bkslash at poczta.onet.pl
Fri Jun 11 15:10:25 UTC 2021


> openstack compute service list --service nova-compute --host $HOSTNAME
> did you try including the same hostname in this command?
yes, and it returns the same as "openstack compute service list" but of course only for host XXXXX

> If it works and Masakari does not, I would make sure you set up
> Masakari to speak to the right Nova API.
I'm using kolla-ansible, all masakari configuration was generated based on globals.yaml and inventory file while deployment, so it should work almost "out of the box". Does masakari speak to nova via RabbitMQ? How else can I check which port/IP masakari speaks to? In logs I can only see requests TO masakari API, not where masakari tries to check hypervisor...


> Though do that with debug=True in the config [DEFAULT] section.
not much in logs, even with debug enabled....

2021-06-11 14:45:49.111 959 DEBUG masakari.compute.nova [req-e9a58522-858d-4025-9c43-f9fee744a0db nova - - - -] Creating a Nova client using "nova" user novaclient /var/lib/kolla/venv/lib/python3.8/site-packages/masakari/compute/nova.py:102
2021-06-11 14:45:49.232 959 INFO masakari.compute.nova [req-e9a58522-858d-4025-9c43-f9fee744a0db nova - - - -] Call compute service find command to get list of matching hypervisor name 'XXXXX'
2021-06-11 14:45:49.829 959 INFO masakari.api.openstack.wsgi [req-e9a58522-858d-4025-9c43-f9fee744a0db nova - - - -] HTTP exception thrown: Compute service with name XXXXX could not be found.
2021-06-11 14:45:49.831 959 DEBUG masakari.api.openstack.wsgi [req-e9a58522-858d-4025-9c43-f9fee744a0db nova - - - -] Returning 400 to user: Compute service with name XXXXX could not be found. __call__ /var/lib/kolla/venv/lib/python3.8/site-packages/masakari/api/openstack/wsgi.py:1038

> On 11 Jun 2021, at 14:56, Radosław Piliszek <radoslaw.piliszek at gmail.com> wrote:
> 
> On Fri, Jun 11, 2021 at 2:47 PM at <bkslash at poczta.onet.pl> wrote:
>> 
>> 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 :(
> 
> Yes.
> 
>> 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?
> 
> I wrote this already:
> openstack compute service list --service nova-compute --host $HOSTNAME
> did you try including the same hostname in this command?
> If it works and Masakari does not, I would make sure you set up
> Masakari to speak to the right Nova API.
> 
> Finally, if all else fails, please paste (e.g.
> https://paste.ubuntu.com/ ) masakari api logs for those rejected host
> creations.
> Though do that with debug=True in the config [DEFAULT] section.
> 
> -yoctozepto




More information about the openstack-discuss mailing list