nova service compute node error verifying operation

asked 2018-11-19 04:53:01 -0600

najeh gravatar image

updated 2018-11-19 07:56:06 -0600

After installation of compute service on compute node, when i proceed this command on the controller node the result is empty:

openstack compute service list --service nova-compute

in the /etc/nova/nova.conf file of the compute node i found this line

[api_database] connection = sqlite:///var/lib/nova/nova_api.sqlite

should i comment out that line or change it to the new database nova_api created on the controller node like that:

connection = mysql+pysql://nova:database_password@mangement_interface/nova_api

The command "openstack compute service list" show three services component for the controller node with a status "down" for these services component and no service component for the compute node.

root@Controller:~# openstack compute service list

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

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

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

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

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

| 5 | nova-consoleauth | Controller | internal | enabled | down | None |

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

service nova-compute status

● nova-compute.service - OpenStack Compute

Loaded: loaded (/lib/systemd/system/nova-compute.service; enabled; vendor preset: enabled)

Active: failed (Result: exit-code) since Mon 2018-11-19 15:01:36 CET; 18min ago

Process: 6489 ExecStart=/etc/init.d/nova-compute systemd-start (code=exited, status=1/FAILURE)

Main PID: 6489 (code=exited, status=1/FAILURE)

Nov 19 15:01:36 Compute1 systemd[1]: nova-compute.service: Failed with result 'exit-code'.

Nov 19 15:01:36 Compute1 systemd[1]: nova-compute.service: Service hold-off time over, scheduling restart.

Nov 19 15:01:36 Compute1 systemd[1]: nova-compute.service: Scheduled restart job, restart counter is at 5.

Nov 19 15:01:36 Compute1 systemd[1]: Stopped OpenStack Compute.

Nov 19 15:01:36 Compute1 systemd[1]: nova-compute.service: Start request repeated too quickly.

Nov 19 15:01:36 Compute1 systemd[1]: nova-compute.service: Failed with result 'exit-code'.

Nov 19 15:01:36 Compute1 systemd[1]: Failed to start OpenStack Compute.

journalctl -xe

Nov 19 15:34:24 Compute1 nova-compute[7676]: sys.exit(main()) Nov 19 15:34:24 Compute1 nova-compute[7676]: File "/usr/lib/python2.7/dist-packages/nova/cmd/compute.py", line 43, in main Nov 19 15:34:24 Compute1 nova-compute[7676]: config.parse_args(sys.argv) Nov 19 15:34:24 Compute1 nova-compute[7676]: File "/usr/lib/python2.7/dist-packages/nova/config.py", line 58, in parse_args Nov 19 15:34:24 Compute1 nova-compute[7676]: default_config_files=default_config_files) Nov 19 15:34:24 Compute1 nova-compute[7676]: File "/usr/lib/python2.7/dist-packages/oslo_config/cfg.py", line 2571, in __call__ Nov 19 15:34:24 Compute1 nova-compute[7676]: else sys.argv[1:]) Nov 19 15:34:24 Compute1 nova-compute[7676]: File "/usr/lib/python2.7/dist-packages/oslo_config/cfg.py", line 3312, in _parse_cli_opts Nov 19 15:34:24 Compute1 nova-compute[7676]: return self._parse_config_files() Nov 19 15:34:24 Compute1 nova-compute[7676]: File "/usr/lib/python2.7/dist-packages/oslo_config/cfg.py", line 3348, in _parse_config_files Nov 19 15:34:24 Compute1 nova-compute[7676]: self._oparser.parse_args(self._args, namespace) Nov 19 15:34:24 Compute1 nova-compute[7676]: File "/usr/lib/python2.7/dist-packages/oslo_config/cfg.py", line 2362, in ... (more)

edit retag flag offensive close merge delete

Comments

As far as I know, the compute node doesn't access the database, so it's unlikely that this is your problem. Most likely, the compute node is unable to reach the controller to register itself. Check the nova-compute log for error messages.

Bernd Bausch gravatar imageBernd Bausch ( 2018-11-19 05:05:39 -0600 )edit

this is the /var/log/nova/nova-compute.log file in the compute node:

2018-11-19 12:06:05.446 986 INFO os_vif [-] Loaded VIF plugins: ovs, linux_bridge

2018-11-19 12:30:13.784 1140 INFO os_vif [-] Loaded VIF plugins: ovs, linux_bridge

Where is the error ?

najeh gravatar imagenajeh ( 2018-11-19 05:18:40 -0600 )edit
1

What result do you get from systemctl status nova-compute on the compute node?

reynoni gravatar imagereynoni ( 2018-11-19 06:50:00 -0600 )edit

when i set this command " service nova-compute restart" it display active then in few second it return failed to start openstack compute again.

najeh gravatar imagenajeh ( 2018-11-19 07:01:53 -0600 )edit

Does the command I posted show any specific error reasons? Alternatively, you could do service nova-compute status. Good to restart it, but there should be some information either in the status command or the logs, and your logs looked mostly empty.

reynoni gravatar imagereynoni ( 2018-11-19 07:07:36 -0600 )edit