Bug 1455045
| Summary: | Simple service uninstallers must be able to handle missing service files gracefully | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 7 | Reporter: | Martin Babinsky <mbabinsk> |
| Component: | ipa | Assignee: | IPA Maintainers <ipa-maint> |
| Status: | CLOSED ERRATA | QA Contact: | Nikhil Dehadrai <ndehadra> |
| Severity: | urgent | Docs Contact: | |
| Priority: | urgent | ||
| Version: | 7.4 | CC: | ksiddiqu, mbabinsk, pvoborni, rcritten, tscherf |
| Target Milestone: | rc | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | ipa-4.5.0-14.el7 | Doc Type: | If docs needed, set a value |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2017-08-01 09:51:24 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
| Bug Depends On: | |||
| Bug Blocks: | 1454719 | ||
|
Description
Martin Babinsky
2017-05-24 07:05:06 UTC
Upstream ticket: https://pagure.io/freeipa/issue/6977 Fixed upstream ipa-4-5: https://pagure.io/freeipa/c/6114150de20a7d8371c7383f619cd0fefe339cbf master: https://pagure.io/freeipa/c/8b6f8ed7d47542b9bd8b7453a8a0e202ed1db97d ipa-server-version: ipa-server-4.5.0-15.el7.x86_64
Verified the bug on the basis of following observations:
1. Verified that when "/usr/lib/systemd/system/ipa_memcached.service" is removed and ipa-server is upgraded, then following warning message is removed during upgrade process:
warning: file /usr/lib/systemd/system/ipa_memcached.service: remove failed: No such file or directory
2. After upgrade process is complete no errors are observed, see below:
[root@inferno ~]# tail -1 /var/log/ipaupgrade.log
2017-06-07T10:03:21Z INFO The ipa-server-upgrade command was successful
[root@inferno ~]# rpm -q ipa-server
ipa-server-4.5.0-15.el7.x86_64
[root@inferno ~]# kinit admin
Password for admin:
[root@inferno ~]# ipactl status
Directory Service: RUNNING
krb5kdc Service: RUNNING
kadmin Service: RUNNING
named Service: RUNNING
httpd Service: RUNNING
ipa-custodia Service: RUNNING
ntpd Service: RUNNING
pki-tomcatd Service: RUNNING
ipa-otpd Service: RUNNING
ipa-dnskeysyncd Service: RUNNING
ipa: INFO: The ipactl command was successful
[root@inferno ~]# ipactl restart
Stopping pki-tomcatd Service
Restarting Directory Service
Restarting krb5kdc Service
Restarting kadmin Service
Restarting named Service
Restarting httpd Service
Restarting ipa-custodia Service
Restarting ntpd Service
Restarting pki-tomcatd Service
Restarting ipa-otpd Service
Restarting ipa-dnskeysyncd Service
ipa: INFO: The ipactl command was successful
[root@inferno ~]# ls -l /usr/lib/systemd/system/ipa_memcached.service
ls: cannot access /usr/lib/systemd/system/ipa_memcached.service: No such file or directory
[root@inferno ~]# ipa user-find
--------------
1 user matched
--------------
User login: admin
Last name: Administrator
Home directory: /home/admin
Login shell: /bin/bash
Principal alias: admin
UID: 1075400000
GID: 1075400000
Account disabled: False
----------------------------
Number of entries returned 1
----------------------------
[root@inferno ~]# ipa host-find
--------------
1 host matched
--------------
Host name: inferno.testrelm.test
Principal name: host/inferno.testrelm.test
Principal alias: host/inferno.testrelm.test
SSH public key fingerprint: SHA256:LF8wIaQeKN6ww4llCkbPs6IuinEPL1O9At2QpyE23Qw (ssh-rsa),
SHA256:8jo0PBAD920N1MPQ/Kns9cspcu97gixeAvatoNbc4o0 (ssh-ed25519),
SHA256:8Yi1pl7+Nm8jaBwDDI3mjGnxVFqehziZ1CedR8sLjI0 (ecdsa-
sha2-nistp256)
----------------------------
Number of entries returned 1
----------------------------
[root@inferno ~]# cat /var/log/httpd/error_log | grep -rn "maximum recursion depth"
[root@inferno ~]# cat /var/log/httpd/error_log | grep -rn "recursion"
[root@inferno ~]# cat /var/log/httpd/error_log | grep -rn "maximum"
[root@inferno ~]# cat /etc/hosts
127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4
::1 localhost localhost.localdomain localhost6 localhost6.localdomain6
10.65.206.77 inferno.testrelm.test inferno
[root@inferno ~]# ipa user-show
User login: admin
User login: admin
Last name: Administrator
Home directory: /home/admin
Login shell: /bin/bash
Principal alias: admin
UID: 1075400000
GID: 1075400000
Account disabled: False
Password: True
Member of groups: admins, trust admins
Kerberos keys available: True
[root@inferno ~]# cat /var/log/httpd/error_log | grep -rn "gssapi"
[root@inferno ~]# cat /var/log/httpd/error_log | grep -rn "GSSError"
3. Verified the same for following upgrade paths:
- Rhel 7.3.z > 7.4
- Rhel 7.3 GA > 7.4
- Rhel 7.2.z > 7.4
Thus on the basis of above observations marking status of bug to "VERIFIED"
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHBA-2017:2304 |