Bug 1322545 - satellite 5 channels not updated during upgrade
Summary: satellite 5 channels not updated during upgrade
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: openstack-tripleo-heat-templates
Version: 8.0 (Liberty)
Hardware: Unspecified
OS: Unspecified
urgent
unspecified
Target Milestone: async
: 8.0 (Liberty)
Assignee: Mike Burns
QA Contact: Alexander Chuzhoy
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-03-30 17:16 UTC by Mike Burns
Modified: 2016-04-21 18:43 UTC (History)
5 users (show)

Fixed In Version: openstack-tripleo-heat-templates-0.8.14-9.el7ost
Doc Type: Bug Fix
Doc Text:
Cause: An incorrect command was issued to change repositories. Consequence: an upgrade using Satellite 5 would fail to upgrade packages Fix: A correct command is provided Result: The nodes will update be updated based on a new activation key.
Clone Of:
Environment:
Last Closed: 2016-04-20 13:04:37 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2016:0653 0 normal SHIPPED_LIVE Red Hat Enterprise Linux OSP 8 director Bug Fix Advisory 2016-04-20 17:02:07 UTC

Description Mike Burns 2016-03-30 17:16:19 UTC
Description of problem:
During upgrade when registered to satellite 5, overcloud nodes don't update to OSP 8 channels

Version-Release number of selected component (if applicable):
Beta 9

How reproducible:
Always

Steps to Reproduce:
1. Deploy OSP7 overcloud registered to Satellite 5
2. Upgrade from 7 to 8
3.

Actual results:
overcloud nodes stay registered to OSP 7

Expected results:
overcloud nodes move to OSP 8

Additional info:

Comment 6 Mike Burns 2016-04-15 13:53:30 UTC
This will not work.  rhn-channel was used to change the repos enabled, but that requires user/password.

Comment 8 Mike Burns 2016-04-15 21:42:00 UTC
Dan we need to document this before the upgrade init step in the doc.  Do you want a separate doc bug? or is this sufficient?

The user will need to provide a new activation key and possibly the server url depending on how they configured their overcloud at deployment.

If they provided cli options for satellite 5, they will need to add an environment file like this using a new activation key with OSP8 keys:

parameter_defaults:
  rhel_reg_sat_url: https://<satellite hostname>
  rhel_reg_activation_key: <OSP8_activation_key>

They could also provide something like this:

parameter_defaults:
  UpgradeInitCommand: |
    rhn-channel --remove --channel=rhel-x86_64-server-7-ost-7 --channel=rhel-x86_64-server-7-ost-7-director --username=<> --password=<>
    rhn-channel --add --channel=rhel-x86_64-server-7-ost-8 --channel=rhel-x86_64-server-7-ost-8-director --username=<> --password=<>

Comment 9 Mike Burns 2016-04-15 21:43:09 UTC
I neglected the "if they passed and env file with sat5 information" possibility:

If that's the case, they need to update that file to provide an OSP8 activation key instead of the OSP 7 on used previously.

Comment 10 Alexander Chuzhoy 2016-04-19 16:17:13 UTC
Verified:
Environment:
openstack-tripleo-heat-templates-0.8.14-9.el7ost.noarch

The repos on the overcloud nodes switched to 8.0

Comment 12 errata-xmlrpc 2016-04-20 13:04: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://rhn.redhat.com/errata/RHBA-2016-0653.html

Comment 13 Dan Macpherson 2016-04-21 16:50:12 UTC
Hi Mike,

I've added a note in the pre-upgrade notes:
https://access.redhat.com/documentation/en/red-hat-openstack-platform/8/director-installation-and-usage/chapter-10-upgrading-the-environment


The text reads:

If using an environment file for Satellite registration (see Section 6.12, “Registering the Overcloud”), make sure to update the following parameters in the environment file:

* rhel_reg_repos - Repositories to enable for your Overcloud, including the new Red Hat OpenStack Platform 8 repositories.

* rhel_reg_activation_key - The new activation key for your Red Hat OpenStack Platform 8 repositories.

* rhel_reg_sat_repo - A new parameter that defines the repository containing Red Hat Satellite 6's management tools, such as katello-agent. Make sure to add this parameter.

How does that sound?

Comment 14 Mike Burns 2016-04-21 17:51:12 UTC
> 
> If using an environment file for Satellite registration (see Section 6.12,
> “Registering the Overcloud”), make sure to update the following parameters
> in the environment file:
> 
> * rhel_reg_repos - Repositories to enable for your Overcloud, including the
> new Red Hat OpenStack Platform 8 repositories.

I don't think this is used on upgrade, though I could be wrong.  We do manually change things for CDN/Sat6.  Sat 5 should change automatically with the right activation key.

> 
> * rhel_reg_activation_key - The new activation key for your Red Hat
> OpenStack Platform 8 repositories.

this should only be needed with Sat5, not sat6.

> 
> * rhel_reg_sat_repo - A new parameter that defines the repository containing
> Red Hat Satellite 6's management tools, such as katello-agent. Make sure to
> add this parameter.

This should only matter for Sat6, not Sat5

> 
> How does that sound?

Comment 15 Dan Macpherson 2016-04-21 18:13:38 UTC
(In reply to Mike Burns from comment #14)
> > 
> > If using an environment file for Satellite registration (see Section 6.12,
> > “Registering the Overcloud”), make sure to update the following parameters
> > in the environment file:
> > 
> > * rhel_reg_repos - Repositories to enable for your Overcloud, including the
> > new Red Hat OpenStack Platform 8 repositories.
> 
> I don't think this is used on upgrade, though I could be wrong.  We do
> manually change things for CDN/Sat6.  Sat 5 should change automatically with
> the right activation key.

I think I included this in case they still had the old repos for Sat 6/CDN. Would this not make a difference? Would the upgrade script or these params take precedence?

> > 
> > * rhel_reg_activation_key - The new activation key for your Red Hat
> > OpenStack Platform 8 repositories.
> 
> this should only be needed with Sat5, not sat6.

Systems can use activation keys to register to both Satellite 5 and 6. If using a Satellite 6 activation key when initially registering their OSP 7 Overcloud, wouldn't they also need to include a new activation key?

> > 
> > * rhel_reg_sat_repo - A new parameter that defines the repository containing
> > Red Hat Satellite 6's management tools, such as katello-agent. Make sure to
> > add this parameter.
> 
> This should only matter for Sat6, not Sat5
> 

I'll update the last sentence to "Make sure to add this parameter if registering to Red Hat Satellite 6."

Just to note, I added this for another BZ: https://bugzilla.redhat.com/show_bug.cgi?id=1329242


> > 
> > How does that sound?

Comment 16 Mike Burns 2016-04-21 18:43:58 UTC
(In reply to Dan Macpherson from comment #15)
> (In reply to Mike Burns from comment #14)
> > > 
> > > If using an environment file for Satellite registration (see Section 6.12,
> > > “Registering the Overcloud”), make sure to update the following parameters
> > > in the environment file:
> > > 
> > > * rhel_reg_repos - Repositories to enable for your Overcloud, including the
> > > new Red Hat OpenStack Platform 8 repositories.
> > 
> > I don't think this is used on upgrade, though I could be wrong.  We do
> > manually change things for CDN/Sat6.  Sat 5 should change automatically with
> > the right activation key.
> 
> I think I included this in case they still had the old repos for Sat 6/CDN.
> Would this not make a difference? Would the upgrade script or these params
> take precedence?

I don't actually know.  If they actually explicitly stated which repos to enable, then they should change it appropriately.  If they relied on their activation key to enable only the right repos, then they don't need it


> 
> > > 
> > > * rhel_reg_activation_key - The new activation key for your Red Hat
> > > OpenStack Platform 8 repositories.
> > 
> > this should only be needed with Sat5, not sat6.
> 
> Systems can use activation keys to register to both Satellite 5 and 6. If
> using a Satellite 6 activation key when initially registering their OSP 7
> Overcloud, wouldn't they also need to include a new activation key?

With Sat 6, we don't remove and re-register like we have to do with Sat 5 (hence the need for a new key).  With Sat 6, they should update their key to allow osp8 repositories.  As long as they've done that, the code should switch their repos appropriately.
> 
> > > 
> > > * rhel_reg_sat_repo - A new parameter that defines the repository containing
> > > Red Hat Satellite 6's management tools, such as katello-agent. Make sure to
> > > add this parameter.
> > 
> > This should only matter for Sat6, not Sat5
> > 
> 
> I'll update the last sentence to "Make sure to add this parameter if
> registering to Red Hat Satellite 6."
> 
> Just to note, I added this for another BZ:
> https://bugzilla.redhat.com/show_bug.cgi?id=1329242

ACK, thanks
> 
> 
> > > 
> > > How does that sound?


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