Update prechecks for Ansible 2.0.0
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
kolla |
Fix Released
|
Medium
|
Jeffrey Zhang |
Bug Description
In Newton, kolla master works only with Ansible 2.0.0 and does not work with Ansible 1.9.4, 1.9.5 and 2.1.0.
Hence, update prechecks to check if Ansbile version is 2.0.0.
=======
Below are the errors with Ansible 1.9.4 and 1.9.5:
=======
$ kolla-ansible deploy
TASK: [ceph | Copying over ceph.conf] *******
Traceback (most recent call last):
File "/usr/local/
sys.
File "/usr/local/
pb.run()
File "/usr/local/
if not self._run_
File "/usr/local/
if not self._run_
File "/usr/local/
results = self._run_
File "/usr/local/
results = runner.run()
File "/usr/local/
p = utils.plugins.
File "/usr/local/
self.
File "/usr/local/
from ansible.
ImportError: No module named plugins.action
Command failed ansible-playbook -i /usr/local/
=======
Below are the errors with Ansible 2.1.0:
=======
$ kolla-ansible deploy
TASK [common : Starting cron container] *******
fatal: [localhost]: FAILED! => {"changed": true, "failed": true, "msg": "AttributeError
to retry, use: --limit @/usr/local/
PLAY RECAP *******
localhost : ok=15 changed=8 unreachable=0 failed=1
Command failed ansible-playbook -i /usr/local/
Changed in kolla: | |
assignee: | nobody → Jeffrey Zhang (jeffrey4l) |
Fixing this bug.