#4931 [ipa-client] enable debugging for spawned commands / ntpd -qgc $tmpfile hangs
Closed: Fixed None Opened 9 years ago by pvoborni.

Ticket was cloned from Red Hat Bugzilla (product Red Hat Enterprise Linux 7): Bug 1196656

Created attachment 995577
ipaclient-install.log

Description of problem:

i don't know why (we have problems with either dns or ipv6 on our network
recently??) but ipa-client-install was hanged on:

  ntpd -qgc $tmpfile

ntpdconf.py:

    tmp_ntp_conf = ipautil.write_tmp_file('server %s' % server_fqdn)
    try:
        ipautil.run([ntpd, '-qgc', tmp_ntp_conf.name])
        return True
    except ipautil.CalledProcessError:
        return False

it would be nice if you would enable (if applicable) debug even for all spawned
commands, thus 'ntpd -d -qgc $tmpfile'.

the hanging command has following output while executed in different shell:

# /usr/sbin/ntpd -qgc /tmp/tmpVYBemI -d
ntpd 4.2.6p5@1.2349-o Fri Dec 19 16:19:03 UTC 2014 (1)
26 Feb 14:10:11 ntpd[17048]: proto: precision = 0.176 usec
26 Feb 14:10:11 ntpd[17048]: 0.0.0.0 c01d 0d kern kernel time sync enabled
event at 0 0.0.0.0 c01d 0d kern kernel time sync enabled
Finished Parsing!!
26 Feb 14:10:11 ntpd[17048]: ntp_io: estimated max descriptors: 1024, initial
socket boundary: 16
26 Feb 14:10:11 ntpd[17048]: unable to bind to wildcard address 0.0.0.0 -
another process may be running - EXITING

and returns '1'.

Version-Release number of selected component (if applicable):
ipa-client-4.1.0-18.el7.x86_64

How reproducible:
100%

Steps to Reproduce:
1. ipa-client-install -d ...
2.
3.

Actual results:
no debug info from spawned commands

Expected results:
spawned commands should inherit debugging

Additional info:
see log

4.1.4 was released, moving to new milestone

master:

  • 1ec174b enable debugging of ntpd during client installation

ipa-4-2:

  • a637e21 enable debugging of ntpd during client installation

ipa-4-1:

  • bd1e314 enable debugging of ntpd during client installation

Metadata Update from @pvoborni:
- Issue assigned to mbabinsk
- Issue set to the milestone: FreeIPA 4.1.5

7 years ago

Login to comment on this ticket.

Metadata