Not working properly with venvs

Bug #1864941 reported by Viorel-Cosmin Miron
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
kolla-cli
New
Undecided
Unassigned

Bug Description

using latests stable release, and i am on a venv in root/venv/share/kolla-ansible with etc on /etc/kolla/ . i tried to add the export kolla_etc="/etc/kolla" and the venv path, just this is not working as expected, any ideas/suggestions?

Tags: kolla-cli
Revision history for this message
Viorel-Cosmin Miron (uhl-hosting) wrote :

(venv) root@compute-1:/home/kolla-cli# kolla-cli action reconfigure
Error releasing lock
Traceback (most recent call last):
  File "/root/venv/lib/python3.6/site-packages/kolla_cli/common/utils.py", line 364, in sync_read_file
    .format(path=path))
Exception: unable to read file /root/venv/share/kolla-ansible/ansible/group_vars/__GLOBAL__ as it was locked.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/root/venv/lib/python3.6/site-packages/kolla_cli/common/utils.py", line 627, in release
    self._release_flock()
  File "/root/venv/lib/python3.6/site-packages/kolla_cli/common/utils.py", line 652, in _release_flock
    os.close(self.fd)
TypeError: an integer is required (got type NoneType)
Traceback (most recent call last):
  File "/root/venv/lib/python3.6/site-packages/kolla_cli/commands/kolla_action.py", line 186, in take_action
    job = CLIENT.reconfigure(verbose_level, hosts, services)
  File "/root/venv/lib/python3.6/site-packages/kolla_cli/api/control_plane.py", line 308, in reconfigure
    ansible_job = action.reconfigure(hostnames, servicenames)
  File "/root/venv/lib/python3.6/site-packages/kolla_cli/common/ansible/actions.py", line 74, in reconfigure
    self._run_deploy_rules(self.playbook)
  File "/root/venv/lib/python3.6/site-packages/kolla_cli/common/ansible/actions.py", line 219, in _run_deploy_rules
    properties):
  File "/root/venv/lib/python3.6/site-packages/kolla_cli/common/ansible/actions.py", line 237, in _is_service_enabled
    is_enabled = properties.get_property_value(enabled_property)
  File "/root/venv/lib/python3.6/site-packages/kolla_cli/common/properties.py", line 224, in get_property_value
    self._load_properties()
  File "/root/venv/lib/python3.6/site-packages/kolla_cli/common/properties.py", line 66, in _load_properties
    self._load_properties_global()
  File "/root/venv/lib/python3.6/site-packages/kolla_cli/common/properties.py", line 104, in _load_properties_global
    globals_data = sync_read_file(self.globals_path)
  File "/root/venv/lib/python3.6/site-packages/kolla_cli/common/utils.py", line 364, in sync_read_file
    .format(path=path))
Exception: unable to read file /root/venv/share/kolla-ansible/ansible/group_vars/__GLOBAL__ as it was locked.

(venv) root@compute-1:/home/kolla-cli#

Revision history for this message
Viorel-Cosmin Miron (uhl-hosting) wrote :

In /root/venv/share/kolla-ansible/ansible/group_vars/ i do have a file yet that is all.yml not __GLOBAL__ .

Revision history for this message
Viorel-Cosmin Miron (uhl-hosting) wrote :

Using train with kolla and kolla-ansible in Ubuntu 18.04

tags: added: kolla-cli
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.