Bug 1221865

Summary: manual katello-restart required after upgrading
Product: Red Hat Satellite Reporter: jnikolak
Component: UpgradesAssignee: Eric Helms <ehelms>
Status: CLOSED WONTFIX QA Contact: Katello QA List <katello-qa-list>
Severity: high Docs Contact:
Priority: unspecified    
Version: 6.1.0CC: bbuckingham, cwelton, jnikolak, mmccune, xdmoon
Target Milestone: UnspecifiedKeywords: Triaged
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-08-07 15:27:09 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: 1115190    
Attachments:
Description Flags
installation-log
none
foreman-debug none

Description jnikolak 2015-05-15 05:34:32 UTC
Created attachment 1025689 [details]
installation-log

Upgrading from 6.0.8 to 6.1

I followed the upgrade using 
http://satellite.pad.engineering.redhat.com/sat60-61upgradenotes

- however during installation I discovered that I needed to manually add the repository

Other than that, the installation is default.
We can see that the upgrade script restarted the services.

I checked production.log and messages during time of issue, and found some 500 Internal Server Error.
Before upgrade I was easily able to view that page

2015-05-15 00:23:47 [I] Processing by AboutController#index as HTML
2015-05-15 00:23:47 [W] Current user is set, but not expected. Clearing
2015-05-15 00:23:47 [I] Deface: 3 overrides found for 'about/index'
2015-05-15 00:23:47 [I] Deface: 'add_system_status_to_about' matched 1 times with '#about'
2015-05-15 00:23:47 [I] Deface: 'add_installed_packages_to_about' matched 1 times with '#about'
2015-05-15 00:23:47 [I] Deface: 'add_support_documentation' matched 1 times with '.col-md-5 .stats-well:first-child'
2015-05-15 00:24:00 [I] Completed 500 Internal Server Error in 120039ms
2015-05-15 00:24:00 [F] 
RestClient::RequestTimeout (Katello::Resources::Candlepin::CandlepinResource: Request Timeout  (GET /candlepin/owners/work/subscriptions)):
  lib/middleware/catch_json_parse_errors.rb:9:in `call'



The error's cleared after doing a manual
katello-services restart

attaching foreman-debug onto the case

Comment 1 jnikolak 2015-05-15 05:38:53 UTC
Created attachment 1025690 [details]
foreman-debug

Comment 2 RHEL Program Management 2015-05-15 05:42:28 UTC
Since this issue was entered in Red Hat Bugzilla, the release flag has been
set to ? to ensure that it is properly evaluated for this release.

Comment 4 Mike McCune 2015-05-15 15:14:30 UTC
The installer is supposed to restart services during the upgrade:

Upgrade Step: migrate_foreman...
Upgrade Step: Running installer...
Upgrade Step: Restarting services...
Upgrade Step: db:seed...
Upgrade Step: Running errata import task (this may take a while)...
Katello upgrade completed!
  The full log is at /var/log/katello-installer/katello-installer.log

so the user should not be required to do it again.

If it turns out we do need an extra restart we should include that in the installer or at the worst case, update the docs.

Comment 5 Eric Helms 2015-05-22 13:47:09 UTC
What version of java was present during upgrade? Does this error happen repeatedly? Are you able to do a katello-service status after upgrade? Is tomcat running?

Comment 8 Brad Buckingham 2015-08-07 15:27:09 UTC
We have not been able to reproduce this error.  If it reoccurs on 6.1.1 GA, please re-open.  Thanks!