Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
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 1339644

Summary: Capsule upgrade fails on start_httpd step
Product: Red Hat Satellite Reporter: Eric Helms <ehelms>
Component: Foreman ProxyAssignee: Chris Duryee <cduryee>
Status: CLOSED ERRATA QA Contact: Lukas Pramuk <lpramuk>
Severity: high Docs Contact:
Priority: unspecified    
Version: 6.2.0CC: bbuckingham, kbidarka, lpramuk, mmccune, sghai
Target Milestone: UnspecifiedKeywords: Triaged
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: katello-installer-base-3.0.0.37-1 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-07-27 11:18:01 UTC Type: ---
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: 1335807    

Description Eric Helms 2016-05-25 14:02:02 UTC

Comment 1 Eric Helms 2016-05-25 14:02:06 UTC
Created from redmine issue http://projects.theforeman.org/issues/15171

Comment 2 Eric Helms 2016-05-25 14:02:10 UTC
Upstream bug assigned to ehelms

Comment 3 Brad Buckingham 2016-05-25 14:15:55 UTC
This is required to support capsule upgrades.

Comment 4 Bryan Kearney 2016-05-25 16:17:17 UTC
Moving to POST since upstream bug http://projects.theforeman.org/issues/15171 has been closed

Comment 6 Kedar Bidarkar 2016-06-03 11:58:25 UTC
Trying to upgrade capsule from snap14.0 to snap14.1 failed for me.

~]# satellite-installer --scenario capsule --upgrade
Upgrading...
Upgrade Step: stop_services...
Upgrade Step: start_databases...
Upgrade Step: update_http_conf...
Upgrade Step: migrate_pulp...
Upgrade Step: fix_pulp_httpd_conf...
Upgrade Step: start_httpd...
Upgrade step start_httpd failed. Check logs for more information.

-------------------------------------------------------------------------

[ERROR 2016-06-03 05:59:51 main] Redirecting to /bin/systemctl start  httpd.service
Job for httpd.service failed because the control process exited with error code. See "systemctl status httpd.service" and "journalctl -xe" for details.

Some services failed to start: httpd

[ERROR 2016-06-03 05:59:51 main] Upgrade step start_httpd failed. Check logs for more information.
[DEBUG 2016-06-03 05:59:51 main] Exit with status code: 1 (signal was 1)
[ERROR 2016-06-03 05:59:51 main] Errors encountered during run:
[ERROR 2016-06-03 05:59:51 main] Redirecting to /bin/systemctl start  httpd.service
Job for httpd.service failed because the control process exited with error code. See "systemctl status httpd.service" and "journalctl -xe" for details.

Some services failed to start: httpd

[ERROR 2016-06-03 05:59:51 main] Upgrade step start_httpd failed. Check logs for more information.
------------------------------------------------------------------------
~]# rpm -qav | grep -i httpd
httpd-manual-2.4.6-40.el7_2.1.noarch
httpd-2.4.6-40.el7_2.1.x86_64
httpd-tools-2.4.6-40.el7_2.1.x86_64


My Capsule's BaseOS  was not upto date earlier and BaseOS packages got updated along with it, while running "yum update" for updating capsule. Could this be an issue?
------------------------------------------------------------------------

Will be attaching foreman-debug shortly.

Comment 8 Kedar Bidarkar 2016-06-03 15:17:57 UTC
What seems to work for me to get past this issue is:
a) Run "satellite-installer"
b) Run "Satellite-installer --scenario capsule --upgrade"

Capsule Upgrade worked successfully.

Comment 9 Chris Duryee 2016-06-09 17:55:22 UTC
Kedar,

Can you try testing this again with 15.1? I have not hit this issue, and I've done many upgrades from 6.1.9 recently.

Comment 10 Sachin Ghai 2016-06-10 08:15:38 UTC
I don't see this issue while upgrading capsule from sat6.1.9 -> sat6.2 snap15.1

Upgrading...
Upgrade Step: stop_services...
Upgrade Step: start_databases...
Upgrade Step: update_http_conf...
Upgrade Step: migrate_pulp...
Upgrade Step: fix_pulp_httpd_conf...
Upgrade Step: start_httpd...
Upgrade Step: start_qpidd...
Upgrade Step: start_pulp...
Upgrade Step: remove_nodes_importers...
Upgrade Step: Running installer...
Installing             Done                                               [100%] [............................]
  The full log is at /var/log/foreman-installer/capsule.log
Upgrade Step: restart_services...
Katello upgrade completed!


Leaving this bug as is for Kedar to confirm if he is still facing this while performing upgrade between 6.2 snaps.

Comment 11 Lukas Pramuk 2016-06-22 10:51:43 UTC
VERIFIED.

@satellite-capsule-6.2.0-17.0.el6sat.noarch
katello-installer-base-3.0.0.46-1.el6sat.noarch

Upgrade 6.1.9 -> 6.2.0 Snap17:

# satellite-installer --upgrade --certs-tar $(hostname).tar
Upgrading...
Upgrade Step: stop_services...
Upgrade Step: start_databases...
Upgrade Step: update_http_conf...
Upgrade Step: migrate_pulp...
Upgrade Step: fix_pulp_httpd_conf...
Upgrade Step: start_httpd...
Upgrade Step: start_qpidd...
Upgrade Step: start_pulp...
Upgrade Step: remove_nodes_importers...
Upgrade Step: Running installer...
Installing             Done                                               [100%] [....................................]
  The full log is at /var/log/foreman-installer/capsule.log
Upgrade Step: restart_services...
Katello upgrade completed!

>>> start_httpd step succeeded

Comment 12 Bryan Kearney 2016-07-27 11:18: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-2016:1501