tripleo-common GetOvercloudConfigActionTest.test_run is failing trying to call swift functions

Bug #1801180 reported by Alex Schultz
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
tripleo
Fix Released
Medium
Alex Schultz

Bug Description

Running tox -e py27 for tripleo-common results in:

======================================================================
FAIL: tripleo_common.tests.actions.test_config.GetOvercloudConfigActionTest.test_run
tags: worker-4
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/aschultz/Documents/workspace/tripleo/tripleo-common/.tox/py27/lib/python2.7/site-packages/mock/mock.py", line 1305, in patched
    return func(*args, **keywargs)
  File "tripleo_common/tests/actions/test_config.py", line 75, in test_run
    action.run(self.ctx)
  File "tripleo_common/actions/config.py", line 64, in run
    self.config_dir)
  File "tripleo_common/utils/swift.py", line 73, in download_container
    obj['last_modified']).strftime('%s'))
KeyError: 'last_modified'

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to tripleo-common (master)

Fix proposed to branch: master
Review: https://review.openstack.org/614881

Changed in tripleo:
status: Triaged → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to tripleo-common (master)

Reviewed: https://review.openstack.org/614881
Committed: https://git.openstack.org/cgit/openstack/tripleo-common/commit/?id=c8149a0fcc6150c9b1b26cdc6bdcd239c7d2dc34
Submitter: Zuul
Branch: master

commit c8149a0fcc6150c9b1b26cdc6bdcd239c7d2dc34
Author: Alex Schultz <email address hidden>
Date: Thu Nov 1 15:58:17 2018 -0600

    Mock swiftutils for overcloud config action test

    This function is failing and we should properly mock out these external
    calls in the unit tests.

    Change-Id: Ib01d3940586a1fb2137c20cc4ea41d2c12f66a32
    Closes-Bug: #1801180

Changed in tripleo:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/tripleo-common 10.3.0

This issue was fixed in the openstack/tripleo-common 10.3.0 release.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.