Univention Bugzilla – Bug 49429
63_udm-containers/07_container_ou_rename_uppercase flaky: ou=temporary_move_container remained
Last modified: 2021-09-13 10:16:19 CEST
Sometimes fails with the error message: ou = ou=temporary_move_container_1556988179.45,l=school,l=dev remained root@master100:/usr/share/ucs-test/63_udm-containers# ./07_container_ou_rename_uppercase -f Creating container/ou object with /usr/sbin/udm-test container/ou create --position l=school,l=dev --set name=3d5fszyx04 . . . Modifying container/ou object with /usr/sbin/udm-test container/ou modify --dn ou=3d5fszyx04,l=school,l=dev --set name=3D5FSZYX04 modrdn detected: 'ou=3d5fszyx04,l=school,l=dev' ==> 'ou=3D5FSZYX04,l=school,l=dev' Creating container/ou object with /usr/sbin/udm-test container/ou create --position ou=3D5FSZYX04,l=school,l=dev --set name=i8jkip17en Modifying container/ou object with /usr/sbin/udm-test container/ou modify --dn ou=i8jkip17en,ou=3D5FSZYX04,l=school,l=dev --set name=I8JKIP17EN modrdn detected: 'ou=i8jkip17en,ou=3D5FSZYX04,l=school,l=dev' ==> 'ou=I8JKIP17EN,ou=3D5FSZYX04,l=school,l=dev' Creating container/ou object with /usr/sbin/udm-test container/ou create --position l=school,l=dev --set name=5d3pwq08e9 . . . . . Creating users/user object with /usr/sbin/udm-test users/user create --position ou=5d3pwq08e9,l=school,l=dev --set username=Xynvl2n2x6l --set password=univention --set firstname=eepavhyp4g --set lastname=i73da1pnbu . . . . . . Modifying container/ou object with /usr/sbin/udm-test container/ou modify --dn ou=5d3pwq08e9,l=school,l=dev --set name=5D3PWQ08E9 modrdn detected: 'ou=5d3pwq08e9,l=school,l=dev' ==> 'ou=5D3PWQ08E9,l=school,l=dev' . ### FAIL ### ou = ou=temporary_move_container_1556988179.45,l=school,l=dev remained ### ### Cleanup after exception: <type 'exceptions.SystemExit'> 1 Performing UCSTestUDM cleanup... removing DN: ou=temporary_move_container_1556988179.45,l=school,l=dev Waiting for DRS replication, filter: 'None', base: ou=temporary_move_container_1556988179.45,l=school,l=dev, scope: 0, should_exist: False DRS replication took 0 seconds removing DN: uid=Xynvl2n2x6l,ou=5d3pwq08e9,l=school,l=dev . Waiting for DRS replication, filter: 'None', base: cn=Xynvl2n2x6l,ou=5d3pwq08e9,l=school,l=dev, scope: 0, should_exist: False DRS replication took 0 seconds removing DN: ou=I8JKIP17EN,ou=3D5FSZYX04,l=school,l=dev Waiting for DRS replication, filter: 'None', base: ou=I8JKIP17EN,ou=3D5FSZYX04,l=school,l=dev, scope: 0, should_exist: False DRS replication took 0 seconds removing DN: ou=3D5FSZYX04,l=school,l=dev Waiting for DRS replication, filter: 'None', base: ou=3D5FSZYX04,l=school,l=dev, scope: 0, should_exist: False DRS replication took 0 seconds removing DN: ou=5D3PWQ08E9,l=school,l=dev Waiting for DRS replication, filter: 'None', base: ou=5D3PWQ08E9,l=school,l=dev, scope: 0, should_exist: False DRS replication took 0 seconds trying to restart UDM CLI server sending signal 15 to process 8771 (['/usr/bin/python2.7', '/usr/share/univention-directory-manager-tools/univention-cli-server']) process already terminated UCSTestUDM cleanup done Starting 1 ucs-test at 2019-05-04 18:43:11 to /dev/null UCS 4.4-0-e78 ucs-test 9.0.2-52A~4.4.0.201905081004 Rename a container/ou with subobjects from lower to upper case............................................................................................................................................................................... Test failed
This could be easily reproduced and was caused by a prior test case which did not clean up correctly (e.g. because the S4connector rejected some objects containing ? in the dn): udm container/ou create --set name='temporary_move_container_fbest' ./07_container_ou_rename_uppercase -f → fail! Now, the temporary objects are only counted from the beginning of the test case. git:ce8c420ff8aba11c0fac820c10e46ebb7689a035 Bug #49415: fix flaky test