Bug 1846882
Summary: | No longer able to delete computer from AD using adcli | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 8 | Reporter: | Sumit Bose <sbose> |
Component: | adcli | Assignee: | Sumit Bose <sbose> |
Status: | CLOSED ERRATA | QA Contact: | sssd-qe <sssd-qe> |
Severity: | unspecified | Docs Contact: | |
Priority: | unspecified | ||
Version: | 8.2 | CC: | ralston, sgadekar |
Target Milestone: | rc | Flags: | pm-rhel:
mirror+
|
Target Release: | 8.0 | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | sync-to-jira | ||
Fixed In Version: | adcli-0.8.2-6.el8 | Doc Type: | If docs needed, set a value |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2020-11-04 02:07:53 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: |
Description
Sumit Bose
2020-06-15 08:02:35 UTC
upstream: - 40d3be22f6e518e4354aa7c3d0278291fcbed32f Tested with following details: :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :: Test description :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: PURPOSE of /CoreOS/adcli/Regression/bz1840752-No-longer-able-to-delete-computer-from-AD-using-adcli Description: Test for BZ#1840752 (no longer able to delete computer from AD using adcli Author: Shridhar Gadekar <sgadekar> Bug summary: no longer able to delete computer from AD using adcli Bugzilla link: https://bugzilla.redhat.com/show_bug.cgi?id=1840752 :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :: Setup :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :: [ 09:03:57 ] :: [ LOG ] :: Package adcli is present :: [ 09:03:57 ] :: [ LOG ] :: Package versions: :: [ 09:03:57 ] :: [ LOG ] :: adcli-0.8.2-6.el8.x86_64 :: [ 09:03:57 ] :: [ PASS ] :: Creating tmp directory (Expected 0, got 0) :: [ 09:03:57 ] :: [ PASS ] :: Command 'pushd /tmp/tmp.51MzqdKmw7' (Expected 0, got 0) :: [ 09:03:57 ] :: [ INFO ] :: rlImport: Found 'realmd/basic', version '1.0-59' in /mnt/tests :: [ 09:03:57 ] :: [ INFO ] :: rlImport: Will try to import realmd/basic from /mnt/tests/CoreOS/realmd/Library/basic/lib.sh :: [ 09:03:58 ] :: [ PASS ] :: Command 'rlImport realmd/basic' (Expected 0, got 0) :: [ 09:03:59 ] :: [ INFO ] :: using '/var/tmp/beakerlib-7937001/backup' as backup destination :: [ 09:03:59 ] :: [ PASS ] :: Command 'rlFileBackup --clean /etc/resolv.conf /etc/krb5.keytab' (Expected 0, got 0) :: [ 09:04:05 ] :: [ PASS ] :: Command 'chronyd -q 'server 10.37.152.14 iburst' 'maxdistance 16'' (Expected 0, got 0) :: [ 09:04:05 ] :: [ PASS ] :: Command 'hostnamectl set-hostname ci-vm-10-0-138-.ad.baseos.qe' (Expected 0, got 0) :: [ 09:04:07 ] :: [ PASS ] :: Command 'ldapsearch -x -LLL -H ldap://10.37.152.14 -D 'Amy-admin.qe' -w 'Pass2012!' -b CN=ci-vm-10-0-138-,CN=Computers,dc=ad,dc=baseos,dc=qe -s sub '*'' (Expected 0-255, got 0) :: [ 09:04:07 ] :: [ LOG ] :: It should be safe to join this machine to AD :: [ 09:04:07 ] :: [ PASS ] :: Command 'ldapsearch -x -LLL -H ldap://10.37.152.14 -D 'Amy-admin.qe' -w 'Pass2012!' -b CN=ci-vm-10-0-138-,CN=Computers,dc=ad,dc=baseos,dc=qe -s sub '*'' (Expected 0-255, got 0) :: [ 09:04:07 ] :: [ WARNING ] :: It looks like the machine already has a record in AD. It was probably not properly cleaned by other test. :: [ 09:04:07 ] :: [ PASS ] :: Command 'echo nameserver\ 10.37.152.14 > /etc/resolv.conf' (Expected 0, got 0) :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :: Duration: 11s :: Assertions: 9 good, 0 bad :: RESULT: PASS (Setup) :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :: adcli join :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :: [ 09:04:16 ] :: [ PASS ] :: Join computer to AD (Expected 0, got 0) :: [ 09:04:20 ] :: [ PASS ] :: Command 'su local_user -c 'echo -n Pass2012! | adcli delete-computer --verbose --domain ad.baseos.qe --login-user Amy-admin --stdin-password'' (Expected 0, got 0) :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :: Duration: 12s :: Assertions: 2 good, 0 bad :: RESULT: PASS (adcli join) :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :: Cleanup :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :: [ 09:04:20 ] :: [ LOG ] :: Clean up :: [ 09:04:20 ] :: [ PASS ] :: klist -kte (Expected 0, got 0) :: [ 09:04:20 ] :: [ PASS ] :: Command 'kdestroy -A' (Expected 0, got 0) :: [ 09:04:20 ] :: [ PASS ] :: Command 'rm -f /etc/krb5.keytab' (Expected 0, got 0) :: [ 09:04:21 ] :: [ PASS ] :: rm -f rlRun_LOG (Expected 0, got 0) :: [ 09:04:21 ] :: [ LOG ] :: Computer was removed from AD domain :: [ 09:04:21 ] :: [ PASS ] :: Command 'hostnamectl set-hostname ci-vm-10-0-138-52.hosted.upshift.rdu2.redhat.com' (Expected 0, got 0) :: [ 09:04:22 ] :: [ PASS ] :: Command 'rlFileRestore' (Expected 0, got 0) :: [ 09:04:22 ] :: [ PASS ] :: Command 'popd' (Expected 0, got 0) :: [ 09:04:22 ] :: [ PASS ] :: Removing tmp directory (Expected 0, got 0) :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :: Duration: 2s :: Assertions: 8 good, 0 bad :: RESULT: PASS (Cleanup) :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :: /CoreOS/adcli/Regression/bz1840752-No-longer-able-to-delete-computer-from-AD-using-adcli :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :: [ 09:04:22 ] :: [ LOG ] :: File '/var/tmp/beakerlib-7937001/journal.xml' stored here: /var/tmp/BEAKERLIB_7937001_STORED_journal.xml :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :: Duration: 25s :: Phases: 3 good, 0 bad :: OVERALL RESULT: PASS (/CoreOS/adcli/Regression/bz1840752-No-longer-able-to-delete-computer-from-AD-using-adcli) Script done, file is /tmp/1minutetip.TESTOUT.LOG Shared connection to 10.0.138.52 closed. [ INFO ] AVC check: OK [ INFO ] What to do next? marking 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 (adcli bug fix and enhancement update), 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-2020:4578 |