Month: April 2013

something need to care when you use devstack

I have a ubuntu 12.10 64 bits, i can easily install devstack, but there are some points still need to care about the devstack

1. Devstack installation script is to git clone the latest version from the openstack source repository, if the repository’s code contain bug, your openstack will fail. If you use devstack in production, make sure you git clone the same version of the source.

2. Devstack doesn’t have a restart script, that mean you can’t start openstack after reboot the server, but luckily somebody created a restart script, but that script doesn’t work in the current version of openstack. Here is my script, please execute it with these command:

./restart_stack.sh
cd /opt/stack/cinder/bin
./cinder-all
cd /opt/stack/nova/bin
./nova-all

The original script doesn’t work because it forgot/fail the start cinder and nova, so we just need to start it manually.

3. Devstack will not install novnc for you, for please manually install novnc before you run devstack

apt-get install novnc -y

read count : 1805

steps to reinstall devstack

steps to reinstall devstack

1) Remove all the openstack;s databases from mysql, glance, keystone, nova, etc…
2) Delete the install directory of devstack, default is /opt/stack
3) Remove your old devstack git clone directory, because we want to check out the latest code
4) You *don’t* need to delete /usr/local/lib/python2.7/distpackages/openstack* , but if you did it, please run “pip install django_openstack_auth”
5) Delete user “stack” in linux.

After those steps, you are ready to git clone the devstack again and run the ./stack.sh to reinstall it

read count : 3856

let’s beat vSphere using openstack

Let’s beat vSphere using openstack, first step is to learn everything from it

o VMware vSphere 5 Evaluation Guide – Volume1 VMware-vSphere-Evaluation-Guide-1
o VMware vSphere 5 Evaluation Guide – Volume 2 – Advance Storage Features VMware-vSphere-Evaluation-Guide-2-Advanced-Storage
o VMware vSphere 5 Evaluation Guide – Volume 3 – Advance Networking Features VMware-vSphere-Evaluation-Guide-3-Advanced-Networking
o VMware vSphere 5 Evaluation Guide – Volume 4 – Auto Deploy VMware-vSphere-Evaluation-Guide-4-Auto-Deploy

read count : 293

openstack – restart error : Max retries exceeded with url

If you install openstack by devstack, when you reboot your server and restart the openstack by this script http://www.scalegrid.net/blog/?p=52, when you browse to the dashboard and you will see this error message “HTTPConnectionPool(host=’192.168.100.170′, port=8776): Max retries exceeded with url: /v1/b721f5b1f7cd43dd83ee573f6d4e6c74/os-quota-sets/b721f5b1f7cd43dd83ee573f6d4e6c74 (Caused by <class ‘socket.error’>: [Errno 111] Connection refused)

You should check with your endpoints server by command : keystone endpoint-list
openstack_screen_1

You will see the url “/v1/b721f5b1f7cd43dd83ee573f6d4e6 in the error message is from the port 8776, and port 8776 is cinder service, so all you need to do is start cinder manually by

cd /opt/stack/cinder/bin
./cinder-api

After that, your dashboard will be fine

read count : 7976