[Freeipa-devel] FreeIPA 3 installation is broken in Fedora 18

Petr Spacek pspacek at redhat.com
Wed Nov 28 11:14:14 UTC 2012


On 11/28/2012 09:58 AM, Sumit Bose wrote:
> On Wed, Nov 28, 2012 at 09:23:07AM +0100, Petr Spacek wrote:
>> Hello,
>>
>> at the moment it is not possible to install FreeIPA 3.0 to Fedora 18.
>>
>> With Fedora 18 + updates repos active it dies during dependency
>> solving. I used clean F18 template on vm-077.
>>
>> # yum clean all
>> Cleaning repos: fedora updates
>> Cleaning up Everything
>>
>> # yum install freeipa-server
>> <snip>
>> Resolving Dependencies
>> --> Running transaction check
>> ---> Package freeipa-server.x86_64 0:3.0.0-3.fc18 will be installed
>> --> Processing Dependency: freeipa-server-selinux = 3.0.0-3.fc18 for
>> package: freeipa-server-3.0.0-3.fc18.x86_64
>> --> Processing Dependency: freeipa-python = 3.0.0-3.fc18 for
>> package: freeipa-server-3.0.0-3.fc18.x86_64
>> --> Processing Dependency: freeipa-client = 3.0.0-3.fc18 for
>> package: freeipa-server-3.0.0-3.fc18.x86_64
>> --> Processing Dependency: freeipa-admintools = 3.0.0-3.fc18 for
>> package: freeipa-server-3.0.0-3.fc18.x86_64
>> --> Processing Dependency: dogtag-pki-common-theme for package:
>> freeipa-server-3.0.0-3.fc18.x86_64
>> --> Running transaction check
>> ---> Package freeipa-admintools.x86_64 0:3.0.0-3.fc18 will be installed
>> ---> Package freeipa-client.x86_64 0:3.0.0-3.fc18 will be installed
>> ---> Package freeipa-python.x86_64 0:3.0.0-3.fc18 will be installed
>> ---> Package freeipa-server.x86_64 0:3.0.0-3.fc18 will be installed
>> --> Processing Dependency: dogtag-pki-common-theme for package:
>> freeipa-server-3.0.0-3.fc18.x86_64
>> ---> Package freeipa-server-selinux.x86_64 0:3.0.0-3.fc18 will be installed
>> --> Finished Dependency Resolution
>> Error: Package: freeipa-server-3.0.0-3.fc18.x86_64 (fedora)
>>             Requires: dogtag-pki-common-theme
>>   You could try using --skip-broken to work around the problem
>>   You could try running: rpm -Va --nofiles --nodigest
>>
>>
>>
>>
>> Dependencies are satisfied when updates-testing repo is enabled, but
>> it fails during the ipa-server-install:
>>
>> # rpm -q freeipa-server
>> freeipa-server-3.0.1-3.fc18.x86_64
>>
>> # ipa-server-install -p aaaaaaaa -a aaaaaaaa
>>
>> The log file for this installation can be found in /var/log/ipaserver-install.log
>> ==============================================================================
>> This program will set up the FreeIPA Server.
>>
>> This includes:
>>    * Configure a stand-alone CA (dogtag) for certificate management
>>    * Configure the Network Time Daemon (ntpd)
>>    * Create and configure an instance of Directory Server
>>    * Create and configure a Kerberos Key Distribution Center (KDC)
>>    * Configure Apache (httpd)
>>
>> To accept the default shown in brackets, press the Enter key.
>>
>> Enter the fully qualified domain name of the computer
>> on which you're setting up server software. Using the form
>> <hostname>.<domainname>
>> Example: master.example.com.
>>
>>
>> Server host name [vm-077.idm.lab.test]:
>>
>> The domain name has been determined based on the host name.
>>
>> Please confirm the domain name [idm.lab.test]:
>>
>> The kerberos protocol requires a Realm name to be defined.
>> This is typically the domain name converted to uppercase.
>>
>> Please provide a realm name [IDM.LAB.TEST]:
>>
>> The IPA Master Server will be configured with:
>> Hostname:      vm-077.idm.lab.test
>> IP address:    1.2.3.77
>> Domain name:   idm.lab.test
>> Realm name:    IDM.LAB.TEST
>>
>> Continue to configure the system with these values? [no]: yes
>>
>> The following operations may take some minutes to complete.
>> Please wait until the prompt is returned.
>>
>> Configuring NTP daemon (ntpd)
>>    [1/4]: stopping ntpd
>> Unexpected error - see /var/log/ipaserver-install.log for details:
>> IOError: [Errno 2] No such file or directory: '/var/run/ipa/services.list'
>>
>>
>> Last lines from /var/log/ipaserver-install.log:
>>
>> 2012-11-28T07:47:06Z DEBUG Loading StateFile from
>> '/var/lib/ipa/sysrestore/sysrestore.state'
>> 2012-11-28T07:47:06Z DEBUG Configuring NTP daemon (ntpd)
>> 2012-11-28T07:47:06Z DEBUG   [1/4]: stopping ntpd
>> 2012-11-28T07:47:06Z DEBUG Starting external process
>> 2012-11-28T07:47:06Z DEBUG args=/bin/systemctl is-active ntpd.service
>> 2012-11-28T07:47:07Z DEBUG Process finished, return code=1
>> 2012-11-28T07:47:07Z DEBUG stdout=unknown
>>
>> 2012-11-28T07:47:07Z DEBUG stderr=Failed to issue method call: Unit
>> ntpd.service is not loaded.
>>
>> 2012-11-28T07:47:07Z DEBUG Saving StateFile to
>> '/var/lib/ipa/sysrestore/sysrestore.state'
>> 2012-11-28T07:47:07Z DEBUG Starting external process
>> 2012-11-28T07:47:07Z DEBUG args=/bin/systemctl stop ntpd.service
>> 2012-11-28T07:47:07Z DEBUG Process finished, return code=0
>> 2012-11-28T07:47:07Z DEBUG stdout=
>> 2012-11-28T07:47:07Z DEBUG stderr=
>> 2012-11-28T07:47:07Z INFO   File
>> "/usr/lib/python2.7/site-packages/ipaserver/install/installutils.py",
>> line 614, in run_script
>>      return_value = main_function()
>>
>>    File "/sbin/ipa-server-install", line 914, in main
>>      ntp.create_instance()
>>
>>    File
>> "/usr/lib/python2.7/site-packages/ipaserver/install/ntpinstance.py",
>> line 158, in create_instance
>>      self.start_creation()
>>
>>    File
>> "/usr/lib/python2.7/site-packages/ipaserver/install/service.py",
>> line 358, in start_creation
>>      method()
>>
>>    File
>> "/usr/lib/python2.7/site-packages/ipaserver/install/ntpinstance.py",
>> line 139, in __stop
>>      self.stop()
>>
>>    File
>> "/usr/lib/python2.7/site-packages/ipaserver/install/service.py",
>> line 262, in stop
>>      self.service.stop(instance_name, capture_output=capture_output)
>>
>>    File
>> "/usr/lib/python2.7/site-packages/ipapython/platform/systemd.py",
>> line 94, in stop
>>      super(SystemdService, self).stop(instance_name)
>>
>>    File
>> "/usr/lib/python2.7/site-packages/ipapython/platform/base.py", line
>> 177, in stop
>>      f = open(SVC_LIST_FILE, 'w')
>>
>> 2012-11-28T07:47:07Z INFO The ipa-server-install command failed,
>> exception: IOError: [Errno 2] No such file or directory:
>> '/var/run/ipa/services.list'
>>
>>
>> This problem is apparently same as
>> https://fedorahosted.org/freeipa/ticket/3240
>>
>> Why the ticket was closed as invalid? Directory /var/run/ipa is
>> missing in freeipa-server-3.0.1-3.fc18.x86_64.rpm .
>
> I think the ticket was closed because the upstream spec file already
> adds %{_localstatedir}/run/ipa/ to freeipa-server, but in the case of
> #3240<->bz873673 the RHEL6 spec file does not. I would suggest to clone
> https://bugzilla.redhat.com/show_bug.cgi?id=873673 for F18 so that the
> Fedora spec file gets fixed as well.

https://bugzilla.redhat.com/show_bug.cgi?id=880995

-- 
Petr^2 Spacek




More information about the Freeipa-devel mailing list