#487 Ensure that python2-novaclient-3.3.1 is installed on copr-be(-dev)
Closed: Fixed 3 years ago by praiskup. Opened 5 years ago by frostyx.

Copr backend (dev) can get to a state when it is not possible to spawn new builders because of missing python2-novaclient. It is reproducible with

[root@copr-be-dev ~][STG]# ansible-playbook /home/copr/provision/builderpb_nova.yml

And the full output looks like this

[DEPRECATION WARNING]: [defaults]hostfile option, The key is misleading as it can also be a list of hosts, a directory or a list of paths , use
[defaults] inventory=/path/to/file|dir instead. This feature will be removed in version 2.8. Deprecation warnings can be disabled by setting
deprecation_warnings=False in ansible.cfg.
[DEPRECATION WARNING]: DEFAULT_SUDO_USER option, In favor of Ansible Become, which is a generic framework. See become_user. , use become instead.
This feature will be removed in version 2.8. Deprecation warnings can be disabled by setting deprecation_warnings=False in ansible.cfg.
[DEPRECATION WARNING]: Instead of sudo/sudo_user, use become/become_user and make sure become_method is 'sudo' (default). This feature will be
removed in version 2.9. Deprecation warnings can be disabled by setting deprecation_warnings=False in ansible.cfg.
 [WARNING]: Skipping plugin (/home/copr/provision/filter_plugins/os_nova.py) as it seems to be invalid: No module named novaclient.client


PLAY [check/create instance] *********************************************************************************************************************

TASK [generate builder name] *********************************************************************************************************************
ok: [localhost -> localhost]

TASK [debug] *************************************************************************************************************************************
ok: [localhost] => {
    "msg": "vm_name=Copr_builder_643646470"
}

TASK [spin/ensure vm with nova_compute] **********************************************************************************************************
fatal: [localhost]: FAILED! => {"msg": "template error while templating string: no filter named 'image_name_to_id'. String: {{ image_name|image_na
    to retry, use: --limit @/home/copr/provision/builderpb_nova.retry

PLAY RECAP ***************************************************************************************************************************************
localhost                  : ok=2    changed=0    unreachable=0    failed=1

There is a similar issue when the python2-novaclient is in the wrong version. It is supposed to be python2-novaclient-3.3.1 installed.

We need to ensure in our playbooks, that it is always present.


Temporarily I solved it by rebuilding it for F28 in Copr and installing it manually

dnf copr enable @copr/copr
dnf install python2-novaclient-3.3.1

We don't rely on python novaclient nowadays; and once we get back to OpenStack we should really only rely on up2date novaclient.

Metadata Update from @praiskup:
- Issue close_status updated to: Fixed
- Issue status updated to: Closed (was: Open)

3 years ago

Login to comment on this ticket.

Metadata