2020-02-03 Virtalbox Devstack安装

q版本

一、本地代理

本地开启http/https代理,ip为127.0.0.1,端口为55315,需要添加端口转发规则,具体如下,其中192.168.1.7 为本地ip。

  • 添加端口转发
    netsh interface portproxy add v4tov4 listenport=55315 listenaddress=192.168.1.7 connectport=55315 connectaddress=127.0.0.1
  • 删除端口转发
    netsh interface portproxy del v4tov4 listenport=55315 listenaddress=192.168.1.7
  • 查看端口转发
    netsh interface portproxy show v4tov4

二、Virtalbox VM网络配置

  • 网卡一:host only
  • 网卡二:nat 网络

二、linux代理配置

  • 具体配置
    export http_proxy="192.168.1.7:55315"
    export https_proxy="192.168.1.7:55315"
    export no_proxy="127.0.0.1,localhost,192.168.56.101"
  • 配置文件
    root和后续stack用户的.bashrc

git config --global http.proxy http://127.0.0.1:55315
git config --global https.proxy https://127.0.0.1:55315

四、devstack install

yum install -y git sudo vim

1.下载devstack

mkdir -p /opt/stack/ && cd /opt/stack
apt-get install git
git clone https://github.com/openstack/devstack.git -b stable/queens

2.创建stack用户

cd devstack/tools/
修改stackrc
HOST_IP=${HOST_IP:-192.168.56.20}
./create-stack-user.sh

3.修改目录权限

chown -R stack:stack /opt/stack

4.配置local.conf

cp samples/local.conf ./
tempest可以考虑disable掉:
disable_service tempest

5.相关修改

tools/outfilter.py增加可执行权限
lib/apache修改
pip download uwsgi -c (ls uWSGI*)
mkdir uwsgi
tar xvf $uwsgi -C uwsgi

6.执行安装脚本

su stack
./stack.sh

7.手动下载项目

git clone -c http.proxy=https://172.29.6.10:55315 https://git.openstack.org/openstack/keystone.git /opt/stack/keystone --branch stable/queens

五、adduser

# Get admin creds
. openrc admin admin

# List existing projects
openstack project list

# List existing users
openstack user list

# Add a user and project
NAME=bob
PASSWORD=BigSecret
PROJECT=$NAME
openstack project create $PROJECT
openstack user create $NAME --password=$PASSWORD --project $PROJECT
openstack role add Member --user $NAME --project $PROJECT
openstack role assignment list

你可能感兴趣的:(2020-02-03 Virtalbox Devstack安装)