1)
#cd /home/saju
#mkdir openstack
#cd openstack
#git clone https://github.com/openstack-dev/devstack.git -b stable/havana
* Here /home/saju/openstack/devstack/stackrc is already set to use stable/havana branch for all the Openstack services
2)
#cd /home/saju/openstack/devstack
#vim localrc
###./stack will ask you for the password if the "localrc" file with above variables are not defined.
###If you already install mysql and set root password, please give that passwor for DATABASE_PASSWORD.
DATABASE_PASSWORD=openstack
RABBIT_PASSWORD=openstack
SERVICE_TOKEN=openstack
SERVICE_PASSWORD=openstack
ADMIN_PASSWORD=openstack
###Offline:don't reclone from github.
###After devstack installation, you can uncomment following 2 lines and ./unstack and ./stack
#OFFLINE=True
#RECLONE=no
###Interface of VM/System, where you can see the ip.
###You can change it based on your requirement to "lo", "eth0", etc-- and run ./unstack and ./stack.
###Set PUBLIC_INTERFACE=lo to get "127.0.0.1" to all openstack services.
PUBLIC_INTERFACE=eth0
3)
#cd /home/saju/openstack/devstack
#./stack
4)
Fix for the issue: You don't have permission to access / on this server.
Edit horizon.conf
#sudo vim /etc/apache2/sites-available/horizon.conf
Please add the line "Require all granted" as per below:
Directory />
Options FollowSymLinks
AllowOverride None
Require all granted
Directory>
5)
#sudo service apache2 restart
6)
Goto http://127.0.0.1
#cd /home/saju
#mkdir openstack
#cd openstack
#git clone https://github.com/openstack-dev/devstack.git -b stable/havana
* Here /home/saju/openstack/devstack/stackrc is already set to use stable/havana branch for all the Openstack services
2)
#cd /home/saju/openstack/devstack
#vim localrc
###./stack will ask you for the password if the "localrc" file with above variables are not defined.
###If you already install mysql and set root password, please give that passwor for DATABASE_PASSWORD.
DATABASE_PASSWORD=openstack
RABBIT_PASSWORD=openstack
SERVICE_TOKEN=openstack
SERVICE_PASSWORD=openstack
ADMIN_PASSWORD=openstack
###Offline:don't reclone from github.
###After devstack installation, you can uncomment following 2 lines and ./unstack and ./stack
#OFFLINE=True
#RECLONE=no
###Interface of VM/System, where you can see the ip.
###You can change it based on your requirement to "lo", "eth0", etc-- and run ./unstack and ./stack.
###Set PUBLIC_INTERFACE=lo to get "127.0.0.1" to all openstack services.
PUBLIC_INTERFACE=eth0
3)
#cd /home/saju/openstack/devstack
#./stack
4)
Fix for the issue: You don't have permission to access / on this server.
Edit horizon.conf
#sudo vim /etc/apache2/sites-available/horizon.conf
Please add the line "Require all granted" as per below:
Directory />
Options FollowSymLinks
AllowOverride None
Require all granted
Directory>
5)
#sudo service apache2 restart
6)
Goto http://127.0.0.1
Hello,
ReplyDeletewhen i run ./stack.sh it come to a point where the VM reboots but then gets stuck there... Have you ever encountered this problem and do you know a workaround? thanks
This comment has been removed by the author.
ReplyDeleteHi,
ReplyDeleteAfter running ./stack.sh, After some time I am getting logged out and when check /opt/stack there is only 1 folder created "data". So what is wrong?
Thanking,
Kashyap
same here also......please share if u have got the solution...
DeleteHi,
ReplyDeleteDuring the stack.sh install, I get these package dependencies that I can't fix via purge/upgrade or downgrade. Can I see your sources.list file?
The following packages have unmet dependencies:
libpq-dev : Depends: libssl-dev but it is not going to be installed
Depends: libkrb5-dev but it is not going to be installed
Depends: comerr-dev but it is not going to be installed
libsasl2-dev : Depends: libsasl2-modules (= 2.1.25.dfsg1-6ubuntu0.1) but it is not going to be installed
Depends: libc6-dev but it is not going to be installed
libxml2-dev : Depends: libxml2 (= 2.9.0+dfsg1-4ubuntu4.3) but 2.9.1+dfsg1-3ubuntu2 is to be installed
libxslt1-dev : Depends: libxslt1.1 (= 1.1.27-1ubuntu2) but 1.1.28-2 is to be installed
python-dev : Depends: python (= 2.7.4-0ubuntu1) but 2.7.5-5ubuntu1 is to be installed
Depends: libpython-dev (= 2.7.4-0ubuntu1) but it is not going to be installed
Depends: python2.7-dev (>= 2.7.4-1~) but it is not going to be installed
python-setuptools : Depends: python-pkg-resources (= 0.6.34-0ubuntu1) but 0.6.37-1ubuntu1 is to be installed
sqlite3 : Depends: libsqlite3-0 (= 3.7.15.2-1ubuntu1) but 3.7.17-1ubuntu1 is to be installed
E: Unable to correct problems, you have held broken packages.
+++ failed
+++ local r=100
i get this error, how to fix this ?
ReplyDelete++ local sudo=sudo
+++ id -u
++ [[ 1001 = \0 ]]
++ sudo DEBIAN_FRONTEND=noninteractive http_proxy= https_proxy= no_proxy= apt-get --option Dpkg::Options::=--force-confold --assume-yes install bridge-utils pylint python-setuptools screen unzip wget psmisc git lsof openssh-server openssl vim-nox locate python-virtualenv python-unittest2 iputils-ping wget curl tcpdump euca2ools tar gcc libxml2-dev python-dev python-eventlet python-routes python-greenlet python-sqlalchemy python-wsgiref python-pastedeploy python-xattr python-iso8601 python-dev python-lxml python-pastescript python-pastedeploy python-paste sqlite3 python-pysqlite2 python-sqlalchemy python-mysqldb python-webob python-greenlet python-routes libldap2-dev libsasl2-dev python-dateutil msgpack-python dnsmasq-base dnsmasq-utils kpartx parted iputils-arping python-mysqldb python-xattr python-lxml gawk iptables ebtables sqlite3 sudo libjs-jquery-tablesorter vlan curl genisoimage socat python-mox python-paste python-migrate python-gflags python-greenlet python-libxml2 python-routes python-numpy python-pastedeploy python-eventlet python-cheetah python-carrot python-tempita python-sqlalchemy python-suds python-lockfile python-m2crypto python-boto python-kombu python-feedparser python-iso8601 nbd-client lvm2 open-iscsi genisoimage sysfsutils sg3-utils tgt lvm2 qemu-utils libpq-dev python-dev open-iscsi python-numpy python-beautifulsoup python-dateutil python-paste python-pastedeploy python-anyjson python-routes python-xattr python-sqlalchemy python-webob python-kombu pylint python-eventlet python-nose python-sphinx python-mox python-kombu python-coverage python-cherrypy3 python-migrate nodejs libxslt1-dev
sudo: >>> /etc/sudoers.d/50_stack_sh: syntax error near line 1 <<<
sudo: >>> /etc/sudoers.d/50_stack_sh: syntax error near line 2 <<<
sudo: parse error in /etc/sudoers.d/50_stack_sh near line 1
sudo: no valid sudoers sources found, quitting
sudo: unable to initialize policy plugin
+++ failed
+++ local r=1
++++ jobs -p
+++ kill
+++ set +o xtrace
Hi Saju,
ReplyDeleteVery good instructions. I got it to work and thank you again.
Joe
Hi,
ReplyDeleteI have followed the instructions ,
Downloadad stable-havana from git . Installed it . I changed the OFFLINE to True , RECLONE = False . created an instance All worked fine.
Unable to log in into the virtual image created on openstack ( cirros ) from another system using ssh .
When I tried restarting the openstack server ( using ./stack.sh with the modified options) . It recreates the whole stack. Lost the earlier config.
Please advice.
Regards
Lakshmi
I stopped the services using the
Hi Mr.Saju,
ReplyDeleteI have setup Havana using Vagrant, chef on 5 nodes (1 Chef server + 1 Controller + 2 Compute +1 Cinder) and installation was successful. After shutdown of vagrant and when I am starting the VMs again, I am unable to login to horizon using admin credentials which is correct.
Kindly advise me how can I restart all openstack services.
Thanks and Regards
Guru
Hi Mr.Saju,
DeleteIssue resolved after graceful shutdown and startup of all nodes including chef server.
Thanks,
Guru
after run ./stack.sh installing files......then finally i got stack.sh failed error
ReplyDeletethe last error is
ReplyDeletecurl: (23) Failed writing body (0 != 7640)
++ err_trap
++ local r=1
++ set +o xtrace
stack.sh failed
Hi,
ReplyDeleteAfter running ./stack.sh, After some time I am getting logged out and when check /opt/stack there is only 1 folder created "data". So what is problem?
Thanks
rajesh
seeing out of space error .. i still see lots of space available any idea ?
ReplyDeleteopenssl is already the newest version.
python-libxml2 is already the newest version.
python-lxml is already the newest version.
qemu-utils is already the newest version.
openssh-server is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Setting up initramfs-tools (0.103ubuntu4.2) ...
update-initramfs: deferring update (trigger activated)
Processing triggers for initramfs-tools (0.103ubuntu4.2) ...
update-initramfs: Generating /boot/initrd.img-3.13.0-36-generic
gzip: stdout: No space left on device
E: mkinitramfs failure cpio 141 gzip 1
update-initramfs: failed for /boot/initrd.img-3.13.0-36-generic with 1.
dpkg: error processing package initramfs-tools (--configure):
subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
initramfs-tools
E: Sub-process /usr/bin/dpkg returned an error code (1)
+++ failed
+++ local r=100
++++ jobs -p
+++ kill
+++ set +o xtrace
stack@ubuntu-124:~/openstack/devstack$ df -h
df: ‘/run/user/106/gvfs’: Permission denied
Filesystem Size Used Avail Use% Mounted on
/dev/sda6 456G 5.4G 428G 2% /
none 4.0K 0 4.0K 0% /sys/fs/cgroup
udev 48G 4.0K 48G 1% /dev
tmpfs 9.5G 1.8M 9.5G 1% /run
none 5.0M 0 5.0M 0% /run/lock
none 48G 144K 48G 1% /run/shm
none 100M 36K 100M 1% /run/user
/dev/sda1 59M 43M 13M 78% /boot
overflow 100M 74M 27M 74% /tmp
overflow 100M 74M 27M 74% /tmp