Ask Your Question
0

nova-status upgrade check fail

asked 2017-06-22 01:33:21 -0500

vicky yy gravatar image

updated 2017-06-23 00:26:13 -0500

Hello Everyone,

Nova installed according to :https://docs.openstack.org/ocata/install-guide-rdo/nova.html

nova-status upgrade check fail on compute node

Traceback (most recent call last):
  File "/bin/nova-status", line 10, in <module>
    sys.exit(main())
  File "/usr/lib/python2.7/site-packages/nova/cmd/status.py", line 444, in main
    config.parse_args(sys.argv)
  File "/usr/lib/python2.7/site-packages/nova/config.py", line 52, in parse_args
    default_config_files=default_config_files)
  File "/usr/lib/python2.7/site-packages/oslo_config/cfg.py", line 2359, in __call__
    self._namespace._files_permission_denied)
oslo_config.cfg.ConfigFilesPermissionDeniedError: Failed to open some config files: /usr/share/nova/nova-dist.conf,/etc/nova/nova.conf

use root in compute node:

[root@ocataCompute log]# nova-status upgrade check
Error:
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/nova/cmd/status.py", line 456, in main
    ret = fn(*fn_args, **fn_kwargs)
  File "/usr/lib/python2.7/site-packages/nova/cmd/status.py", line 386, in check
    result = func(self)
  File "/usr/lib/python2.7/site-packages/nova/cmd/status.py", line 131, in _check_cellsv2
    meta.bind = db_session.get_api_engine()
  File "/usr/lib/python2.7/site-packages/nova/db/sqlalchemy/api.py", line 153, in get_api_engine
    return api_context_manager.get_legacy_facade().get_engine()
  File "/usr/lib/python2.7/site-packages/oslo_db/sqlalchemy/enginefacade.py", line 707, in     get_legacy_facade
    return self._factory.get_legacy_facade()
  File "/usr/lib/python2.7/site-packages/oslo_db/sqlalchemy/enginefacade.py", line 261, in     get_legacy_facade
    self._start()
  File "/usr/lib/python2.7/site-packages/oslo_db/sqlalchemy/enginefacade.py", line 403, in _start
    engine_args, maker_args)
  File "/usr/lib/python2.7/site-packages/oslo_db/sqlalchemy/enginefacade.py", line 425, in     _setup_for_connection
    "No sql_connection parameter is established")
CantStartEngineError: No sql_connection parameter is established

nova config:

sudo cat /etc/nova/nova.conf |grep -v ^# | grep -v ^$
[DEFAULT]
firewall_driver = nova.virt.firewall.NoopFirewallDriver
use_neutron = True
my_ip = 192.168.221.30
transport_url = rabbit://openstack:rabbitpwd@ocataControl
enabled_apis = osapi_compute,metadata
[api]
auth_strategy = keystone
[api_database]
[barbican]
[cache]
[cells]
[cinder]
[cloudpipe]
[conductor]
[console]
[consoleauth]
[cors]
[cors.subdomain]
[crypto]
[database]
[ephemeral_storage_encryption]
[filter_scheduler]
[glance]
api_servers = http://ocataControl:9292
[guestfs]
[healthcheck]
[hyperv]
[image_file_url]
[ironic]
[key_manager]
[keystone_authtoken]
password = novapass
username = nova
project_name = service_test
user_domain_name = default
project_domain_name = default
auth_type = password
memcached_servers = ocataControl:11211
auth_url = http://ocataControl:35357
auth_uri = http://ocataControl:5000
[libvirt]
[matchmaker_redis]
[metrics]
[mks]
[neutron]
[notifications]
[osapi_v21]
[oslo_concurrency]
lock_path = /var/lib/nova/tmp
[oslo_messaging_amqp]
[oslo_messaging_kafka]
[oslo_messaging_notifications]
[oslo_messaging_rabbit]
[oslo_messaging_zmq]
[oslo_middleware]
[oslo_policy]
[pci]
[placement]
auth_url = http://ocataControl:35357/v3
password = placementpass
username = placement
user_domain_name = Default
auth_type = password
project_name = service_test
project_domain_name = Default
os_region_name = RegionTWO
[quota]
[rdp]
[remote_debug]
[scheduler]
[serial_console]
[service_user]
[spice]
[ssl]
[trusted_computing]
[upgrade_levels]
[vendordata_dynamic_auth]
[vmware]
[vnc]
novncproxy_base_url = http://ocataControl:6080/vnc_auto.html
vncserver_proxyclient_address = 192.168.221.30
vncserver_listen = 0.0.0.0
enabled = True
[workarounds]
[wsgi]
[xenserver]
[xvp]

The open_rc on compute node is below, no sure its enough.

export OS_PROJECT_DOMAIN_NAME=Default
export OS_USER_DOMAIN_NAME=Default
export OS_PROJECT_NAME=admin
export OS_USERNAME=admin
export OS_PASSWORD=adminpwd
export OS_AUTH_URL=http://ocataControl:35357/v3
export OS_IDENTITY_API_VERSION=3
export OS_IMAGE_API_VERSION=2

controlnode

cat /etc/httpd/conf.d/00-nova-placement-api.conf

Listen 8778

<VirtualHost *:8778>
    WSGIProcessGroup nova-placement-api
    WSGIApplicationGroup %{GLOBAL}
    WSGIPassAuthorization On
    WSGIDaemonProcess nova-placement-api processes=3 threads=1 user=nova group=nova
    WSGIScriptAlias / /usr/bin/nova-placement-api ...
(more)
edit retag flag offensive close merge delete

Comments

You probably need to be root? The program is unable to read nova.conf.

Bernd Bausch gravatar imageBernd Bausch ( 2017-06-22 04:08:14 -0500 )edit

reboot doesn't work, it seems like there is some config error, but I don't know where.

have no permission visit /usr/share/nova/nova-dist.conf seems odd

vicky yy gravatar imagevicky yy ( 2017-06-22 10:59:15 -0500 )edit

So what happens when you run sudo nova-status upgrade check? Or when you run the upgrade check after changing permissions on those files?

When you deploy OpenStack, you need to be root. So, it doesn't seem odd to me that you need to be root for the upgrade check.

Bernd Bausch gravatar imageBernd Bausch ( 2017-06-22 20:54:44 -0500 )edit

I haven't find a good log to describe this. nova-compute.log have no error. nova-status --log-file /var/log/nova/status.log upgrade check not work. any suggestion? thanks.

vicky yy gravatar imagevicky yy ( 2017-06-22 22:23:04 -0500 )edit

I think there is nothing in the logs because the command doesn't access any OpenStack service. My suggestion is to be superuser, because of this message:

ConfigFilesPermissionDeniedError: Failed to open some config files: /usr/share/nova/nova-dist.conf,/etc/nova/nova.conf.
Bernd Bausch gravatar imageBernd Bausch ( 2017-06-22 22:34:46 -0500 )edit

1 answer

Sort by ยป oldest newest most voted
0

answered 2017-06-23 05:37:13 -0500

vicky yy gravatar image

Thanks Bernd,

nova-status upgrade check should run on control node with root priviages. Solve Problem.

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

1 follower

Stats

Asked: 2017-06-22 01:33:21 -0500

Seen: 288 times

Last updated: Jun 23