Uploaded image for project: 'RHEL'
  1. RHEL
  2. RHEL-112722

Exception thrown by dsconf instance repl get_ruv

Linking RHIVOS CVEs to...Migration: Automation ...SWIFT: POC ConversionSync from "Extern...XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Undefined Undefined
    • rhel-10.1
    • rhel-9.2.0.z
    • 389-ds-base
    • None
    • 389-ds-base-3.1.3-5.el10_1
    • No
    • Low
    • ZStream
    • rhel-idm-ds
    • 0
    • False
    • False
    • Hide

      None

      Show
      None
    • Yes
    • None
    • Regression Exception
    • Bug Fix
    • Hide
      Cause: lib389 NormalizedRidDict.get function was returning None instead of the ruv
      Consequence: dsconf instance replication get_ruv was returning an error message
      Fix: Override the get method to return the proper value
      Result: Ruv is now returned as expected
      Show
      Cause: lib389 NormalizedRidDict.get function was returning None instead of the ruv Consequence: dsconf instance replication get_ruv was returning an error message Fix: Override the get method to return the proper value Result: Ruv is now returned as expected
    • Proposed
    • Unspecified
    • Unspecified
    • Unspecified
    • None

      Issue Description
      Exception thrown by dsconf instance repl get_ruv
      test_ruv_url_not_added_if_different_uuid CI test failure

      Package Version and Platform:

      • Platform: Fedora
      • Package and version: main branch

      Steps to Reproduce
      Steps to reproduce the behavior:
      1. install 389-ds-base
      2. configure 2 suppliers and their agreements
      3. Run dsconf supplier1 replication get-ruv --suffix dc=example,dc=com
      4. See error: (no RUV but getting an error message)

      Steps to reproduce the behavior with the CI test:
      1. install 389-ds-base
      2. git clone https://github.com/389ds/389-ds-base.git
      3. cd 389-ds-base
      4. pytest -x dirsrvtests/tests/suites/replication -k test_ruv_url_not_added_if_different_uuid
      5. See error:

      dirsrvtests/tests/suites/replication/regression_m2c2_test.py::test_ruv_url_not_added_if_different_uuid FAILED [100%]
      ...
                  log.error(f"No URL for RID {replica_m2.get_rid()} in RUV")
      >           assert False
      E           assert False
      

      Expected results
      Test should PASS

      Additional context
      Behavior changed recently (Probably a regression ...)

      Apparently the RUV object has no URL

      
      DEBUG    dirsrvtests.tests.suites.replication.regression_m2c2_test:regression_m2c2_test.py:136 c1 RUV: {'data_generation': {'name': '67f68823000000010000', 'value': None}, 'ruvs': [{'raw_ruv': None, 'rid': '1', 'url': None, 'csn': '1970-01-01 00:00:00', 'raw_csn': '00000000000000000000', 'maxcsn': '1970-01-01 00:00:00', 'raw_maxcsn': '00000000000000000000', 'modts': '1970-01-01 00:00:00'}]}
      

      I suspect a change in lib389:
      get-ruv seems broken too:

      dsconf consumer2 replication get-ruv --suffix dc=example,dc=com
      Error: can only concatenate str (not "NoneType") to str
      

              idm-ds-dev-bugs IdM DS Dev
              vashirov@redhat.com Viktor Ashirov
              IdM DS Dev IdM DS Dev
              IdM DS QE IdM DS QE
              Evgenia Martyniuk Evgenia Martyniuk
              Votes:
              0 Vote for this issue
              Watchers:
              10 Start watching this issue

                Created:
                Updated: