Bug 880995

Summary: IOError: [Errno 2] No such file or directory: '/var/run/ipa/services.list'
Product: [Fedora] Fedora Reporter: Petr Spacek <pspacek>
Component: freeipaAssignee: Rob Crittenden <rcritten>
Status: CLOSED CURRENTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 18CC: abokovoy, deanhunter, mkosek, rcritten, sgoveas, ssorce
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: 873673 Environment:
Last Closed: 2013-01-15 02:24:45 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 873673    
Bug Blocks:    

Description Petr Spacek 2012-11-28 11:13:20 UTC
+++ This bug was initially created as a clone of Bug #873673 +++

Created attachment 639378 [details]
ipaserver-install.log from another machine where I got the same error

Description of problem:
Receiving Error while setting up ipa-server

Version-Release number of selected component (if applicable):
ipa-server-3.0.0-106.20121106T0229zgit881fc3a.el6.x86_64

How reproducible: Always


Steps to Reproduce:
[root@sideswipe ~]# ipa-server-install --setup-dns --forwarder 1.2.3.4 -p aaaaaaaa -a aaaaaaaa -r TESTRELM.COM -n testrelm.com --ip-address=1.2.3.3 --hostname=sideswipe.testrelm.com -U

The log file for this installation can be found in /var/log/ipaserver-install.log
==============================================================================
This program will set up the IPA 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)
  * Configure DNS (bind)

To accept the default shown in brackets, press the Enter key.

Warning: skipping DNS resolution of host sideswipe.testrelm.com
Using reverse zone 3.2.1.in-addr.arpa.

The IPA Master Server will be configured with:
Hostname:      sideswipe.testrelm.com
IP address:    1.2.3.3
Domain name:   testrelm.com
Realm name:    TESTRELM.COM

BIND DNS server will be configured to serve IPA domain with:
Forwarders:    1.2.3.4
Reverse zone:  3.2.1.in-addr.arpa.

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'

[root@sideswipe ~]# ipa-server-install --uninstall -U
Shutting down all IPA services
Removing IPA client configuration
Unconfiguring ntpd
Unexpected error - see /var/log/ipaserver-uninstall.log for details:
IOError: [Errno 2] No such file or directory: '/var/run/ipa/services.list'

[root@sideswipe ~]# ipa-server-install --uninstall -U
Shutting down all IPA services
Removing IPA client configuration
Unexpected error - see /var/log/ipaserver-uninstall.log for details:
IOError: [Errno 2] No such file or directory: '/var/run/ipa/services.list'



Some comments from original bug were cutted:

--- Additional comment from Martin Kosek on 2012-11-06 16:38:35 CET ---

Upstream ticket:
https://fedorahosted.org/freeipa/ticket/3240

--- Additional comment from Martin Kosek on 2012-11-06 17:03:47 CET ---
<snip>
As a workaround you can run the following commands after ipa-server package installation:

# mkdir /var/run/ipa
# chmod 0700 /var/run/ipa

The installation should then work as before.

--- Additional comment from Rob Crittenden on 2012-11-06 17:13:46 CET ---

This is caused by patches for systemd integration in Fedora...
<snip>

--- Additional comment from Martin Kosek on 2012-11-06 17:29:43 CET ---

Right, detaching the upstream ticket, this not an upstream work.

Comment 1 Fedora Update System 2013-01-04 09:24:55 UTC
freeipa-3.1.0-2.fc18 has been submitted as an update for Fedora 18.
https://admin.fedoraproject.org/updates/freeipa-3.1.0-2.fc18

Comment 2 Fedora Update System 2013-01-04 20:25:00 UTC
Package freeipa-3.1.0-2.fc18:
* should fix your issue,
* was pushed to the Fedora 18 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing freeipa-3.1.0-2.fc18'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2013-0171/freeipa-3.1.0-2.fc18
then log in and leave karma (feedback).

Comment 3 Dean Hunter 2013-01-08 18:04:04 UTC
[root@server ~]# yum list installed freeipa*
Loaded plugins: langpacks, presto, refresh-packagekit
Installed Packages
freeipa-admintools.x86_64                    3.1.0-1.fc18                @fedora
freeipa-client.x86_64                        3.1.0-1.fc18                @fedora
freeipa-python.x86_64                        3.1.0-1.fc18                @fedora
freeipa-server.x86_64                        3.1.0-1.fc18                @fedora
freeipa-server-selinux.x86_64                3.1.0-1.fc18                @fedora
[root@server ~]# yum update --enablerepo=updates-testing freeipa-3.1.0-2.fc18
Loaded plugins: langpacks, presto, refresh-packagekit
No Match for argument: freeipa-3.1.0-2.fc18
No package freeipa-3.1.0-2.fc18 available.
No Packages marked for Update
[root@server ~]#

Comment 4 Rob Crittenden 2013-01-08 18:31:27 UTC
It may not have made it out to your mirror yet. It is available in the one I tested (fedora.mirror.constant.com) and the folks in #fedora-admin confirmed it has been pushed. You may need to clean your yum cache.

The package is not freeipa, it is freeipa-<subpackage> (usually server or client).

Comment 5 Dean Hunter 2013-01-08 18:56:17 UTC
So are the instructions in comment 2 incorrect?

Comment 6 Dean Hunter 2013-01-08 21:07:38 UTC
The workaround:

# mkdir /var/run/ipa
# chmod 0700 /var/run/ipa

is no longer required with a new installation as follows:

[root@server ~]# yum install --enablerepo=updates-testing freeipa-server-3.1.0-2.fc18
...
[root@server ~]# yum list installed freeipa*
Loaded plugins: langpacks, presto, refresh-packagekit
Installed Packages
freeipa-admintools.x86_64               3.1.0-2.fc18            @updates-testing
freeipa-client.x86_64                   3.1.0-2.fc18            @updates-testing
freeipa-python.x86_64                   3.1.0-2.fc18            @updates-testing
freeipa-server.x86_64                   3.1.0-2.fc18            @updates-testing
freeipa-server-selinux.x86_64           3.1.0-2.fc18            @updates-testing
[root@server ~]#
[root@server ~]# yum install --enablerepo=updates-testing bind bind-dyndb-ldap
...
[root@server ~]# yum list installed bind*
Loaded plugins: langpacks, presto, refresh-packagekit
Installed Packages
bind.x86_64                       32:9.9.2-6.P1.fc18            @updates-testing
bind-dyndb-ldap.x86_64            2.3-2.fc18                    @fedora         
bind-libs.x86_64                  32:9.9.2-6.P1.fc18            @updates-testing
bind-libs-lite.x86_64             32:9.9.2-6.P1.fc18            @updates-testing
bind-license.noarch               32:9.9.2-6.P1.fc18            @updates-testing
bind-utils.x86_64                 32:9.9.2-6.P1.fc18            @updates-testing
[root@server ~]# 
[root@server ~]#   ipa-server-install \
>     --admin-password adminpassword \
>     --hostname server.hunter.org \
>     --domain hunter.org \
>     --ds-password dspassword \
>     --realm HUNTER.ORG \
>     --setup-dns \
>     --no-forwarders \
>     --unattended
...
[root@server ~]#

Comment 7 Fedora Update System 2013-01-15 02:24:47 UTC
freeipa-3.1.0-2.fc18 has been pushed to the Fedora 18 stable repository.  If problems still persist, please make note of it in this bug report.