fabric expecting host_build parameter in testbed.py . This parameter may or may not in testbed.

Bug #1730482 reported by shajuvk
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Juniper Openstack
Won't Fix
Medium
Senthilnathan Murugappan
R3.2
Fix Committed
Medium
Senthilnathan Murugappan

Bug Description

Sanity params generation is failing in 3.2 . Fabric js expecting host_build in testbed.py. THis name can be different in testbed or might not be available.

This checkin expecting build_host in sanity: https://github.com/Juniper/contrail-fabric-utils/commit/88096418557e22e78648c2b328a2e84b5ff4947c

root@fa4afa198f02:/contrail-test# python tools/configure.py .
Configuring test environment
Traceback (most recent call last):
2017-11-06 13:42:27:155393: File "tools/configure.py", line 623, in <module>
2017-11-06 13:42:27:155488: sys.exit(main(sys.argv))
2017-11-06 13:42:27:155640: File "tools/configure.py", line 620, in main
2017-11-06 13:42:27:155682: configure_test_env(args.contrail_fab_path, args.contrail_test_directory)
2017-11-06 13:42:27:155853: File "tools/configure.py", line 32, in configure_test_env
2017-11-06 13:42:27:155889: from fabfile.testbeds import testbed
2017-11-06 13:42:27:155949: File "/opt/contrail/utils/fabfile/__init__.py", line 35, in <module>
2017-11-06 13:42:27:155973: from tasks.kernel import *
2017-11-06 13:42:27:156018: File "/opt/contrail/utils/fabfile/tasks/kernel.py", line 169, in <module>
2017-11-06 13:42:27:156042: @hosts(get_compute_migrate_nodes())
2017-11-06 13:42:27:156124: File "/opt/contrail/utils/fabfile/utils/cluster.py", line 180, in get_compute_migrate_nodes
2017-11-06 13:42:27:156148: if hstr == testbed.host_build:
2017-11-06 13:42:27:156212: AttributeError: 'module' object has no attribute 'host_build'
2017-11-06 13:42:27:156278: root@fa4afa198f02:/contrail-test#

shajuvk (shajuvk)
information type: Proprietary → Public
Changed in juniperopenstack:
assignee: nobody → Senthilnathan Murugappan (msenthil)
Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : [Review update] R3.2

Review in progress for https://review.opencontrail.org/37222
Submitter: Senthilnathan Murugappan (<email address hidden>)

shajuvk (shajuvk)
description: updated
shajuvk (shajuvk)
tags: added: sanityblocker
Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : A change has been merged

Reviewed: https://review.opencontrail.org/37222
Committed: http://github.com/Juniper/contrail-fabric-utils/commit/ada5754b3465116313487bd131be93d2ba30a9b4
Submitter: Zuul (<email address hidden>)
Branch: R3.2

commit ada5754b3465116313487bd131be93d2ba30a9b4
Author: Senthilnathan Murugappan <email address hidden>
Date: Mon Nov 6 11:13:41 2017 -0800

Take care of cases where 'build' role is not present

Also we wrongly depend on the build-host name rather than looking at the role

Change-Id: Ida3569f3e74c75951c82965e04e669ef0a73a102
Closes-Bug: #1730482

Jeba Paulaiyan (jebap)
Changed in juniperopenstack:
status: New → Won't Fix
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.