[one-users] Sunstone 3.8.1 image upload issue
Hector Sanjuan
lists at convivencial.org
Mon Feb 25 12:18:37 PST 2013
Wild guess, can you try to upload a file with a short regular filename
like "image.img"? I wonder if there are some unallowed characters there...
Hector
On Mon, 25 Feb 2013 17:32:24 +0100, Alvaro Simon <asimon at cesga.es> wrote:
> Hi Daniel
>>
>> Can you try changing the tmpdir parameter in sunstone-server.conf to
>> /var/tmp or any other directory different from /tmp.
>>
>> Cheers.
>>
>
> I have changed it by /var/lib/one (oneadmin home directory) but sunstone
> does not upload the new image and no image temp is generated at
> /var/lib/one directory. It's strange because all sunstone features are
> working fine only image uploading is failing, here are our log files:
>
>
> *sunstone.log
> --------------------------------------
> Server configuration
> --------------------------------------
> {:tmpdir=>"/var/lib/one",
> :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 17:20:12 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 17:20:55 2013 [I]: 193.144.44.178 - - [25/Feb/2013 17:20:55]
> "GET / HTTP/1.1" 200 2050 0.0038
> Mon Feb 25 17:20:57 2013 [I]: 193.144.44.178 - - [25/Feb/2013 17:20:57]
> "POST /login HTTP/1.1" 204 - 0.0769
> Mon Feb 25 17:20:57 2013 [I]: 193.144.44.178 - - [25/Feb/2013 17:20:57]
> "GET / HTTP/1.1" 200 5487 0.0086
> Mon Feb 25 17:20:59 2013 [I]: 193.144.44.178 - - [25/Feb/2013 17:20:59]
> "GET /user?timeout=false HTTP/1.1" 200 25131 0.0404
> Mon Feb 25 17:20:59 2013 [I]: 193.144.44.178 - - [25/Feb/2013 17:20:59]
> "GET /config HTTP/1.1" 200 144 0.0011
> Mon Feb 25 17:20:59 2013 [I]: 193.144.44.178 - - [25/Feb/2013 17:20:59]
> "GET /acl?timeout=false HTTP/1.1" 200 3012 0.0406
> Mon Feb 25 17:20:59 2013 [I]: 193.144.44.178 - - [25/Feb/2013 17:20:59]
> "GET /group?timeout=false HTTP/1.1" 200 4028 0.0449
> Mon Feb 25 17:20:59 2013 [I]: 193.144.44.178 - - [25/Feb/2013 17:20:59]
> "GET /vm?timeout=false HTTP/1.1" 200 201729 0.1395
> Mon Feb 25 17:20:59 2013 [I]: 193.144.44.178 - - [25/Feb/2013 17:20:59]
> "GET /vmtemplate?timeout=false HTTP/1.1" 200 170052 0.1092
> Mon Feb 25 17:20:59 2013 [I]: 193.144.44.178 - - [25/Feb/2013 17:20:59]
> "GET /host?timeout=false HTTP/1.1" 200 25179 0.0423
> Mon Feb 25 17:20:59 2013 [I]: 193.144.44.178 - - [25/Feb/2013 17:20:59]
> "GET /cluster?timeout=false HTTP/1.1" 200 1262 0.0280
> Mon Feb 25 17:20:59 2013 [I]: 193.144.44.178 - - [25/Feb/2013 17:20:59]
> "GET /datastore?timeout=false HTTP/1.1" 200 3587 0.0113
> Mon Feb 25 17:20:59 2013 [I]: 193.144.44.178 - - [25/Feb/2013 17:20:59]
> "GET /vnet?timeout=false HTTP/1.1" 200 10653 0.0271
> Mon Feb 25 17:20:59 2013 [I]: 193.144.44.178 - - [25/Feb/2013 17:20:59]
> "GET /image?timeout=false HTTP/1.1" 200 76267 0.0850
> Mon Feb 25 17:21:00 2013 [I]: 193.144.44.178 - - [25/Feb/2013 17:21:00]
> "GET /marketplace?timeout=false HTTP/1.1" 200 31671 0.7861
> Mon Feb 25 17:21:53 2013 [I]: 193.144.44.178 - - [25/Feb/2013 17:21:53]
> "GET /image?timeout=false HTTP/1.1" 200 76267 0.0400
> Mon Feb 25 17:21:57 2013 [I]: 193.144.44.178 - - [25/Feb/2013 17:21:57]
> "GET /image?timeout=false HTTP/1.1" 200 76267 0.0540
> Mon Feb 25 17:22:01 2013 [I]: 193.144.44.178 - - [25/Feb/2013 17:22:01]
> "GET /image?timeout=false HTTP/1.1" 200 76267 0.0535
> Mon Feb 25 17:22:01 2013 [I]: 193.144.44.178 - - [25/Feb/2013 17:22:01]
> "GET /datastore?timeout=true HTTP/1.1" 200 3587 0.0058
> Mon Feb 25 17:22:01 2013 [I]: 193.144.44.178 - - [25/Feb/2013 17:22:01]
> "GET /acl?timeout=true HTTP/1.1" 200 3012 0.0067
> Mon Feb 25 17:22:04 2013 [I]: 193.144.44.178 - - [25/Feb/2013 17:22:04]
> "GET /image?timeout=false HTTP/1.1" 200 76267 0.1691
> Mon Feb 25 17:22:04 2013 [I]: 193.144.44.178 - - [25/Feb/2013 17:22:04]
> "GET /user?timeout=true HTTP/1.1" 200 25131 0.0320
> Mon Feb 25 17:22:05 2013 [I]: 193.144.44.178 - - [25/Feb/2013 17:22:05]
> "GET /host?timeout=true HTTP/1.1" 200 25177 0.0192
> Mon Feb 25 17:22:07 2013 [I]: 193.144.44.178 - - [25/Feb/2013 17:22:07]
> "GET /cluster?timeout=true HTTP/1.1" 200 1262 0.0059
>
> *sunstone.error
> localhost - - [25/Feb/2013:17:21:41 CET] "POST
> /upload?img=%7B%22image%22%3A%7B%22NAME%22%3A%22test+deleteme%22%2C%22TYPE%22%3A%22CDROM%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 123725
> https://cloud.cesga.es/ ->
> /upload?img=%7B%22image%22%3A%7B%22NAME%22%3A%22test+deleteme%22%2C%22TYPE%22%3A%22CDROM%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:17:21:53 CET] "GET /image?timeout=false
> HTTP/1.1" 200 76267
> https://cloud.cesga.es/ -> /image?timeout=false
> localhost - - [25/Feb/2013:17:21:57 CET] "GET /image?timeout=false
> HTTP/1.1" 200 76267
> https://cloud.cesga.es/ -> /image?timeout=false
> localhost - - [25/Feb/2013:17:22:01 CET] "GET /image?timeout=false
> HTTP/1.1" 200 76267
> https://cloud.cesga.es/ -> /image?timeout=false
> localhost - - [25/Feb/2013:17:22:01 CET] "GET /datastore?timeout=true
> HTTP/1.1" 200 3587
> https://cloud.cesga.es/ -> /datastore?timeout=true
> localhost - - [25/Feb/2013:17:22:01 CET] "GET /acl?timeout=true
> HTTP/1.1" 200 3012
> https://cloud.cesga.es/ -> /acl?timeout=true
> localhost - - [25/Feb/2013:17:22:04 CET] "GET /image?timeout=false
> HTTP/1.1" 200 76267
> https://cloud.cesga.es/ -> /image?timeout=false
> localhost - - [25/Feb/2013:17:22:04 CET] "GET /user?timeout=true
> HTTP/1.1" 200 25131
> https://cloud.cesga.es/ -> /user?timeout=true
> localhost - - [25/Feb/2013:17:22:05 CET] "GET /host?timeout=true
> HTTP/1.1" 200 25177
> https://cloud.cesga.es/ -> /host?timeout=true
> localhost - - [25/Feb/2013:17:22:07 CET] "GET /cluster?timeout=true
> HTTP/1.1" 200 1262
> https://cloud.cesga.es/ -> /cluster?timeout=true
> localhost - - [25/Feb/2013:17:22:14 CET] "GET /vmtemplate?timeout=true
> HTTP/1.1" 200 170052
> https://cloud.cesga.es/ -> /vmtemplate?timeout=true
> localhost - - [25/Feb/2013:17:22:16 CET] "GET /vnet?timeout=true
> HTTP/1.1" 200 10653
> https://cloud.cesga.es/ -> /vnet?timeout=true
> localhost - - [25/Feb/2013:17:22:18 CET] "GET /group?timeout=true
> HTTP/1.1" 200 4028
> https://cloud.cesga.es/ -> /group?timeout=true
> localhost - - [25/Feb/2013:17:22:21 CET] "GET /vm?timeout=true HTTP/1.1"
> 200 201729
> https://cloud.cesga.es/ -> /vm?timeout=true
> localhost - - [25/Feb/2013:17:22:26 CET] "GET /image?timeout=true
> HTTP/1.1" 200 76267
> https://cloud.cesga.es/ -> /image?timeout=true
> localhost - - [25/Feb/2013:17:23:03 CET] "GET /datastore?timeout=true
> HTTP/1.1" 200 3587
> https://cloud.cesga.es/ -> /datastore?timeout=true
> localhost - - [25/Feb/2013:17:23:05 CET] "GET /acl?timeout=true
> HTTP/1.1" 200 3012
> https://cloud.cesga.es/ -> /acl?timeout=true
> localhost - - [25/Feb/2013:17:23:11 CET] "GET /user?timeout=true
> HTTP/1.1" 200 25131
> https://cloud.cesga.es/ -> /user?timeout=true
> localhost - - [25/Feb/2013:17:23:11 CET] "GET /host?timeout=true
> HTTP/1.1" 200 25177
> https://cloud.cesga.es/ -> /host?timeout=true
> localhost - - [25/Feb/2013:17:23:15 CET] "GET /cluster?timeout=true
> HTTP/1.1" 200 1262
> https://cloud.cesga.es/ -> /cluster?timeout=true
> localhost - - [25/Feb/2013:17:23:30 CET] "GET /vmtemplate?timeout=true
> HTTP/1.1" 200 170052
> https://cloud.cesga.es/ -> /vmtemplate?timeout=true
> localhost - - [25/Feb/2013:17:23:33 CET] "GET /vnet?timeout=true
> HTTP/1.1" 200 10653
> https://cloud.cesga.es/ -> /vnet?timeout=true
> localhost - - [25/Feb/2013:17:23:37 CET] "GET /group?timeout=true
> HTTP/1.1" 200 4028
> https://cloud.cesga.es/ -> /group?timeout=true
> localhost - - [25/Feb/2013:17:23:45 CET] "GET /vm?timeout=true HTTP/1.1"
> 200 201729
> https://cloud.cesga.es/ -> /vm?timeout=true
> localhost - - [25/Feb/2013:17:23:54 CET] "GET /image?timeout=true
> HTTP/1.1" 200 76267
> https://cloud.cesga.es/ -> /image?timeout=true
> localhost - - [25/Feb/2013:17:24:05 CET] "GET /datastore?timeout=true
> HTTP/1.1" 200 3587
> https://cloud.cesga.es/ -> /datastore?timeout=true
> localhost - - [25/Feb/2013:17:24:08 CET] "GET /acl?timeout=true
> HTTP/1.1" 200 3012
> https://cloud.cesga.es/ -> /acl?timeout=true
> localhost - - [25/Feb/2013:17:24:17 CET] "GET /user?timeout=true
> HTTP/1.1" 200 25131
> https://cloud.cesga.es/ -> /user?timeout=true
>
> *ssl_access.log
> 193.144.44.178 - - [25/Feb/2013:17:26:55 +0100] "POST
> /upload?img=%7B%22image%22%3A%7B%22NAME%22%3A%22test+deleteme%22%2C%22TYPE%22%3A%22CDROM%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 123725 "https://cloud.cesga.es/" "Mozilla/5.0 (X11;
> Ubuntu; Linux x86_64; rv:19.0) Gecko/20100101 Firefox/19.0"
> 193.144.44.178 - - [25/Feb/2013:17:27:07 +0100] "GET
> /image?timeout=false HTTP/1.1" 200 76267 "https://cloud.cesga.es/"
> "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:19.0) Gecko/20100101
> Firefox/19.0"
> 193.144.44.178 - - [25/Feb/2013:17:27:12 +0100] "GET
> /datastore?timeout=true HTTP/1.1" 200 3587 "https://cloud.cesga.es/"
> "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:19.0) Gecko/20100101
> Firefox/19.0"
> 193.144.44.178 - - [25/Feb/2013:17:27:18 +0100] "GET
> /vmtemplate?timeout=true HTTP/1.1" 200 170052 "https://cloud.cesga.es/"
> "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:19.0) Gecko/20100101
> Firefox/19.0"
> 193.144.44.178 - - [25/Feb/2013:17:27:19 +0100] "GET /acl?timeout=true
> HTTP/1.1" 200 3012 "https://cloud.cesga.es/" "Mozilla/5.0 (X11; Ubuntu;
> Linux x86_64; rv:19.0) Gecko/20100101 Firefox/19.0"
> 193.144.44.178 - - [25/Feb/2013:17:27:23 +0100] "GET /vnet?timeout=true
> HTTP/1.1" 200 10653 "https://cloud.cesga.es/" "Mozilla/5.0 (X11; Ubuntu;
> Linux x86_64; rv:19.0) Gecko/20100101 Firefox/19.0"
> 193.144.44.178 - - [25/Feb/2013:17:27:36 +0100] "GET /group?timeout=true
> HTTP/1.1" 200 4028 "https://cloud.cesga.es/" "Mozilla/5.0 (X11; Ubuntu;
> Linux x86_64; rv:19.0) Gecko/20100101 Firefox/19.0"
> 193.144.44.178 - - [25/Feb/2013:17:27:36 +0100] "GET /user?timeout=true
> HTTP/1.1" 200 25131 "https://cloud.cesga.es/" "Mozilla/5.0 (X11; Ubuntu;
> Linux x86_64; rv:19.0) Gecko/20100101 Firefox/19.0"
> 193.144.44.178 - - [25/Feb/2013:17:27:36 +0100] "GET /host?timeout=true
> HTTP/1.1" 200 25177 "https://cloud.cesga.es/" "Mozilla/5.0 (X11; Ubuntu;
> Linux x86_64; rv:19.0) Gecko/20100101 Firefox/19.0"
>
> Cheers and thanks
> Alvaro
> _______________________________________________
> Users mailing list
> Users at lists.opennebula.org
> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
--
Hector Sanjuan
@hecsanjuan
More information about the Users
mailing list