Ask Your Question
0

Cannot see new compute node in nova service-list

asked 2019-05-05 22:48:08 -0500

Patrick MAMIA gravatar image

Hello,

I setup a 3 nodes openstack installation (compute +controller + network). Everything seem to be ok with neutron agent-list and nova service-list. i create another node with hostname compute2 and setup evrything, it seem to be ok on this node because nova-compute is running, openvswitch-agent on this node is up and alive in the controller node but when i make su -s /bin/sh -c "nova-manage cell_v2 discover_hosts --verbose" nova it only show me this

Skipping cell0 since it does not contain hosts. Getting computes from cell 'default': 879d48ff-e984-43df-ac92-ffdf4e08fa01 Checking host mapping for compute host 'compute': 52061cc8-bd27-4659-aba4-be81eb5d8a0e Found 0 unmapped computes in cell: 879d48ff-e984-43df-ac92-ffdf4e08fa01

the compute2 is not listed in service list. I take a look in rabbitmq loq and i see the request from that node (it's ip) is received and accept. i look in other log file in controller node and i see the ip of that node like there is communication between the new compute2 node and the controller node but it still don't appear on nova service-list.

Could someone explain me what's wrong. I admit that i begin with openstack and i dont really understand how everything work, like these stuff of nova cell. Could you help me please?

Thanks

edit retag flag offensive close merge delete

Comments

I guess the host was unable to talk to the placement service. You can use the nova-status command to confirm this (I don't remember the exact options), and you should also see something in the host's nova-compute log.

Bernd Bausch gravatar imageBernd Bausch ( 2019-05-06 00:12:55 -0500 )edit

@Bernd Bausch in nova.api.openstack.placement on controller node, i saw 4 lines with the ip of compute2 nodes it seem that there is communication. There is some endpoint of /placement/resource_providers/ like /allocations, /inventories, /aggregates, /traits with status 200 no error on nova-compute

Patrick MAMIA gravatar imagePatrick MAMIA ( 2019-05-06 12:53:26 -0500 )edit

After re-reading your question I am confused. You say that everything seems to be OK with nova service-list, yet you also say that the compute node is missing.

If it is missing, it was unable to register with the controller. Check the nova-compute log on that node. Use the DEBUG log level.

Bernd Bausch gravatar imageBernd Bausch ( 2019-05-06 19:52:14 -0500 )edit

I don’t understand what you mean by “nova.api.openstack.placement on controller node”. Is this a file name? Where do you see the compute node’s IP address?

The command whose options I could not recall is nova-status upgrade check. It shows inconsistencies between Placement and cells.

Bernd Bausch gravatar imageBernd Bausch ( 2019-05-06 19:54:17 -0500 )edit

@Bernd Bausch what i mean is that nova-compute service is active on compute2 node and but this service do not appear on nova service list at controller node. Nova-compute.log on compute node don not show any error even in debug mode. so finally these compute2 host do not appear in openstack

Patrick MAMIA gravatar imagePatrick MAMIA ( 2019-05-07 05:19:06 -0500 )edit

1 answer

Sort by » oldest newest most voted
0

answered 2019-05-08 12:08:49 -0500

Patrick MAMIA gravatar image

Hello, I'm happy to tell you i partially find a solution.

First of all ensure yourself that in the /etc/nova/nova.conf of the new compute node you have

enabled_apis = osapi_compute,metadata

After this, you have to make sur that you modify all variable of nova server on your new compute node to point to controller node that have the API, OS-COMPUTE, METADATA,.. example for me i changed these values on the nova.conf of the new compute node

osapi_compute_listen=controller
xvpvncproxy_host=controller
api_servers=http://controller:9292

Make sure that you have a correct transport_url value and connection values for [placement_database], [database] and [api_database] with correct nova databases nova_placement, nova, nova_api.

After all of this i execute the command on the controller node

nova-manage cell_v2 discover_hosts  --cell_uuid [uuid_of_my_cell] --verbose

and the new compute node appears on the openstack compute service list.

i get the uuid of my cell with the command below

 nova-manage cell_v2 list_cells --verbose

Only one bug still remain on nova-computelog on the new compute node

ResourceProviderCreationFailed: Failed to create resource provider xenserver2

i imagine that's because my two compute nodes has the same resource provider for the moment and the first node compute already register xenserver2 as his hypervisor hostname.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

2 followers

Stats

Asked: 2019-05-05 22:48:08 -0500

Seen: 89 times

Last updated: May 08