#9730 [tests] test_ipahealthcheck_ds_configcheck fails against 389-ds-base 2.5.3
Closed: fixed by rcritten. Opened by slev.

test_ipahealthcheck_ds_configcheck test fails against 389-ds-base 2.5.3/2.6.0/3.0.5.

___ ERROR at setup of TestIpaHealthCheck.test_ipahealthcheck_ds_configcheck ____
self = <ipatests.pytest_ipa.integration.host.LDAPClientWithoutCertCheck object at 0x7fb7dce539e0>
arg_desc = None                                                                 
    @contextlib.contextmanager                                                  
    def error_handler(self, arg_desc=None):                                     
        """Context manager that handles LDAPErrors                              
        """                                                                     
        desc = None                                                             
        try:                                                                    
            try:                                                                
>               yield                                                           
../ipapython/ipaldap.py:1095:                                                   
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
../ipapython/ipaldap.py:1729: in update_entry                                   
    self.conn.modify_s(str(entry.dn), modlist)                                  
../ldap/ldapobject.py:427: in modify_s                                          
    return self.modify_ext_s(dn,modlist,None,None)                              
../ldap/ldapobject.py:400: in modify_ext_s                                      
    resp_type, resp_data, resp_msgid, resp_ctrls = self.result3(msgid,all=1,timeout=self.timeout)
../ldap/ldapobject.py:543: in result3                                           
    resp_type, resp_data, resp_msgid, decoded_resp_ctrls, retoid, retval = self.result4(
../ldap/ldapobject.py:553: in result4                                           
    ldap_result = self._ldap_call(self._l.result4,msgid,all,timeout,add_ctrls,add_intermediates,add_extop)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
self = <ldap.ldapobject.SimpleLDAPObject object at 0x7fb7dce53200>              
func = <built-in method result4 of LDAP object at 0x7fb7dce53630>               
args = (5, 1, -1, 0, 0, 0), kwargs = {}, diagnostic_message_success = None      
    def _ldap_call(self,func,*args,**kwargs):                                   
      """                                                                       
      Wrapper method mainly for serializing calls into OpenLDAP libs            
      and trace logs                                                            
      """                                                                       
      self._ldap_object_lock.acquire()                                          
      if __debug__:                                                             
        if self._trace_level>=1:                                                
          self._trace_file.write('*** {} {} - {}\n{}\n'.format(                 
            repr(self),                                                         
            self._uri,                                                          
            '.'.join((self.__class__.__name__,func.__name__)),                  
            pprint.pformat((args,kwargs))                                       
          ))                                                                    
          if self._trace_level>=9:                                              
            traceback.print_stack(limit=self._trace_stack_limit,file=self._trace_file)
      diagnostic_message_success = None                                         
      try:                                                                      
        try:                                                                    
>         result = func(*args,**kwargs)                                         
E         ldap.UNWILLING_TO_PERFORM: {'msgtype': 103, 'msgid': 5, 'result': 53, 'desc': 'Server is unwilling to perform', 'ctrls': [], 'info': 'Unknown attribute nsslapd-logging-hr-timestamps-enabled will be ignored\n'}
../ldap/ldapobject.py:128: UNWILLING_TO_PERFORM

Support for nsslapd-logging-hr-timestamps-enabled was removed:
https://github.com/389ds/389-ds-base/issues/6397


Metadata Update from @frenaud:
- Issue assigned to frenaud

Metadata Update from @frenaud:
- Custom field on_review adjusted to https://github.com/freeipa/freeipa/pull/7649

master:

  • 3863043fd1a0cccd964daedc3d12928c236d8b4b Nightly tests: add test_ipahelthcheck to 389ds pipeline
  • 1d93e48644960231d72b2c75f7f847a31a62f84f ipatests: skip test_ipahealthcheck_ds_configcheck for recent versions
  • 6f475294e0868b0b7bf6143260c9b30e00e25efd ipatests: restart dirsrv after time jumps

ipa-4-12:

  • 45f96a0f978dfda0e2faa8360182a1dfd3122b94 ipatests: skip test_ipahealthcheck_ds_configcheck for recent versions
  • ec94ee72714296c86ba1227a5a945a7ed0bc7fac ipatests: restart dirsrv after time jumps

Metadata Update from @rcritten:
- Issue close_status updated to: fixed
- Issue status updated to: Closed (was: Open)

Metadata