You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to restart dirsrv in test automation. This is failing when the
automation is run by restraint:
http://restraint.readthedocs.org/en/latest/
It appears to be running during the job but, after the job finishes and exits,
dirsrv is stopped.
How reproducible:
Always in RHEL6.6 and 6.5 I haven't seen this yet in RHEL7.
Steps to Reproduce:
1. install IPA
ipa-server-install --setup-dns --forwarder=<FORWARDER IP> \
--hostname=<HOSTNAME> --ip-address=<IP_ADDRESS> -n <DNS DOMAIN> \
-r <REALM NAME> -a <ADMIN_PASSWD> -p <ADMIN_PASSWD> -U
2. install restraint
cat > /etc/yum.repos.d/restraint.repo <<EOF
[restraint]
name=Restraint
baseurl=http://bpeck.fedorapeople.org/restraint/el6eso/
enabled=1
gpgcheck=0
EOF
yum -y remove rhts-python
yum -y install restraint-rhts beakerlib-redhat staf restraint restraint-client
yum -y update
3. install restart task rpm
mkdir /root/yum.local.d
cd /root/yum.local.d
# Copy ipa-tests-ipa-server-rhel70-ipa-restart RPM to /root/yum.local.d
yum -y install createrepo
createrepo .
cat > /etc/yum.repos.d/mylocal.repo <<EOF
[mylocal]
name=mylocal
baseurl=file:///root/yum.local.d
enabled=1
gpgcheck=0
skip_if_unavailable=1
EOF
4. Setup restraint job xml
cd /root
cat > ipa-restart.xml <<EOF
<?xml version="1.0"?>
<job>
<recipeSet>
<recipe role="RECIPE_MEMBERS" id="1">
<task name="/ipa-server/rhel70/ipa-restart">
<rpm name="ipa-tests-ipa-server-rhel70-ipa-restart"
path="/mnt/tests/ipa-server/rhel70/ipa-restart"/>
<params>
<param name="RECIPE_MEMBERS" value="hostname1"/>
<param name="MASTER" value="hostname1"/>
<param name="BEAKERMASTER" value="hostname1"/>
<param name="TIER" value="1"/>
</params>
</task>
</recipe>
</recipeSet>
</job>
EOF
sed -i "s/hostname1/$(hostname)/g" ipa-restart.xml
5. run restraint job
service restraintd start
ps -ef|grep restraintd
strace -vtfo /tmp/restraintd.strace -p 1470 &
restraint --job ipa-restart.xml --host 1=$(hostname) -v -v -v
fg
<break out of strace>
Actual results:
dirsrv is not running after job:
# service dirsrv status
dirsrv EXAMPLE-COM dead but pid file exists
dirsrv PKI-IPA dead but pid file exists
Expected results:
Should be running:
# service dirsrv status
dirsrv EXAMPLE-COM (pid 10249) is running...
dirsrv PKI-IPA (pid 10323) is running...
The text was updated successfully, but these errors were encountered:
Cloned from Pagure issue: https://pagure.io/389-ds-base/issue/48014
Description of problem:
The text was updated successfully, but these errors were encountered: