Red Hat Satellite engineering is moving the tracking of its product development work on Satellite to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "Satellite project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs will be migrated starting at the end of May. If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "Satellite project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/SAT-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1561140 - Fix validating availability of repositories error message
Summary: Fix validating availability of repositories error message
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Satellite Maintain
Version: 6.3.0
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: Unspecified
Assignee: Amit Upadhye
QA Contact: Jameer Pathan
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-03-27 17:13 UTC by sthirugn@redhat.com
Modified: 2020-03-05 16:25 UTC (History)
6 users (show)

Fixed In Version: foreman_maintain-0.2.8
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-03-05 16:25:18 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Foreman Issue Tracker 23152 0 Low Closed Fix validating availability of repositories error message 2020-10-01 10:27:59 UTC

Description sthirugn@redhat.com 2018-03-27 17:13:37 UTC
Description of problem:
Fix validating availability of repositories error message

Version-Release number of selected component (if applicable):
rubygem-foreman_maintain.noarch 0:0.1.5-1.el7sat

How reproducible:
Always

Steps to Reproduce:
1. Remove the satellite registration consumer in portal.
# subscription-manager refresh
Unit 9f329be9-690e-4dc1-8f78-5c68b5d2e325 has been deleted

# foreman-maintain upgrade check --target-version 6.3
Running Checks before upgrading to Satellite 6.3
================================================================================
Check for paused tasks:                                               [OK]
--------------------------------------------------------------------------------
Check whether all services are running using hammer ping:             [OK]
--------------------------------------------------------------------------------
Check to validate candlepin database:                                 [OK]
--------------------------------------------------------------------------------
Check for running tasks:                                              [OK]
--------------------------------------------------------------------------------
Check for old tasks in paused/stopped state:                          [OK]
--------------------------------------------------------------------------------
Check for pending tasks which are safe to delete:                     [OK]
--------------------------------------------------------------------------------
Check for tasks in planning state:                                    [OK]
--------------------------------------------------------------------------------
Check for recommended disk speed of pulp, mongodb, pgsql dir.: 
\ Finished                                                                      

Disk speed : 68 MB/sec                                                [FAIL]
Slow disk detected /var/lib/pulp mounted on /dev/mapper/rhel_dhcp--10--12--211--51-root.
             Actual disk speed: 68 MB/sec
             Expected disk speed: 80 MB/sec.
--------------------------------------------------------------------------------
Check to verify remote_execution_ssh settings already exist:          [OK]
--------------------------------------------------------------------------------
Validate availability of repositories: 
/ Validating availability of repositories for 6.3Consumer profile "9f329be9-690e-4dc1-8f78-5c68b5d2e325" has been deleted from the server. You can use command clean or unregister to remove local profile.
/ Some repositories missing, calling `subscription-manager refresh`   [FAIL]    
Failed executing subscription-manager refresh, exit status 70:
 Unit 9f329be9-690e-4dc1-8f78-5c68b5d2e325 has been deleted
--------------------------------------------------------------------------------
Scenario [Checks before upgrading to Satellite 6.3] failed.

The following steps ended up in failing state:

  [disk-performance]
  [repositories-validate]

Resolve the failed steps and rerun
the command. In case the failures are false positives,
use --whitelist="disk-performance,repositories-validate"


Actual results:
/ Validating availability of repositories for 6.3Consumer profile "9f329be9-690e-4dc1-8f78-5c68b5d2e325" has been deleted from the server. You can use command clean or unregister to remove local profile.

Expected results:
`/ Validating availability of repositories for 6.3` and `Consumer profile "9f329be9-690e-4dc1-8f78-5c68b5d2e325" has been deleted from the server. You can use command clean or unregister to remove local profile.` are separate statements, and should be displayed correctly.

Additional info:

Comment 2 Satellite Program 2018-04-06 16:19:22 UTC
Upstream bug assigned to kgaikwad

Comment 3 Satellite Program 2018-06-19 10:17:28 UTC
Upstream bug assigned to kgaikwad

Comment 4 Satellite Program 2018-08-17 14:19:10 UTC
Moving this bug to POST for triage into Satellite 6 since the upstream issue https://projects.theforeman.org/issues/23152 has been resolved.

Comment 5 Jameer Pathan 2019-01-03 09:25:39 UTC
Verified

@satellite 6.5.0 snap 9
rubygem-foreman_maintain-0.3.0-1.el7sat.noarch

steps:
1. Remove the satellite registration consumer in portal.
# subscription-manager refresh

# foreman-maintain upgrade check --target-version 6.5.z
Running Checks before upgrading to Satellite 6.5.z
================================================================================
Check for verifying syntax for ISP DHCP configurations:               [OK]
--------------------------------------------------------------------------------
Check whether all services are running:                               [OK]
--------------------------------------------------------------------------------
Check whether all services are running using hammer ping:             [OK]
--------------------------------------------------------------------------------
Check for paused tasks:                                               [OK]
--------------------------------------------------------------------------------
Check to make sure root(/) partition has enough space:                [OK]
--------------------------------------------------------------------------------
Check to validate candlepin database:                                 [OK]
--------------------------------------------------------------------------------
Check if EPEL repository enabled on system: 
/ Checking for presence of EPEL repository                            [OK]      
--------------------------------------------------------------------------------
Check for running tasks:                                              [OK]
--------------------------------------------------------------------------------
Check for old tasks in paused/stopped state:                          [OK]
--------------------------------------------------------------------------------
Check for pending tasks which are safe to delete:                     [OK]
--------------------------------------------------------------------------------
Check for tasks in planning state:                                    [OK]
--------------------------------------------------------------------------------
Check for recommended disk speed of pulp, mongodb, pgsql dir.: 
- Finished                                                                      

Disk speed : 38 MB/sec                                                [FAIL]
Slow disk detected /var/lib/pulp mounted on /dev/mapper/rhel_dell--pe--fm120--1b-root.
             Actual disk speed: 38 MB/sec
             Expected disk speed: 60 MB/sec.
--------------------------------------------------------------------------------
Check whether reports have correct associations:                      [OK]
--------------------------------------------------------------------------------
Validate availability of repositories: 
/ Some repositories missing, calling `subscription-manager refresh`   [FAIL]    
Failed executing subscription-manager refresh, exit status 70:
 Unit 07220899-69b1-4e08-9dbe-958a95ec57e7 has been deleted
--------------------------------------------------------------------------------
Scenario [Checks before upgrading to Satellite 6.5.z] failed.

The following steps ended up in failing state:

  [disk-performance]
  [repositories-validate]

Resolve the failed steps and rerun
the command. In case the failures are false positives,
use --whitelist="disk-performance,repositories-validate"

Comment 6 Bryan Kearney 2020-03-05 16:25:18 UTC
The current version of foreman_maintain includes this fix.


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