#4050 ipactl can not restart ipa services if current status is "stopped"
Closed: Fixed None Opened 10 years ago by mkosek.

Ticket was cloned from Red Hat Bugzilla (product Red Hat Enterprise Linux 7): Bug 1033357

Description of problem:

Simple put: ipactl restart does not work if current ipa server status is
"stop".
The following message will print:
Failed to read data from Directory Service: Failed to get list of services to
probe status:
Directory Server is stopped
Shutting down


test shows:
1. if ipa server is running currently, "ipactl restart" will success
2. if ipa server is stopped currently, "ipactl restart" will fail, however,
"ipactl start" will success


My test is here:
[root@rh7a (RH7.0-x86_64) ipa-autorenewcert] ipactl status
Directory Service: STOPPED
Directory Service must be running in order to obtain status of other services
ipa: INFO: The ipactl command was successful
[root@rh7a (RH7.0-x86_64) ipa-autorenewcert] ipactl start
Existing service file detected!
Assuming stale, cleaning and proceeding
Starting Directory Service
Starting krb5kdc Service
Starting kadmin Service
Starting named Service
Starting ipa_memcached Service
Starting httpd Service
Starting pki-tomcatd Service
Starting ipa-otpd Service
ipa: INFO: The ipactl command was successful
[root@rh7a (RH7.0-x86_64) ipa-autorenewcert] ipactl restart
Restarting Directory Service
Restarting krb5kdc Service
Restarting kadmin Service
Restarting named Service
Restarting ipa_memcached Service
Restarting httpd Service
Restarting pki-tomcatd Service
Restarting ipa-otpd Service
ipa: INFO: The ipactl command was successful
[root@rh7a (RH7.0-x86_64) ipa-autorenewcert] ipactl stop
Stopping Directory Service
Stopping ipa-otpd Service
Stopping pki-tomcatd Service
Stopping httpd Service
Stopping ipa_memcached Service
Stopping named Service
Stopping kadmin Service
Stopping krb5kdc Service
ipa: INFO: The ipactl command was successful
[root@rh7a (RH7.0-x86_64) ipa-autorenewcert] ipactl restart
Failed to read data from Directory Service: Failed to get list of services to
probe status:
Directory Server is stopped
Shutting down
[root@rh7a (RH7.0-x86_64) ipa-autorenewcert] ipactl start
Existing service file detected!
Assuming stale, cleaning and proceeding
Starting Directory Service
Starting krb5kdc Service
Starting kadmin Service
Starting named Service
Starting ipa_memcached Service
Starting httpd Service
Starting pki-tomcatd Service
Starting ipa-otpd Service
ipa: INFO: The ipactl command was successful


Version-Release number of selected component (if applicable):
ipa-server-3.3.3-3.el7.x86_64


How reproducible: always




Additional info: No special error message found in dirsrv log file

master:

  • a1459e3 ipactl can not restart ipa services if current status is stopped

Metadata Update from @mkosek:
- Issue assigned to amisnyov
- Issue set to the milestone: FreeIPA 4.0 Backlog

7 years ago

Login to comment on this ticket.

Metadata