Bug #1494
UI barfs if a VM is based on an Image with state=DELETED (was: UI barfs on load)
Status: | Closed | Start date: | 10/14/2011 | |
---|---|---|---|---|
Priority: | High | Due date: | ||
Assignee: | Kostas Papadimitriou | % Done: | 0% |
|
Category: | Cyclades UI | Spent time: | - | |
Target version: | v0.7.1 |
Description
Feedback message: Error report ------------------- Code: -1 Type: JS Exception Message: image.get_readable_size is not a function Module: UI Details: image.get_readable_size is not a function<br /><br />cre<br /><br />ateException()@https://staging.okeanos.grnet.gr/static/snf-0.7/js/lib/stacktrace.js:42<br /><br />run(null)@https:// staging.okeanos.grnet.gr/static/snf-0.7/js/lib/stacktrace.js:27<br /><br />printStackTrace()@https://staging.okeanos.grnet.gr/static/snf-0.7/js/lib/stacktrace.js:18<br /><br />stacktrace()@https://staging. okeanos.grnet.gr/static/snf-0.7/js/utils.js:268<br /><br />handle_ui_error([object Object])@https://staging.okeanos.grnet.gr/static/snf-0.7/js/ui/web/ui_main_view.js:428<br /><br />(?)("error",[o bject Object])@https://staging.okeanos.grnet.gr/static/snf-0.7/js/lib/backbone.js:117<br /><br />trigger_error("CRITICAL","image.get_readable_size is not a function",[object Object],[object Object] )@https://staging.okeanos.grnet.gr/static/snf-0.7/js/ui/web/ui_vms_base_view.js:584<br /><br />onerror("image.get_readable_size is not a function","https://staging.okeanos.grnet.gr/static/snf-0.7/js/ui/ web/ui_icon_view.js",557)@https://staging.okeanos.grnet.gr/static/snf-0.7/js/ui/web/ui_main_view.js:856 Please describe the actions that triggered the error: User accepted data send: True User info: ID: 4 Email: costasd@noc.grnet.gr User application data: {"client":{"browser":{"mozilla":true,"version":"7.0.1"},"screen":{"top":0,"height":1080,"width":1920,"left":1920,"pixelDepth":24,"colorDepth":24,"availWidth":1920,"availHeight":1080,"availLeft":1920,"availTop":0},"client":{"os":" Linux","browser":"Firefox"}},"calls":{"/api/v1.1/flavors/detail_GET":"2011-10-14T14:07:08.000Z","/api/v1.1/images/detail_GET":"2011-10-14T14:07:08.000Z","/api/v1.1/networks/detail_GET":"2011-10-14T14:08:15.000Z","/api/v1.1/server s/detail_GET":"2011-10-14T14:08:15.000Z","/api/v1.1/images/1_GET":"2011-10-14T14:07:09.000Z"},"errors":[{"url":"/api/v1.1/networks/detail?changes-since=2011-10-14T14:07:09Z","date":"2011-10-14T14:07:20.132Z","settings":{"url":"/a pi/v1.1/networks/detail?changes-since=2011-10-14T14:07:09Z","isLocal":false,"global":true,"type":"GET","contentType":"application/x-www-form-urlencoded","processData":true,"async":true,"accepts":{"xml":"application/xml, text/xml" ,"html":"text/html","text":"text/plain","json":"application/json, text/javascript","*":"*/*","script":"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},"contents":{"xml":{},"html":{},"js on":{},"script":{}},"responseFields":{"xml":"responseXML","text":"responseText"},"converters":{"text html":true},"flatOptions":{"context":true,"url":true},"jsonp":"callback","dataType":"json","skips_timeouts":true,"update":true," cache":true,"critical":true,"display":true,"timeout":10000,"dataTypes":["json"],"crossDomain":false,"hasContent":false},"data":{"1":"abort","0":{"readyState":0,"status":0,"statusText":"abort"},"2":"abort"}},{"url":"/api/v1.1/serv ers/detail?changes-since=2011-10-14T14:07:09Z","date":"2011-10-14T14:07:20.139Z","settings":{"url":"/api/v1.1/servers/detail?changes-since=2011-10-14T14:07:09Z","isLocal":false,"global":true,"type":"GET","contentType":"applicatio n/x-www-form-urlencoded","processData":true,"async":true,"accepts":{"xml":"application/xml, text/xml","html":"text/html","text":"text/plain","json":"application/json, text/javascript","*":"*/*","script":"text/javascript, applicat ion/javascript, application/ecmascript, application/x-ecmascript"},"contents":{"xml":{},"html":{},"json":{},"script":{}},"responseFields":{"xml":"responseXML","text":"responseText"},"converters":{"text html":true},"flatOptions":{ "context":true,"url":true},"jsonp":"callback","dataType":"json","skips_timeouts":true,"update":true,"cache":true,"critical":true,"display":true,"timeout":10000,"dataTypes":["json"],"crossDomain":false,"hasContent":false},"data":{ "0":{"readyState":0,"status":0,"statusText":"abort"},"1":"abort","2":"abort"}}],"data":{"vms":[{"state":"ACTIVE","linked_to":["public"],"status":"ACTIVE","updated":"2011-10-14T12:23:22+00:00","hostId":"","addresses":{"values":[{" firewallProfile":"DISABLED","mac":"aa:00:00:5a:d9:bc","values":[{"version":4,"addr":"83.212.5.86"},{"version":6,"addr":"2001:db8::a800:ff:fe5a:d9bc"}],"id":"public","name":"public"}]},"name":"bLpGdjDw","imageRef":1,"created":"201 1-10-14T12:17:13+00:00","flavorRef":1,"progress":100,"id":30,"metadata":{"values":{"OS":"debian"}},"OS":"debian","firewalls":{"public":"DISABLED"},"linked_to_nets":[{"firewallProfile":"DISABLED","mac":"aa:00:00:5a:d9:bc","values" :[{"version":4,"addr":"83.212.5.86"},{"version":6,"addr":"2001:db8::a800:ff:fe5a:d9bc"}],"id":"public","name":"public"}]},{"state":"ACTIVE","linked_to":["public"],"status":"ACTIVE","updated":"2011-10-14T12:29:42+00:00","hostId":" ","addresses":{"values":[{"firewallProfile":"DISABLED","mac":"aa:00:00:a6:8e:cd","values":[{"version":4,"addr":"83.212.5.84"},{"version":6,"addr":"2001:db8::a800:ff:fea6:8ecd"}],"id":"public","name":"public"}]},"name":"My Fedora Desktop server","imageRef":5,"created":"2011-10-14T12:27:10+00:00","flavorRef":1,"progress":100,"id":31,"metadata":{"values":{"Role":"Web server","OS":"fedora"}},"OS":"fedora","firewalls":{"public":"DISABLED"},"linked_to_nets":[{ "firewallProfile":"DISABLED","mac":"aa:00:00:a6:8e:cd","values":[{"version":4,"addr":"83.212.5.84"},{"version":6,"addr":"2001:db8::a800:ff:fea6:8ecd"}],"id":"public","name":"public"}]}],"networks":[{"status":"ACTIVE","updated":"2 011-10-14T12:29:42+00:00","name":"public","created":"2011-04-01T00:00:00+00:00","servers":{"values":[17,16,30,31]},"id":"public","linked_to":[17,16,30,31],"state":"NORMAL"},{"status":"ACTIVE","updated":"2011-10-07T09:55:52+00:00" ,"name":"mantarini","created":"2011-10-07T09:55:39+00:00","servers":{"values":[]},"id":"3","linked_to":[],"state":"NORMAL"}]},"date":"2011-10-14T14:08:19.429Z","error":{"ns":"UI","code":-1,"message":"image.get_readable_size is no t a function","details":"image.get_readable_size is not a function<br /><br />cre<br /><br />ateException()@https://staging.okeanos.grnet.gr/static/snf-0.7/js/lib/stacktrace.js:42<br /><br />run(null)@https://staging.okeanos.grne t.gr/static/snf-0.7/js/lib/stacktrace.js:27<br /><br />printStackTrace()@https://staging.okeanos.grnet.gr/static/snf-0.7/js/lib/stacktrace.js:18<br /><br />stacktrace()@https://staging.okeanos.grnet.gr/static/snf-0.7/js/utils.js: 268<br /><br />handle_ui_error([object Object])@https://staging.okeanos.grnet.gr/static/snf-0.7/js/ui/web/ui_main_view.js:428<br /><br />(?)(\"error\",[object Object])@https://staging.okeanos.grnet.gr/static/snf-0.7/js/lib/backbo ne.js:117<br /><br />trigger_error(\"CRITICAL\",\"image.get_readable_size is not a function\",[object Object],[object Object])@https://staging.okeanos.grnet.gr/static/snf-0.7/js/ui/web/ui_vms_base_view.js:584<br /><br />onerror(\ "image.get_readable_size is not a function\",\"https://staging.okeanos.grnet.gr/static/snf-0.7/js/ui/web/ui_icon_view.js\",557)@https://staging.okeanos.grnet.gr/static/snf-0.7/js/ui/web/ui_main_view.js:856"}}
Related issues
History
#1 Updated by Vangelis Koukis almost 13 years ago
- Status changed from Assigned to Closed
Fix merged in master:
A typo caused an exception to be thrown when a VM exists but its base Image has been set to DELETED in the DB and is no longer available in the reply for GET /images
.
Closing ticket.
#2 Updated by Vangelis Koukis almost 13 years ago
- Subject changed from UI barfs on load to UI barfs if a VM is based on an Image with state=DELETED (was: UI barfs on load)