Configuring test environment fails if roledefs['compute'] is not defined in the testbed

Bug #1734651 reported by Ankit Jain
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Juniper Openstack
Status tracked in Trunk
R4.0
Fix Committed
Undecided
Ankit Jain
R4.1
Fix Committed
Undecided
Ankit Jain
Trunk
Fix Committed
Undecided
Ankit Jain

Bug Description

Need to fix the following issue:

root@bdf40d240fd6:/contrail-test# python tools/configure.py -p /opt/contrail/utils/ ./
Configuring test environment
Openstack HA setup, Keystone running in nodes [root@10.204.217.31,root@10.204.217.32,root@10.204.217.33]
2017-11-27 10:01:44:561964: Traceback (most recent call last):
2017-11-27 10:01:46:077324: File "tools/configure.py", line 751, in <module>
2017-11-27 10:01:46:077413: sys.exit(main(sys.argv))
2017-11-27 10:01:46:077590: File "tools/configure.py", line 748, in main
2017-11-27 10:01:46:077622: configure_test_env(args.contrail_fab_path, args.contrail_test_directory)
2017-11-27 10:01:46:077790: File "tools/configure.py", line 229, in configure_test_env
2017-11-27 10:01:46:077821: if host_string in env.roledefs['compute']:
2017-11-27 10:01:46:077954: KeyError: 'compute'
2017-11-27 10:01:46:078050: root@bdf40d240fd6:/contrail-test#

In some cases, we may want to provision the system using the SM without having any compute node initially, and add compute nodes later. In order to run any test case before adding any CN, we require configuring test environment.

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : [Review update] R4.1

Review in progress for https://review.opencontrail.org/37883
Submitter: Ankit Jain (<email address hidden>)

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : [Review update] R4.0

Review in progress for https://review.opencontrail.org/37884
Submitter: Ankit Jain (<email address hidden>)

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : A change has been merged

Reviewed: https://review.opencontrail.org/37883
Committed: http://github.com/Juniper/contrail-test-ci/commit/08d6e78738daca195d8fa20e9fec8ddd65a53dcf
Submitter: Zuul (<email address hidden>)
Branch: R4.1

commit 08d6e78738daca195d8fa20e9fec8ddd65a53dcf
Author: ankitja <email address hidden>
Date: Mon Nov 27 15:33:32 2017 +0530

Fix for the bug 1734651

Configuring test environment fails if roledefs['compute'] is not defined in the testbed

Change-Id: Id2b224c881a84101c739f9ac6e6e5609226d4ea9
Closes-bug: #1734651

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote :

Reviewed: https://review.opencontrail.org/37884
Committed: http://github.com/Juniper/contrail-test-ci/commit/5a93107a66159620a68bb48bb821e3c6aebbf59f
Submitter: Zuul (<email address hidden>)
Branch: R4.0

commit 5a93107a66159620a68bb48bb821e3c6aebbf59f
Author: ankitja <email address hidden>
Date: Mon Nov 27 15:33:32 2017 +0530

Fix for the bug 1734651

Configuring test environment fails if roledefs['compute'] is not defined in the testbed

Change-Id: Id2b224c881a84101c739f9ac6e6e5609226d4ea9
Closes-bug: #1734651

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : [Review update] master

Review in progress for https://review.opencontrail.org/39148
Submitter: Ankit Jain (<email address hidden>)

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : A change has been merged

Reviewed: https://review.opencontrail.org/39148
Committed: http://github.com/Juniper/contrail-test-ci/commit/03b7dc7c088819c89b834122b5ff904a2b982ef8
Submitter: Zuul v3 CI (<email address hidden>)
Branch: master

commit 03b7dc7c088819c89b834122b5ff904a2b982ef8
Author: ankitja <email address hidden>
Date: Mon Nov 27 15:33:32 2017 +0530

Fix for the bug 1734651

Configuring test environment fails if roledefs['compute'] is not defined in the testbed

Change-Id: Id2b224c881a84101c739f9ac6e6e5609226d4ea9
Closes-bug: #1734651

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : [Review update] master

Review in progress for https://review.opencontrail.org/40095
Submitter: Ankit Jain (<email address hidden>)

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.