Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Linchpin doesn't work with Ansible 2.5 #516

Closed
lukas-bednar opened this issue Mar 23, 2018 · 5 comments
Closed

Linchpin doesn't work with Ansible 2.5 #516

lukas-bednar opened this issue Mar 23, 2018 · 5 comments
Milestone

Comments

@lukas-bednar
Copy link
Contributor

With new ansible-2.5.0 release, linchpin is failing on following issue:

$ linchpin -w linchpin-ws/ --creds-path /home/my-qe-jenkins/.config/openstack -d Data.my_cluster.yml up my_cluster
Traceback (most recent call last):
  File "/home/my-qe-jenkins/jenkins/workspace/deploy-my-cluster/.venv/bin/linchpin", line 11, in <module>
    sys.exit(runcli())
  File "/home/my-qe-jenkins/jenkins/workspace/deploy-my-cluster/.venv/lib/python2.7/site-packages/click/core.py", line 722, in __call__
    return self.main(*args, **kwargs)
  File "/home/my-qe-jenkins/jenkins/workspace/deploy-my-cluster/.venv/lib/python2.7/site-packages/click/core.py", line 697, in main
    rv = self.invoke(ctx)
  File "/home/my-qe-jenkins/jenkins/workspace/deploy-my-cluster/.venv/lib/python2.7/site-packages/click/core.py", line 1066, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/home/my-qe-jenkins/jenkins/workspace/deploy-my-cluster/.venv/lib/python2.7/site-packages/click/core.py", line 895, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/home/my-qe-jenkins/jenkins/workspace/deploy-my-cluster/.venv/lib/python2.7/site-packages/click/core.py", line 535, in invoke
    return callback(*args, **kwargs)
  File "/home/my-qe-jenkins/jenkins/workspace/deploy-my-cluster/.venv/lib/python2.7/site-packages/click/decorators.py", line 64, in new_func
    return ctx.invoke(f, obj, *args[1:], **kwargs)
  File "/home/my-qe-jenkins/jenkins/workspace/deploy-my-cluster/.venv/lib/python2.7/site-packages/click/core.py", line 535, in invoke
    return callback(*args, **kwargs)
  File "/home/my-qe-jenkins/jenkins/workspace/deploy-my-cluster/.venv/lib/python2.7/site-packages/linchpin/shell/__init__.py", line 181, in up
    return_code, results = lpcli.lp_up(targets=targets, run_id=run_id)
  File "/home/my-qe-jenkins/jenkins/workspace/deploy-my-cluster/.venv/lib/python2.7/site-packages/linchpin/cli/__init__.py", line 204, in lp_up
    run_id=run_id)
  File "/home/my-qe-jenkins/jenkins/workspace/deploy-my-cluster/.venv/lib/python2.7/site-packages/linchpin/cli/__init__.py", line 362, in _execute
    return self.do_action(prov_data, action=action, run_id=run_id)
  File "/home/my-qe-jenkins/jenkins/workspace/deploy-my-cluster/.venv/lib/python2.7/site-packages/linchpin/__init__.py", line 566, in do_action
    console=ansible_console)
  File "/home/my-qe-jenkins/jenkins/workspace/deploy-my-cluster/.venv/lib/python2.7/site-packages/linchpin/__init__.py", line 642, in _invoke_playbooks
    console=console)
  File "/home/my-qe-jenkins/jenkins/workspace/deploy-my-cluster/.venv/lib/python2.7/site-packages/linchpin/ansible_runner.py", line 171, in ansible_runner
    cb = PlaybookCallback(options=options)
  File "/home/my-qe-jenkins/jenkins/workspace/deploy-my-cluster/.venv/lib/python2.7/site-packages/linchpin/callbacks.py", line 11, in __init__
    options=options)
  File "/home/my-qe-jenkins/jenkins/workspace/deploy-my-cluster/.venv/lib/python2.7/site-packages/ansible/plugins/callback/__init__.py", line 78, in __init__
    self.set_options(options)
  File "/home/my-qe-jenkins/jenkins/workspace/deploy-my-cluster/.venv/lib/python2.7/site-packages/ansible/plugins/callback/__init__.py", line 97, in set_options
    self._plugin_options = C.config.get_plugin_options(get_plugin_class(self), self._load_name, keys=task_keys, variables=var_options)
AttributeError: 'PlaybookCallback' object has no attribute '_load_name'

For meantime I would put ansible<2.5 restriction into requirements.txt.

p3ck added a commit to p3ck/linchpin that referenced this issue Mar 23, 2018
Fix requirements.txt to keep on older ansible.  centos6
will fail since we end up installing ansible via pip
and there is this issue:
CentOS-PaaS-SIG#516
p3ck added a commit to p3ck/linchpin that referenced this issue Mar 25, 2018
Fix requirements.txt to keep on older ansible.  centos6
will fail since we end up installing ansible via pip
and there is this issue:
CentOS-PaaS-SIG#516
@herlo
Copy link
Contributor

herlo commented Mar 27, 2018

@lukas-bednar I have put in a fix to the requirements.txt which doesn't allow ansible 2.5.0 for now. I'll leave this issue open and address the updated ansible release as soon as possible.

@herlo herlo added this to the v1.6.0 milestone Apr 9, 2018
@herlo
Copy link
Contributor

herlo commented Apr 9, 2018

This has been addressed with v1.5.2 for now. Targeting v1.6.0 to enable ansible 2.5.0+ (it could be sooner, however).

@samvarankashyap
Copy link
Collaborator

samvarankashyap commented Apr 12, 2018

@herlo Just found! ansible-runner you might want to consider to replace our custom ansible-runner in near future. It might resolve this issue if implemented.

@herlo
Copy link
Contributor

herlo commented Apr 12, 2018

@samvarankashyap that looks interesting. Not sure we want to have another dependency, but we could maybe find something that works with it that's stable. Good suggestion.

@samvarankashyap
Copy link
Collaborator

fixed by #564

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants