1、安装devstack pike版本
关闭防火墙
systemctl stop firewalld.service
systemctl disable firewalld.service
关闭selinux
vi /etc/selinux/config
SELINUX=disabled
reboot
使用豆瓣pip源
mkdir -p ~/.pip
vi ~/.pip/pip.conf
[global]
index-url = http://pypi.douban.com/simple/
[install]
trusted-host = pypi.douban.com
安装必要的工具包
yum install -y Python-pip
pip install --upgrade pip
pip install -U os-testr
yum -y install bridge-utils
yum -y install net-tools
yum install -y git yum-utils
更新:
yum update
添加一个openstack用户
sudo useradd -s /bin/bash -d /opt/stack -m stack
echo "stack ALL=(ALL) NOPASSWD: ALL" | sudo tee /etc/sudoers.d/stack
sudo su - stack
下载pike版本的代码
git clone https://git.openstack.org/openstack-dev/devst