Fuel CI job for fuel bootstrap cli is broken

Bug #1644411 reported by Wei Hui
16
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Fuel for OpenStack
Fix Committed
High
Vladimir Kozhukalov
Mitaka
Fix Released
High
Vladimir Kozhukalov
Newton
Fix Committed
High
Vladimir Kozhukalov

Bug Description

https://ci.fuel-infra.org/job/mitaka.fuel-agent.pkgs.ubuntu.review_fuel_agent_ironic_deploy/491/console

2016-11-21 10:50:50 - INFO decorators.py:127 -- <<<<<****************************************************************************************************>>>>>
ERROR

======================================================================
ERROR: Revert snapshot, update fuel-agent, bootstrap from review
----------------------------------------------------------------------
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/mitaka.fuel-agent.pkgs.ubuntu.review_fuel_agent_ironic_deploy/fuel-qa/fuelweb_test/helpers/decorators.py", line 120, in wrapper
    result = func(*args, **kwargs)
  File "/home/jenkins/workspace/mitaka.fuel-agent.pkgs.ubuntu.review_fuel_agent_ironic_deploy/fuel-qa/gates_tests/tests/test_review_in_fuel_agent.py", line 73, in gate_patch_fuel_agent
    update_bootstrap_cli_yaml()
  File "/home/jenkins/workspace/mitaka.fuel-agent.pkgs.ubuntu.review_fuel_agent_ironic_deploy/fuel-qa/gates_tests/helpers/utils.py", line 438, in update_bootstrap_cli_yaml
    editor.content['repos'].append(new_repo)
KeyError: 'repos'

excerpt from fuel-qa
def update_bootstrap_cli_yaml():
    actions = BaseActions()
    path = "/etc/fuel-bootstrap-cli/fuel_bootstrap_cli.yaml"
    new_repo = {'name': 'auxiliary', 'priority': "1200",
                'section': 'main restricted',
                'suite': 'auxiliary', 'type': 'deb',
                'uri': 'http://127.0.0.1:8080/ubuntu/auxiliary/'}
    with YamlEditor(path, ip=actions.admin_ip) as editor:
        editor.content['repos'].append(new_repo)

repos in file /etc/fuel-bootstrap-cli/fuel_bootstrap_cli.yaml was commented out due to support different version of ubuntu distros. We may add some sample file for ubuntu distros(https://review.openstack.org/#/c/353988/).
Over all we need to get repos from other place.

Changed in fuel:
assignee: nobody → Vladimir Kozhukalov (kozhukalov)
importance: Undecided → Medium
status: New → Confirmed
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to fuel-qa (stable/mitaka)

Fix proposed to branch: stable/mitaka
Review: https://review.openstack.org/405419

Changed in fuel:
status: Confirmed → In Progress
Changed in fuel:
importance: Medium → High
milestone: none → 9.2
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to fuel-qa (stable/mitaka)

Reviewed: https://review.openstack.org/405419
Committed: https://git.openstack.org/cgit/openstack/fuel-qa/commit/?id=bd45d96f3954afa5a4368b989bf969c7e81eb5f0
Submitter: Jenkins
Branch: stable/mitaka

commit bd45d96f3954afa5a4368b989bf969c7e81eb5f0
Author: Vladimir Kozhukalov <email address hidden>
Date: Thu Dec 1 17:31:19 2016 +0300

    Updated bootstrap repos after fuel-bootstrap-cli reinstall

    Default fuel-bootstrap-cli conf file which is provided
    by the package does not contain repos. We need to update
    repos from astute.yaml before being able to build bootstrap
    image.

    Change-Id: I30ed1c372e7b2107f810e784c1d56807d3412527
    Closes-Bug: #1644411

tags: added: in-stable-mitaka
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/415199

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

Fix proposed to branch: stable/newton
Review: https://review.openstack.org/415200

tags: added: non-release
Dmitry Pyzhov (dpyzhov)
Changed in fuel:
milestone: 9.2 → 11.0
tags: added: on-verification
Revision history for this message
TatyanaGladysheva (tgladysheva) wrote :

Verified on:
#629 run
iso: 9.0-community-5153
fuel-qa: 5337e48
fuel-devops: 2.9.23

Latest runs with fix are passed:
https://ci.fuel-infra.org/job/mitaka.fuel-agent.pkgs.ubuntu.review_fuel_agent_ironic_deploy/629

tags: removed: on-verification
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to fuel-qa (stable/ocata)

Fix proposed to branch: stable/ocata
Review: https://review.openstack.org/448141

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to fuel-qa (stable/newton)

Reviewed: https://review.openstack.org/415200
Committed: https://git.openstack.org/cgit/openstack/fuel-qa/commit/?id=d9532615c9a30bc4d0666de163ab054883a3b5a0
Submitter: Jenkins
Branch: stable/newton

commit d9532615c9a30bc4d0666de163ab054883a3b5a0
Author: Vladimir Kozhukalov <email address hidden>
Date: Thu Dec 1 17:31:19 2016 +0300

    Updated bootstrap repos after fuel-bootstrap-cli reinstall

    Default fuel-bootstrap-cli conf file which is provided
    by the package does not contain repos. We need to update
    repos from astute.yaml before being able to build bootstrap
    image.

    Change-Id: I30ed1c372e7b2107f810e784c1d56807d3412527
    Closes-Bug: #1644411
    (cherry picked from commit bd45d96f3954afa5a4368b989bf969c7e81eb5f0)

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

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

commit 40b21111208259cb32e35f191bad13d2ee694a9d
Author: Vladimir Kozhukalov <email address hidden>
Date: Thu Dec 1 17:31:19 2016 +0300

    Updated bootstrap repos after fuel-bootstrap-cli reinstall

    Default fuel-bootstrap-cli conf file which is provided
    by the package does not contain repos. We need to update
    repos from astute.yaml before being able to build bootstrap
    image.

    Change-Id: I30ed1c372e7b2107f810e784c1d56807d3412527
    Closes-Bug: #1644411
    (cherry picked from commit bd45d96f3954afa5a4368b989bf969c7e81eb5f0)

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to fuel-qa (stable/ocata)

Reviewed: https://review.openstack.org/448141
Committed: https://git.openstack.org/cgit/openstack/fuel-qa/commit/?id=060edc4e1e2cddc19d559a6d1f257c499b2bd5f3
Submitter: Jenkins
Branch: stable/ocata

commit 060edc4e1e2cddc19d559a6d1f257c499b2bd5f3
Author: Vladimir Kozhukalov <email address hidden>
Date: Thu Dec 1 17:31:19 2016 +0300

    Updated bootstrap repos after fuel-bootstrap-cli reinstall

    Default fuel-bootstrap-cli conf file which is provided
    by the package does not contain repos. We need to update
    repos from astute.yaml before being able to build bootstrap
    image.

    Change-Id: I30ed1c372e7b2107f810e784c1d56807d3412527
    Closes-Bug: #1644411
    (cherry picked from commit bd45d96f3954afa5a4368b989bf969c7e81eb5f0)

tags: added: in-stable-ocata
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/fuel-qa ocata-eol

This issue was fixed in the openstack/fuel-qa ocata-eol release.

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.