Install openstack on devstack

Source: Internet
Author: User
Tags alphanumeric characters rabbitmq

Install openstack on devstack

Devstack is a set of scripts for developers to quickly deploy the Openstack development environment. In fact, there is nothing to say about the entire installation process, because the script is well written, there are no major problems with brainless installation. However, due to the poor network environment in the company, I still encountered many problems during the installation process. Record the problems here.

System Requirements: Ubuntu 12.04 (it is best to have just installed a pure system, because I have tried it on a machine that has installed the Openstack service before, and some inexplicable errors will occur ). The following is the official start:

1. Install git:

1 sudo apt-get install git

This is simple, but it really makes me a lot of effort. I am worried that the initial ubuntu source is not powerful, so I just replaced it with the domestic source after installation, but the domestic source cannot install git. This is still the case if I change the opportunity. (The network connection is normal, but it is not clear why) You can only download the package separately and then install it manually. It is not difficult to install it manually (download to the package, run dpkg-I <package name>). The key is to find the correct version.

2. Obtain the devstack script:

1 git clone https://github.com/openstack-dev/devstack.git

3. Execute:

1 cd devstack && ./stack.sh

You only need to follow the prompts to set several passwords for script execution. I did not read the source code of the script, but summarized the execution process according to the output information of the execution process:

(1) download and install the system software required for running Openstack, including python components, mysql, and rabbitmq-server.

(2) download the openstack components, including nova, keystone, glance, noVNC, and horizon.

(3) download and install the python library and framework on which the openstack source code depends

(4) install openstack Components

(5) Start various services

In particular, the rapid development of OpenStack and its dependent components often shows that this version of keystone does not match that version of dashboard. If you just want to look at OpenStack, using DevStack is a good solution. DevStack is actually a shell script that can be used to quickly build the runtime and development environment of OpenStack. It is especially suitable for OpenStack developers to quickly build a development environment on their own laptops after downloading the latest OpenStack code. As officially stated by DevStack, devstack is not suitable for production environments.

Can I use DevStack for production?
A: No. We mean it. Really. DevStack makes some implementation choices that are not appropriate for production deployments. We warned you!

 

Maintaining a script that supports multiple Linux releases requires a lot of work. To keep it simple, DevStack currently only supports Ubuntu 11.10 releases. It is easy to use the devstack script. Install git, download the devstack code to the local machine, and run the stack. THE sh script sets the passwords of MySQL, RabbitMQ, OpenStack Dashboard, and Keystone in sequence. THE sh script automatically starts to install necessary software packages and libraries and downloads the latest OpenStack and its component code. The entire process is completed automatically without any intervention:

$ sudo apt-get install git$ git clone git://github.com/openstack-dev/devstack.git$ cd devstack/$ ./stack.sh ################################################################################ENTER A PASSWORD TO USE FOR MYSQL.################################################################################This value will be written to your localrc file so you don't have to enter it again.  Use only alphanumeric characters.If you leave this blank, a random default value will be used.Enter a password now:...horizon is now available at http://192.168.2.240/keystone is serving at http://192.168.2.240:5000/v2.0/examples on using novaclient command line is in exercise.shthe default users are: admin and demothe password: vpseeThis is your host ip: 192.168.2.240stack.sh completed in 684 seconds.$

If the default tty. the tgz image is not satisfactory. If you want to use the ubuntu 11.10 image, edit the stack. sh script, add the IMAGE_URLS = http://uec-images.ubuntu.com/oneiric/current/oneiric-server-cloudimg-amd64.tar.gz line above the for image_url in $ {IMAGE_URLS //,/}; do line, and then re-run the stack. sh script:

$ vi stack.sh...    IMAGE_URLS=http://uec-images.ubuntu.com/oneiric/current/oneiric-server-cloudimg-amd64.tar.gz    for image_url in ${IMAGE_URLS//,/ }; do        # Downloads the image (uec ami+aki style), then extracts it.        IMAGE_FNAME=`basename "$image_url"`        if [ ! -f $FILES/$IMAGE_FNAME ]; then            wget -c $image_url -O $FILES/$IMAGE_FNAME        fi        KERNEL=""        RAMDISK=""...$ ./stack.sh 

It is worth noting that if you want to use an existing network, for example, if the address of the server where devstack is installed is 192.168.2.240 and the address of all the instances running on it is 192.168.2.241-192.168.2.247, stack needs to be modified. sh TEST_FLOATING_RANGE, and then re-run the stack. sh script:

$ vi stack.sh...#TEST_FLOATING_RANGE=${TEST_FLOATING_RANGE:-192.168.253.0/29}TEST_FLOATING_RANGE=${TEST_FLOATING_RANGE:-192.168.2.240/29}...$ ./stack.sh

After DevStack is installed, open the browser to access http: // 192.168.2.240/and you will see the OpenStack Dashboard interface. The user name is admin and the password is the password you just set. after entering the correct password, you will enter the Dashboard, the latest OpenStack Dashboard has been greatly improved. You can create or import keypairs, start or stop instances, allocate and inject IP addresses to instances, and create and assign volume instances, you can also add and manage users. The interface is as follows:

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.