Project

General

Profile

Bug #19425

run-playbook errors in ceph-ansible.py

Added by Warren Usui over 2 years ago. Updated almost 2 years ago.

Status:
New
Priority:
Normal
Assignee:
Category:
ansible
Target version:
-
Start date:
03/29/2017
Due date:
% Done:

0%

Source:
Tags:
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:

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

History

#1 Updated by Warren Usui over 2 years ago

Both the setuptools line and the ansible_ver line below it need to be quoted, when all is said and done.

#2 Updated by Warren Usui over 2 years ago

                run.Raw('"setuptools>=11.3"'),
                run.Raw('"%s"' % ansible_ver),

#3 Updated by Warren Usui over 2 years ago

It looks like there are two more problems here.

One is that an ansisble command 'ansible -vv ...' is included in this list. It should be broken into 'ansible', '-vv', ...

The second is that this code appears to be hit by: https://bugzilla.redhat.com/show_bug.cgi?id=1354701

Actions described in: https://access.redhat.com/solutions/2943461 seem to fix this problem.

#4 Updated by Warren Usui over 2 years ago

  • 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.

#5 Updated by Tamilarasi muthamizhan about 2 years ago

Warren, please paste the error seen with run-playbook.

#6 Updated by Warren Usui almost 2 years ago

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"

#7 Updated by Warren Usui almost 2 years ago

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.

#8 Updated by Warren Usui almost 2 years ago

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).

Also available in: Atom PDF