Recently started to install Devstack, encountered some problems, recorded, the main failure is to download various sources of network problems, choose the right source is very important.
About Virtual Machine Network, the use of bridging, so host and virtual function interoperability, but also to ensure that virtual function access to the external network
About the hardware configuration, more than 4G of memory, or the Nova service starts, will report memory allocation failure error
Steps:
1, first install git
sudo apt-get install git
2. Get Devstack Source Code (Liberty version)
git clone https://git.openstack.org/openstack-dev/devstack-b Stable/liberty
3. Make some changes after getting finished
Update Ubuntu source for domestic source
Reload source, file path:/etc/apt/sources.list
Change content for domestic sources, foreign sources due to limited use often will fail to provide a source of Ali
Deb Http://mirrors.aliyun.com/ubuntu/trusty main Multiverse restricted universe
Deb http://mirrors.aliyun.com/ Ubuntu/trusty-security main Multiverse restricted universe
Deb Http://mirrors.aliyun.com/ubuntu/trusty-updates Main Multiverse restricted Universe
deb http://mirrors.aliyuncom/ubuntu/trusty-proposed universe restricted Multiverse main
Deb Http://mirrors.aliyun.com/ubuntu/trusty-backports main Multiverse restricted universe
DEB-SRC http://mirrors.aliyun.com/ubuntu/trusty main Multiverse restricted Universe
DEB-SRC/http Mirrors.aliyun.com/ubuntu/trusty-security main Multiverse restricted universe
deb-src http://mirrors.aliyun.com /ubuntu/trusty-updates main Multiverse restricted universe
deb-src http://mirrors.aliyuncom/ubuntu/ Trusty-proposed Universe restricted Multiverse main
deb-src Http://mirrors.aliyun.com/ubuntu/trusty-backports Main Multiverse Restricted universe
Write the above content to sources.list and then perform the following command update (insurance practice to back up the original sources.list, the following command is to clear the installed and then update)
sudo rm-fr/var/lib/apt/lists/*
sudo apt-get clean && sudo apt-get update && sudo apt-get upgrade
Change the source path of a get-pip.sh
Change the variable path of the devstack/tools/install_pip.sh Pip_get_pip_url to https://coding.net/u/xiaoquqi/p/pip/git/raw/master/ contrib/get-pip.py
Add LOCALRC file under Devstack (new version named local.conf, detailed usage reference Official document) compare important files (change host_ip to own IP)
Dest=/opt/stack
# screen_logdir= $DEST/logs/screen
host_ip=200.21.101.203 # controller IP
multi_host= True
# logfile= $DEST/logs/stack.sh.log
service_token=0210
admin_password=0210
mysql_password= 0210
rabbit_password=0210
service_password=0210
#LDAP_PASSWORD =0210
lock_path=/tmp
# to Get a clean install everytime
reclone=no
# To enable neutron
enable_service n-net
disable_service Q-svc
disable_service q-agt
disable_service q-dhcp
disable_service q-l3 disable_service
Q-meta
disable_service Quantum
# Enable the Ceilometer services
Disable_service Ceilometer-acompute, Ceilometer-acentral,ceilometer-collector,ceilometer-api
# Enable Heat
disable_service Heat h-api H-eng
Replace PIP source
OpenStack is a python project a lot depends on the PIP install of course to change the PIP source
Execute the following command to
mkdir ~/.pip
cat << EOF > ~/.pip/pip.conf
[global]
Index-url = http://mirrors.aliyun.com/pypi/ simple/
trusted-host = mirrors.aliyun.com
EOF
The installation user must be a non-root user with sudo privileges (new user named stack)
AddUser Stack
Add sudo permissions to a stack
Add the following line to the/etc/sudoers
4, all ready to install
CD Devstack &&./stack.sh
5, the installation is completed will come out information, and then login Danshborad can play
Problems encountered:
Oslo.config Module Import Issues
**keystone-manage pki_setup--keystone-user Keystone--keystone-group keystone**
Traceback (most recent call last):
file "/usr/bin/keystone-manage", line A, in <module> from
Keystone Import CLI
File "/usr/lib/ python2.7/site-packages/keystone/cli.py ", line a <module> from
oslo.config import cfg
importerror: No module named Oslo.config
Just install the Oslo.config module, please.
sudo apt-get install Python-oslo.config