Bug 1248099 - Rerunning fusor-installer results in NTP error being reported
Summary: Rerunning fusor-installer results in NTP error being reported
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Quickstart Cloud Installer
Classification: Red Hat
Component: Installation - Satellite
Version: 1.0
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: ga
: 1.0
Assignee: Jason Montleon
QA Contact: Antonin Pagac
Dan Macpherson
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-07-29 15:13 UTC by Thom Carlin
Modified: 2016-09-13 16:20 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-09-13 16:20:52 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 1298159 0 unspecified CLOSED NTP sync host cannot be validated on re-run of the fusor-installer 2021-02-22 00:41:40 UTC
Red Hat Product Errata RHEA-2016:1862 0 normal SHIPPED_LIVE Red Hat Quickstart Installer 1.0 2016-09-13 20:18:48 UTC

Internal Links: 1298159

Description Thom Carlin 2015-07-29 15:13:54 UTC
Description of problem:

After receiving an error in fusor-installer, was instructed to run some command(s), then re-run fusor-installer.  This resulted in NTP error being displayed.

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

This install was completed from an ISO with the Media ID 1437667080.278333 at 03:58:00 PM on 23 Jul 2015

How reprodu

Steps to Reproduce:
1. Run fusor-installer
2. Run fusor-installer again
3.

Actual results:

Errors

Expected results:

No errors

Additional info:

Subsequent run shows:
 /sbin/service ntpd stop; /usr/sbin/ntpdate <ntp_server> returned 1 instead of one of [0]
 /Stage[main]/Foreman::Plugin::Fusor/Exec[NTP sync]/returns: change from notrun to 0 failed: /sbin/service ntpd stop; /usr/sbin/ntpdate <ntp_server> returned 1 instead of one of [0]
Installing             Done                                               [100%] [....................................................................................................................]
  Something went wrong! Check the log for ERROR-level output
  The full log is at /var/log/katello-installer/katello-installer.log
Not running provisioning configuration since installation encountered errors, exit code was 6
  Something went wrong! Check the log for ERROR-level output
  The full log is at /var/log/katello-installer/katello-installer.log

katello-installer.log excerpt
[ INFO 2015-07-29 10:57:59 main]  RESOURCE Package[ntpdate]
[DEBUG 2015-07-29 10:57:59 main]  Exec[NTP sync](provider=posix): Executing '/sbin/service ntpd stop; /usr/sbin/ntpdate <ntp_server>'
[DEBUG 2015-07-29 10:57:59 main]  Executing '/sbin/service ntpd stop; /usr/sbin/ntpdate <ntp_server>'
[ WARN 2015-07-29 10:57:59 main]  /Stage[main]/Foreman::Plugin::Fusor/Exec[NTP sync]/returns: Redirecting to /bin/systemctl stop  ntpd.service
[ WARN 2015-07-29 10:57:59 main]  /Stage[main]/Foreman::Plugin::Fusor/Exec[NTP sync]/returns: 29 Jul 10:57:59 ntpdate[26470]: the NTP socket is in use, exiting
[ERROR 2015-07-29 10:57:59 main]  /sbin/service ntpd stop; /usr/sbin/ntpdate <ntp_server> returned 1 instead of one of [0]

Comment 1 Thom Carlin 2015-07-29 15:18:51 UTC
Not 100% reproducible

Comment 2 Dave Johnson 2015-08-26 17:49:58 UTC
I haven;t seen this, I re-ran and it worked fine.  Suggesting we close it.

Comment 3 Antonin Pagac 2015-09-04 14:25:55 UTC
ISO: rc4 - RHCI-6.0-RHEL-7-20150829.0-RHCI-x86_64-dvd1.iso

Reproduced just now. Steps:

1. Run fusor-installer, run deployment, complete deployment
2. Run fusor-installer again

katello-installer.log:
[ERROR 2015-09-04 08:53:16 main] Repeating errors encountered during run:
[ERROR 2015-09-04 08:53:16 main]  /sbin/service ntpd stop; /usr/sbin/ntpdate <server> returned 1 instead of one of [0]
[ERROR 2015-09-04 08:53:16 main]  /Stage[main]/Foreman::Plugin::Fusor/Exec[NTP sync]/returns: change from notrun to 0 failed: /sbin/service ntpd stop; /usr/sbin/ntpdate <server> returned 1 instead of one of [0]

When I run the failing command manually, it works:
[root@smicro-5037-03 log]# /sbin/service ntpd stop; /usr/sbin/ntpdate <server>
Redirecting to /bin/systemctl stop  ntpd.service
 4 Sep 10:04:39 ntpdate[31275]: adjust time server <ip> offset -0.000223 sec
[root@smicro-5037-03 log]# echo $?
0

This is not 100% reproducible, on the subsequent run of fusor-installer it works.

Comment 5 Antonin Pagac 2016-01-13 10:58:32 UTC
ISO: RHCI-6.0-RHEL-7-20160107.t.1-RHCI-x86_64-dvd1.iso

Reproduced on a HP Proliant machine.

Comment 6 Antonin Pagac 2016-03-09 11:51:21 UTC
I'm unable to reproduce this issue on TP2 RC9.

Comment 7 Antonin Pagac 2016-06-24 12:15:40 UTC
I'm unable to reproduce this with 20160623.t.0 compose. Marking as verified.

Comment 13 errata-xmlrpc 2016-09-13 16:20:52 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/RHEA-2016:1862


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