Ask Your Question
0

openstack compute service list --service nova-compute empty

asked 2018-11-19 15:08:58 -0600

najeh gravatar image

updated 2018-11-22 15:49:50 -0600

After the installation of nova-compute on compute node, it failed to start and this command from the controller node return an empty result

openstack compute service list --service nova-compute

And the nova-compute.log file contain these two messages:

2018-11-22 20:58:52.785 10541 DEBUG os_vif [-] Loaded VIF plugin class '<class 'vif_plug_ovs.ovs.ovsplugin'="">' with name 'ovs' initialize /usr/lib/python2.7/dist-packages/os_vif/__init__.py:46

2018-11-22 20:58:52.786 10541 DEBUG os_vif [-] Loaded VIF plugin class '<class 'vif_plug_linux_bridge.linux_bridge.linuxbridgeplugin'="">' with name 'linux_bridge' initialize /usr/lib/python2.7/dist-package$

2018-11-22 20:58:52.786 10541 INFO os_vif [-] Loaded VIF plugins: ovs, linux_bridge

2018-11-22 20:58:52.810 10541 WARNING oslo_config.cfg [req-48644f85-e1f3-4c2f-bbb6-19321747ab07 - - - - -] Deprecated: Option "rabbit_host" from group "DEFAULT" is deprecated. Use option "rabbit_host" fr$

2018-11-22 20:58:52.810 10541 WARNING oslo_config.cfg [req-48644f85-e1f3-4c2f-bbb6-19321747ab07 - - - - -] Deprecated: Option "rabbit_host" from group "oslo_messaging_rabbit" is deprecated for removal (R$

2018-11-22 20:58:52.811 10541 WARNING oslo_config.cfg [req-48644f85-e1f3-4c2f-bbb6-19321747ab07 - - - - -] Deprecated: Option "rabbit_userid" from group "DEFAULT" is deprecated. Use option "rabbit_userid$

2018-11-22 20:58:52.811 10541 WARNING oslo_config.cfg [req-48644f85-e1f3-4c2f-bbb6-19321747ab07 - - - - -] Deprecated: Option "rabbit_userid" from group "oslo_messaging_rabbit" is deprecated for removal $

2018-11-22 20:58:52.812 10541 WARNING oslo_config.cfg [req-48644f85-e1f3-4c2f-bbb6-19321747ab07 - - - - -] Deprecated: Option "rabbit_password" from group "DEFAULT" is deprecated. Use option "rabbit_pass$

2018-11-22 20:58:52.812 10541 WARNING oslo_config.cfg [req-48644f85-e1f3-4c2f-bbb6-19321747ab07 - - - - -] Deprecated: Option "rabbit_password" from group "oslo_messaging_rabbit" is deprecated for remova$

openstack compute service list :

return three service components just for the controller

+----+------------------+------------+----------+---------+-------+----------------------------+

| ID | Binary | Host | Zone | Status | State | Updated At

+----+------------------+------------+----------+---------+-------+----------------------------+

| 2 | nova-conductor | Controller | internal | enabled | UP | 2018-11-17T17:32:48.000000 |

| 4 | nova-scheduler | Controller | internal | enabled | UP | 2018-11-17T17:32:49.000000 |

| 5 | nova-consoleauth | Controller | internal | enabled | UP | 2018-11-17T17:32:49.000000 |

+----+------------------+------------+----------+---------+-------+----------------------------+

service nova-compute status :

Active

/bin/sh -c "nova-manage cell_v2 list_cells" nova

Name |UUID | Transport URL| Database Connection | Disabled

cell0 | 000-0000-0000-0000-000 | none:/ | mysql+pymysql://nova:*@192.168.1.67/nova_cell0 |False

cell1 | 60e137135dd643d | rabbit://openstack:@192.168.1.67 | mysql+pymysql://nova:*@192.168.1.67/nova| False

the above command show no Transport URL for cell0

How can i resolve these problems ?

edit retag flag offensive close merge delete

Comments

1

cell 0 is a graveyard for instances that could not be scheduled. Such an instance is not on any host, therefore not in any cell. Cell 0 was created to collect such instances. It has no message queue, since it has no compute node. Nothing runs in this cell.

Bernd Bausch gravatar imageBernd Bausch ( 2018-11-22 09:39:29 -0600 )edit
1

Perhaps your nova-compute is configured to log to a different file? Note that the two messages in nova-compute.log are from Monday, three days ago. They have nothing to do with the problem.

Or your nova-compute process dies before it can log anything.

Bernd Bausch gravatar imageBernd Bausch ( 2018-11-22 09:43:16 -0600 )edit

How can i verify this? If no solution should i reinstall the compute node or what ? Can you show me an example of a nova.cobf file of the compute node

the command " /bin/sh -c "nova-manage cell_v2 discover_hosts --verbose" nova: Found 0 unmapped computes in cell: 88fdcc1f-ddea-4505-a6b1-394c1070d

najeh gravatar imagenajeh ( 2018-11-22 13:08:30 -0600 )edit

@Bernd Baush i recreate above my new nova-compute.log file

najeh gravatar imagenajeh ( 2018-11-22 15:50:44 -0600 )edit

1 answer

Sort by ยป oldest newest most voted
1

answered 2018-11-20 06:28:23 -0600

check the connectivity between the compute nodes you have, and check the rabbitmq-server logs, because if rabbit-mq fails during the vm's starting stage it will fail,if rabbit-mq is the problem restart the rabbit-mq service. if you changed the hostname, try to reset the rabbit-mq credentials. Or maybe The compute and controller nodes had FQDNs configured for their hostnames. The contents of /etc/hostname, and the value returned by hostname were FQDNs.If you have no data in tables,, dropping all the SQL tables for Nova, nova_api, and nova_cell0, and again sync the database and restart the service

sync commands

su -s /bin/sh -c "nova-manage api_db sync" nova

su -s /bin/sh -c "nova-manage db sync" nova

Verify nova cell0 and cell1 are registered correctly:

nova-manage cell_v2 list_cells

IN nova database there is a table compute node will there,in that table change mapped column's value form 0 to 1

In nova api-database host mapping table will there,you can manually map your hosts in that table

edit flag offensive delete link more

Comments

Now the state of compute services is enable and up after restart the rabbitmq but the command ~# openstack compute service list" show just three service components for the controller and no one for the compute node

najeh gravatar imagenajeh ( 2018-11-20 08:27:54 -0600 )edit

|Name |UUID | Transport URL| Database Connection | Disabled cell0|000-0000-0000-0000-000 |none:/ | mysql+pymysql://nova:*@192.168.1.67/nova_cell0 | False cell1|60a6f-dde5-4e13-9184-347135dd643d |rabbit://openstack:@192.168.1.67 | mysql+pymysql://nova:*@192.168.1.67/nova| F

najeh gravatar imagenajeh ( 2018-11-20 08:31:08 -0600 )edit

the command # /bin/sh -c "nova-manage cell_v2 list_cells" nova
show no Transport URL for cell0

najeh gravatar imagenajeh ( 2018-11-20 08:35:28 -0600 )edit

IN nova database there is a table compute node will there,in that table change mapped column's value form 0 to 1

In nova api-database host mapping table will there,you can manually map your hosts in that table

Eranachandran gravatar imageEranachandran ( 2018-11-20 23:25:02 -0600 )edit

@Eranachandran i couldn't understand what you mean by changing mapped columns value ? which database will be changed ?

najeh gravatar imagenajeh ( 2018-11-21 04:02:13 -0600 )edit

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

1 follower

Stats

Asked: 2018-11-19 15:08:58 -0600

Seen: 87 times

Last updated: Nov 22