Bug 1875357

Summary: After upgrade server response check failed for candlepin.
Product: Red Hat Satellite Reporter: Devendra Singh <desingh>
Component: CandlepinAssignee: Nikos Moumoulidis <nmoumoul>
Status: CLOSED ERRATA QA Contact: Devendra Singh <desingh>
Severity: high Docs Contact:
Priority: unspecified    
Version: 6.8.0CC: bcourt, crog, egolov, jpathan, jturel, mmccune, nmoumoul
Target Milestone: 6.8.0Keywords: AutomationBlocker, Regression, Triaged, UpgradeBlocker, Upgrades
Target Release: Unused   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: candlepin-3.1.21-1 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1877340 (view as bug list) Environment:
Last Closed: 2020-10-27 13:08:57 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1877340    

Description Devendra Singh 2020-09-03 11:43:59 UTC
Description of problem: After upgrade server response check failed for candlepin.

Version-Release number of selected component (if applicable):
6.8 Snap-14

How reproducible:
always

Steps to Reproduce:
1. Prepare the environment to perform the satellite-upgrade from 6.7 to 6.8
2. Configure all the repository(Enabled the required repository)
3. Execute the pre-check and it has completed successfully.
4. Trigger the upgrade job using below command

foreman-maintain upgrade run --whitelist="disk-performance" --target-version 6.8 -y

....
....
 Update package(s) :                                                   [OK]
 --------------------------------------------------------------------------------
 Procedures::Installer::Upgrade:                                       [OK]
 --------------------------------------------------------------------------------
  
 Running Procedures after migrating to Satellite 6.8
..

 Check whether all services are running using the ping call:           [FAIL]
 Couldn't connect to the server: undefined method `to_sym' for nil:NilClass 

All services started                                                [OK]


5. Candlepin failed to respond.

# hammer ping
database:         
    Status:          ok
    Server Response: Duration: 0ms
candlepin:        
    Status:          FAIL
    Server Response: Message: 404 Not Found
candlepin_events: 
    Status:          FAIL
    message:         Not running
    Server Response: Duration: 7ms
candlepin_auth:   
    Status:          FAIL
    Server Response: Message: Katello::Resources::Candlepin::CandlepinPing: 404 Not Found  (GET /candlepin/status)
katello_events:   
    Status:          ok
    message:         0 Processed, 0 Failed
    Server Response: Duration: 2ms
pulp:             
    Status:          ok
    Server Response: Duration: 106ms
pulp_auth:        
    Status:          ok
    Server Response: Duration: 81ms
foreman_tasks:    
    Status:          ok
    Server Response: Duration: 14ms


Actual results:

candlepin response check fail.

Expected results:

candlepin response check should successful.

Additional info:

Comment 10 Devendra Singh 2020-09-22 05:06:21 UTC
Verified on 6.8 Snap16

Verification points

1- Verified the fixed candlepin version

# rpm -q candlepin
candlepin-3.1.21-1.el7sat.noarch

2- Satellite Upgrade completed successfully.

3- After upgrade hammer-ping services worked perfectly 

#hammer ping
database:         
    Status:          ok
    Server Response: Duration: 0ms
candlepin:        
    Status:          ok
    Server Response: Duration: 45ms
candlepin_events: 
    Status:          ok
    message:         0 Processed, 0 Failed
    Server Response: Duration: 0ms
candlepin_auth:   
    Status:          ok
    Server Response: Duration: 36ms
katello_events:   
    Status:          ok
    message:         0 Processed, 0 Failed
    Server Response: Duration: 1ms
pulp:             
    Status:          ok
    Server Response: Duration: 523ms
pulp_auth:        
    Status:          ok
    Server Response: Duration: 56ms
foreman_tasks:    
    Status:          ok
    Server Response: Duration: 5ms

Comment 11 Devendra Singh 2020-09-22 05:17:58 UTC
One minor correction.

(In reply to Devendra Singh from comment #10)
> Verified on 6.8 Snap16
> 
> Verification points
> 
> 1- Verified the fixed candlepin version
> 
> # rpm -q candlepin
> candlepin-3.1.21-1.el7sat.noarch
> 
> 2- Satellite Upgrade completed successfully.
> 
3- After upgrade, service's check using "hammer ping" worked correctly.
 
> #hammer ping
> database:         
>     Status:          ok
>     Server Response: Duration: 0ms
> candlepin:        
>     Status:          ok
>     Server Response: Duration: 45ms
> candlepin_events: 
>     Status:          ok
>     message:         0 Processed, 0 Failed
>     Server Response: Duration: 0ms
> candlepin_auth:   
>     Status:          ok
>     Server Response: Duration: 36ms
> katello_events:   
>     Status:          ok
>     message:         0 Processed, 0 Failed
>     Server Response: Duration: 1ms
> pulp:             
>     Status:          ok
>     Server Response: Duration: 523ms
> pulp_auth:        
>     Status:          ok
>     Server Response: Duration: 56ms
> foreman_tasks:    
>     Status:          ok
>     Server Response: Duration: 5ms

Comment 14 errata-xmlrpc 2020-10-27 13:08:57 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 (Important: Satellite 6.8 release), 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/RHSA-2020:4366