#2840 ipa-client-install crashes when --hostname is given
Closed: Fixed None Opened 11 years ago by pviktori.

$ sudo ipa-client-install --hostname=myhostname.idm.lab.bos.redhat.com
Discovery was successful!
Hostname: myhostname.idm.lab.bos.redhat.com
Realm: IDM.LAB.BOS.REDHAT.COM
DNS Domain: idm.lab.bos.redhat.com
IPA Server: vm-117.idm.lab.bos.redhat.com
BaseDN: dc=idm,dc=lab,dc=bos,dc=redhat,dc=com


Continue to configure the system with these values? [no]: y
Traceback (most recent call last):
  File "/sbin/ipa-client-install", line 1591, in <module>
    sys.exit(main())
  File "/sbin/ipa-client-install", line 1578, in main
    rval = install(options, env, fstore, statestore)
  File "/sbin/ipa-client-install", line 1228, in install
    ipaservices.backup_and_replace_hostname(fstore, statestore, options.hostname)
  File "/usr/lib/python2.7/site-packages/ipapython/platform/redhat.py", line 174, in backup_and_replace_hostname
    replacevars=replacevars)
  File "/usr/lib/python2.7/site-packages/ipapython/ipautil.py", line 978, in backup_config_and_replace_variables
    old_values = config_replace_variables(filepath, replacevars, appendvars)
  File "/usr/lib/python2.7/site-packages/ipapython/ipautil.py", line 817, in config_replace_variables
    orig_stat = os.stat(filepath)
OSError: [Errno 2] No such file or directory: '/etc/sysconfig/network'

tail /var/log/ipaclient-install.log

2012-06-13T15:35:10Z DEBUG will use domain: idm.lab.bos.redhat.com

2012-06-13T15:35:10Z DEBUG will use server: vm-117.idm.lab.bos.redhat.com

2012-06-13T15:35:10Z DEBUG will use cli_realm: IDM.LAB.BOS.REDHAT.COM

2012-06-13T15:35:10Z DEBUG will use cli_basedn: dc=idm,dc=lab,dc=bos,dc=redhat,dc=com

2012-06-13T15:35:13Z DEBUG args=/usr/sbin/ipa-rmkeytab -k /etc/krb5.keytab -r IDM.LAB.BOS.REDHAT.COM
2012-06-13T15:35:13Z DEBUG stdout=
2012-06-13T15:35:13Z DEBUG stderr=Failed to open keytab '/etc/krb5.keytab': No such file or directory

2012-06-13T15:35:13Z DEBUG args=/bin/hostname myhostname.idm.lab.bos.redhat.com
2012-06-13T15:35:13Z DEBUG stdout=
2012-06-13T15:35:13Z DEBUG stderr=
2012-06-13T15:35:13Z DEBUG Backing up system configuration file '/etc/sysconfig/network'
2012-06-13T15:35:13Z DEBUG   -> Not backing up - '/etc/sysconfig/network' doesn't exist

Metadata Update from @pviktori:
- Issue assigned to pviktori
- Issue set to the milestone: FreeIPA 3.0 Beta 2

7 years ago

Login to comment on this ticket.

Metadata