Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dirsrv not running after restraint job restarts it #1345

Closed
389-ds-bot opened this issue Sep 12, 2020 · 2 comments
Closed

dirsrv not running after restraint job restarts it #1345

389-ds-bot opened this issue Sep 12, 2020 · 2 comments
Labels
closed: won't fix Migration flag - Issue
Milestone

Comments

@389-ds-bot
Copy link

Cloned from Pagure issue: https://pagure.io/389-ds-base/issue/48014


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...
@389-ds-bot 389-ds-bot added the closed: won't fix Migration flag - Issue label Sep 12, 2020
@389-ds-bot 389-ds-bot added this to the FUTURE milestone Sep 12, 2020
@389-ds-bot
Copy link
Author

Comment from nhosoi (@nhosoi) at 2017-02-11 22:50:22

Metadata Update from @nhosoi:

  • Issue set to the milestone: FUTURE

@389-ds-bot
Copy link
Author

Comment from mreynolds (@mreynolds389) at 2019-08-23 21:59:34

Metadata Update from @mreynolds389:

  • Custom field reviewstatus adjusted to None
  • Issue close_status updated to: wontfix
  • Issue status updated to: Closed (was: Open)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
closed: won't fix Migration flag - Issue
Projects
None yet
Development

No branches or pull requests

1 participant