check-swift-dsvm-functional failing with "ImportError: No module named mock"

Bug #1341507 reported by Nejc Saje
52
This bug affects 7 people
Affects Status Importance Assigned to Milestone
OpenStack Core Infrastructure
Fix Released
Undecided
Monty Taylor
OpenStack Object Storage (swift)
Invalid
Undecided
Unassigned

Bug Description

The check-swift-dsvm-functional job is failing with "ImportError: No module named mock".

http://logs.openstack.org/02/106302/3/check/check-swift-dsvm-functional/4779963/console.html

Revision history for this message
Clark Boylan (cboylan) wrote :

I think this happens because devstack doesn't install project test-requirements (this is intentional as a cloud should work without having its test requirements installed). The fix would be to update the job to install swifts test requirements if that is necessary to perform this functional testing.

Not sure if that installation step belongs in the piece of swift the job calls into or in the job itself so I have added both projects to this bug.

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

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

Changed in openstack-ci:
assignee: nobody → John Dickinson (notmyname)
status: New → In Progress
Changed in openstack-ci:
assignee: John Dickinson (notmyname) → Dean Troyer (dtroyer)
Changed in openstack-ci:
assignee: Dean Troyer (dtroyer) → Monty Taylor (mordred)
Changed in openstack-ci:
status: In Progress → Fix Released
Revision history for this message
Tomoki Sekiyama (tsekiyama) wrote :
Revision history for this message
YAMAMOTO Takashi (yamamoto) wrote :
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to devstack-gate (master)

Reviewed: https://review.openstack.org/106831
Committed: https://git.openstack.org/cgit/openstack-infra/devstack-gate/commit/?id=9f8fb3d9e7ea43ce240b2dfbee5875e5b1851cdb
Submitter: Clark Boylan (<email address hidden>)
Branch: master

commit 9f8fb3d9e7ea43ce240b2dfbee5875e5b1851cdb
Author: Dean Troyer <email address hidden>
Date: Mon Jul 14 12:55:02 2014 -0500

    Add setting for INSTALL_TESTONLY_PACKAGES

    Some jobs need to have the test packages installed, such as
    check-swift-dsvm-functional.

    Change-Id: Iac538c07cd33f130ccb33f3b2ca8c92a17568553
    closes-bug: #1341507

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix proposed to elastic-recheck (master)

Related fix proposed to branch: master
Review: https://review.openstack.org/106967

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix merged to elastic-recheck (master)

Reviewed: https://review.openstack.org/106967
Committed: https://git.openstack.org/cgit/openstack-infra/elastic-recheck/commit/?id=f818ee05efe3d0bba1ed421c2c7651c9ae496454
Submitter: Jenkins
Branch: master

commit f818ee05efe3d0bba1ed421c2c7651c9ae496454
Author: Joe Gordon <email address hidden>
Date: Tue Jul 15 10:37:39 2014 +0200

    Add fingerprint for bug 1341507

    Bug 1341507 is persistent failure in swift-dsvm-functional, so running a
    recheck on this failure won't help until the bug is fixed. Because of
    that this patch shouldn't be merged until the bug is fixed, so we don't
    tell people to run pointless rechecks.

    Add this fingerprint primarily for bug classification purposes.

    Change-Id: I41212839cb6a48995015798b7b3f13b7f8544950
    Related-Bug: #1341507

Revision history for this message
Dolph Mathews (dolph) wrote :

The signature for this has changed, it now appears as:

Failure: ImportError (No module named mock) ... ERROR

======================================================================
ERROR: Failure: ImportError (No module named mock)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/nose/loader.py", line 411, in loadTestsFromName
    addr.filename, addr.module)
  File "/usr/lib/python2.7/dist-packages/nose/importer.py", line 47, in importFromPath
    return self.importFromDir(dir_path, fqname)
  File "/usr/lib/python2.7/dist-packages/nose/importer.py", line 94, in importFromDir
    mod = load_module(part_fqname, fh, filename, desc)
  File "/opt/stack/new/swift/test/functional/__init__.py", line 39, in <module>
    from test.unit import debug_logger, FakeMemcache
  File "/opt/stack/new/swift/test/unit/__init__.py", line 42, in <module>
    import mock as mocklib
ImportError: No module named mock

Revision history for this message
Dolph Mathews (dolph) wrote :

I take that back, the signature hasn't changed, I ran into this bug before the e-r query had merged.

Changed in swift:
status: New → Incomplete
status: Incomplete → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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