Single Installer problems

Vatkov, Bogdan bogdan.vatkov at sap.com
Mon Jun 8 09:06:48 UTC 2015


Hi Ronald,

I mentioned it couple of times a bit indirectly but let me be more explicit – I am running behind a proxy. This is something that all of the articles and blogs about “how to install OpenStack with Ubuntu OpenStack-installer” are missing big time. I’ve never seen one that succeeded with the installer behind a proxy.
I know couple of ways to propagate proxy setting around, yet I have no idea how this can be done for the containers that the installer is creating. I was hoping for some templates controlling that but could not find such so far.
The proxy setting which I am passing to the installer seem to apply only for certain processes but not for add-apt-repository for example.

If I attach to the container, right after the installer failed and try to run the command via sudo it fails:

ubuntu at openstack-single-ubuntu:~$ sudo add-apt-repository ppa:cloud-installer/experimental
Cannot add PPA: 'ppa:cloud-installer/experimental'.
Please check that the PPA name or format is correct.

If I run it as root it succeeds:
root at openstack-single-ubuntu:~# add-apt-repository ppa:cloud-installer/experimental
Experimental packages for bleeding edge, untested, awesomeness

These packages are for the git master branch:

https://github.com/Ubuntu-Solutions-Engineering/openstack-installer
More info: https://launchpad.net/~cloud-installer/+archive/ubuntu/experimental
Press [ENTER] to continue or ctrl-c to cancel adding it

gpg: keyring `/tmp/tmp6npa_8fk/secring.gpg' created
gpg: keyring `/tmp/tmp6npa_8fk/pubring.gpg' created
gpg: requesting key D2FF09ED from hkp server keyserver.ubuntu.com
gpg: /tmp/tmp6npa_8fk/trustdb.gpg: trustdb created
gpg: key D2FF09ED: public key "Launchpad PPA for Ubuntu Cloud Installer" imported
gpg: Total number processed: 1
gpg:               imported: 1  (RSA: 1)
OK

This is also well explained here http://askubuntu.com/questions/452595/cannot-add-ppa-behind-proxy-ubuntu-14-04

But the problem now is that I do not know the code of the installer that well so that I could modify it in a way so that it runs the add-apt-repository command with the proper environment settings.

I would appreciate if someone could give a hint how this could be done.

Thanks in advance!

Best regards,
Bogdan

From: ronald.bradford at gmail.com [mailto:ronald.bradford at gmail.com] On Behalf Of Ronald Bradford
Sent: Saturday, June 06, 2015 22:15
To: Vatkov, Bogdan
Cc: ubuntu-openstack-installer
Subject: Re: Single Installer problems

For me the following works.

$ sudo openstack-install --extra-ppa ppa:cloud-installer/experimental

Can you try that without the additional arguments you have.


I received an error running:

$ sudo openstack-install --extra-ppa ppa:cloud-installer/experimental --openstack-release kilo -r trusty -a amd64

I ran without -r trusty, got an error.

I ran without -a amd64, got an error.

I ran without -r trusty and -a amd64, got an error.

I removed --openstack-release kilo and it worked.  This seems the issue. kilo is the default release.

This works.

$ sudo openstack-install --extra-ppa ppa:cloud-installer/experimental -r trusty -a amd64


Ronald

Ronald Bradford

Web Site: http://ronaldbradford.com<http://ronaldbradford.com/>
LinkedIn:  http://www.linkedin.com/in/ronaldbradford
Twitter:    @RonaldBradford<http://twitter.com/ronaldbradford>
Skype:     RonaldBradford
GTalk:     Ronald.Bradford
IRC:         rbradfor

On Sat, Jun 6, 2015 at 1:53 PM, Ronald Bradford <me at ronaldbradford.com<mailto:me at ronaldbradford.com>> wrote:
I went threw this process this week without any issues.

Here are the steps I used -- http://ronaldbradford.com/blog/deploying-ubuntu-openstack-kilo-2015-06-06/

Ronald

Ronald Bradford

Web Site: http://ronaldbradford.com<http://ronaldbradford.com/>
LinkedIn:  http://www.linkedin.com/in/ronaldbradford
Twitter:    @RonaldBradford<http://twitter.com/ronaldbradford>
Skype:     RonaldBradford
GTalk:     Ronald.Bradford
IRC:         rbradfor

On Fri, Jun 5, 2015 at 7:52 PM, Vatkov, Bogdan <bogdan.vatkov at sap.com<mailto:bogdan.vatkov at sap.com>> wrote:
I also see (in the cloud-init.log) that the proxy settings are propagated to the environment and also to the apt config in particular:
…
Jun  5 18:53:02 openstack-single-ubuntu [CLOUDINIT] util.py[DEBUG]: Writing to /etc/apt/apt.conf.d/95cloud-init-proxy - wb: [420] 113 bytes
…
But this conf would only affect the apt but not the add-apt-repository command, which I could so far make run behind proxy by:

1)      Exporting the http_proxy as some user and then

2)      sudo –E add-apt-repository ….
But I have no idea how to make this work in the cloud-init story ….any idea how can I hack this one?


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/ubuntu-openstack-installer/attachments/20150608/3188e199/attachment-0001.html>


More information about the ubuntu-openstack-installer mailing list