testbed_parser.py is bailing out, if hostname are specified with dns entry names

Bug #1536834 reported by prasad miriyala
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Juniper Openstack
Status tracked in Trunk
R2.20
Fix Committed
High
Nagendra Prasath
Trunk
Fix Committed
High
Nagendra Prasath

Bug Description

pmiriyala@ubuntu-build04:~$ /build/pmiriyala/sm1/src/client/testbed_parser.py --testbed /users/nipak/ankit-testbed.py --contrail-packages /github-build/mainline/LATEST/ubuntu-14-04/juno/contrail-install-packages_3.0\
-2700~juno_all.deb
Traceback (most recent call last):
  File "/build/pmiriyala/sm1/src/client/testbed_parser.py", line 800, in <module>
    Utils.converter(args)
  File "/build/pmiriyala/sm1/src/client/testbed_parser.py", line 105, in converter
    server_json.generate_json_file()
  File "/build/pmiriyala/sm1/src/client/testbed_parser.py", line 657, in generate_json_file
    self.update()
  File "/build/pmiriyala/sm1/src/client/testbed_parser.py", line 652, in update
    server_dict = self._initialize(hostobj)
  File "/build/pmiriyala/sm1/src/client/testbed_parser.py", line 597, in _initialize
    "ip_address": "%s/%s" % (hostobj.ip, hostobj.ip_net[1]),
IndexError: list index out of range

testbed.py used to reproduce the isssue.

from fabric.api import env

os_username = 'admin'
os_password = 'contrail123'
os_tenant_name = 'demo'

host1 = '<email address hidden>'
host2 = '<email address hidden>'
host3 = '<email address hidden>'
host4 = '<email address hidden>'
host5 = '<email address hidden>'

ext_routers = []
router_asn = 64512
public_vn_rtgt = 10000
public_vn_subnet = "10.84.41.0/24"
minimum_diskGB = 64

host_build = 'nipak@10.84.14.65'

env.roledefs = {
    'all': [host1, host2, host3,host4,host5],
    'cfgm': [host1,host2,host3, host4],
    'webui': [host1],
    'openstack': [host1],
    'control': [host2, host3, host4],
    'collector': [host1, host2, host3, host4,host5],
    'database': [host1, host2, host3],
    'compute': [host2, host3, host4],
    'build': [host_build]
}

env.hostnames = {
    'all': ['nodeg13', 'nodeg20', 'nodea21', 'nodeh3','nodec28']
}

env.password = 'c0ntrail123'

env.passwords = {
    host1: 'c0ntrail123',
    host2: 'c0ntrail123',
    host3: 'c0ntrail123',
    host4: 'c0ntrail123',
    host5: 'c0ntrail123',
    host_build: 'c0ntrail123',
}

env.ostypes = {
    host1: 'ubuntu',
    host2: 'ubuntu',
    host3: 'ubuntu',
    host4: 'ubuntu',
    host5: 'ubuntu',
}

env.test_repo_dir='/users/nipak/build/fab/contrail-test'
<email address hidden>'
<email address hidden>'

<email address hidden>'
<email address hidden>'

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

Review in progress for https://review.opencontrail.org/16392
Submitter: Nagendra Prasath (<email address hidden>)

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

Review in progress for https://review.opencontrail.org/16371
Submitter: Nagendra Prasath (<email address hidden>)

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

Reviewed: https://review.opencontrail.org/16371
Committed: http://github.org/Juniper/contrail-server-manager/commit/784e8af2ee684ae9eb6bfc1456ba7278bfd10814
Submitter: Zuul
Branch: master

commit 784e8af2ee684ae9eb6bfc1456ba7278bfd10814
Author: Nagendra Chandran <email address hidden>
Date: Tue Jan 19 16:09:32 2016 -0800

SMLITE: Fixing testbed_parser.py is bailing out, if hostname are specified with dns entry names

Convert Given host name to IP address

Closes-Bug: 1536834

SMLITE: preconfig script to halt if domain name is not configured

*including the fix but not enabling them for now

Partial-Bug: 1531614

Change-Id: I1f71c7995dedda3ea4881c50171ff0074f01c994

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

Reviewed: https://review.opencontrail.org/16392
Committed: http://github.org/Juniper/contrail-server-manager/commit/a9e2adad03d3fda319ab7679e51f9dfaffc970d8
Submitter: Zuul
Branch: R2.22-dev

commit a9e2adad03d3fda319ab7679e51f9dfaffc970d8
Author: Nagendra Chandran <email address hidden>
Date: Thu Jan 21 16:38:51 2016 -0800

SMLITE: Fixing testbed_parser.py is bailing out, if hostname are specified with dns entry names

Convert Given host name to IP address

Change-Id: Icad25f951143c42609a26d7016f423a37f0c2f8e
Closes-Bug: 1536834

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.