[systest] Repository regeneration fails: '-bash: dpkg-scanpackages: command not found'

Bug #1516662 reported by Artem Panchenko
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Fuel for OpenStack
Fix Released
Critical
Artem Panchenko

Bug Description

Tests for testing packages fail because script for regeneration of Ubuntu (auxiliary) repository returns error:

======================================================================
FAIL: Create environment and set up master node
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/jenkins/venv-nailgun-tests-2.9/local/lib/python2.7/site-packages/proboscis/case.py", line 296, in testng_method_mistake_capture_func
    compatability.capture_type_error(s_func)
  File "/home/jenkins/venv-nailgun-tests-2.9/local/lib/python2.7/site-packages/proboscis/compatability/exceptions_2_6.py", line 27, in capture_type_error
    func()
  File "/home/jenkins/venv-nailgun-tests-2.9/local/lib/python2.7/site-packages/proboscis/case.py", line 350, in func
    func(test_case.state.get_state())
  File "/home/jenkins/workspace/fuel-main/env_ubuntu-master/fuelweb_test/helpers/decorators.py", line 80, in wrapper
    result = func(*args, **kwargs)
  File "/home/jenkins/workspace/fuel-main/env_ubuntu-master/fuelweb_test/tests/base_test_case.py", line 120, in setup_master
    self.env.setup_environment()
  File "/home/jenkins/workspace/fuel-main/env_ubuntu-master/fuelweb_test/models/environment.py", line 397, in setup_environment
    ubuntu_repo_path=settings.LOCAL_MIRROR_UBUNTU)
  File "/home/jenkins/workspace/fuel-main/env_ubuntu-master/fuelweb_test/__init__.py", line 57, in wrapped
    result = func(*args, **kwargs)
  File "/home/jenkins/workspace/fuel-main/env_ubuntu-master/fuelweb_test/helpers/fuel_actions.py", line 313, in upload_packages
    regenerate_ubuntu_repo(self.admin_remote, ubuntu_repo_path)
  File "/home/jenkins/workspace/fuel-main/env_ubuntu-master/fuelweb_test/helpers/regenerate_repo.py", line 33, in regenerate_ubuntu_repo
    cr.regenerate_repo('regenerate_ubuntu_repo', path)
  File "/home/jenkins/workspace/fuel-main/env_ubuntu-master/fuelweb_test/helpers/regenerate_repo.py", line 270, in regenerate_repo
    self.assert_msg(script_cmd, script_result['stderr']))
AssertionError: Executing '/tmp//regenerate_ubuntu_repo /var/www/nailgun/ubuntu/auxiliary/ auxiliary' on the admin node has failed with: []

The error is caused by absence of 'dpkg-scanpackages' tool:

[root@nailgun ~]# dpkg-scanpackages -m -a amd64 pool/main
-bash: dpkg-scanpackages: command not found

Currently it's provided by 'dpkg-dev' package (see bug #1515563), so we need to install it during tests.

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

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

Changed in fuel:
assignee: Fuel QA Team (fuel-qa) → Artem Panchenko (apanchenko-8)
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to fuel-qa (master)

Reviewed: https://review.openstack.org/245829
Committed: https://git.openstack.org/cgit/openstack/fuel-qa/commit/?id=c131fda8eb33b10e74acfe204aa4e91e92230f98
Submitter: Jenkins
Branch: master

commit c131fda8eb33b10e74acfe204aa4e91e92230f98
Author: Artem Panchenko <email address hidden>
Date: Mon Nov 16 17:27:43 2015 +0200

    Install 'dpkg-dev' before regenerating repository

    Currently 'dpkg-scanpackages' tool is provided by 'dpkg-dev'
    package (see bug #1515563), so it must be installed for
    tests which regenerate Ubuntu repository on master node.

    Change-Id: Ieb2968d428b098bdd5457dd298aebe0131562f26
    Closes-bug: #1516662

Changed in fuel:
status: In Progress → Fix Committed
Dmitry Pyzhov (dpyzhov)
tags: added: area-qa
Changed in fuel:
status: Fix Committed → Fix Released
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.