rcbops / opencenter

http://www.rackspace.com/cloud/private/openstack_software/
Other
9 stars 12 forks source link

[US246]: Proxy support #499

Open devx opened 11 years ago

devx commented 11 years ago

Deploying behind a proxy environment does not work. I was able to install chef-server but failed to download cookbooks. Here are the two issues:

  1. Chef server install fails even if the shell environments are set Fix for this is to add the following line to the file /etc/apt/apt.conf.d/00aptitude Aptitude::Get-Root-Command "sudo:/usr/bin/sudo"; Acquire::http::proxy "http://:3128/"; Acquire::https::proxy "https://:3128/"; Alternatively is to have the install scripts load the proxy configuration
  2. Failure to download cookbooks This is happening because of knife does not have the proxy parameters configured.
claco commented 11 years ago

Referencing: https://github.com/rcbops/opencenter-agent/commit/3059e771dd6a3ded6f3170ab82bc37f44d052cf1

What OS is this? Can you attach your current sudoers and sshd config? I suspect that #1 is caused by keep_env in sudoers not keeping http/https/no_proxy ENV variables.

2 as you've pointed out, is probably from missing settings in knife.rb.

Can you confirm/attach your client.rb, which should have the proxy related settings already set.

-=Chris

devx commented 11 years ago

Sorry for the delay I thought I had included that information initially.

System Profile: OS Release information ubuntu - 12.04

kernal information Linux chef 3.5.0-23-generic #35~precise1-Ubuntu SMP Fri Jan 25 17:13:26 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux

Hostname including FQDN chef.lab.example.com

1 Here is the part that sets the keep_env as you mention

Defaults env_keep="http_proxy" Defaults env_reset

2 client.rb

unfortunately because it rolls back i'm not able to keep the client.rb

claco commented 11 years ago

This should be fixed with the following commits:

https://github.com/rcbops/opencenter-install-scripts/commit/000a15d19a9fd20696bb2c55330697b2f3f94962 https://github.com/rcbops/opencenter-agent/commit/0604dec445906f94212ae1e04ad357ccca56f75b https://github.com/rcbops/opencenter-agent/commit/e2647de4a88cc8d21e54f23ea7ae83d4fbf87020

The installation docs are also being updated to including information about installation behind a proxy.