#48014 dirsrv not running after restraint job restarts it
Closed: wontfix 4 years ago by mreynolds. Opened 9 years ago by nhosoi.

Description of problem:

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...

Metadata Update from @nhosoi:
- Issue set to the milestone: FUTURE

7 years ago

Metadata Update from @mreynolds:
- Custom field reviewstatus adjusted to None
- Issue close_status updated to: wontfix
- Issue status updated to: Closed (was: Open)

4 years ago

389-ds-base is moving from Pagure to Github. This means that new issues and pull requests
will be accepted only in 389-ds-base's github repository.

This issue has been cloned to Github and is available here:
- https://github.com/389ds/389-ds-base/issues/1345

If you want to receive further updates on the issue, please navigate to the github issue
and click on subscribe button.

Thank you for understanding. We apologize for all inconvenience.

Login to comment on this ticket.

Metadata