We use python-novaclient 2.23.3 currently on our backend machines. The os_nova.py filter plugin is actually not needed for local spawning so I usually just move it to os_nova.py.off. We need to implement support for newer python-novaclient.

On Mon, Dec 5, 2016 at 10:53 AM, Martin Juhl <mj@casalogic.dk> wrote:
Hi guys

Still playing around with getting COPR to work on RHEL/CentOS..

I'm very close.. Only think I have one issue left.. When ansible is spawning a new build instance it fails...

[root@copr02 playbooks]# ansible-playbook -i inventory -c ssh /usr/share/doc/copr-backend-1.94/playbooks/spawn_local.yml
Traceback (most recent call last):
  File "/usr/bin/ansible-playbook", line 324, in <module>
  File "/usr/bin/ansible-playbook", line 264, in main
  File "/usr/lib/python2.7/site-packages/ansible/playbook/__init__.py", line 310, in run
    play = Play(self, play_ds, play_basedir, vault_password=self.vault_password)
  File "/usr/lib/python2.7/site-packages/ansible/playbook/play.py", line 194, in __init__
    self._tasks      = self._load_tasks(self._ds.get('tasks', []), load_vars)
  File "/usr/lib/python2.7/site-packages/ansible/playbook/play.py", line 682, in _load_tasks
  File "/usr/lib/python2.7/site-packages/ansible/playbook/task.py", line 255, in __init__
    self.async_seconds = template.template_from_string(play.basedir, self.async_seconds, all_vars)
  File "/usr/lib/python2.7/site-packages/ansible/utils/template.py", line 346, in template_from_string
  File "/usr/lib/python2.7/site-packages/ansible/utils/template.py", line 54, in _get_filters
    plugins = [ x for x in utils.plugins.filter_loader.all()]
  File "/usr/lib/python2.7/site-packages/ansible/utils/plugins.py", line 232, in all
    self._module_cache[path] = imp.load_source('.'.join([self.package, name]), path)
  File "/usr/share/doc/copr-backend-1.94/playbooks/filter_plugins/os_nova.py", line 1, in <module>
    from novaclient.v1_1.client import Client
ImportError: No module named v1_1.client

I have installed the python-novaclient module from "centos/7.2.1511/cloud/x86_64/openstack-mitaka/" but it seems to be too new, as v1_1.client seems to be deprecated??

Which version do you use on Fedora???


copr-devel mailing list -- copr-devel@lists.fedorahosted.org
To unsubscribe send an email to copr-devel-leave@lists.fedorahosted.org