Bug 1663886 - Overcloud didn't subscribe correctly during the update from 12 to 13
Summary: Overcloud didn't subscribe correctly during the update from 12 to 13
Keywords:
Status: CLOSED DUPLICATE of bug 1664617
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: rhosp-director
Version: 12.0 (Pike)
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
: 12.0 (Pike)
Assignee: Jose Luis Franco
QA Contact: Gurenko Alex
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-01-07 09:34 UTC by Eduard Barrera
Modified: 2019-01-17 18:26 UTC (History)
8 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2019-01-17 18:26:29 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Eduard Barrera 2019-01-07 09:34:27 UTC
Description of problem:

We got the following error when updating from 12 to 13:


[716095-lab1-controller03]: FAILED! => {"changed": false, "failed": true, "msg": "No package matching 'mariadb-server-galera' found available, installed or updated", "rc": 126, "results": ["No package matching 'mariadb-server-galera' found available, installed or updated"]}
2018-12-22 11:45:26,079 p=25049 u=mistral | fatal: [XXXX-lab1-controller01]: FAILED! => {"changed": false, "failed": true, "msg": "No package matching 'mariadb-server-galera' found available, installed or updated", "rc": 126, "results": ["No package matching 'mariadb-server-galera' found available, installed or updated"]}
2018-12-22 11:45:26,423 p=25049 u=mistral | fatal: [XXXX-lab1-controller02]: FAILED! => {"changed": false, "failed": true, "msg": "No package matching 'mariadb-server-galera' found available, installed or updated", "rc": 126, "results": ["No package matching 'mariadb-server-galera' found available, installed or updated"]}

It seems, upgrade process didnt subscribe overcloud nodes to the correct repository. To fix the issue, I manually subscribe all controller nodes to correct repo.

Upgrade process didn't subscribe overcloud nodes to the correct repository. It seems to be with the default configuration, the systems will be registered only during the initial creation of the overcloud. 

<snip>
  RHELRegistrationActions:
    type: comma_delimited_list
    default:
      - CREATE
    description: Actions when the system profile will be registered, by default we only do this on CREATE of a new server, not for existing nodes.
</snip>


I think I would need to specify "UPDATE" "RHELRegistrationActions:" action before initiating RHOS upgrade procedure.


Version-Release number of selected component (if applicable):
12 to 13

How reproducible:
Unsure

Steps to Reproduce:
1. Upgrade from 12 to 13
2.
3.

Actual results:
Mentioned error

Comment 1 Eduard Barrera 2019-01-07 09:36:54 UTC
Can you confirm what is the expected behaviour here ?

Comment 3 Lucas Vanzin 2019-01-16 15:58:11 UTC
Same happened here. While updating from OSP12 to OSP13 I got the same error message:

u'TASK [Update host mariadb packages] ********************************************',
u'Wednesday 16 January 2019  11:45:30 -0200 (0:00:00.817)       0:41:27.438 ***** ',
u'fatal: [overcloud-controller-0]: FAILED! => {"changed": false, "failed": true, "msg": "No package matching \'mariadb-server-galera\' found available, installed or updated", "rc": 126, "results": ["No package matching \'mariadb-server-galera\' found available, installed or updated"]}']
[u'fatal: [overcloud-controller-2]: FAILED! => {"changed": false, "failed": true, "msg": "No package matching \'mariadb-server-galera\' found available, installed or updated", "rc": 126, "results": ["No package matching \'mariadb-server-galera\' found available, installed or updated"]}',
u'fatal: [overcloud-controller-1]: FAILED! => {"changed": false, "failed": true, "msg": "No package matching \'mariadb-server-galera\' found available, installed or updated", "rc": 126, "results": ["No package matching \'mariadb-server-galera\' found available, installed or updated"]}',

To solve that, I had to update the repositories to OSP13 manually with:

sudo subscription-manager repos --disable=rhel-7-server-openstack-12-rpms
sudo subscription-manager repos --disable=rhel-7-server-rhceph-2-mon-rpms
sudo subscription-manager repos --disable=rhel-7-server-rhceph-2-tools-rpms
sudo subscription-manager repos --enable=rhel-7-server-openstack-13-rpms
sudo subscription-manager repos --enable=rhel-7-server-rhceph-3-mon-rpms
sudo subscription-manager repos --enable=rhel-7-server-rhceph-3-tools-rpms

The expected behavior would be finishing the OSP update with success, or maybe that's a documentation problem, and the repositories should be changed manually, but there is no information about that, except for the undercloud/director:

https://access.redhat.com/documentation/en-us/red_hat_openstack_platform/13/html/upgrading_red_hat_openstack_platform/assembly-upgrading_the_undercloud#upgrading_the_undercloud_to_openStack_platform-13


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