Rapid deployment of the Devstack:openstack development environment

Source: Internet
Author: User
Tags git clone

Devstack is a set of scripts that can quickly deploy an OpenStack development environment. It automatically executes all of the service's installation scripts, automatically generates the configuration files, automatically installs the dependent packages, and in the process, OpenStack's source code is automatically clone to local. This deployment was done under Ubuntu 15.04.

1. Get the source code

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


If you encounter network problems in the clone source, it is best to use the configured brokered nodes for acceleration:

$ Export http_proxy= Node IP: node port

$ Export https_proxy= Node IP: node port

Otherwise, you will encounter problems when downloading get-pip.py later and installing dependent libraries from PyPI.


Clone to the local Devstack source directory, stack.sh is the main execution script, if there is no pre-configured local.conf, will be in the process of the execution of multiple requests to set the password, such as the Admin user password, database password, rabbitmq password and so on. The local.conf configuration file is not required, and the following is an example of the smallest configuration file:

[[LOCAL|LOCALRC]]
Admin_password=secrete
database_password= $ADMIN _password
rabbit_password= $ADMIN _password
service_ password= $ADMIN _password
#FIXED_RANGE =172.31.1.0/24
#FLOATING_RANGE =192.168.20.0/25
#HOST_IP = 10.3.4.5
You can also view the following links:

Http://docs.openstack.org/developer/devstack/configuration.html#minimal-configuration


2. Implementation

$./stack.sh


Summary of issues:

1. During execution, stop at

OpenStack token issue-c id-f value--os-username Admin--os-project-name admin--os-user-domain-id default--os-project- Domain-id default--os-identity-api-version 3--os-auth-url http://10.0.2.15:35357--os-password xxxxxxxx

Long time no response.

Open a new terminal and add the-VVV parameter after OpenStack to output the details of the execution. See the execution is parked in the

Req:curl-g-i-x GET Http://10.0.2.15:35357-H "Accept:application/json"-H "user-agent:python-openstackclient Keyston eauth1/2.3.0 python-requests/2.9.1 cpython/2.7.10 "

This step, that is, the request http://10.0.2.15:35357 this URL. Then manually request the URL, see the output information in the "has issued a proxy request, is waiting for a response ..." information, you can determine that the proxy set above causes the request intranet URL failed, so the terminal executes the following command to resolve the problem:

Export no_proxy=10.0.2.15



Revision history:

Summary of the 2016.3.3 increase

2016.3.1 Initial Release


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.