Bug 1057686 - ipa-client-install ends with traceback
Summary: ipa-client-install ends with traceback
Keywords:
Status: CLOSED DUPLICATE of bug 1049322
Alias: None
Product: Fedora
Classification: Fedora
Component: freeipa
Version: 20
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Rob Crittenden
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-01-24 15:35 UTC by Tomáš Hozza
Modified: 2014-01-24 15:46 UTC (History)
5 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2014-01-24 15:46:41 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
ipaclient-install log (72.21 KB, text/plain)
2014-01-24 15:35 UTC, Tomáš Hozza
no flags Details

Description Tomáš Hozza 2014-01-24 15:35:03 UTC
Created attachment 855045 [details]
ipaclient-install log

Description of problem:


Version-Release number of selected component (if applicable):
freeipa-client-3.3.3-2.fc20.x86_64

How reproducible:
always

Steps to Reproduce:
[root@unused-4-247 ~]# ipa-client-install --hostname=client.example128.com --force-ntpd --enable-dns-updates --force-join
Discovery was successful!
Hostname: client.example128.com
Realm: EXAMPLE128.COM
DNS Domain: example128.com
IPA Server: ipa.example128.com
BaseDN: dc=example128,dc=com

Continue to configure the system with these values? [no]: yes
User authorized to enroll computers: admin
Synchronizing time with KDC...
Password for admin: 
Successfully retrieved CA cert
    Subject:     CN=Certificate Authority,O=EXAMPLE128.COM
    Issuer:      CN=Certificate Authority,O=EXAMPLE128.COM
    Valid From:  Thu Dec 05 16:16:28 2013 UTC
    Valid Until: Mon Dec 05 16:16:28 2033 UTC

Enrolled in IPA realm EXAMPLE128.COM
Created /etc/ipa/default.conf
New SSSD config will be created
Configured /etc/sssd/sssd.conf
Configured /etc/krb5.conf for IPA realm EXAMPLE128.COM
DNS server record set to: client.example128.com -> 192.168.122.225
Adding SSH public key from /etc/ssh/ssh_host_ecdsa_key.pub
Adding SSH public key from /etc/ssh/ssh_host_rsa_key.pub
SSSD enabled
Configured /etc/openldap/ldap.conf
Traceback (most recent call last):
  File "/usr/sbin/ipa-client-install", line 2590, in <module>
    sys.exit(main())
  File "/usr/sbin/ipa-client-install", line 2571, in main
    rval = install(options, env, fstore, statestore)
  File "/usr/sbin/ipa-client-install", line 2529, in install
    ipaclient.ntpconf.config_ntp(ntp_server, fstore, statestore)
  File "/usr/lib/python2.7/site-packages/ipaclient/ntpconf.py", line 135, in config_ntp
    ipaservices.knownservices.ntpd.restart()
  File "/usr/lib/python2.7/site-packages/ipapython/platform/base/systemd.py", line 131, in restart
    ipautil.run(["/bin/systemctl", "restart", self.service_instance(instance_name)], capture_output=capture_output)
  File "/usr/lib/python2.7/site-packages/ipapython/ipautil.py", line 328, in run
    raise CalledProcessError(p.returncode, arg_string, stdout)
subprocess.CalledProcessError: Command '/bin/systemctl restart ntpd.service' returned non-zero exit status 1

Comment 1 Tomáš Hozza 2014-01-24 15:38:06 UTC
The problem is most probably caused by the fact, that ntpd was not installed.
However I think the ipaclient-install should not end with python traceback,
but rather with some meaningful error message.

Comment 2 Rob Crittenden 2014-01-24 15:41:45 UTC
Looks like a duplicate of 1049322

Comment 3 Tomáš Hozza 2014-01-24 15:45:29 UTC
(In reply to Tomas Hozza from comment #1)
> The problem is most probably caused by the fact, that ntpd was not installed.
> However I think the ipaclient-install should not end with python traceback,
> but rather with some meaningful error message.

Correction, the ntpd is installed, but failed to start:
[root@unused-4-247 ~]# systemctl status ntpd
ntpd.service - Network Time Service
   Loaded: loaded (/usr/lib/systemd/system/ntpd.service; enabled)
   Active: failed (Result: exit-code) since Fri 2014-01-24 16:31:19 CET; 10min ago
  Process: 2058 ExecStart=/usr/sbin/ntpd -u ntp:ntp $OPTIONS (code=exited, status=1/FAILURE)

Jan 24 16:31:18 client.example128.com ntpd[2058]: ntpd error:  only one user option allowed
Jan 24 16:31:18 client.example128.com ntpd[2058]: ntpd - NTP daemon program - Ver. 4.2.6p5
Jan 24 16:31:18 client.example128.com ntpd[2058]: Usage:  ntpd [ -<flag> [<val>] | --<name>[{=| }<val>] ]...
Jan 24 16:31:18 client.example128.com ntpd[2058]: Try 'ntpd --help' for more information.
Jan 24 16:31:18 client.example128.com ntpd[2058]: exit 1
Jan 24 16:31:19 client.example128.com systemd[1]: ntpd.service: control process exited, code=exited status=1
Jan 24 16:31:19 client.example128.com systemd[1]: Failed to start Network Time Service.
Jan 24 16:31:19 client.example128.com systemd[1]: Unit ntpd.service entered failed state.

The error is in ntpd.

Comment 4 Tomáš Hozza 2014-01-24 15:46:41 UTC
(In reply to Rob Crittenden from comment #2)
> Looks like a duplicate of 1049322

it sure is.

*** This bug has been marked as a duplicate of bug 1049322 ***


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