https://bugzilla.redhat.com/show_bug.cgi?id=729089
Description of problem: If you add an external host when IPA is install with integrated DNS and then try to delete it while checking update dns, from the UI is appears like it is successful, but does not delete the host. The CLI returns an appropriate error saying the DNS zone <zonename> was not found. http errors_log [Mon Aug 08 13:03:16 2011] [error] ipa: INFO: admin@TESTRELM: batch(({u'params': [[u'external.example'], {u'updatedns': True}], u'method': u'host_del'},)): SUCCESS [Mon Aug 08 13:03:17 2011] [error] ipa: INFO: admin@TESTRELM: host_find(None, all=False): SUCCESS CLI # ipa host-del external.example --updatedns ipa: ERROR: DNS zone example not found [root@jennyipa tmp]# echo $? 2 Version-Release number of selected component (if applicable): # rpm -qi ipa-server Name : ipa-server Relocations: (not relocatable) Version : 2.0.99 Vendor: (none) Release : 7.20110803T1738zgit9150187.el6 Build Date: Wed 03 Aug 2011 01:51:41 PM EDT Install Date: Thu 04 Aug 2011 01:54:04 PM EDT Build Host: goofy-vm16.dsdev.sjc.redhat.com Group : System Environment/Base Source RPM: ipa-2.0.99-7.20110803T1738zgit9150187.el6.src.rpm Size : 3275087 License: GPLv3+ Signature : (none) URL : http://www.freeipa.org/ Summary : The IPA authentication server Description : IPA is an integrated solution to provide centrally managed Identity (machine, user, virtual machines, groups, authentication credentials), Policy (configuration settings, access control information) and Audit (events, logs, analysis thereof). If you are installing an IPA server you need to install this package (in other words, most people should NOT install this package). How reproducible: always Steps to Reproduce: 1. install IPA server with integrated DNS 2. Log into the web UI as admin 3. Hosts --> Add 4. enter a host FQDN outside of the managed DNS domain and check the force button (do not define an IP address) 5. delete the host and check Remove entries from DNS Actual results: Appears successful, but host is not deleted Expected results: Same as CLI - error is returned: ipa: ERROR: DNS zone <zonename> not found
In the UI the host-del command is done in batch. If the batch command itself fails the UI will show an error. However, if the individual commands inside the batch fail currently the UI doesn't show any error. This is because a batch command could potentially contain many commands and showing an error for each failure could become a usability problem.
One solution is to collect all errors in the batch and show it in a single dialog box.
Can we have an aggregate status that carries the error of the first failure? If there is an error then the message can be "Not all selected <...> entries have been deleted."
master: e8b64be
Metadata Update from @dpal: - Issue assigned to pvoborni - Issue set to the milestone: FreeIPA 2.1.1 (bug fixing)
Login to comment on this ticket.