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

specify minimal required ansible version #1055

Merged
merged 1 commit into from Dec 12, 2018

Conversation

dahorak
Copy link
Contributor

@dahorak dahorak commented Sep 11, 2018

@dahorak dahorak requested a review from a team as a code owner September 11, 2018 07:01
@dahorak
Copy link
Contributor Author

dahorak commented Sep 11, 2018

run tests

@dahorak
Copy link
Contributor Author

dahorak commented Sep 11, 2018

There might be some problem with the running ansible updating itself on the Tendrl server. I'll need to debug it slightly more deeply.

@dahorak
Copy link
Contributor Author

dahorak commented Sep 11, 2018

This patch might cause update of ansible package on Tendrl Server, when ansible-playbook is running (with site.yml), which probably cause following error:

TASK [tendrl-ansible.tendrl-server : Configure etcd and graphite ip addr in node-agent.conf.yaml] ***
task path: /usr/share/ansible/roles/tendrl-ansible.tendrl-server/tasks/tendrl-node-agent.yml:12
The full traceback is:
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/ansible/executor/task_executor.py", line 96, in run
    try:
  File "/usr/lib/python2.7/site-packages/ansible/executor/task_executor.py", line 296, in _run_loop
    if loop_var in task_vars:
  File "/usr/lib/python2.7/site-packages/ansible/executor/task_executor.py", line 528, in _execute
  File "/usr/lib/python2.7/site-packages/ansible/plugins/action/normal.py", line 43, in run
    wrap_async = self._task.async_val and not self._connection.has_native_async
AttributeError: 'Task' object has no attribute 'async_val'

fatal: [n53.dusty.ci.centos.org]: FAILED! => {
    "msg": "Unexpected failure during module execution.", 
    "stdout": ""
}

I'm not sure now, what is the best solution for this.

@anmolsachan
Copy link
Member

@dahorak If we update the spec file of tendrl-ansible itself ( https://github.com/Tendrl/tendrl-ansible/blob/4acae343ad4fab4f16ce330e047403374d0cb7a6/tendrl-ansible.spec#L15 ) , Wouldn't it solve the issue ?

@dahorak
Copy link
Contributor Author

dahorak commented Sep 12, 2018

As I wrote under the related issue, the main "problem" here is, that the expected ansible version (2.6) is in epel repository, which is added "automatically" when tendrl-ansible's site.yml playbook is executed.
Based on the current documentation, when tendrl-ansible is installed, only the older version of ansible is available (from CentOS-7 - Extras). So we should also update the (pre)installation instructions to add epel repository manually before tendrl-ansible package is installed.

@mbukatov
Copy link
Contributor

@anmolsachan both tendrl-ansible and tendrl-commons requires ansible, so both should specify the minimal version. In upstream, one can try to use tendrl-ansible on another machine or install it from git repo, and in such case, minimal version in tendrl-commons will have it's effect.

@GowthamShanmugam
Copy link
Contributor

@dahorak Need to specify the minimum version of ansible in setup.py also, otherwise it won't work when I do
python setup.py, install.

@codecov
Copy link

codecov bot commented Dec 5, 2018

Codecov Report

❗ No coverage uploaded for pull request base (master@5e78bae). Click here to learn what that means.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff            @@
##             master    #1055   +/-   ##
=========================================
  Coverage          ?   82.39%           
=========================================
  Files             ?       90           
  Lines             ?     3709           
  Branches          ?      477           
=========================================
  Hits              ?     3056           
  Misses            ?      555           
  Partials          ?       98

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 5e78bae...3bd3c2a. Read the comment docs.

@GowthamShanmugam
Copy link
Contributor

LGMT

@anmolsachan
Copy link
Member

LGTM

1 similar comment
@shtripat
Copy link
Member

shtripat commented Dec 5, 2018

LGTM

shtripat
shtripat previously approved these changes Dec 5, 2018
@shtripat
Copy link
Member

shtripat commented Dec 7, 2018

Fix the commit message, pep8 and squash in one commit.

tendrl-bug-id: Tendrl#1054
Signed-off-by: Daniel Horak <dahorak@redhat.com>
@shtripat shtripat merged commit 4887997 into Tendrl:master Dec 12, 2018
@dahorak dahorak deleted the fix-ansible-requirements branch December 12, 2018 12:56
dahorak added a commit to dahorak/usmqe-setup that referenced this pull request Jan 4, 2019
- epel is now required to be enabled before tendrl-ansible installation
  on tendrl_server
  Tendrl/commons#1055 (comment)
@shtripat shtripat modified the milestone: Milestone 12 Jan 9, 2019
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

Successfully merging this pull request may close these issues.

tendrl-commons package should depend on specific minimal version of ansible
5 participants