#47515 Fedora 20: setup-ds-admin.pl
Closed: Fixed None Opened 5 years ago by mharmsen.

I just ran "./setup-ds-admin.pl" on a Fedora 20 virtual machine that was created from using "fedup" on a Fedora 19 virtual machine.

I used all defaults (with the exception of an Administration port of 29000), and it ended with the following:

    The interactive phase is complete.  The script will now set up your
    servers.  Enter No or go Back if you want to change something.

    Are you ready to set up your servers? [yes]:
    Creating directory server . . .
    Your new DS instance 'dogtag20' was successfully created.
    Creating the configuration directory server . . .
    Can't use string ("/usr/share/dirsrv/inf/setup.inf") as a HASH ref
    while "strict refs" in use at /usr/lib64/dirsrv/perl/DSUtil.pm line 864.

What were the command line arguments to fedup on f19? I just used

fedup --network 20

and it gave me an error - Error: can't get boot images

I believe that Matt used these steps:

  1. Create an F19 machine. In my case, I created a VM in the IDM lab
    using the f19-developer-template. If you guys have not used the IDM
    lab, I strongly recommend it.

  2. Add the following file: /etc/yum.repos.d/rhel20.repo

[fedora20]
name=Fedora 20 - $basearch
failovermethod=priority
baseurl=http://download.fedoraproject.org/pub/fedora/linux/development/20/$basearch/os/
mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=fedora-20&arch=$basearch
enabled=1

metadata_expire=7d

gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-$basearch

[fedora20-debuginfo]
name=Fedora 20 - $basearch - Debug
failovermethod=priority
baseurl=http://download.fedoraproject.org/pub/fedora/linux/development/20/$basearch/debug/
mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=fedora-debug-20&arch=$basearch
enabled=0
metadata_expire=7d
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-$basearch

[fedora20-source]
name=Fedora 20 - Source
failovermethod=priority
baseurl=http://download.fedoraproject.org/pub/fedora/linux/development/20/source/SRPMS/
mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=fedora-source-20&arch=$basearch
enabled=0
metadata_expire=7d
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-$basearch

  1. yum install fedup
  2. setenforce 0 --> prob not necessary, but thats how I had it. In
    fact, I'd do all of this in permissive just to be safe.
  3. fedup-cli --network 20 --instrepo fedora20
  4. reboot
  5. I needed to make sure I had the latest versions of selinux-policy,
    selinux-policy-targeted and libsemanage. These are the latest ones in
    koji (3.12.1-79) and libsemanage-2.1.10-9.fc20.x86_64. In my case, I
    had to actually download them.

I followed those instructions with a few changes (for example, it is easier if you install '''fedup''' before adding the '''fedora20''' repo).

I completely updated my Fedora 19 machine (which contains NFS mounts and utilizes Kerberos/NIS logins) and created a clone of it to be used as my Fedora 20 machine. I then performed the following actions:

  • First, I installed '''fedup''' on my new 'Fedora 20' machine:
    {{{

yum install fedup

'fedup-0.7.3-4.fc19.noarch' will be installed
}}}

metadata_expire=7d

gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-$basearch

[fedora20-debuginfo]
name=Fedora 20 - $basearch - Debug
failovermethod=priority
baseurl=http://download.fedoraproject.org/pub/fedora/linux/development/20/$basearch/debug/
mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=fedora-debug-20&arch=$basearch
enabled=0
metadata_expire=7d
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-$basearch

[fedora20-source]
name=Fedora 20 - Source
failovermethod=priority
baseurl=http://download.fedoraproject.org/pub/fedora/linux/development/20/source/SRPMS/
mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=fedora-source-20&arch=$basearch
enabled=0
metadata_expire=7d
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-$basearch
}}}

  • Then, I set SELinux to Permissive mode:
    {{{

setenforce Permissive

getenforce

Permissive
}}}

  • Finally, I ran the following '''fedup''' command:
    {{{

fedup-cli --network 20 --instrepo fedora20

reboot

}}}

  • I did have to fix some inconsistencies so that I could simultaneously run my new Fedora 20 machine as well as the Fedora 19 machine from which it was cloned.

  • Additionally, I did update the following SELinux files (which were not in the yum repo):
    {{{

yum update selinux-policy-3.12.1-79.fc20.noarch.rpm

         selinux-policy-devel-3.12.1-79.fc20.noarch.rpm
         selinux-policy-targeted-3.12.1-79.fc20.noarch.rpm

semanage port -l

(should successfully dump all of the "SELinux Port Type/Proto/Port Number")
}}}

{{{
NOTE: After uninstalling things using './remove-ds-admin.pl',
removing the '/etc/dirsrv/slapd-<instance>.removed/' directory, and
re-installing using './setup-ds-admin.pl', I did not see this issue.
}}}

To ssh://git.fedorahosted.org/git/389/ds.git
c98d500..31480d9 master -> master
commit 31480d9
Author: Rich Megginson rmeggins@redhat.com
Date: Mon Oct 7 15:18:12 2013 -0600

Metadata Update from @nkinder:
- Issue assigned to rmeggins
- Issue set to the milestone: 1.3.2 - 09/13 (September)

2 years ago

Login to comment on this ticket.

Metadata