SM:R3.0build34:upload of contrail Juno package in tgz format fails with servermanager exception

Bug #1578053 reported by sundarkh
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Juniper Openstack
Invalid
High
Nagendra Prasath

Bug Description

SM:R3.0build34:upload of contrail Juno package in tgz format fails with servermanager exception

Installed Server Manager R3.0 build 34 Juno
Added the ubuntu 14-04.2 base iso image went successful
Tried upload of Juno contrail package (tgz) file , it fails with server manager exception
server-manager-client upload-image --id ubuntu14juno34 --version 34 --category package --type contrail-ubuntu-package --file_name /cs-shared/github-build/R3.0/34/ubuntu-14-04/juno/contrail-install-packages_3.0.2.0-34-juno.tgz
Traceback for the above command is create_deb_repo: error 254 when executing"reprepro includedeb contrail /var/www/html/contrail/repo/ubuntu14juno34/*.deb”,
But, with same Server-manager build, upload of kilo contrail package (tgz) format works fine
SM Node : nodeg19

Revision history for this message
sundarkh (sundar-kh) wrote :

Issue not reproducible , with same steps as mentioned above
suspect is when server-manager upgrade, old SM process did not stop and hence even after upgrade still had old code running

Changed in juniperopenstack:
status: New → Invalid
Revision history for this message
sundarkh (sundar-kh) wrote :

With build 35, the error received while uploading the Juno contrail package tgz , hitting OS Error 2 exception

before adding the image, make sure that image is not available under the repo, root@nodeg19:/var/www/html/contrail/repo# ls -lrt ubuntu14juno35
-bash: root@nodeg19:/var/www/html/contrail/repo#: No such file or directory
root@nodeg19:/var/www/html/contrail/repo# total 0

Make sure, it is not available server-manager delete image --image_id ubuntu14juno35
{
    "return_code": 8,
    "return_data": null,
    "return_msg": "Image {'id': 'ubuntu14juno35'} doesn't exist"
}

 server-manager-client upload-image --id ubuntu14juno35 --version 35 --category package --type contrail-ubuntu-package --file_name /cs-shared/github-build/R3.0/35/ubuntu-14-04/juno/contrail-install-packages_3.0.2.0-35-juno.tgz

{
    "return_code": 9,
    "return_data": "OSError(2, 'No such file or directory')",
    "return_msg": ""
}
Observe that , under repo , the image name does get created, with no actual files in it
ls
ubuntu14icehouse40 ubuntu14juno30 ubuntu14juno34 ubuntu14juno39 ubuntu14kilo18 ubuntu14kilo25 ubuntu14kilo2730 ubuntu2723
ubuntu14juno11 ubuntu14juno32 ubuntu14juno35 ubuntu14juno40 ubuntu14kilo20 ubuntu14kilo2723 ubuntu14kilo30 ubuntukilo2723
ubuntu14juno129 ubuntu14juno33 ubuntu14juno36 ubuntu14juno9 ubuntu14kilo24 ubuntu14kilo2729 ubuntu14kilo33
root@nodeg19:/var/www/html/contrail/repo# ls -lrt ubuntu14juno35 >>>>>>>> file gets created while doing upload image
total 0

Revision history for this message
sundarkh (sundar-kh) wrote :

"2016-05-10 00:01:11,813-DEBUG-server_mgr_main.py:2448-delete_image(): delete_image"
"2016-05-10 00:01:11,814-DEBUG-server_mgr_main.py:1047-validate_smgr_request(): validate_smgr_request"
"2016-05-10 00:01:11,815-DEBUG-server_mgr_main.py:1072-validate_smgr_request(): ret_val_data returned: {'status': 0, 'match_key': 'id', 'force': False, 'match_value': 'ubuntu14juno35'}"
"2016-05-10 00:01:11,816-ERROR-server_mgr_main.py:2593-log_and_raise_exception(): Image {'id': 'ubuntu14juno35'} doesn't exist"
"2016-05-10 00:01:11,817-ERROR-server_mgr_main.py:3160-log_trace(): *****TRACEBACK-START*****"
"2016-05-10 00:01:11,818-ERROR-server_mgr_main.py:3164-log_trace(): Traceback (most recent call last):
"
"2016-05-10 00:01:11,819-ERROR-server_mgr_main.py:3164-log_trace(): File "/opt/contrail/server_manager/server_mgr_main.py", line 2461, in delete_image
    self.log_and_raise_exception(msg)
"
"2016-05-10 00:01:11,820-ERROR-server_mgr_main.py:3164-log_trace(): File "/opt/contrail/server_manager/server_mgr_main.py", line 2594, in log_and_raise_exception
    raise ServerMgrException(msg, err_code)
"
"2016-05-10 00:01:11,821-ERROR-server_mgr_main.py:3164-log_trace(): ServerMgrException: "Image {'id': 'ubuntu14juno35'} doesn't exist"
"
"2016-05-10 00:01:11,822-ERROR-server_mgr_main.py:3165-log_trace(): *****TRACEBACK-END******"
"2016-05-10 00:01:11,823-DEBUG-server_mgr_main.py:1717-form_operartion_data(): function_start"
"2016-05-10 00:01:46,941-DEBUG-server_mgr_main.py:1743-upload_image(): upload_image"
"2016-05-10 00:01:57,580-ERROR-server_mgr_main.py:3160-log_trace(): *****TRACEBACK-START*****"
"2016-05-10 00:01:57,581-ERROR-server_mgr_main.py:3164-log_trace(): Traceback (most recent call last):
"
"2016-05-10 00:01:57,581-ERROR-server_mgr_main.py:3164-log_trace(): File "/opt/contrail/server_manager/server_mgr_main.py", line 1792, in upload_image
    image_id, image_type, image_version, dest)
"
"2016-05-10 00:01:57,582-ERROR-server_mgr_main.py:3164-log_trace(): File "/opt/contrail/server_manager/server_mgr_main.py", line 2255, in _create_repo
    raise(e)
"
"2016-05-10 00:01:57,582-ERROR-server_mgr_main.py:3164-log_trace(): OSError: [Errno 2] No such file or directory
"
"2016-05-10 00:01:57,583-ERROR-server_mgr_main.py:3165-log_trace(): *****TRACEBACK-END******"
"2016-05-10 00:01:57,583-DEBUG-server_mgr_main.py:1717-form_operartion_data(): function_start"
"2016-05-10 00:04:56,748-DEBUG-server_mgr_mon_base_plugin.py:678-create_server_dict(): Created server dictionary."

Revision history for this message
sundarkh (sundar-kh) wrote :

after an upgrade, service contrail-server-manager start was used

Revision history for this message
Abhay Joshi (abhayj) wrote :

After upgrade, "service contrail-server-manager restart" needs to be done. "service contrail-server-manager start" is not going to work.

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.