Bug 866977
| Summary: | Inform user when ipa-upgradeconfig reports errors | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 6 | Reporter: | Dmitri Pal <dpal> |
| Component: | ipa | Assignee: | Rob Crittenden <rcritten> |
| Status: | CLOSED ERRATA | QA Contact: | Namita Soman <nsoman> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | medium | ||
| Version: | 6.4 | CC: | mkosek, spoore |
| Target Milestone: | rc | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | ipa-3.0.0-6.el6 | Doc Type: | Bug Fix |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2013-02-21 09:28:18 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
|
Description
Dmitri Pal
2012-10-16 13:19:05 UTC
Please provide steps to get into situation to get the errors described above Test scenario:
Target: Enter a low number of "connections" to named.conf file, which would then force the IPA upgrader to increase the number to make sure that bind-dyndb-ldap works. If we make the named.conf immutable, an error should be reported to user during RPM upgrade (as it is with plan "ipa-upgradeconfig" run).
Procedure:
1) ipa-server-install --setup-dns
2) Edit named.conf and update bind-dyndb-ldap configuration:
...
dynamic-db "ipa" {
...
arg "connections 1";
};
3) "chattr +i /etc/named.conf" # make /etc/named.conf immutable
4) Run RPM update - no error is reported or logged -> reproduced
Clean up: "chattr -i /etc/named.conf" to enable modifications to named.conf again.
fixed upstream. master: a5ec992ed97d0f7c3c03ca6d1c54e2370d898526 ipa-3-0: 3488770fe98e2ed59b4611dfe356ba9b6f22a2b3 Verified. Version :: Automated Test Results (manually run):: ...installed rhel6.3, :: [ PASS ] :: Running 'sed -i '/dynamic-db "ipa"/,/\^}/ s/\(};\)/\targ "connections 1";\n\1/' /etc/named.conf' :: [ PASS ] :: Running 'chattr +i /etc/named.conf' [root@rhel6-1 ipa-upgrade]# upgrade_master 2>&1 | tee /tmp/upgrade_master.output123 :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :: [ LOG ] :: upgrade_master: upgrade ipa master :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: ...output truncated... [root@rhel6-1 ipa-upgrade]# cp /tmp/upgrade_master.output123 /tmp/upgade_master_bz_866977.out :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :: [ LOG ] :: upgade_bz_866977_check: Inform user when ipa-upgradeconfig reports errors :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :: [14:34:40] :: Machine in recipe is MASTER :: [ PASS ] :: File '/var/log/ipaupgrade.log' should contain 'ERROR Cannot update connections in /etc/named.conf:' :: [ PASS ] :: File '/tmp/upgade_master_bz_866977.out' should contain 'Cannot update connections in /etc/named.conf.*Permission denied' :: [ PASS ] :: BZ 866977 not found. result_server not set, assuming developer mode. Setting 192.168.122.61 to state upgade_bz_866977_check.5 :: [ PASS ] :: Running 'rhts-sync-set -s 'upgade_bz_866977_check.5' -m 192.168.122.61' 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. http://rhn.redhat.com/errata/RHSA-2013-0528.html |