Bug 1465470 - Documentation on upgrades shall explain how to do upgrades with custom mirrors
Summary: Documentation on upgrades shall explain how to do upgrades with custom mirrors
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: openstack-tripleo
Version: 9.0 (Mitaka)
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: ---
: ---
Assignee: Dan Macpherson
QA Contact: Amit Ugol
URL:
Whiteboard:
Depends On:
Blocks: 1477647
TreeView+ depends on / blocked
 
Reported: 2017-06-27 13:40 UTC by Yolanda Robla
Modified: 2019-05-03 09:56 UTC (History)
9 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2019-05-03 09:56:49 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Yolanda Robla 2017-06-27 13:40:20 UTC
Description of problem:


Documentation on https://access.redhat.com/documentation/en-us/red_hat_openstack_platform/9/html/upgrading_red_hat_openstack_platform/chap-upgrading_the_environment talks about upgrades, but it's always assuming that the user will be on a system using RHEL subscription.
It is very usual for production systems, to don't rely on RHEL CDN, but have pre-built local mirrors. And documentation on upgrades does not mention anything about it.

Two different points shall be modified here. First, the one that comments on how to upgrade undercloud:

$ sudo subscription-manager repos --disable=rhel-7-server-openstack-8-rpms --disable=rhel-7-server-openstack-8-director-rpms
$ sudo subscription-manager repos --enable=rhel-7-server-openstack-9-rpms --enable=rhel-7-server-openstack-9-director-rpms

Could be mentioned here, to disable local repos for 8, and enable the repos for 9, in case of local mirrors.

Also, not as obvious as the first one. The system does the upgrade from 8 to 9 on that step:

$ openstack overcloud deploy --templates \
  --control-scale 3 \
  --compute-scale 3 \
  -e /usr/share/openstack-tripleo-heat-templates/environments/network-isolation.yaml \
  -e /usr/share/openstack-tripleo-heat-templates/environments/net-single-nic-with-vlans.yaml  \
  -e /home/stack/templates/network_env.yaml \
  -e /usr/share/openstack-tripleo-heat-templates/environments/major-upgrade-pacemaker-init.yaml

This relies on UpgradeInitCommand parameeter, to know which repos to disable and which ones to enable. By default, just assumes that the nodes are registered and using repos from CDN, and just disables 8 and enables 9.
But in the case of local mirrors, this parameter needs to be customized, to achieve all this repo change. Upgrade documentation shall talk about it, giving some example.

Comment 3 Sofer Athlan-Guyot 2017-06-28 09:33:40 UTC
Hi Mike,

waiting on your go no go on this one, or should we ask PM ?

Hi Dan,

when Mike (or PM) ensures that it's something we want to document I'll put the necessary commands.

Thanks,


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