nova api failed to start with USE_VENV=True
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
devstack |
Invalid
|
Undecided
|
Unassigned |
Bug Description
with USE_VENV=True, the nova-api does not start, it has the following error:
/opt/stack/
...
may be removed in M. It will not be superseded.
2015-06-04 03:58:47.798 5387 INFO nova.wsgi [-] osapi_compute listening on 0.0.0.0:8774
2015-06-04 03:58:47.798 5387 INFO nova.openstack.
2015-06-04 03:58:47.801 5387 INFO nova.openstack.
2015-06-04 03:58:47.804 5387 INFO nova.openstack.
2015-06-04 03:58:47.806 5387 INFO nova.openstack.
2015-06-04 03:58:47.807 5404 INFO nova.osapi_
2015-06-04 03:58:47.809 5405 INFO nova.osapi_
2015-06-04 03:58:47.809 5406 INFO nova.osapi_
2015-06-04 03:58:47.809 5387 INFO nova.openstack.
2015-06-04 03:58:47.812 5387 INFO nova.openstack.
2015-06-04 03:58:47.814 5407 INFO nova.osapi_
2015-06-04 03:58:47.814 5387 INFO nova.openstack.
2015-06-04 03:58:47.816 5408 INFO nova.osapi_
2015-06-04 03:58:47.817 5409 INFO nova.osapi_
2015-06-04 03:58:47.817 5387 INFO nova.openstack.
2015-06-04 03:58:47.819 5410 INFO nova.osapi_
2015-06-04 03:58:47.820 5387 INFO nova.openstack.
2015-06-04 03:58:47.822 5387 INFO nova.openstack.
2015-06-04 03:58:47.824 5411 INFO nova.osapi_
2015-06-04 03:58:47.825 5387 INFO nova.openstack.
2015-06-04 03:58:47.826 5412 INFO nova.osapi_
2015-06-04 03:58:47.827 5413 INFO nova.osapi_
2015-06-04 03:58:47.827 5387 INFO nova.openstack.
2015-06-04 03:58:47.830 5387 INFO nova.openstack.
2015-06-04 03:58:47.831 5414 INFO nova.osapi_
2015-06-04 03:58:47.832 5387 INFO nova.network.driver [-] Loading network driver 'nova.network.
2015-06-04 03:58:47.834 5415 INFO nova.osapi_
2015-06-04 03:58:50.062 5387 CRITICAL nova [-] ProcessExecutio
Command: sudo nova-rootwrap /etc/nova/
Exit code: 1
Stdout: u''
Stderr: u'sudo: nova-rootwrap: command not found\n'
2015-06-04 03:58:50.062 5387 ERROR nova Traceback (most recent call last):
2015-06-04 03:58:50.062 5387 ERROR nova File "/opt/stack/
2015-06-04 03:58:50.062 5387 ERROR nova sys.exit(main())
2015-06-04 03:58:50.062 5387 ERROR nova File "/opt/stack/
2015-06-04 03:58:50.062 5387 ERROR nova server = service.
2015-06-04 03:58:50.062 5387 ERROR nova File "/opt/stack/
2015-06-04 03:58:50.062 5387 ERROR nova self.manager = self._get_manager()
2015-06-04 03:58:50.062 5387 ERROR nova File "/opt/stack/
2015-06-04 03:58:50.062 5387 ERROR nova return manager_class()
2015-06-04 03:58:50.062 5387 ERROR nova File "/opt/stack/
2015-06-04 03:58:50.062 5387 ERROR nova self.network_
2015-06-04 03:58:50.062 5387 ERROR nova File "/opt/stack/
2015-06-04 03:58:50.062 5387 ERROR nova iptables_
2015-06-04 03:58:50.062 5387 ERROR nova File "/opt/stack/
2015-06-04 03:58:50.062 5387 ERROR nova self._apply()
2015-06-04 03:58:50.062 5387 ERROR nova File "/opt/stack/
2015-06-04 03:58:50.062 5387 ERROR nova return f(*args, **kwargs)
2015-06-04 03:58:50.062 5387 ERROR nova File "/opt/stack/
2015-06-04 03:58:50.062 5387 ERROR nova attempts=5)
2015-06-04 03:58:50.062 5387 ERROR nova File "/opt/stack/
2015-06-04 03:58:50.062 5387 ERROR nova return utils.execute(*cmd, **kwargs)
2015-06-04 03:58:50.062 5387 ERROR nova File "/opt/stack/
2015-06-04 03:58:50.062 5387 ERROR nova return processutils.
2015-06-04 03:58:50.062 5387 ERROR nova File "/opt/stack/
2015-06-04 03:58:50.062 5387 ERROR nova cmd=sanitized_cmd)
2015-06-04 03:58:50.062 5387 ERROR nova ProcessExecutio
2015-06-04 03:58:50.062 5387 ERROR nova Command: sudo nova-rootwrap /etc/nova/
2015-06-04 03:58:50.062 5387 ERROR nova Exit code: 1
2015-06-04 03:58:50.062 5387 ERROR nova Stdout: u''
2015-06-04 03:58:50.062 5387 ERROR nova Stderr: u'sudo: nova-rootwrap: command not found\n'
2015-06-04 03:58:50.062 5387 ERROR nova
Changed in devstack: | |
status: | New → Confirmed |
It seem the nova-api's env does not pass on to its sub process 'sudo'?