I am using ubuntu 14.04, my juju environment is MaaS, however seems like my MaaS server doesn't have direct internet connection, for example:

If I do apt-get update it shows connection.

But if I do juju deploy mysql, he asks me if I'm connected to the internet, this happens after bootstrap.

This is my ~/.bashrc file and the end:

enter image description here

In my /etc/environment file:

enter image description here

~/.juju/environments.yaml file:

enter image description here

Some other commands I did:

juju set-env http-proxy=http://172.16.1.160

juju set-env http-proxy=http://172.16.1.160:80

juju set-env http-proxy=http://172.16.1.160:8080

None seemed to work.

enter image description here

The error from juju debug-log --replay:

enter image description here

Some other stuff, I don't know if it's important:

enter image description here

enter image description here

This is from the MaaS server VM:

enter image description here

How do I solve this? Thanks in advance!

share|improve this question
up vote 2 down vote accepted

The warning is unfortunate. Looks like anything you set for the first time will yield that loud WARNING. Checkout this example:

andreas@nsn7:~$ juju unset-env http-proxy
andreas@nsn7:~$
andreas@nsn7:~$ juju unset-env http-proxy
WARNING key "http-proxy" is not defined in the current environment configuration: possible misspelling
andreas@nsn7:~$
andreas@nsn7:~$ juju set-env http-proxy=http://squid.internal:3128/
WARNING key "http-proxy" is not defined in the current environment configuration: possible misspelling
andreas@nsn7:~$
andreas@nsn7:~$ juju get-env http-proxy
http://squid.internal:3128/
andreas@nsn7:~$ 

You have to set the proxy variables before deploying a service. Can you double check that you did that? Even better, set them in the environments.yaml file directly and then bootstrap.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.