Bug 1315448 - upgrade from cfme-5.5.0 to 5.5.2 causes ntp_update cronjob to fail
Summary: upgrade from cfme-5.5.0 to 5.5.2 causes ntp_update cronjob to fail
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat CloudForms Management Engine
Classification: Red Hat
Component: Appliance
Version: unspecified
Hardware: x86_64
OS: Linux
unspecified
medium
Target Milestone: GA
: 5.6.0
Assignee: Satoe Imaishi
QA Contact: Matouš Mojžíš
URL:
Whiteboard: upgrade
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-03-07 19:10 UTC by Colin Arnott
Modified: 2019-10-10 11:28 UTC (History)
9 users (show)

Fixed In Version: 5.6.0.7
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-06-29 15:40:40 UTC
Category: ---
Cloudforms Team: ---
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2016:1348 0 normal SHIPPED_LIVE CFME 5.6.0 bug fixes and enhancement update 2016-06-29 18:50:04 UTC

Description Colin Arnott 2016-03-07 19:10:25 UTC
Description of problem:
after an upgrade from cfme-5.5.0 to cfme-5.5.2, an ntp_update cronjob fails and writes errors to /var/spool/mail/root

this appears to be caused by the removal of the folder /var/www/miq/lib/util/ntp as it no longer exists on 5.5.2, but does exist on 5.5.0

Version-Release number of selected component (if applicable):
cfme-5.5.2.4-1.el7cf.x86_64

How reproducible:
very

Steps to Reproduce:
1. setup new cfme-5.5.0 appliance
2. register the system with RHSM through the webGUI
2. upgrade to cfme-5.5.2

Actual results:
lots of errors in /var/spool/mail/root:

Expected results:
successful upgrade, no cron errors

Comment 3 Colin Arnott 2016-03-07 20:13:04 UTC
If you remove the following two lines from root's crontab it will resolve this issue perminantly:

*/15 * * * * /var/www/miq/lib/util/ntp/run_ntpdate
@reboot /var/www/miq/lib/util/ntp/run_ntpdate

Comment 5 Joe Rafaniello 2016-03-08 16:58:51 UTC
Nick, can you investigate?  Is this already fixed?

Comment 6 Nick Carboni 2016-03-08 18:08:59 UTC
Ah I think when we removed this here (https://github.com/ManageIQ/manageiq/pull/5705) we didn't account for existing entries in the crontab files.

We could doc that when upgrading these need to be removed.
Any other ideas Joe?

Comment 7 Nick Carboni 2016-03-08 18:39:43 UTC
Also `crontab -l | grep -v "run_ntpdate" | crontab` should do the job

We will look into getting this into the upgrade spec file.

Comment 9 Matouš Mojžíš 2016-05-20 13:18:17 UTC
So, I verified and relationships are really unified in both services and clouds, but this BZ describes, that everything should be unified, so I don't know whether to make it verified or wait until all will be unified...

Comment 10 Matouš Mojžíš 2016-05-23 11:47:27 UTC
Sorry, wrong BZ.

Comment 11 Matouš Mojžíš 2016-05-23 18:09:04 UTC
Verified in:5.6.0.7-beta2.6.20160516171555_b1be31f 
I updated 5.5.0 to 5.6.0.7 and there is no entry in crontab for running script, that is missing.(There is no entry at all.)

Comment 13 errata-xmlrpc 2016-06-29 15:40:40 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:1348


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