Bug 1297348 - [REF] ansible upgrade native Master HA
Summary: [REF] ansible upgrade native Master HA
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Cluster Version Operator
Version: 3.1.0
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
: ---
Assignee: Brenton Leanhardt
QA Contact: Johnny Liu
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-01-11 10:03 UTC by Anping Li
Modified: 2016-01-27 19:44 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-01-27 19:44:09 UTC
Target Upstream Version:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2016:0075 0 normal SHIPPED_LIVE Red Hat OpenShift Enterprise atomic-openshift-utils bug fix update 2016-01-28 00:42:22 UTC

Description Anping Li 2016-01-11 10:03:32 UTC
Description of problem:
ansible should support to upgrade nativa Master ha  from v3.1.0 to v3.1.1

Version-Release number of selected component (if applicable):
ansible-playbook

How reproducible:
always

Steps to Reproduce:
1. Setup Native HA Openshift v3.1.0 environment using ansible 
2. Try to upgrade from v3.1.0 to v3.1.1

Actual results:
TASK: [fail ] ***************************************************************** 
failed: [ose31master2.example.com] => {"failed": true}
msg: openshift_master_cluster_method must be set to 'pacemaker'

FATAL: all hosts have already failed -- aborting

PLAY RECAP ******************************************************************** .

Expected Result:
Ansible can upgrade Native Master HA  environment

Comment 1 Brenton Leanhardt 2016-01-11 21:56:52 UTC
Hi Anping,

We actually haven't shipped a 3.1.1 upgrade playbook yet.  I doubt we'll have atomic-openshift-installer support ready in time for 3.1.1 devcut so it will be similar to previous minor upgrades.  Admins can do the minor steps by hand or run a playbook directly with ansible.  We'll work to add atomic-openshift-installer support soon though.

My hope is to have this ready for you tomorrow.

Comment 3 Brenton Leanhardt 2016-01-13 02:06:23 UTC
You can preview the 3.1.1 upgrade process here:

https://github.com/openshift/openshift-ansible/pull/1166

If you install a 3.1.0 environment from cdn.redhat.com you only need to enable the latest puddle, clone openshift-ansible and then run:

ansible-playbook -i ~/.config/openshift/.ansible/hosts playbooks/byo/openshift-cluster/upgrades/v3_1_minor/upgrade.yml

Make sure you deploy the 3.1.0 router and registry so you can verify it upgrades properly.

We're waiting to get a final version of the HA Master Restart playbook and then I'll rebase the upgrade playbook and build the release candidate.

Comment 4 Anping Li 2016-01-13 08:04:23 UTC
Failed to replace those imagesteams such as 'fis-java-openshift, fis-karaf-openshift' 

The error message is as following:

TASK: [openshift_examples | Import xPaas image streams] *********************** 
failed: [ose31master2.example.com] => {"changed": false, "cmd": ["oc", "replace", "-n", "openshift", "-f", "/usr/share/openshift/examples/xpaas-streams/"], "delta": "0:00:00.417393", "end": "2016-01-13 15:57:27.856724", "failed": true, "failed_when_result": true, "rc": 1, "start": "2016-01-13 15:57:27.439331", "stdout_lines": ["imagestream \"jboss-webserver30-tomcat7-openshift\" replaced", "imagestream \"jboss-webserver30-tomcat8-openshift\" replaced", "imagestream \"jboss-eap64-openshift\" replaced", "imagestream \"jboss-amq-62\" replaced"], "warnings": []}
stderr: Error from server: imageStream "fis-java-openshift" not found
Error from server: imageStream "fis-karaf-openshift" not found
Error from server: imageStream "jboss-decisionserver62-openshift" not found
Error from server: imageStream "jboss-datagrid65-openshift" not found
stdout: imagestream "jboss-webserver30-tomcat7-openshift" replaced
imagestream "jboss-webserver30-tomcat8-openshift" replaced
imagestream "jboss-eap64-openshift" replaced
imagestream "jboss-amq-62" replaced

FATAL: all hosts have already failed -- aborting

Comment 6 Anping Li 2016-01-14 05:52:17 UTC
The Native HA environment can be upgraded, so move to verified.

Comment 8 errata-xmlrpc 2016-01-27 19:44:09 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2016:0075


Note You need to log in before you can comment on or make changes to this bug.