[Bug 1878987] [NEW] cinder unit test failures for victoria

Corey Bryant corey.bryant at canonical.com
Fri May 15 20:22:57 UTC 2020


Public bug reported:

==============================                                                                                                                                                                                                       
Failed 3 tests - output below:                                                                                                                                                                                                       
==============================                                                                                                                                                                                                       
                                                                                                                                                                                                                                     
cinder.tests.unit.volume.drivers.test_nfs.NfsDriverTestCase.test_create_nonsparsed_volume                                                                                                                                            
-----------------------------------------------------------------------------------------                                                                                                                                            
                                                                                                                                                                                                                                     
Captured traceback:                                                                                                                                                                                                                  
~~~~~~~~~~~~~~~~~~~                                                                                                                                                                                                                  
    Traceback (most recent call last):                                                                                                                                                                                               
                                                                                                                                                                                                                                     
      File "/build/cinder-16.0.0/cinder/tests/unit/volume/drivers/test_nfs.py", line 734, in test_create_nonsparsed_volume                                                                                                           
    self.override_config('nfs_sparsed_volumes', False)                                                                                                                                                                               
                                                                                                                                                                                                                                     
      File "/build/cinder-16.0.0/cinder/test.py", line 374, in override_config                                                                                                                                                       
    CONF.set_override(name, override, group)                                                                                                                                                                                         
                                                                                                                                                                                                                                     
      File "/usr/lib/python3/dist-packages/oslo_messaging/conffixture.py", line 85, in _wrapper                                                                                                                                      
    return wrapped_function(*args, **kwargs)                                                                                                                                                                                         
                                                                                                                                                                                                                                     
      File "/usr/lib/python3/dist-packages/oslo_config/cfg.py", line 2055, in __inner                                                                                                                                                
    result = f(self, *args, **kwargs)                                                                                                                                                                                                
                                                                                                                                                                                                                                     
      File "/usr/lib/python3/dist-packages/oslo_config/cfg.py", line 2438, in set_override                                                                                                                                           
    opt_info = self._get_opt_info(name, group)                                                                                                                                                                                       
                                                                                                                                                                                                                                     
      File "/usr/lib/python3/dist-packages/oslo_config/cfg.py", line 2849, in _get_opt_info                                                                                                                                          
    raise NoSuchOptError(opt_name, group)                                                                                                                                                                                            
                                                                                                                                                                                                                                     
    oslo_config.cfg.NoSuchOptError: no such option nfs_sparsed_volumes in group [DEFAULT]                                                                                                                                            
                                                                                                                                                                                                                                     
                                                                                                                                                                                                                                     
Captured pythonlogging:                                                                                                                                                                                                              
~~~~~~~~~~~~~~~~~~~~~~~                                                                                                                                                                                                              
    2020-05-15 19:58:19,135 INFO [keystonemiddleware.auth_token] Starting Keystone auth_token middleware                                                                                                                             
2020-05-15 19:58:19,140 WARNING [keystonemiddleware._common.config] The option "auth_url" is not known to keystonemiddleware                                                                                                         
2020-05-15 19:58:19,140 WARNING [keystonemiddleware.auth_token] AuthToken middleware is set with keystone_authtoken.service_token_roles_required set to False. This is backwards compatible but deprecated behaviour. Please set this to True.                                                                                                                                                                                                                            
2020-05-15 19:58:19,144 WARNING [keystonemiddleware.auth_token] Configuring www_authenticate_uri to point to the public identity endpoint is required; clients may not be able to authenticate against an admin endpoint                                                                                                                                                                                                                                                  
                                                                                                                                                                                                                                     
                                                                                                                                                                                                                                     
cinder.tests.unit.volume.drivers.test_nfs.NfsDriverTestCase.test_create_sparsed_volume                                                                                                                                               
--------------------------------------------------------------------------------------                                                                                                                                               
                                                                                                                                                                                                                                     
Captured traceback:                                                                                                                                                                                                                  
~~~~~~~~~~~~~~~~~~~                                                                                                                                                                                                                  
    Traceback (most recent call last):                                                                                                                                                                                               
                                                                                                                                                                                                                                     
      File "/build/cinder-16.0.0/cinder/tests/unit/volume/drivers/test_nfs.py", line 716, in test_create_sparsed_volume                                                                                                              
    self.override_config('nfs_sparsed_volumes', True)                                                                                                                                                                                
                                                                                                                                                                                                                                     
      File "/build/cinder-16.0.0/cinder/test.py", line 374, in override_config                                                                                                                                                       
    CONF.set_override(name, override, group)                                                                                                                                                                                         
                                                                                                                                                                                                                                     
      File "/usr/lib/python3/dist-packages/oslo_messaging/conffixture.py", line 85, in _wrapper                                                                                                                                      
    return wrapped_function(*args, **kwargs)                                                                                                                                                                                         
                                                                                                                                                                                                                                     
      File "/usr/lib/python3/dist-packages/oslo_config/cfg.py", line 2055, in __inner                                                                                                                                                
    result = f(self, *args, **kwargs)                                                                                                                                                                                                
                                                                                                                                                                                                                                     
      File "/usr/lib/python3/dist-packages/oslo_config/cfg.py", line 2438, in set_override                                                                                                                                           
    opt_info = self._get_opt_info(name, group)                                                                                                                                                                                       
                                                                                                                                                                                                                                     
      File "/usr/lib/python3/dist-packages/oslo_config/cfg.py", line 2849, in _get_opt_info                                                                                                                                          
    raise NoSuchOptError(opt_name, group)                                                                                                                                                                                            
                                                                                                                                                                                                                                     
    oslo_config.cfg.NoSuchOptError: no such option nfs_sparsed_volumes in group [DEFAULT]                                                                                                                                            
                                                                                                                                                                                                                                     
                                                                                                                                                                                                                                     
Captured pythonlogging:                                                                                                                                                                                                              
~~~~~~~~~~~~~~~~~~~~~~~                                                                                                                                                                                                              
    2020-05-15 19:58:19,344 INFO [keystonemiddleware.auth_token] Starting Keystone auth_token middleware                                                                                                                             
2020-05-15 19:58:19,352 WARNING [keystonemiddleware._common.config] The option "auth_url" is not known to keystonemiddleware                                                                                                         
2020-05-15 19:58:19,352 WARNING [keystonemiddleware.auth_token] AuthToken middleware is set with keystone_authtoken.service_token_roles_required set to False. This is backwards compatible but deprecated behaviour. Please set this to True.                                                                                                                                                                                                                            
2020-05-15 19:58:19,360 WARNING [keystonemiddleware.auth_token] Configuring www_authenticate_uri to point to the public identity endpoint is required; clients may not be able to authenticate against an admin endpoint                                                                                                                                                                                                                                                  
                                                                                                                                                                                                                                     
                                                                                                                                                                                                                                     
cinder.tests.unit.volume.drivers.test_rbd.RBDTestCase.test_delete_volume                                                                                                                                                             
------------------------------------------------------------------------                                                                                                                                                             
                                                                                                                                                                                                                                     
Captured traceback:                                                                                                                                                                                                                  
~~~~~~~~~~~~~~~~~~~                                                                                                                                                                                                                  
    Traceback (most recent call last):                                                                                                                                                                                               
                                                                                                                                                                                                                                     
      File "/build/cinder-16.0.0/cinder/tests/unit/volume/drivers/test_rbd.py", line 125, in _common_inner_inner1                                                                                                                    
    return _common_inner_inner2()                                                                                                                                                                                                    
                                                                                                                                                                                                                                     
      File "/usr/lib/python3.8/unittest/mock.py", line 1325, in patched                                                                                                                                                              
    return func(*newargs, **newkeywargs)                                                                                                                                                                                             
                                                                                                                                                                                                                                     
      File "/build/cinder-16.0.0/cinder/tests/unit/volume/drivers/test_rbd.py", line 123, in _common_inner_inner2                                                                                                                    
    return f(inst, *args, **kwargs)                                                                                                                                                                                                  
                                                                                                                                                                                                                                     
      File "/build/cinder-16.0.0/cinder/tests/unit/volume/drivers/test_rbd.py", line 686, in test_delete_volume                                                                                                                      
    client.__enter__.assert_called_once_with()                                                                                                                                                                                       

      File "/usr/lib/python3.8/unittest/mock.py", line 924, in assert_called_once_with                                                                                                                                               
    raise AssertionError(msg)                                                                                                                                                                                                        

    AssertionError: Expected '__enter__' to be called once. Called 2 times.                                                                                                                                                          
Calls: [call(), call()].                                                                                                                                                                                                             


Captured pythonlogging:                                                                                                                                                                                                              
~~~~~~~~~~~~~~~~~~~~~~~                                                                                                                                                                                                              
    2020-05-15 19:58:45,435 INFO [keystonemiddleware.auth_token] Starting Keystone auth_token middleware                                                                                                                             
2020-05-15 19:58:45,439 WARNING [keystonemiddleware._common.config] The option "auth_url" is not known to keystonemiddleware                                                                                                         
2020-05-15 19:58:45,440 WARNING [keystonemiddleware.auth_token] AuthToken middleware is set with keystone_authtoken.service_token_roles_required set to False. This is backwards compatible but deprecated behaviour. Please set this to True.                                                                                                                                                                                                                            
2020-05-15 19:58:45,442 WARNING [keystonemiddleware.auth_token] Configuring www_authenticate_uri to point to the public identity endpoint is required; clients may not be able to authenticate against an admin endpoint                                                                                                                                                                                                                                                  
2020-05-15 19:58:45,513 INFO [cinder.volume.drivers.rbd] Purging trash for backend 'RBDDriver'                                                                                                                                       


======                                                                                                                                                                                                                               
Totals                                                                                                                                                                                                                               
======                                                                                                                                                                                                                               
Ran: 12547 tests in 915.7500 sec.                                                                                                                                                                                                    
 - Passed: 12532                                                                                                                                                                                                                     
 - Skipped: 12                                                                                                                                                                                                                       
 - Expected Fail: 0                                                                                                                                                                                                                  
 - Unexpected Success: 0                                                                                                                                                                                                             
 - Failed: 3                                                                                                                                                                                                                         
Sum of execute time for each test: 3099.3596 sec.

** Affects: cinder (Ubuntu)
     Importance: High
     Assignee: Corey Bryant (corey.bryant)
         Status: Triaged

** Affects: cinder (Ubuntu Groovy)
     Importance: High
     Assignee: Corey Bryant (corey.bryant)
         Status: Triaged

-- 
You received this bug notification because you are a member of Ubuntu
OpenStack, which is subscribed to cinder in Ubuntu.
https://bugs.launchpad.net/bugs/1878987

Title:
  cinder unit test failures for victoria

Status in cinder package in Ubuntu:
  Triaged
Status in cinder source package in Groovy:
  Triaged

Bug description:
  ==============================                                                                                                                                                                                                       
  Failed 3 tests - output below:                                                                                                                                                                                                       
  ==============================                                                                                                                                                                                                       
                                                                                                                                                                                                                                       
  cinder.tests.unit.volume.drivers.test_nfs.NfsDriverTestCase.test_create_nonsparsed_volume                                                                                                                                            
  -----------------------------------------------------------------------------------------                                                                                                                                            
                                                                                                                                                                                                                                       
  Captured traceback:                                                                                                                                                                                                                  
  ~~~~~~~~~~~~~~~~~~~                                                                                                                                                                                                                  
      Traceback (most recent call last):                                                                                                                                                                                               
                                                                                                                                                                                                                                       
        File "/build/cinder-16.0.0/cinder/tests/unit/volume/drivers/test_nfs.py", line 734, in test_create_nonsparsed_volume                                                                                                           
      self.override_config('nfs_sparsed_volumes', False)                                                                                                                                                                               
                                                                                                                                                                                                                                       
        File "/build/cinder-16.0.0/cinder/test.py", line 374, in override_config                                                                                                                                                       
      CONF.set_override(name, override, group)                                                                                                                                                                                         
                                                                                                                                                                                                                                       
        File "/usr/lib/python3/dist-packages/oslo_messaging/conffixture.py", line 85, in _wrapper                                                                                                                                      
      return wrapped_function(*args, **kwargs)                                                                                                                                                                                         
                                                                                                                                                                                                                                       
        File "/usr/lib/python3/dist-packages/oslo_config/cfg.py", line 2055, in __inner                                                                                                                                                
      result = f(self, *args, **kwargs)                                                                                                                                                                                                
                                                                                                                                                                                                                                       
        File "/usr/lib/python3/dist-packages/oslo_config/cfg.py", line 2438, in set_override                                                                                                                                           
      opt_info = self._get_opt_info(name, group)                                                                                                                                                                                       
                                                                                                                                                                                                                                       
        File "/usr/lib/python3/dist-packages/oslo_config/cfg.py", line 2849, in _get_opt_info                                                                                                                                          
      raise NoSuchOptError(opt_name, group)                                                                                                                                                                                            
                                                                                                                                                                                                                                       
      oslo_config.cfg.NoSuchOptError: no such option nfs_sparsed_volumes in group [DEFAULT]                                                                                                                                            
                                                                                                                                                                                                                                       
                                                                                                                                                                                                                                       
  Captured pythonlogging:                                                                                                                                                                                                              
  ~~~~~~~~~~~~~~~~~~~~~~~                                                                                                                                                                                                              
      2020-05-15 19:58:19,135 INFO [keystonemiddleware.auth_token] Starting Keystone auth_token middleware                                                                                                                             
  2020-05-15 19:58:19,140 WARNING [keystonemiddleware._common.config] The option "auth_url" is not known to keystonemiddleware                                                                                                         
  2020-05-15 19:58:19,140 WARNING [keystonemiddleware.auth_token] AuthToken middleware is set with keystone_authtoken.service_token_roles_required set to False. This is backwards compatible but deprecated behaviour. Please set this to True.                                                                                                                                                                                                                            
  2020-05-15 19:58:19,144 WARNING [keystonemiddleware.auth_token] Configuring www_authenticate_uri to point to the public identity endpoint is required; clients may not be able to authenticate against an admin endpoint                                                                                                                                                                                                                                                  
                                                                                                                                                                                                                                       
                                                                                                                                                                                                                                       
  cinder.tests.unit.volume.drivers.test_nfs.NfsDriverTestCase.test_create_sparsed_volume                                                                                                                                               
  --------------------------------------------------------------------------------------                                                                                                                                               
                                                                                                                                                                                                                                       
  Captured traceback:                                                                                                                                                                                                                  
  ~~~~~~~~~~~~~~~~~~~                                                                                                                                                                                                                  
      Traceback (most recent call last):                                                                                                                                                                                               
                                                                                                                                                                                                                                       
        File "/build/cinder-16.0.0/cinder/tests/unit/volume/drivers/test_nfs.py", line 716, in test_create_sparsed_volume                                                                                                              
      self.override_config('nfs_sparsed_volumes', True)                                                                                                                                                                                
                                                                                                                                                                                                                                       
        File "/build/cinder-16.0.0/cinder/test.py", line 374, in override_config                                                                                                                                                       
      CONF.set_override(name, override, group)                                                                                                                                                                                         
                                                                                                                                                                                                                                       
        File "/usr/lib/python3/dist-packages/oslo_messaging/conffixture.py", line 85, in _wrapper                                                                                                                                      
      return wrapped_function(*args, **kwargs)                                                                                                                                                                                         
                                                                                                                                                                                                                                       
        File "/usr/lib/python3/dist-packages/oslo_config/cfg.py", line 2055, in __inner                                                                                                                                                
      result = f(self, *args, **kwargs)                                                                                                                                                                                                
                                                                                                                                                                                                                                       
        File "/usr/lib/python3/dist-packages/oslo_config/cfg.py", line 2438, in set_override                                                                                                                                           
      opt_info = self._get_opt_info(name, group)                                                                                                                                                                                       
                                                                                                                                                                                                                                       
        File "/usr/lib/python3/dist-packages/oslo_config/cfg.py", line 2849, in _get_opt_info                                                                                                                                          
      raise NoSuchOptError(opt_name, group)                                                                                                                                                                                            
                                                                                                                                                                                                                                       
      oslo_config.cfg.NoSuchOptError: no such option nfs_sparsed_volumes in group [DEFAULT]                                                                                                                                            
                                                                                                                                                                                                                                       
                                                                                                                                                                                                                                       
  Captured pythonlogging:                                                                                                                                                                                                              
  ~~~~~~~~~~~~~~~~~~~~~~~                                                                                                                                                                                                              
      2020-05-15 19:58:19,344 INFO [keystonemiddleware.auth_token] Starting Keystone auth_token middleware                                                                                                                             
  2020-05-15 19:58:19,352 WARNING [keystonemiddleware._common.config] The option "auth_url" is not known to keystonemiddleware                                                                                                         
  2020-05-15 19:58:19,352 WARNING [keystonemiddleware.auth_token] AuthToken middleware is set with keystone_authtoken.service_token_roles_required set to False. This is backwards compatible but deprecated behaviour. Please set this to True.                                                                                                                                                                                                                            
  2020-05-15 19:58:19,360 WARNING [keystonemiddleware.auth_token] Configuring www_authenticate_uri to point to the public identity endpoint is required; clients may not be able to authenticate against an admin endpoint                                                                                                                                                                                                                                                  
                                                                                                                                                                                                                                       
                                                                                                                                                                                                                                       
  cinder.tests.unit.volume.drivers.test_rbd.RBDTestCase.test_delete_volume                                                                                                                                                             
  ------------------------------------------------------------------------                                                                                                                                                             
                                                                                                                                                                                                                                       
  Captured traceback:                                                                                                                                                                                                                  
  ~~~~~~~~~~~~~~~~~~~                                                                                                                                                                                                                  
      Traceback (most recent call last):                                                                                                                                                                                               
                                                                                                                                                                                                                                       
        File "/build/cinder-16.0.0/cinder/tests/unit/volume/drivers/test_rbd.py", line 125, in _common_inner_inner1                                                                                                                    
      return _common_inner_inner2()                                                                                                                                                                                                    
                                                                                                                                                                                                                                       
        File "/usr/lib/python3.8/unittest/mock.py", line 1325, in patched                                                                                                                                                              
      return func(*newargs, **newkeywargs)                                                                                                                                                                                             
                                                                                                                                                                                                                                       
        File "/build/cinder-16.0.0/cinder/tests/unit/volume/drivers/test_rbd.py", line 123, in _common_inner_inner2                                                                                                                    
      return f(inst, *args, **kwargs)                                                                                                                                                                                                  
                                                                                                                                                                                                                                       
        File "/build/cinder-16.0.0/cinder/tests/unit/volume/drivers/test_rbd.py", line 686, in test_delete_volume                                                                                                                      
      client.__enter__.assert_called_once_with()                                                                                                                                                                                       

        File "/usr/lib/python3.8/unittest/mock.py", line 924, in assert_called_once_with                                                                                                                                               
      raise AssertionError(msg)                                                                                                                                                                                                        

      AssertionError: Expected '__enter__' to be called once. Called 2 times.                                                                                                                                                          
  Calls: [call(), call()].                                                                                                                                                                                                             

  
  Captured pythonlogging:                                                                                                                                                                                                              
  ~~~~~~~~~~~~~~~~~~~~~~~                                                                                                                                                                                                              
      2020-05-15 19:58:45,435 INFO [keystonemiddleware.auth_token] Starting Keystone auth_token middleware                                                                                                                             
  2020-05-15 19:58:45,439 WARNING [keystonemiddleware._common.config] The option "auth_url" is not known to keystonemiddleware                                                                                                         
  2020-05-15 19:58:45,440 WARNING [keystonemiddleware.auth_token] AuthToken middleware is set with keystone_authtoken.service_token_roles_required set to False. This is backwards compatible but deprecated behaviour. Please set this to True.                                                                                                                                                                                                                            
  2020-05-15 19:58:45,442 WARNING [keystonemiddleware.auth_token] Configuring www_authenticate_uri to point to the public identity endpoint is required; clients may not be able to authenticate against an admin endpoint                                                                                                                                                                                                                                                  
  2020-05-15 19:58:45,513 INFO [cinder.volume.drivers.rbd] Purging trash for backend 'RBDDriver'                                                                                                                                       


  ======                                                                                                                                                                                                                               
  Totals                                                                                                                                                                                                                               
  ======                                                                                                                                                                                                                               
  Ran: 12547 tests in 915.7500 sec.                                                                                                                                                                                                    
   - Passed: 12532                                                                                                                                                                                                                     
   - Skipped: 12                                                                                                                                                                                                                       
   - Expected Fail: 0                                                                                                                                                                                                                  
   - Unexpected Success: 0                                                                                                                                                                                                             
   - Failed: 3                                                                                                                                                                                                                         
  Sum of execute time for each test: 3099.3596 sec.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/cinder/+bug/1878987/+subscriptions



More information about the Ubuntu-openstack-bugs mailing list