Bug 1339644 - Capsule upgrade fails on start_httpd step
Summary: Capsule upgrade fails on start_httpd step
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Foreman Proxy
Version: 6.2.0
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: Unspecified
Assignee: Chris Duryee
QA Contact: Lukas Pramuk
URL:
Whiteboard:
Depends On:
Blocks: 1335807
TreeView+ depends on / blocked
 
Reported: 2016-05-25 14:02 UTC by Eric Helms
Modified: 2019-09-26 14:47 UTC (History)
5 users (show)

Fixed In Version: katello-installer-base-3.0.0.37-1
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-07-27 11:18:01 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Foreman Issue Tracker 15171 0 None None None 2016-05-25 14:02:04 UTC

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


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