Problem with "ose-upgrade gears" command

Hi,

I’m trying to automize the migration of our Openshift Enterprise from 2.0 version to 2.1 version.
I wrote a playbook and I have a problem with “ose-upgrade gears”.

Here is my ansible plybook for this action :

`

  • hosts: broker
    user: root
    serial: 1
    tasks:

  • name: “Get status”
    command: ose-upgrade status
    register: status
    changed_when: False

  • name: “Perform the gears Step on Broker Hosts”
    command: ose-upgrade gears
    when: “status.stdout.find(‘Next step is: gears’) != -1”
    `

The ansible command stays blocked and nothing appended. There is no error in log file.

If I stop ansible, the process goes on on the broker host, and the ose-upgrade command succeed.

Does someone has this problem and solve it ?

Best regards.

Tom

Is it perhaps prompting for some user input? You might want to see if there’s a flag for the command to make sure it’s working in an unattended mode.