Problem with "ose-upgrade gears" command

13 views
Skip to first unread message

Thomas ESCALLE

unread,
Jun 5, 2014, 2:23:28 AM6/5/14
to ansible...@googlegroups.com
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

James Cammarata

unread,
Jun 5, 2014, 11:46:58 AM6/5/14
to ansible...@googlegroups.com
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.


--
You received this message because you are subscribed to the Google Groups "Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ansible-proje...@googlegroups.com.
To post to this group, send email to ansible...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/be84a5e4-7a96-4ae1-9bef-b13dd0c3c1fd%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages