[one-users] accessing the marketplace behind a proxy

Daniel Molina dmolina at opennebula.org
Thu Aug 1 05:03:05 PDT 2013


Try adding this line to your ''/etc/sudoers'' after the last ''Defaults
env_keep ..." line:
Defaults env_keep += "http_proxy"

and restart sunstone:
sudo service opennebula-sunstone restart

Cheers


On 1 August 2013 11:54, Raffaele P. Guidi <raffaele.p.guidi at gmail.com>wrote:

> Here they are:
>
> --------------------------------------
>          Server configuration
> --------------------------------------
> {:debug_level=>3,
>  :port=>9869,
>  :one_xmlrpc=>"http://localhost:2633/RPC2",
>  :memcache_namespace=>"opennebula.sunstone",
>  :sessions=>"memory",
>  :lang=>"en_US",
>  :auth=>"sunstone",
>  :vnc_proxy_cert=>nil,
>  :memcache_host=>"localhost",
>  :marketplace_url=>"http://marketplace.c12g.com/appliance",
>  :tmpdir=>"/var/tmp",
>  :oneflow_server=>"http://localhost:2474/",
>  :core_auth=>"cipher",
>  :memcache_port=>11211,
>  :routes=>["oneflow"],
>  :vnc_proxy_port=>29876,
>  :vnc_proxy_key=>nil,
>  :vnc_proxy_support_wss=>false,
>  :host=>"0.0.0.0"}
> --------------------------------------
>
>
>
>
> On Thu, Aug 1, 2013 at 10:30 AM, Daniel Molina <dmolina at opennebula.org>wrote:
>
>>
>>
>>
>> On 31 July 2013 19:29, Raffaele P. Guidi <raffaele.p.guidi at gmail.com>wrote:
>>
>>> I export http underscore proxy in .bashrc of both oneadmin and root users
>>>
>> Could you send us the 20 first lines of /var/log/one/sunstone.log
>>
>>
>>> Il giorno 31/lug/2013 12:39, "Daniel Molina" <dmolina at opennebula.org>
>>> ha scritto:
>>>
>>>
>>>>
>>>>
>>>> On 31 July 2013 01:44, Raffaele P. Guidi <raffaele.p.guidi at gmail.com>wrote:
>>>>
>>>>> I understood (correct me if I'm wrong) that the UI is not using
>>>>> CloudClient.rb (used by the CLI - which works fine) to handle the
>>>>> marketplace. Still can't figure out where to look at but, in the meanwhile,
>>>>> I upgraded to 4.2 - same error but my quest begins from there. I'll keep
>>>>> you posted.
>>>>>
>>>>
>>>> You are right, CloudClient.rb is not used, instead sunstone-server uses
>>>> marketplace_client.rb, but it also supports http_proxy . Maybe the
>>>> http_proxy variable is not defined for the user(root) that is starting
>>>> sunstone-server?
>>>>
>>>> Cheers
>>>>
>>>>
>>>>
>>>>>
>>>>> Ciao,
>>>>>     R
>>>>>
>>>>>
>>>>> On Mon, Jul 29, 2013 at 7:47 PM, Raffaele P. Guidi <
>>>>> raffaele.p.guidi at gmail.com> wrote:
>>>>>
>>>>>> No way, same error. Can I look something up in the logs?
>>>>>> Il giorno 29/lug/2013 17:48, "Daniel Molina" <dmolina at opennebula.org>
>>>>>> ha scritto:
>>>>>>
>>>>>>  Could you try modifying that value to
>>>>>>> http://marketplace.c12g.com/appliance<https://marketplace.c12g.com/appliance>
>>>>>>>
>>>>>>>
>>>>>>> http instead of https.
>>>>>>>
>>>>>>> And restart sunstone after that.
>>>>>>>
>>>>>>> Hope this helps
>>>>>>>
>>>>>>>
>>>>>>> On 29 July 2013 17:25, Raffaele P. Guidi <raffaele.p.guidi at gmail.com
>>>>>>> > wrote:
>>>>>>>
>>>>>>>> It is  https://marketplace.c12g.com/appliance. I'm using this
>>>>>>>> sandbox http://opennebula.org/cloud:sandboxesx, in any case, I
>>>>>>>> didn't do any change to the configuration. And, as I said, via the CLI it
>>>>>>>> works fine - I'm sure it is a proxy related issue.
>>>>>>>>
>>>>>>>> Ciao,
>>>>>>>>     R
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> On Mon, Jul 29, 2013 at 5:18 PM, Daniel Molina <
>>>>>>>> dmolina at opennebula.org> wrote:
>>>>>>>>
>>>>>>>>> Hi,
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> On 29 July 2013 15:42, Raffaele P. Guidi <
>>>>>>>>> raffaele.p.guidi at gmail.com> wrote:
>>>>>>>>>
>>>>>>>>>> Hi, I'm running the vmware sandbox and it works fine except for
>>>>>>>>>> the marketplace integration - being stuck behind a corporate proxy whenever
>>>>>>>>>> I open the marketplace tab in the sunstone UI I obtain an error message
>>>>>>>>>> saying "Cannot connect with OpenNebula Marketplace".
>>>>>>>>>>
>>>>>>>>>> I've seen this (closed) ticket
>>>>>>>>>> http://dev.opennebula.org/issues/1433 and set the http_proxy
>>>>>>>>>> variable accordingly, but it seems not to be enough - still the same error.
>>>>>>>>>> I also tried to modify CloudClient.rb writing my proxy address into it but
>>>>>>>>>> no luck.
>>>>>>>>>>
>>>>>>>>>> I'm using the 4.0 sandbox. Any help would be appreciated, thanks.
>>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> What is the value of the ''marketplace_url'' in
>>>>>>>>> sunstone-server.conf?
>>>>>>>>>
>>>>>>>>> Cheers
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>> Ciao,
>>>>>>>>>>     R
>>>>>>>>>>
>>>>>>>>>> _______________________________________________
>>>>>>>>>> Users mailing list
>>>>>>>>>> Users at lists.opennebula.org
>>>>>>>>>> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> --
>>>>>>>>> Join us at OpenNebulaConf2013 <http://opennebulaconf.com/> in
>>>>>>>>> Berlin, 24-26 September, 2013
>>>>>>>>> --
>>>>>>>>> Daniel Molina
>>>>>>>>> Project Engineer
>>>>>>>>> OpenNebula - The Open Source Solution for Data Center
>>>>>>>>> Virtualization
>>>>>>>>> www.OpenNebula.org | dmolina at opennebula.org | @OpenNebula
>>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> --
>>>>>>> Join us at OpenNebulaConf2013 <http://opennebulaconf.com/> in
>>>>>>> Berlin, 24-26 September, 2013
>>>>>>> --
>>>>>>> Daniel Molina
>>>>>>> Project Engineer
>>>>>>> OpenNebula - The Open Source Solution for Data Center Virtualization
>>>>>>> www.OpenNebula.org | dmolina at opennebula.org | @OpenNebula
>>>>>>>
>>>>>>
>>>>>
>>>>
>>>>
>>>> --
>>>> Join us at OpenNebulaConf2013 <http://opennebulaconf.com/> in Berlin,
>>>> 24-26 September, 2013
>>>> --
>>>> Daniel Molina
>>>> Project Engineer
>>>> OpenNebula - The Open Source Solution for Data Center Virtualization
>>>> www.OpenNebula.org | dmolina at opennebula.org | @OpenNebula
>>>>
>>>
>>
>>
>> --
>> Join us at OpenNebulaConf2013 <http://opennebulaconf.com/> in Berlin,
>> 24-26 September, 2013
>> --
>> Daniel Molina
>> Project Engineer
>> OpenNebula - The Open Source Solution for Data Center Virtualization
>> www.OpenNebula.org | dmolina at opennebula.org | @OpenNebula
>>
>
>


-- 
Join us at OpenNebulaConf2013 <http://opennebulaconf.com/> in Berlin, 24-26
September, 2013
--
Daniel Molina
Project Engineer
OpenNebula - The Open Source Solution for Data Center Virtualization
www.OpenNebula.org | dmolina at opennebula.org | @OpenNebula
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opennebula.org/pipermail/users-opennebula.org/attachments/20130801/7b4feeba/attachment-0002.htm>


More information about the Users mailing list