ServerMgrException in uploading iso in SM

Bug #1696007 reported by wenqing liang
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Juniper Openstack
Status tracked in Trunk
R4.0
Fix Committed
High
Siva Gurumurthy
Trunk
Fix Committed
High
Siva Gurumurthy

Bug Description

mainline build 3076 mitaka SM:

root@servermanager:~# server-manager-client upload-image --id ubuntu-14-04 --version 3076 --category image --type ubuntu --file_name /root/sm_files/image145.iso

{
    "return_code": 9,
    "return_data": "ServerMgrException()",
    "return_msg": ""
}
root@servermanager:~#

"2017-06-05 21:26:00,247-ERROR-server_mgr_main.py:3127-_add_image_to_cobbler(): Error adding image to cobbler <Fault 1: "<class 'cobbler.cexceptions.CX'>:'Invalid kickstart template file location /var/www/html/kickstarts/contrail-ubuntu_trusty.seed, it is not inside /var/lib/cobbler/kickstarts/'">"
"2017-06-05 21:26:00,248-ERROR-server_mgr_main.py:4407-log_trace(): *****TRACEBACK-START*****"
"2017-06-05 21:26:00,249-ERROR-server_mgr_main.py:4411-log_trace(): Traceback (most recent call last):
"
"2017-06-05 21:26:00,250-ERROR-server_mgr_main.py:4411-log_trace(): File "/opt/contrail/server_manager/server_mgr_main.py", line 2584, in upload_image
    kickstart_dest, kickseed_dest)
"
"2017-06-05 21:26:00,251-ERROR-server_mgr_main.py:4411-log_trace(): File "/opt/contrail/server_manager/server_mgr_main.py", line 3128, in _add_image_to_cobbler
    raise ServerMgrException(repr(e))
"
"2017-06-05 21:26:00,252-ERROR-server_mgr_main.py:4411-log_trace(): ServerMgrException: '<Fault 1: "<class \'cobbler.cexceptions.CX\'>:\'Invalid kickstart template file location /var/www/html/kickstarts/contrail-ubuntu_trusty.seed, it is not inside /var/lib/cobbler/kickstarts/\'">'
"
"2017-06-05 21:26:00,253-ERROR-server_mgr_main.py:4412-log_trace(): *****TRACEBACK-END******"

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

Review in progress for https://review.opencontrail.org/32508
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/32508
Committed: http://github.com/Juniper/contrail-server-manager/commit/6fa95544fbe5fc3c30b6a976ee3df43c98c644b9
Submitter: Zuul (<email address hidden>)
Branch: master

commit 6fa95544fbe5fc3c30b6a976ee3df43c98c644b9
Author: sgurumurthy <email address hidden>
Date: Mon Jun 5 23:53:59 2017 -0700

Closes-bug: #1696007
Handle the case where no kickstart or kickseed files are given
for both 'add image' and 'upload image' command

Change-Id: I414d8722ac85653e81133ef5954c37665802e74c

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

Review in progress for https://review.opencontrail.org/32731
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/32731
Committed: http://github.com/Juniper/contrail-server-manager/commit/599f573c4c6f21aacab3cc5448c4921eb5f4ff2e
Submitter: Zuul (<email address hidden>)
Branch: R4.0

commit 599f573c4c6f21aacab3cc5448c4921eb5f4ff2e
Author: sgurumurthy <email address hidden>
Date: Mon Jun 5 23:53:59 2017 -0700

Closes-bug: #1696007
Handle the case where no kickstart or kickseed files are given
for both 'add image' and 'upload image' command

Change-Id: I414d8722ac85653e81133ef5954c37665802e74c
(cherry picked from commit 6fa95544fbe5fc3c30b6a976ee3df43c98c644b9)

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.