Bug 1695000 - fail to use satellite in organization mode
Summary: fail to use satellite in organization mode
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: openstack-tripleo-heat-templates
Version: 13.0 (Queens)
Hardware: x86_64
OS: Linux
high
high
Target Milestone: ---
: 13.0 (Queens)
Assignee: Emilien Macchi
QA Contact: Sasha Smolyak
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-04-02 09:10 UTC by Cyril Lopez
Modified: 2019-04-30 17:28 UTC (History)
5 users (show)

Fixed In Version: openstack-tripleo-heat-templates-8.3.1-6.el7ost
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2019-04-30 17:28:01 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Launchpad 1822725 0 None None None 2019-04-02 09:15:10 UTC
OpenStack gerrit 649232 0 None None None 2019-04-02 09:15:10 UTC
Red Hat Product Errata RHBA-2019:0939 0 None None None 2019-04-30 17:28:06 UTC

Description Cyril Lopez 2019-04-02 09:10:20 UTC
Description of problem:
When satellite in organization mode is used to register node, deployment failed.


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


How reproducible:


Steps to Reproduce:
1. install a satellite in organization mode
2. deploy an overcloud with rhel-register
3.

Actual results:
Deployment failed


Expected results:
Deployment success

Additional info:


WARN: Failed to connect when running 'subscription-manager register --force --activationkey=direct --org=cylopez', retrying (attempt #8 )...
INFO: Sleeping 2.0 ...
INFO: Executing 'subscription-manager register --force --activationkey=direct --org=cylopez' ...
Unregistering from: satellite63.local:443/rhsm
The system with UUID ba7c3f96-2ada-478d-9ea0-9ec564846e2b has been unregistered
All local data removed
The system has been registered with ID: b7f03f49-510c-4751-9fb4-6a277c2a438e
The registered system name is: overcloud-controller-0.local
Installed Product Current Status:
Product Name: Red Hat Enterprise Linux Server
Status:       Not Subscribed

Product Name: Red Hat Enterprise Linux High Availability (for RHEL Server)
Status:       Not Subscribed

Unable to find available subscriptions for all your installed products.
WARN: Failed to connect when running 'subscription-manager register --force --activationkey=direct --org=cylopez', retrying (attempt #9 )...
ERROR: Failed to connect after 10 attempts when running 'subscription-manager register --force --activationkey=direct --org=cylopez'

It's just because :
subscription-manager status
+-------------------------------------------+
   System Status Details
+-------------------------------------------+
Overall Status: Current
Content Access Mode is set to Organization/Environment Access. This host has access to content, regardless of subscription status.

Comment 1 Cyril Lopez 2019-04-02 12:40:12 UTC
Full detail when we use the patch and the deploy is success :

[root@overcloud-controller-1 ~]# subscription-manager status
+-------------------------------------------+
   System Status Details
+-------------------------------------------+
Overall Status: Invalid
Content Access Mode is set to Organization/Environment Access. This host has access to content, regardless of subscription status.

Red Hat Enterprise Linux High Availability (for RHEL Server):
- Not supported by a valid subscription.

Red Hat Ceph Storage MON:
- Not supported by a valid subscription.

Red Hat Enterprise Linux Server:
- Not supported by a valid subscription.

Red Hat Ceph Storage OSD:
- Not supported by a valid subscription.

Red Hat OpenStack:
- Not supported by a valid subscription.

Red Hat Ceph Storage:
- Not supported by a valid subscription.

[root@overcloud-controller-1 ~]# echo $?
1

But if you test :
[root@overcloud-controller-1 ~]# yum install mc -y
[...]
=============================================================================================================================================================================================
 Package                                   Arch                                    Version                                          Repository                                           Size
==============================================================================================================================================================================================
Installing:
 mc                                        x86_64                                  1:4.8.7-11.el7                                   rhel-7-server-rpms                                  1.7 M
Installing for dependencies:
 gpm-libs                                  x86_64                                  1.20.7-5.el7                                     rhel-7-server-rpms                                   32 k

Transaction Summary
==============================================================================================================================================================================================
Install  1 Package (+1 Dependent package)

Total download size: 1.8 M
Installed size: 5.7 M
Downloading packages:
(1/2): gpm-libs-1.20.7-5.el7.x86_64.rpm                                                                                                                                |  32 kB  00:00:00     
(2/2): mc-4.8.7-11.el7.x86_64.rpm                                                                                                                                      | 1.7 MB  00:00:01     
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Total                                                                                                                                                         1.0 MB/s | 1.8 MB  00:00:01     
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Installing : gpm-libs-1.20.7-5.el7.x86_64                                                                                                                                               1/2 
  Installing : 1:mc-4.8.7-11.el7.x86_64                                                                                                                                                   2/2 
Uploading Package Profile
  Verifying  : 1:mc-4.8.7-11.el7.x86_64                                                                                                                                                   1/2 
  Verifying  : gpm-libs-1.20.7-5.el7.x86_64                                                                                                                                               2/2 

Installed:
  mc.x86_64 1:4.8.7-11.el7                                                                                                                                                                    

Dependency Installed:
  gpm-libs.x86_64 0:1.20.7-5.el7   
           
[root@overcloud-controller-1 ~]# echo $?
0

Comment 3 Sasha Smolyak 2019-04-22 07:36:47 UTC
Can you please tell me what exactly changed for organisation mode and how do I test it?

Comment 4 Emilien Macchi 2019-04-22 12:05:44 UTC
Cyril, could you help Sasha to test this please? I'm not sure our internal instance of Satellite supports the Org mode.

Comment 8 errata-xmlrpc 2019-04-30 17:28:01 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-2019:0939


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