Bug 1476711 - OSP9 -> OSP10 upgrade: major-upgrade-pacemaker.yaml fails with Error: Unable to find constraint - 'INFINITY'
Summary: OSP9 -> OSP10 upgrade: major-upgrade-pacemaker.yaml fails with Error: Unable ...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: openstack-tripleo-heat-templates
Version: 10.0 (Newton)
Hardware: Unspecified
OS: Unspecified
urgent
urgent
Target Milestone: z4
: 10.0 (Newton)
Assignee: Sofer Athlan-Guyot
QA Contact: Amit Ugol
URL:
Whiteboard:
: 1483121 (view as bug list)
Depends On:
Blocks: 1335596 1356451
TreeView+ depends on / blocked
 
Reported: 2017-07-31 09:19 UTC by Marius Cornea
Modified: 2020-12-14 09:23 UTC (History)
13 users (show)

Fixed In Version: openstack-tripleo-heat-templates-5.3.0-3.el7ost
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-09-06 17:11:37 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
bugfix patch (1.35 KB, patch)
2017-08-19 06:15 UTC, erik.young@lmco.com
no flags Details | Diff


Links
System ID Private Priority Status Summary Last Updated
Launchpad 1708427 0 None None None 2017-08-03 10:55:33 UTC
OpenStack gerrit 490422 0 None None None 2017-08-03 13:19:43 UTC
Red Hat Product Errata RHBA-2017:2654 0 normal SHIPPED_LIVE Red Hat OpenStack Platform 10 director Bug Fix Advisory 2017-09-06 20:55:36 UTC

Description Marius Cornea 2017-07-31 09:19:39 UTC
Description of problem:
OSP9 -> OSP10 upgrade: major-upgrade-pacemaker.yaml fails with Error: Unable to find constraint - 'INFINITY'

Version-Release number of selected component (if applicable):
openstack-tripleo-heat-templates-5.2.0-25.el7ost.noarch

How reproducible:


Steps to Reproduce:
1. Deploy  OSP9
2. Upgrade to OSP10

Actual results:
During major-upgrade-pacemaker.yaml  step upgrade fails.

Expected results:
Upgrade completes fine.

Additional info:

[stack@undercloud-0 ~]$ openstack stack failures list overcloud
overcloud.UpdateWorkflow.ControllerPacemakerUpgradeDeployment_Step1.0:
  resource_type: OS::Heat::SoftwareDeployment
  physical_resource_id: d60db86f-995f-47aa-b344-4488cc2e47a3
  status: CREATE_FAILED
  status_reason: |
    Error: resources[0]: Deployment to server failed: deploy_status_code : Deployment exited with non-zero status code: 1
  deploy_stdout: |
    mysql upgrade required: 0
    Mon Jul 31 09:16:10 UTC 2017 a568a3b9-0e83-4702-bf69-33e68de0392d tripleo-upgrade controller-0 Deleting colocation constraint INFINITY from CIB
  deploy_stderr: |
    Error: Unable to find constraint - 'INFINITY'

Comment 2 Sofer Athlan-Guyot 2017-08-03 11:07:54 UTC
While we wait for the upstream/downstream process, user can use this snippet:

    curl https://review.openstack.org/changes/490422/revisions/current/patch?download | \
        base64 -d | \
        sudo patch -f -d /usr/share/openstack-tripleo-heat-templates -p1

It must be applied after undercloud upgrade and before any overcloud step.

Comment 4 Guillaume Abrioux 2017-08-03 13:06:22 UTC
I tested this patch since I was hitting that issue.
It works fine, it has fixed the bug.

Comment 6 erik.young@lmco.com 2017-08-19 06:02:14 UTC
so this would work. We solved it by replacing the two effected lines with:

COL_CONSTRAINTS=$(pcs constraint colocation show --full | awk -F: 'NR>1{gsub(/\)/, "") ; print $NF}')
ORD_CONSTRAINTS=$(pcs constraint order show --full | awk -F: 'NR>1{gsub(/\)/, "") ; print $NF}')

which are both more "correct" in this context, more concise, and work fine as far back as Juno.

-esy

Comment 7 erik.young@lmco.com 2017-08-19 06:15:56 UTC
Created attachment 1315627 [details]
bugfix patch

corrects the use of pcs config show to use pcs constraint instead with --full option.

Comment 8 Matt Flusche 2017-08-21 13:06:58 UTC
*** Bug 1483121 has been marked as a duplicate of this bug. ***

Comment 9 arkady kanevsky 2017-08-28 19:48:52 UTC
Is this landing onto Aug 30 z-stream?

Comment 11 errata-xmlrpc 2017-09-06 17:11:37 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-2017:2654


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