[Freeipa-devel] [PATCH] 323 Report ipa-upgradeconfig errors during RPM upgrade

Martin Kosek mkosek at redhat.com
Wed Oct 17 11:18:36 UTC 2012


Report errors just like with ipa-ldap-updater. These messages should warn
user that some parts of the upgrades may have not been successful and
he should follow up on them. Otherwise, user may not notice them at all.

ipa-upgradeconfig logging has been made consistent with ipa-ldap-updater
logging - only error level or higher severity log messages are printed
to stderr, with the same console format. A new debug log that an upgrade
script has started was added to make log investigation easier.

https://fedorahosted.org/freeipa/ticket/3157

---

Reproducer is in Bugzilla attached to the ticket. With this patch, RPM update
will report errors to user:

# rpm -Uvh --force ~/freeipa-master/dist/rpms/freeipa-*
Preparing...                ########################################### [100%]
   1:freeipa-python         ########################################### [ 14%]
   2:freeipa-client         ########################################### [ 29%]
   3:freeipa-admintools     ########################################### [ 43%]
   4:freeipa-server         ########################################### [ 57%]
ERROR: Cannot update connections in /etc/named.conf: [Errno 13] Permission
denied: '/etc/named.conf'
   5:freeipa-server-selinux ########################################### [ 71%]
   6:freeipa-server-trust-ad########################################### [ 86%]
   7:freeipa-debuginfo      ########################################### [100%]

Martin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: freeipa-mkosek-323-report-ipa-upgradeconfig-errors-during-rpm-upgrade.patch
Type: text/x-patch
Size: 2530 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/freeipa-devel/attachments/20121017/49c05cac/attachment.bin>


More information about the Freeipa-devel mailing list