Comment 9 for bug 1572796

Revision history for this message
Jim Rollenhagen (jim-rollenhagen) wrote : Re: Complete node information available to unathenticated users, if they know MAC address of Node

When I backport my patch to mitaka, it fails unit tests. Trying to investigate but having trouble finding the problem :/

==============================
Failed 2 tests - output below:
==============================

ironic.tests.unit.drivers.modules.test_agent_base_vendor.TestRefreshCleanSteps.test_lookup_v2_with_node_uuid
------------------------------------------------------------------------------------------------------------

Captured traceback:
~~~~~~~~~~~~~~~~~~~
    Traceback (most recent call last):
      File "/opt/stack/ironic/.tox/py27/local/lib/python2.7/site-packages/mock/mock.py", line 1305, in patched
        return func(*args, **keywargs)
      File "ironic/tests/unit/drivers/modules/test_agent_base_vendor.py", line 170, in test_lookup_v2_with_node_uuid
        node = self.passthru.lookup(task.context, **kwargs)
      File "ironic/drivers/base.py", line 668, in passthru_handler
        raise exception.VendorPassthruException(message=e)
    ironic.common.exception.VendorPassthruException: 'RequestContext' object has no attribute 'show_password'

ironic.tests.unit.drivers.modules.test_agent_base_vendor.TestBaseAgentVendor.test_lookup_v2_with_node_uuid
----------------------------------------------------------------------------------------------------------

Captured traceback:
~~~~~~~~~~~~~~~~~~~
    Traceback (most recent call last):
      File "/opt/stack/ironic/.tox/py27/local/lib/python2.7/site-packages/mock/mock.py", line 1305, in patched
        return func(*args, **keywargs)
      File "ironic/tests/unit/drivers/modules/test_agent_base_vendor.py", line 170, in test_lookup_v2_with_node_uuid
        node = self.passthru.lookup(task.context, **kwargs)
      File "ironic/drivers/base.py", line 668, in passthru_handler
        raise exception.VendorPassthruException(message=e)
    ironic.common.exception.VendorPassthruException: 'RequestContext' object has no attribute 'show_password'

======
Totals
======
Ran: 3159 tests in 10.0000 sec.
 - Passed: 3142
 - Skipped: 15
 - Expected Fail: 0
 - Unexpected Success: 0
 - Failed: 2
Sum of execute time for each test: 73.4110 sec.