Exception in delete_image of server_mgr_main.py during provision

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

Bug Description

r4.0-16 SM provision

"2017-05-30 19:21:04,905-ERROR-server_mgr_main.py:3456-log_and_raise_exception(): Image {'id': 'ubuntu-14-04'} doesn't exist"
"2017-05-30 19:21:04,906-ERROR-server_mgr_main.py:4402-log_trace(): *****TRACEBACK-START*****"
"2017-05-30 19:21:04,906-ERROR-server_mgr_main.py:4406-log_trace(): Traceback (most recent call last):
"
"2017-05-30 19:21:04,907-ERROR-server_mgr_main.py:4406-log_trace(): File "/opt/contrail/server_manager/server_mgr_main.py", line 3310, in delete_image
    self.log_and_raise_exception(msg)
"
"2017-05-30 19:21:04,907-ERROR-server_mgr_main.py:4406-log_trace(): File "/opt/contrail/server_manager/server_mgr_main.py", line 3457, in log_and_raise_exception
    raise ServerMgrException(msg, err_code)
"
"2017-05-30 19:21:04,908-ERROR-server_mgr_main.py:4406-log_trace(): ServerMgrException: "Image {'id': 'ubuntu-14-04'} doesn't exist"
"
"2017-05-30 19:21:04,908-ERROR-server_mgr_main.py:4407-log_trace(): *****TRACEBACK-END******"
"2017-05-30 19:21:18,477-DEBUG-server_mgr_main.py:1273-validate_smgr_request(): validate_smgr_request"
"2017-05-30 19:21:18,826-DEBUG-server_mgr_main.py:3297-delete_image(): delete_image"
"2017-05-30 19:21:18,827-DEBUG-server_mgr_main.py:1273-validate_smgr_request(): validate_smgr_request"
"2017-05-30 19:21:18,829-ERROR-server_mgr_main.py:3456-log_and_raise_exception(): Image {'id': 'combined_image_mainline'} doesn't exist"
"2017-05-30 19:21:18,830-ERROR-server_mgr_main.py:4402-log_trace(): *****TRACEBACK-START*****"
"2017-05-30 19:21:18,831-ERROR-server_mgr_main.py:4406-log_trace(): Traceback (most recent call last):
"
"2017-05-30 19:21:18,832-ERROR-server_mgr_main.py:4406-log_trace(): File "/opt/contrail/server_manager/server_mgr_main.py", line 3310, in delete_image
    self.log_and_raise_exception(msg)
"
"2017-05-30 19:21:18,833-ERROR-server_mgr_main.py:4406-log_trace(): File "/opt/contrail/server_manager/server_mgr_main.py", line 3457, in log_and_raise_exception
    raise ServerMgrException(msg, err_code)
"
"2017-05-30 19:21:18,834-ERROR-server_mgr_main.py:4406-log_trace(): ServerMgrException: "Image {'id': 'combined_image_mainline'} doesn't exist"
"
"2017-05-30 19:21:18,835-ERROR-server_mgr_main.py:4407-log_trace(): *****TRACEBACK-END******"

Tags: provisioning
Revision history for this message
Jeba Paulaiyan (jebap) wrote :

This happens when the script attempts to delete non existing image and it proceeds fine after this traceback. Hence moving this out of 4.0.0.0

Revision history for this message
Siva Gurumurthy (sgurumurthy) wrote :

1. Does this happen for any image or for a specific image? Which image did you try?
2. Does this happen when the image is deleted during provisioning?

Revision history for this message
Siva Gurumurthy (sgurumurthy) wrote :

SM actually throws a proper error if invalid image is deleted.
Since we log and raise an exception you get the backtrace in the log file.
This is not a bug

root@ubuntu-14-04-42:~# server-manager delete image --image_id abc

{
    "return_code": 8,
    "return_data": null,
    "return_msg": "Image {'id': 'abc'} doesn't exist"
}

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.