[one-users] Sunstone 3.8.1 image upload issue

Daniel Molina dmolina at opennebula.org
Mon Feb 25 07:55:37 PST 2013


On 25 February 2013 10:32, Alvaro Simon <asimon at cesga.es> wrote:
> Hi Daniel
>
>> Hi Alvaro,
>>
>> El 21/02/2013 17:51, "Alvaro Simon" <asimon at cesga.es> escribió:
>>>
>>> Dear all
>>>
>>> We are testing sunstone image wizard, we can create empty datablocks or
>>
>> download an existing image from a http endpoint but the image upload
>> feature from our laptop does not work.
>>>
>>> The process ends whithout any error but the image does not appear in our
>>
>> image list nor into our datastore (:tmpdir: is set to /tmp and we are
>> using
>> tiny images for the moment) . We are using a SSL apache proxy and
>> everything else is working fine, do you know what's going on?
>>
>> What Opennebula version are you running?
>> Is there any relevant information in oned.log, sunstone.log when this
>> action is performed
>
>
> OpenNebula 3.8.1
> sunstone-server log is set to debug (level 3), here is the log info from
> sunstone.error:
>
> localhost - - [25/Feb/2013:10:28:31 CET] "POST
> /upload?img=%7B%22image%22%3A%7B%22NAME%22%3A%22test+asimon+deleteme%22%2C%22TYPE%22%3A%22OS%22%2C%22PERSISTENT%22%3A%22NO%22%7D%2C%22ds_id%22%3A%221%22%7D&file=gparted-live-0.13.1-2.iso&qqfile=gparted-live-0.13.1-2.iso
> HTTP/1.1" 500 123745
> https://cloud.cesga.es/ ->
> /upload?img=%7B%22image%22%3A%7B%22NAME%22%3A%22test+asimon+deleteme%22%2C%22TYPE%22%3A%22OS%22%2C%22PERSISTENT%22%3A%22NO%22%7D%2C%22ds_id%22%3A%221%22%7D&file=gparted-live-0.13.1-2.iso&qqfile=gparted-live-0.13.1-2.iso
> localhost - - [25/Feb/2013:10:28:43 CET] "GET /image?timeout=false HTTP/1.1"
> 200 76265
> https://cloud.cesga.es/ -> /image?timeout=false
> localhost - - [25/Feb/2013:10:28:56 CET] "GET /user?timeout=true HTTP/1.1"
> 200 24537
> https://cloud.cesga.es/ -> /user?timeout=true
> localhost - - [25/Feb/2013:10:28:58 CET] "GET /acl?timeout=true HTTP/1.1"
> 200 2854
> https://cloud.cesga.es/ -> /acl?timeout=true
> localhost - - [25/Feb/2013:10:29:04 CET] "GET /cluster?timeout=true
> HTTP/1.1" 200 1302
> https://cloud.cesga.es/ -> /cluster?timeout=true
> localhost - - [25/Feb/2013:10:29:14 CET] "GET /vm?timeout=true HTTP/1.1" 200
> 201727
> https://cloud.cesga.es/ -> /vm?timeout=true
> localhost - - [25/Feb/2013:10:29:15 CET] "GET /group?timeout=true HTTP/1.1"
> 200 4010
> https://cloud.cesga.es/ -> /group?timeout=true
> localhost - - [25/Feb/2013:10:29:17 CET] "GET /image?timeout=true HTTP/1.1"
> 200 76265
> https://cloud.cesga.es/ -> /image?timeout=true
> localhost - - [25/Feb/2013:10:29:21 CET] "GET /datastore?timeout=true
> HTTP/1.1" 200 3589
> https://cloud.cesga.es/ -> /datastore?timeout=true
> localhost - - [25/Feb/2013:10:29:22 CET] "GET /host?timeout=true HTTP/1.1"
> 200 25187
> https://cloud.cesga.es/ -> /host?timeout=true
> localhost - - [25/Feb/2013:10:29:25 CET] "GET /vmtemplate?timeout=true
> HTTP/1.1" 200 170053
> https://cloud.cesga.es/ -> /vmtemplate?timeout=true
> localhost - - [25/Feb/2013:10:29:25 CET] "GET /vnet?timeout=true HTTP/1.1"
> 200 10566
> https://cloud.cesga.es/ -> /vnet?timeout=true
> localhost - - [25/Feb/2013:10:29:57 CET] "GET /user?timeout=true HTTP/1.1"
> 200 24537
> https://cloud.cesga.es/ -> /user?timeout=true
> localhost - - [25/Feb/2013:10:30:00 CET] "GET /acl?timeout=true HTTP/1.1"
> 200 2854
> https://cloud.cesga.es/ -> /acl?timeout=true
> localhost - - [25/Feb/2013:10:30:12 CET] "GET /cluster?timeout=true
> HTTP/1.1" 200 1302
> https://cloud.cesga.es/ -> /cluster?timeout=true
> localhost - - [25/Feb/2013:10:30:32 CET] "GET /vm?timeout=true HTTP/1.1" 200
> 201727
> https://cloud.cesga.es/ -> /vm?timeout=true
> localhost - - [25/Feb/2013:10:30:34 CET] "GET /group?timeout=true HTTP/1.1"
> 200 4010
> https://cloud.cesga.es/ -> /group?timeout=true
>
> and from sunstone.log
>
> {:tmpdir=>"/tmp",
>  :one_xmlrpc=>"http://localhost:2633/RPC2",
>  :host=>"127.0.0.1",
>  :port=>9869,
>  :debug_level=>3,
>  :auth=>"sunstone",
>  :core_auth=>"cipher",
>  :vnc_proxy_port=>29876,
>  :vnc_proxy_path=>"/usr/share/one/websockify/websocketproxy.py",
>  :vnc_proxy_support_wss=>"only",
>  :vnc_proxy_cert=>"/etc/grid-security/hostcert.pem",
>  :vnc_proxy_key=>"/etc/grid-security/hostkey.pem",
>  :lang=>"en_US",
>  :marketplace_url=>"https://marketplace.c12g.com/appliance"}
> Mon Feb 25 10:27:15 2013 [I]: Starting VNC proxy: python
> /usr/share/one/websockify/websocketproxy.py
> --target-config=/var/lib/one/sunstone_vnc_tokens  --cert
> /etc/grid-security/hostcert.pem --key /etc/grid-security/hostkey.pem
> --ssl-only 29876
> Mon Feb 25 10:27:51 2013 [I]: 193.144.44.178 - - [25/Feb/2013 10:27:51] "GET
> / HTTP/1.1" 200 2050 0.0038
> Mon Feb 25 10:27:53 2013 [I]: 193.144.44.178 - - [25/Feb/2013 10:27:53] "GET
> /images/login_over.png HTTP/1.1" 200 4351 0.0172
> Mon Feb 25 10:27:54 2013 [I]: 193.144.44.178 - - [25/Feb/2013 10:27:54]
> "POST /login HTTP/1.1" 204 - 0.0786
> Mon Feb 25 10:27:54 2013 [I]: 193.144.44.178 - - [25/Feb/2013 10:27:54] "GET
> / HTTP/1.1" 200 5487 0.0096
> Mon Feb 25 10:27:54 2013 [I]: 193.144.44.178 - - [25/Feb/2013 10:27:54] "GET
> /vendor/dataTables/demo_table_jui.css HTTP/1.1" 200 8930 0.0008
> Mon Feb 25 10:27:54 2013 [I]: 193.144.44.178 - - [25/Feb/2013 10:27:54] "GET
> /vendor/jGrowl/jquery.jgrowl.css HTTP/1.1" 200 4174 0.0008
> Mon Feb 25 10:27:54 2013 [I]: 193.144.44.178 - - [25/Feb/2013 10:27:54] "GET
> /vendor/dataTables/ColVis.css HTTP/1.1" 200 1156 0.0004
> Mon Feb 25 10:27:54 2013 [I]: 193.144.44.178 - - [25/Feb/2013 10:27:54] "GET
> /vendor/dataTables/jquery.dataTables.min.js HTTP/1.1" 200 70883 0.0009
> Mon Feb 25 10:27:54 2013 [I]: 193.144.44.178 - - [25/Feb/2013 10:27:54] "GET
> /vendor/jQueryLayout/layout-default-latest.css HTTP/1.1" 200 4160 0.0005
> Mon Feb 25 10:27:54 2013 [I]: 193.144.44.178 - - [25/Feb/2013 10:27:54] "GET
> /vendor/FontAwesome/css/font-awesome.css HTTP/1.1" 200 14599 0.0006
> Mon Feb 25 10:27:54 2013 [I]: 193.144.44.178 - - [25/Feb/2013 10:27:54] "GET
> /vendor/flot/jquery.flot.min.js HTTP/1.1" 200 37554 0.0006
> Mon Feb 25 10:27:54 2013 [I]: 193.144.44.178 - - [25/Feb/2013 10:27:54] "GET
> /vendor/jGrowl/jquery.jgrowl_minimized.js HTTP/1.1" 200 5769 0.0005
> Mon Feb 25 10:27:54 2013 [I]: 193.144.44.178 - - [25/Feb/2013 10:27:54] "GET
> /vendor/jQueryLayout/jquery.layout-latest.min.js HTTP/1.1" 200 46490 0.0009
> Mon Feb 25 10:27:54 2013 [I]: 193.144.44.178 - - [25/Feb/2013 10:27:54] "GET
> /vendor/jQueryUI/jquery-ui-1.8.16.custom.min.js HTTP/1.1" 200 210463 0.0016
> Mon Feb 25 10:27:54 2013 [I]: 193.144.44.178 - - [25/Feb/2013 10:27:54] "GET
> /vendor/dataTables/ColVis.min.js HTTP/1.1" 200 10115 0.0006
> Mon Feb 25 10:27:54 2013 [I]: 193.144.44.178 - - [25/Feb/2013 10:27:54] "GET
> /vendor/flot/jquery.flot.pie.min.js HTTP/1.1" 200 8866 0.0005
> Mon Feb 25 10:27:54 2013 [I]: 193.144.44.178 - - [25/Feb/2013 10:27:54] "GET
> /vendor/fileuploader/fileuploader.js HTTP/1.1" 200 39985 0.0010
> Mon Feb 25 10:27:54 2013 [I]: 193.144.44.178 - - [25/Feb/2013 10:27:54] "GET
> /vendor/flot/jquery.flot.resize.min.js HTTP/1.1" 200 1239 0.0004
> Mon Feb 25 10:27:54 2013 [I]: 193.144.44.178 - - [25/Feb/2013 10:27:54] "GET
> /js/locale.js HTTP/1.1" 200 3429 0.0004
> Mon Feb 25 10:27:54 2013 [I]: 193.144.44.178 - - [25/Feb/2013 10:27:54] "GET
> /locale/en_US/en_US.js HTTP/1.1" 200 23243 0.0006
> Mon Feb 25 10:27:54 2013 [I]: 193.144.44.178 - - [25/Feb/2013 10:27:54] "GET
> /css/application.css HTTP/1.1" 200 13478 0.0004
> Mon Feb 25 10:27:54 2013 [I]: 193.144.44.178 - - [25/Feb/2013 10:27:54] "GET
> /js/plugins/dashboard-tab.js HTTP/1.1" 200 6923 0.0006
> Mon Feb 25 10:27:54 2013 [I]: 193.144.44.178 - - [25/Feb/2013 10:27:54] "GET
> /css/layout.css HTTP/1.1" 200 5733 0.0004
> Mon Feb 25 10:27:54 2013 [I]: 193.144.44.178 - - [25/Feb/2013 10:27:54] "GET
> /js/layout.js HTTP/1.1" 200 5791 0.0004
> Mon Feb 25 10:27:54 2013 [I]: 193.144.44.178 - - [25/Feb/2013 10:27:54] "GET
> /js/sunstone.js HTTP/1.1" 200 27464 0.0004
> Mon Feb 25 10:27:54 2013 [I]: 193.144.44.178 - - [25/Feb/2013 10:27:54] "GET
> /js/sunstone-util.js HTTP/1.1" 200 41810 0.0038
> Mon Feb 25 10:27:54 2013 [I]: 193.144.44.178 - - [25/Feb/2013 10:27:54] "GET
> /js/monitoring.js HTTP/1.1" 200 11970 0.0037
> Mon Feb 25 10:27:54 2013 [I]: 193.144.44.178 - - [25/Feb/2013 10:27:54] "GET
> /js/plugins/users-tab.js HTTP/1.1" 200 30091 0.0015
> Mon Feb 25 10:27:54 2013 [I]: 193.144.44.178 - - [25/Feb/2013 10:27:54] "GET
> /js/plugins/config-tab.js HTTP/1.1" 200 6090 0.0004
> Mon Feb 25 10:27:54 2013 [I]: 193.144.44.178 - - [25/Feb/2013 10:27:54] "GET
> /js/plugins/system-tab.js HTTP/1.1" 200 4824 0.0006
> Mon Feb 25 10:27:54 2013 [I]: 193.144.44.178 - - [25/Feb/2013 10:27:54] "GET
> /js/plugins/groups-tab.js HTTP/1.1" 200 20977 0.0007
> Mon Feb 25 10:27:54 2013 [I]: 193.144.44.178 - - [25/Feb/2013 10:27:54] "GET
> /js/plugins/images-tab.js HTTP/1.1" 200 46194 0.0044
> Mon Feb 25 10:27:54 2013 [I]: 193.144.44.178 - - [25/Feb/2013 10:27:54] "GET
> /js/plugins/acls-tab.js HTTP/1.1" 200 19385 0.0004
> Mon Feb 25 10:27:54 2013 [I]: 193.144.44.178 - - [25/Feb/2013 10:27:54] "GET
> /js/plugins/vms-tab.js HTTP/1.1" 200 55291 0.0012
> Mon Feb 25 10:27:54 2013 [I]: 193.144.44.178 - - [25/Feb/2013 10:27:54] "GET
> /js/plugins/vresources-tab.js HTTP/1.1" 200 5809 0.0047
> Mon Feb 25 10:27:54 2013 [I]: 193.144.44.178 - - [25/Feb/2013 10:27:54] "GET
> /js/plugins/templates-tab.js HTTP/1.1" 200 96842 0.0013
> Mon Feb 25 10:27:54 2013 [I]: 193.144.44.178 - - [25/Feb/2013 10:27:54] "GET
> /js/plugins/datastores-tab.js HTTP/1.1" 200 26904 0.0006
> Mon Feb 25 10:27:54 2013 [I]: 193.144.44.178 - - [25/Feb/2013 10:27:54] "GET
> /js/plugins/infra-tab.js HTTP/1.1" 200 5304 0.0003
> Mon Feb 25 10:27:54 2013 [I]: 193.144.44.178 - - [25/Feb/2013 10:27:54] "GET
> /js/plugins/clusters-tab.js HTTP/1.1" 200 34295 0.0006
> Mon Feb 25 10:27:55 2013 [I]: 193.144.44.178 - - [25/Feb/2013 10:27:55] "GET
> /js/plugins/hosts-tab.js HTTP/1.1" 200 34145 0.0007
> Mon Feb 25 10:27:55 2013 [I]: 193.144.44.178 - - [25/Feb/2013 10:27:55] "GET
> /js/plugins/vnets-tab.js HTTP/1.1" 200 45069 0.0009
> Mon Feb 25 10:27:55 2013 [I]: 193.144.44.178 - - [25/Feb/2013 10:27:55] "GET
> /vendor/noVNC/include/vnc.js HTTP/1.1" 200 1087 0.0004
> Mon Feb 25 10:27:55 2013 [I]: 193.144.44.178 - - [25/Feb/2013 10:27:55] "GET
> /images/opennebula-sunstone-small.png HTTP/1.1" 200 2434 0.0006
> ..
> ..
>
> oned.log does not show any relevant info.
>

Can you try changing the tmpdir parameter in sunstone-server.conf to
/var/tmp or any other directory different from /tmp.

Cheers.


-- 
Daniel Molina
Project Engineer
OpenNebula - The Open Source Solution for Data Center Virtualization
www.OpenNebula.org | dmolina at opennebula.org | @OpenNebula



More information about the Users mailing list