SM Lite : R3.1.1 build 41: Provision does not start with error "AddrFormatError('invalid IPNetwork '"

Bug #1641411 reported by sundarkh
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Juniper Openstack
Status tracked in Trunk
R3.0.3.x
Won't Fix
Undecided
Siva Gurumurthy
R3.1
Fix Committed
Critical
Siva Gurumurthy
R3.2
Fix Committed
Critical
Siva Gurumurthy
Trunk
Fix Committed
Critical
Siva Gurumurthy

Bug Description

SM Lite : R3.1.1 build 41: Provision does not start with error "AddrFormatError('invalid IPNetwork '"

1) Install SM lite on the box
2) Inititiate provision using the testbed.py

https://github.com/Juniper/contrail-tools/blob/master/testbeds/testbed_smgr_multi_interface.py.ubuntu-14.04
3) Observe that the provision does not start , and gets stuck with following error

{
    "return_code": 9,
    "return_data": null,
    "return_msg": "AddrFormatError('invalid IPNetwork '

Traceback

u'p')]"
"2016-11-12 14:29:12,862-DEBUG-server_mgr_main.py:3917-storage_get_control_network_mask(): STORAGE: control_ip: 192.168.100.3/24 => 192.168.100.0/24"
"2016-11-12 14:29:12,863-DEBUG-server_mgr_main.py:4124-build_calculated_cluster_params(): STORAGE: Control_network : 192.168.100.0/24"
"2016-11-12 14:29:12,865-ERROR-server_mgr_main.py:3358-log_trace(): *****TRACEBACK-START*****"
"2016-11-12 14:29:12,866-ERROR-server_mgr_main.py:3362-log_trace(): Traceback (most recent call last):
"
"2016-11-12 14:29:12,867-ERROR-server_mgr_main.py:3362-log_trace(): File "/opt/contrail/server_manager/server_mgr_main.py", line 4326, in provision_server
    server, cluster, role_servers, cluster_servers, package)
"
"2016-11-12 14:29:12,868-ERROR-server_mgr_main.py:3362-log_trace(): File "/opt/contrail/server_manager/server_mgr_main.py", line 4227, in build_calculated_provision_params
    server, cluster, role_servers, package)
"
"2016-11-12 14:29:12,869-ERROR-server_mgr_main.py:3362-log_trace(): File "/opt/contrail/server_manager/server_mgr_main.py", line 4189, in build_calculated_server_params
    server_control_gateway = self.get_control_gateway(server)
"
"2016-11-12 14:29:12,870-ERROR-server_mgr_main.py:3362-log_trace(): File "/opt/contrail/server_manager/server_mgr_main.py", line 3313, in get_control_gateway
    return str(IPNetwork(value['gateway']).ip)
"
"2016-11-12 14:29:12,870-ERROR-server_mgr_main.py:3362-log_trace(): File "/usr/lib/python2.7/dist-packages/netaddr/ip/__init__.py", line 917, in __init__
    else:
"
"2016-11-12 14:29:12,871-ERROR-server_mgr_main.py:3362-log_trace(): AddrFormatError: invalid IPNetwork
"

sundarkh (sundar-kh)
tags: added: blocker
Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : [Review update] R3.1

Review in progress for https://review.opencontrail.org/26073
Submitter: sgurumurthy (<email address hidden>)

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

Review in progress for https://review.opencontrail.org/26074
Submitter: sgurumurthy (<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/26075
Submitter: sgurumurthy (<email address hidden>)

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

Reviewed: https://review.opencontrail.org/26073
Committed: http://github.org/Juniper/contrail-server-manager/commit/1187aee38fac09184595b75d074ff4fba21b19ab
Submitter: Zuul
Branch: R3.1

commit 1187aee38fac09184595b75d074ff4fba21b19ab
Author: sgurumurthy <email address hidden>
Date: Mon Nov 14 20:15:56 2016 -0800

Closes-Bug: #1641411 Handle the smlite case of passing empty string for gateway value

Change-Id: Ifee5dcded8dbbf00bff20a0530e66514e73afda4

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

Reviewed: https://review.opencontrail.org/26075
Committed: http://github.org/Juniper/contrail-server-manager/commit/2f82fe7540e959f8196f12d81f8548b854456910
Submitter: Zuul
Branch: master

commit 2f82fe7540e959f8196f12d81f8548b854456910
Author: sgurumurthy <email address hidden>
Date: Mon Nov 14 20:15:56 2016 -0800

Closes-Bug: #1641411 Handle the smlite case of passing empty string for gateway value

Change-Id: Ifee5dcded8dbbf00bff20a0530e66514e73afda4

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

Reviewed: https://review.opencontrail.org/26074
Committed: http://github.org/Juniper/contrail-server-manager/commit/a0346f0e5c637543b9f10c3bd1382b49f7621614
Submitter: Zuul
Branch: R3.2

commit a0346f0e5c637543b9f10c3bd1382b49f7621614
Author: sgurumurthy <email address hidden>
Date: Mon Nov 14 20:15:56 2016 -0800

Closes-Bug: #1641411 Handle the smlite case of passing empty string for gateway value

Change-Id: Ifee5dcded8dbbf00bff20a0530e66514e73afda4

Revision history for this message
Umamaheshwar (urao) wrote :

Seen this issue, when trying to deploy contrail (R3.0.3 build 19) using SM

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.