On Aug 10, 2011, at 12:15 PM, michel.gauthier(a)bull.net wrote:
Hi Michel,
Hello,
We have installed Aeolus 0.3.0 on a fedora14 x86_64 platform.
We want to create a provider account for ec2 using Conductor web interface (our ec2
account already exists on ec2 portal).
Unfortunately, we receive the following error message :
NameError - uninitialized constant Deltacloud::BackendError:
././lib/deltacloud/drivers/ec2/ec2_driver.rb:654:in `valid_credentials?'
././server.rb:71:in `GET /api/?'
We need a proxy to go to the internet network from our platform and we think that this
error is due to the fact that the Conductor component has no knowledge of the proxy.
How can we configure the Conductor component to take the proxy value into account?
First of all the support for HTTP proxy is not yet pushed into http_connection gem
we're using for HTTPS communication with Amazon EC2 API.
So in order to get it work, you need to install 'manualy' my fork[1] of this gem
which
has support for 'http_proxy' environment variable. To do that you need:
$ wget
http://mifo.sk/tmp/http_connection-1.4.1.gem
$ gem uninstall http_connection
$ gem install http_connection-1.4.1.gem --local
After that you need to export the 'https_proxy' variable. The best place to do
that
will be probably the Deltacloud API init.d script (/etc/init.d/deltacloud-core) where you
need to put:
export https_proxy="YOUR_PROXY_ADDRESS:PORT"
After that, restart deltacloud-core service and you should be able to access EC2 API
through
proxy.
I tested the 'http_connection' gem using Squid proxy server with HTTPS and it
works well.
If you run into any problems with this please contact me directly or use the
deltacloud-dev(a)incubator.apache.org
mailing list.
Cheers,
Michal
------------------------------------------------------
Michal Fojtik, mfojtik(a)redhat.com
Deltacloud API:
http://deltacloud.org