We need to store nodes astute.yaml files as artifacts during BVT jobs

Bug #1401601 reported by Aleksandr Didenko
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Fuel for OpenStack
Fix Released
High
Dennis Dmitriev

Bug Description

When we run bvt tests, we should store astute.yaml files for OpenStack nodes those tests deploy as artifacts. We'll then use those astute.yaml files in noop tests Jenkins job for fuel-library. It would be nice to have meaningful names, like: "simple.novanet.conroller.yaml", or something like that.

So we should add such possibility to system tests and then use it in Jenkins jobs.

Tags: system-tests
Changed in fuel:
milestone: none → 6.1
milestone: 6.1 → none
no longer affects: fuel/6.1.x
no longer affects: fuel/6.1.x
Changed in fuel:
milestone: none → 6.1
Changed in fuel:
status: New → Confirmed
Changed in fuel:
assignee: Fuel QA Team (fuel-qa) → Dennis Dmitriev (ddmitriev)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to fuel-main (master)

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

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

Reviewed: https://review.openstack.org/147507
Committed: https://git.openstack.org/cgit/stackforge/fuel-main/commit/?id=079b84ca5a6f34fec830a21dfb3365f9c0e06a04
Submitter: Jenkins
Branch: master

commit 079b84ca5a6f34fec830a21dfb3365f9c0e06a04
Author: Dennis Dmitriev <email address hidden>
Date: Thu Jan 15 15:41:15 2015 +0200

    Store astute.yaml to the settings.LOGS_DIR

    * If a systest passed, store astute.yaml from each active node to
    the settings.LOGS_DIR, using name of the systest method.
    For example:
    ./logs/deploy_ha_vlan-slave-01.yaml
    ./logs/deploy_ha_vlan-slave-02.yaml
    ./logs/deploy_ha_vlan-slave-03.yaml

    * To make nodes available after tests, enable resuming for nodes
    after making every snapshot.

    * Log to the console output the test method name and the scenario
    from the docstring of the method. Using the decorator
    log_snapshot_on_error for this, as it is always present in all
    systest methods.

    Change-Id: Id95a5eaa8807e3a4f4b7afd5dcdebc6be963d75b
    Closes-Bug: #1401601

Changed in fuel:
status: In Progress → Fix Committed
Revision history for this message
Dennis Dmitriev (ddmitriev) wrote :

Fix released.

The feature can be enabled via exporting the following variable:

export STORE_ASTUTE_YAML='true'

YAML files will be stored to the ./logs directory by default.

ISO version: {u'build_id': u'2015-02-07_22-55-01', u'ostf_sha': u'6c046b69d29021524906109f18092363505ee222', u'build_number': u'105', u'auth_required': True, u'nailgun_sha': u'6d1769b21819f8fb4195f1bd9c44c038721ae3d4', u'production': u'docker', u'api': u'1.0', u'python-fuelclient_sha': u'521c2491f7f04f31d8c85db68499cd193d4904e3', u'astute_sha': u'7e6e6f9188bd69c603853b10d4a55149363323cc', u'fuelmain_sha': u'', u'feature_groups': [u'mirantis'], u'release': u'6.1', u'release_versions': {u'2014.2-6.1': {u'VERSION': {u'build_id': u'2015-02-07_22-55-01', u'ostf_sha': u'6c046b69d29021524906109f18092363505ee222', u'build_number': u'105', u'api': u'1.0', u'nailgun_sha': u'6d1769b21819f8fb4195f1bd9c44c038721ae3d4', u'production': u'docker', u'python-fuelclient_sha': u'521c2491f7f04f31d8c85db68499cd193d4904e3', u'astute_sha': u'7e6e6f9188bd69c603853b10d4a55149363323cc', u'feature_groups': [u'mirantis'], u'release': u'6.1', u'fuelmain_sha': u'', u'fuellib_sha': u'769af7fe30225cd15638ea2e6dffaa286bc06da1'}}}, u'fuellib_sha': u'769af7fe30225cd15638ea2e6dffaa286bc06da1'}

Changed in fuel:
status: Fix Committed → Fix Released
Changed in fuel:
status: Fix Released → In Progress
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/154024

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

Reviewed: https://review.openstack.org/154024
Committed: https://git.openstack.org/cgit/stackforge/fuel-qa/commit/?id=703adf697db1406ef63903339300fe2cfafa6d75
Submitter: Jenkins
Branch: master

commit 703adf697db1406ef63903339300fe2cfafa6d75
Author: Dennis Dmitriev <email address hidden>
Date: Mon Feb 9 15:19:26 2015 +0200

    Add get_current_env() to fix the decorator download_astute_yaml

    @download_astute_yaml fails if wrong class is decorated:
     AttributeError: 'FuelWebClient' object has no attribute 'env'

    Move class detection to the separate method and use it.

    Change-Id: I1012247ead10799b4dfa87919609152125f720ba
    Closes-Bug: #1401601

Changed in fuel:
status: In Progress → Fix Committed
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on fuel-main (master)

Change abandoned by Dennis Dmitriev (<email address hidden>) on branch: master
Review: https://review.openstack.org/153201
Reason: Merged to fuel-qa

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

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

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

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

commit d6aaf97c5159f1035471b5fcd21c03aef9d379a9
Author: Dennis Dmitriev <email address hidden>
Date: Tue Feb 17 19:06:28 2015 +0200

    Use get_virtual_environment() to get nodes in store_astute_yaml()

    The main code was refactored so there is necessary to use the
    get_virtual_environment() for get the list of nodes().

    Change-Id: I9a7e549778e4867cc3f1044e49f035313395bf30
    Related-Bug: #1401601

Revision history for this message
Dennis Dmitriev (ddmitriev) wrote :

Fix Released.

ISO version: {u'build_id': u'2015-02-17_22-54-44', u'ostf_sha': u'66f58a43c30b98c5a4f7cf040712ca7a588ea761', u'build_number': u'129', u'auth_required': True, u'nailgun_sha': u'9b5b8faac0cac75507adb0958c96ade9285525cb', u'production': u'docker', u'api': u'1.0', u'python-fuelclient_sha': u'c4f8f7cf81c7af55681f8b85c03e179975075e73', u'astute_sha': u'8af8e88c3cb17b66368e7a038f1899e5c7c13e98', u'fuelmain_sha': u'1c249116ca4285be28ce78be27cb5a70f0bf2fb8', u'feature_groups': [u'mirantis'], u'release': u'6.1', u'release_versions': {u'2014.2-6.1': {u'VERSION': {u'build_id': u'2015-02-17_22-54-44', u'ostf_sha': u'66f58a43c30b98c5a4f7cf040712ca7a588ea761', u'build_number': u'129', u'api': u'1.0', u'nailgun_sha': u'9b5b8faac0cac75507adb0958c96ade9285525cb', u'production': u'docker', u'python-fuelclient_sha': u'c4f8f7cf81c7af55681f8b85c03e179975075e73', u'astute_sha': u'8af8e88c3cb17b66368e7a038f1899e5c7c13e98', u'feature_groups': [u'mirantis'], u'release': u'6.1', u'fuelmain_sha': u'1c249116ca4285be28ce78be27cb5a70f0bf2fb8', u'fuellib_sha': u'5956f0be54600ffad96ef50eb2ba91307d3664d9'}}}, u'fuellib_sha': u'5956f0be54600ffad96ef50eb2ba91307d3664d9'}

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.