Thursday 8 August 2013

Openstack install

So I'm trying to install Openstack on a few virtual machines at home.

Trying to use/ learn and experiment with Openstack to see how it compares, if it does with some of the other options out there.
So I'm using Ubuntu LTS 12.04 and got the network configured and just spent too much time trying to install the basic starting config, the Chef install.

I kept getting errors

++ DISTRIB_RELEASE=12.04
++ DISTRIB_CODENAME=precise
++ DISTRIB_DESCRIPTION='Ubuntu 12.04.2 LTS'
+ OS_TYPE=ubuntu
+ OS_VER=12.04
++ uname -p
+ '[' x86_64 '!=' x86_64 ']'
+ CHEF_SERVER_VERSION=11.0.4-1
+ [[ ubuntu = \u\b\u\n\t\u ]]
+ apt-get update -y --force-yes
E: Could not open lock file /var/lib/apt/lists/lock - open (13: Permission denied)
E: Unable to lock directory /var/lib/apt/lists/
E: Could not open lock file /var/lib/dpkg/lock - open (13: Permission denied)

E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?

Didn't matter if I tried sudo, su or just paste the command.

Well I learnt something new, the Root account is locked on a default. Well maybe locked is too strong a word. The help pages state;
 Enabling the Root account is rarely necessary. Almost everything you need to do as administrator of an Ubuntu system can be done via sudo or gksudo. If you really need a persistent Root login, the best alternative is to simulate a Root login shell using the following command...


and the command to enable it is
sudo -i
I get in as the Root user and the install goes ahead OK

root@ubuntu:~# curl -s -L https://raw.github.com/rcbops/support-tools/master/chef-install/install-chef-server.sh | bash
+ export DEBIAN_FRONTEND=noninteractive
+ DEBIAN_FRONTEND=noninteractive
+ '[' -e /etc/lsb-release ']'
+ source /etc/lsb-release
++ DISTRIB_ID=Ubuntu
++ DISTRIB_RELEASE=12.04
++ DISTRIB_CODENAME=precise
++ DISTRIB_DESCRIPTION='Ubuntu 12.04.2 LTS'
+ OS_TYPE=ubuntu
+ OS_VER=12.04
++ uname -p
+ '[' x86_64 '!=' x86_64 ']'
+ CHEF_SERVER_VERSION=11.0.4-1
+ [[ ubuntu = \u\b\u\n\t\u ]]
+ apt-get update -y --force-yes
Get:1 http://security.ubuntu.com precise-security Release.gpg [198 B]
Hit http://us.archive.ubuntu.com precise Release.
......

Hope this helps someone.


No comments: