Bug #19425
closed
run-playbook errors in ceph-ansible.py
Added by Anonymous about 7 years ago.
Updated over 4 years ago.
Description
The following text in ceph_ansible looks wrong:
run.Raw(';'),
'pip',
'install',
'setuptools>=11.3',
run.Raw(ansible_ver),
run.Raw(';'),
It ends up redirecting output to a file named =11.3
Both the setuptools line and the ansible_ver line below it need to be quoted, when all is said and done.
run.Raw('"setuptools>=11.3"'),
run.Raw('"%s"' % ansible_ver),
- Subject changed from missing run.Raw() in ceph-ansible.py to run-playbook errors in ceph-ansible.py
These problems probably also exist in run_rh_playbook (the ansible command being one line, and the potential problem with bugzilla 1354701).
I think that this code could be merged with run_playbook with some not super onerous modifications.
Warren, please paste the error seen with run-playbook.
This problem just bit me again. I think that the code as written is definitely broken. When I ran it, the command failed and afterwards, I got a file in ~/ceph-ansible named "=11.3"
There may be more to this. Right now, the ceph-ansible directory that I am using does not have the ceph-ansible yml files in it (just venv). Still investigating.
The problem that I am running into is caused by ceph-ansible not being installed. It it probably okay for the previous code to be as is (although values are still hard-coded).
Looks like the issue should not be reproducible any further, since I can see a fix for that:
> grep -A 2 -B 2 setuptools teuthology/task/ceph_ansible.py
'pip',
'install',
run.Raw('setuptools>=11.3'),
run.Raw('notario>=0.0.13'), # FIXME: use requirements.txt
run.Raw('netaddr'),
- Status changed from New to Can't reproduce
Also available in: Atom
PDF