[SM]: Not able to add contrail networking image for Centos71 package

Bug #1712327 reported by Pulkit Tandon
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Juniper Openstack
Status tracked in Trunk
R4.0
Fix Committed
Critical
Dheeraj Gautam
Trunk
Fix Committed
Critical
Dheeraj Gautam

Bug Description

Server Manager Build: CB -4.0.1_42 (contrail-server-manager-installer_4.0.1.0-42~mitaka_all.deb)

When trying to add ubuntu contrail-networking image, it get added successfully.
At the same time, on trying to add centos contrail-networking image, it fails with following error:

"2017-08-22 16:59:03,047-INFO-server_mgr_main.py:303-merge_dict(): id already present in dict d1,Retaining value test_net against "
"2017-08-22 16:59:51,946-ERROR-server_mgr_main.py:4748-log_trace(): *****TRACEBACK-START*****"
"2017-08-22 16:59:51,947-ERROR-server_mgr_main.py:4752-log_trace(): Traceback (most recent call last):
"
"2017-08-22 16:59:51,947-ERROR-server_mgr_main.py:4752-log_trace(): File "/opt/contrail/server_manager/server_mgr_main.py", line 2056, in put_image
    "openstack_sku", None),self._args)
"
"2017-08-22 16:59:51,947-ERROR-server_mgr_main.py:4752-log_trace(): File "/opt/contrail/server_manager/ansible/sm_ansible_utils.py", line 747, in _create_container_repo
    raise(e)
"
"2017-08-22 16:59:51,948-ERROR-server_mgr_main.py:4752-log_trace(): NameError: global name 'shutil' is not defined

The image that we were trying to add was:
contrail-networking-docker_4.0.1.0-26_centos7.tgz

Also, please note that earlier cents networking image gets added successfully.
Last successful image added :
contrail-networking-docker_4.0.1.0-15_centos7.tgz

Pulkit Tandon (pulkitt)
information type: Proprietary → Public
Revision history for this message
Dheeraj Gautam (dgautam) wrote :

https://github.com/Juniper/contrail-server-manager/commit/8f02d2967862a9eb99b87add0e063d31c813e95c#diff-a433bfdf94970c6f00344b4d6a8726dd remove import of shutil module.

Work-around:
add following lines to /opt/contrail/server_manager/ansible/sm_ansible_utils.py at line 9.

import shutil

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

Review in progress for https://review.opencontrail.org/34810
Submitter: Dheeraj Gautam (<email address hidden>)

Jeba Paulaiyan (jebap)
tags: added: sanity
Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : [Review update] master

Review in progress for https://review.opencontrail.org/34815
Submitter: Dheeraj Gautam (<email address hidden>)

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

Reviewed: https://review.opencontrail.org/34810
Committed: http://github.com/Juniper/contrail-server-manager/commit/cf22fc875c1cb94455a3b140bac868d8dc824c39
Submitter: Zuul (<email address hidden>)
Branch: R4.0

commit cf22fc875c1cb94455a3b140bac868d8dc824c39
Author: Dheeraj Gautam <email address hidden>
Date: Tue Aug 22 08:04:54 2017 -0700

add shutil module to sm_amsible_utils.py

Change-Id: Ib984404bf1725720e6d9fca2f239a4494128cf20
Closes-Bug: #1712327

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

Reviewed: https://review.opencontrail.org/34815
Committed: http://github.com/Juniper/contrail-server-manager/commit/fa151e4b3b2158a40a1760dc4998f19a7453f493
Submitter: Zuul (<email address hidden>)
Branch: master

commit fa151e4b3b2158a40a1760dc4998f19a7453f493
Author: Dheeraj Gautam <email address hidden>
Date: Tue Aug 22 08:04:54 2017 -0700

add shutil module to sm_amsible_utils.py

Change-Id: Ib984404bf1725720e6d9fca2f239a4494128cf20
Closes-Bug: #1712327

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.