Ticket was cloned from Red Hat Bugzilla (product Red Hat Enterprise Linux 7): Bug 1438348
Description of problem: Console output message while adding trust should be mapped with texts changed in Samba. Version-Release number of selected component (if applicable): ipa-server-dns-4.5.0-4.el7.noarch ipa-server-trust-ad-4.5.0-4.el7.x86_64 ipa-server-common-4.5.0-4.el7.noarch ipa-server-4.5.0-4.el7.x86_64 samba-4.6.2-0.el7.x86_64 How reproducible: Always Steps to Reproduce: 1. Add trust with invalid server name in server option e.g zombie.ipaad2008r2.test is invalid hostname. echo Secret123 | ipa trust-add --type=ad ipaad2008r2.test --admin Administrator --password --two-way=True --server=zombie.ipaad2008r2.test Actual results: :: [ FAIL ] :: Command 'echo Secret123 | ipa trust-add --type=ad ipaad2008r2.test --admin Administrator --password --two-way=True --server=zombie.ipaad2008r2.test > /tmp/tmp.qniioRNx3B/tmpout.trust_cli_0003.out 2>&1' (Expected 2, got 1) :: [ FAIL ] :: File '/tmp/tmp.qniioRNx3B/tmpout.trust_cli_0003.out' should contain 'ipa: ERROR: Cannot find specified domain or server name' :: [ FAIL ] :: Command 'echo -e "Secret123\nAdministrator" | ipa trust-add --type=ad --admin Administrator --password --two-way=True --server=zombie.ipaad2008r2.test > /tmp/tmp.qniioRNx3B/tmpout.trust_cli_0003.out 2>&1' (Expected 2, got 1) :: [ FAIL ] :: File '/tmp/tmp.qniioRNx3B/tmpout.trust_cli_0003.out' should contain 'ipa: ERROR: Cannot find specified domain or server name' :: [ LOG ] :: Duration: 4s :: [ LOG ] :: Assertions: 0 good, 4 bad :: [ FAIL ] :: RESULT: Add trust with invalid server name in server option [root@autohv01 ~]# echo Secret123 | ipa trust-add --type=ad ipaad2008r2.test --admin Administrator --password --two-way=True --server=zombie.ipaad2008r2.test ipa: ERROR: CIFS server communication error: code "None", message "(-1073741772, 'The object name is not found.')" (both may be "None") [root@autohv01 ~]# echo $? 1 Expected results: Earlier the output was displayed as below which was more specific rather than the error code. ipa: ERROR: Cannot find specified domain or server name echo $? 2
Metadata Update from @pvoborni: - Custom field rhbz adjusted to https://bugzilla.redhat.com/show_bug.cgi?id=1438348
Metadata Update from @pvoborni: - Issue priority set to: blocker
Metadata Update from @abbra: - Issue assigned to abbra
master:
ipa-4-5:
Metadata Update from @mbasti: - Issue close_status updated to: fixed - Issue status updated to: Closed (was: Open)
Log in to comment on this ticket.