服务器版安装DevStack教程
分类:电脑系统

赶尽杀绝办法如下:

ubuntu14.04 桌面版/服务器版安装DevStack教程,ubuntu16.04devstack

威尼斯手机娱乐官网 1

官网安装教程链接: 

本人在ubuntu14.04 LTS 桌面版/服务器版都设置DevStack成功后,在此间记录下安装进程。

介绍下安装景况:

  VMware Workstation Pro 12

  ubuntu14.04 LTS 系统

设置前企图:

  1、系统更改ubuntu源 

deb http://mirrors.yun-idc.com/ubuntu/ trusty main restricted universe multiverse 
deb http://mirrors.yun-idc.com/ubuntu/ trusty-security main restricted universe multiverse 
deb http://mirrors.yun-idc.com/ubuntu/ trusty-updates main restricted universe multiverse 
deb http://mirrors.yun-idc.com/ubuntu/ trusty-proposed main restricted universe multiverse 
deb http://mirrors.yun-idc.com/ubuntu/ trusty-backports main restricted universe multiverse 
deb-src http://mirrors.yun-idc.com/ubuntu/ trusty main restricted universe multiverse 
deb-src http://mirrors.yun-idc.com/ubuntu/ trusty-security main restricted universe multiverse 
deb-src http://mirrors.yun-idc.com/ubuntu/ trusty-updates main restricted universe multiverse 
deb-src http://mirrors.yun-idc.com/ubuntu/ trusty-proposed main restricted universe multiverse 
deb-src http://mirrors.yun-idc.com/ubuntu/ trusty-backports main restricted universe multiverse

 

  2、ubuntu手动配置三个IP,便于在ubuntu系统重启后,DevStack能够利用。

  3、ubuntu配置一张能够访问外网的网卡就可以。

  4、由于设置情况时会涉及到pip工具,需求把pip源的地址映射到国内:

[global]
timeout = 6000
index-url = http://pypi.douban.com/simple/
[install]
trusted-host = pypi.douban.com

安装步骤

配置pip源

[email protected]:/# mkdir /root/.pip
[email protected]:/# vi /root/.pip/pip.conf


[global]
timeout = 6000
index-url = http://pypi.douban.com/simple/
[install]
trusted-host = pypi.douban.com

下载DevStack

安装git工具并下载DevStack

[email protected]:/# sudo apt-get install git
[email protected]:/# cd /home
[email protected]:/# git clone http://git.trystack.cn/openstack-dev/devstack.git -b stable/mitaka

创建stack用户

在非root客户下创设stack

[email protected]:~$ cd /home/devstack/tools/
[email protected]:~$ sudo ./create-stack-user.sh

为stack客商授权

在root用户下

[email protected]:/# vi /etc/sudoers

#找到如下一行:
root ALL=(ALL:ALL) ALL
#添加stack授权:
stack ALL=(ALL:ALL) ALL

[email protected]:/# chown -R stack:stack /home/devstack
[email protected]:/# chown -R stack:stack /opt/stack

创建local.conf文件

步向/home/devstack目录下,新建并编辑local.conf文件

[email protected]:/# cd /home/devstack
[email protected]:/home/devstack# vi local.conf

在local.conf文件中加多如下内容(配置IP依照自家条件修改):

[[local|localrc]]  
# use TryStack git mirror  
GIT_BASE=http://git.trystack.cn  
NOVNC_REPO=http://git.trystack.cn/kanaka/noVNC.git  
SPICE_REPO=http://git.trystack.cn/git/spice/spice-html5.git  

# CredentialsDATABASE_PASSWORD=pass  
DATABASE_PASSWORD=pass  
ADMIN_PASSWORD=pass  
SERVICE_PASSWORD=pass  
SERVICE_TOKEN=pass  
RABBIT_PASSWORD=pass  

HOST_IP=192.168.28.138  
SERVICE_HOST=192.168.28.138  
MYSQL_HOST=192.168.28.138 
RABBIT_HOST=192.168.28.138  
GLANCE_HOSTPORT=192.168.28.138:9292  

disable_service n-net  
enable_service q-svc  
enable_service q-agt  
enable_service q-dhcp  
enable_service q-l3  
enable_service q-meta  
enable_service q-metering  
enable_service neutron  

# only support IP v4   
SERVICE_IP_VERSION=4  
## Neutron optionsQ_USE_SECGROUP=True  
FLOATING_RANGE="192.168.28.0/24"  
FIXED_RANGE="10.0.1.0/24"  
NETWORK_GATEWAY="10.0.1.254"  
Q_FLOATING_ALLOCATION_POOL=start=192.168.28.230,end=192.168.28.250  
PUBLIC_NETWORK_GATEWAY="192.168.28.2"  
Q_L3_ENABLED=True  
PUBLIC_INTERFACE=eth0  
Q_USE_PROVIDERNET_FOR_PUBLIC=True  
OVS_PHYSICAL_BRIDGE=br-ex  
PUBLIC_BRIDGE=br-ex  
OVS_BRIDGE_MAPPINGS=public:br-ex  

# VLAN configuration.Q_PLUGIN=ml2  
ENABLE_TENANT_VLANS=True

以stack客商运转脚本安装DevStack:

[email protected]:/home/devstack# su stack
[email protected]:/home/devstack# ./stack.sh

通过如上配置,就可以成功安装。

设置进度中会有相关报错。

错误:

威尼斯手机娱乐官网 2

消除措施如下:

运作指令:

python
import openstack
import pbr.version
print(pbr.version.VersionInfo('openstacksdk').version_string())
quit()

./unstack.sh
./clean.sh
./stack.sh

如图所示:

威尼斯手机娱乐官网 3

在/usr/local/lib/python2.7/dist-packages/openstack/session.py 第29行中期维修改“openstacksdk/%s” 为 “openstacksdk/0.8.1”后,重新安装。

 

 

 

威尼斯手机娱乐官网 ,    

 

 

 

 

桌面版/服务器版安装DevStack教程,ubuntu16.04devstack 官方网址安装教程链接: 我在ubuntu14.04 LTS 桌面版...

设置进度中会有连锁报错。

威尼斯手机娱乐官网 4

进入/home/devstack目录下,新建并编写local.conf文件

  4、由于设置情况时会涉及到pip工具,必要把pip源的地址映射到国内:

通过如上布署,就能够成功安装。

错误:

在非root顾客下创办stack

root@ubuntu:/# sudo apt-get install git
root@ubuntu:/# cd /home
root@ubuntu:/# git clone http://git.trystack.cn/openstack-dev/devstack.git -b stable/mitaka

介绍下安装情形:

在local.conf文件中加多如下内容(配置IP根据本身条件修改):

root@ubuntu:/home/devstack# su stack
root@ubuntu:/home/devstack# ./stack.sh

 

 

  ubuntu14.04 LTS 系统

deb http://mirrors.yun-idc.com/ubuntu/ trusty main restricted universe multiverse 
deb http://mirrors.yun-idc.com/ubuntu/ trusty-security main restricted universe multiverse 
deb http://mirrors.yun-idc.com/ubuntu/ trusty-updates main restricted universe multiverse 
deb http://mirrors.yun-idc.com/ubuntu/ trusty-proposed main restricted universe multiverse 
deb http://mirrors.yun-idc.com/ubuntu/ trusty-backports main restricted universe multiverse 
deb-src http://mirrors.yun-idc.com/ubuntu/ trusty main restricted universe multiverse 
deb-src http://mirrors.yun-idc.com/ubuntu/ trusty-security main restricted universe multiverse 
deb-src http://mirrors.yun-idc.com/ubuntu/ trusty-updates main restricted universe multiverse 
deb-src http://mirrors.yun-idc.com/ubuntu/ trusty-proposed main restricted universe multiverse 
deb-src http://mirrors.yun-idc.com/ubuntu/ trusty-backports main restricted universe multiverse

作者在ubuntu14.04 LTS 桌面版/服务器版都安装DevStack成功后,在此地记录下安装进度。

  2、ubuntu手动配置多个IP,便于在ubuntu系统重启后,DevStack可以利用。

[[local|localrc]]  
# use TryStack git mirror  
GIT_BASE=http://git.trystack.cn  
NOVNC_REPO=http://git.trystack.cn/kanaka/noVNC.git  
SPICE_REPO=http://git.trystack.cn/git/spice/spice-html5.git  

# CredentialsDATABASE_PASSWORD=pass  
DATABASE_PASSWORD=pass  
ADMIN_PASSWORD=pass  
SERVICE_PASSWORD=pass  
SERVICE_TOKEN=pass  
RABBIT_PASSWORD=pass  

HOST_IP=192.168.28.138  
SERVICE_HOST=192.168.28.138  
MYSQL_HOST=192.168.28.138 
RABBIT_HOST=192.168.28.138  
GLANCE_HOSTPORT=192.168.28.138:9292  

disable_service n-net  
enable_service q-svc  
enable_service q-agt  
enable_service q-dhcp  
enable_service q-l3  
enable_service q-meta  
enable_service q-metering  
enable_service neutron  

# only support IP v4   
SERVICE_IP_VERSION=4  
## Neutron optionsQ_USE_SECGROUP=True  
FLOATING_RANGE="192.168.28.0/24"  
FIXED_RANGE="10.0.1.0/24"  
NETWORK_GATEWAY="10.0.1.254"  
Q_FLOATING_ALLOCATION_POOL=start=192.168.28.230,end=192.168.28.250  
PUBLIC_NETWORK_GATEWAY="192.168.28.2"  
Q_L3_ENABLED=True  
PUBLIC_INTERFACE=eth0  
Q_USE_PROVIDERNET_FOR_PUBLIC=True  
OVS_PHYSICAL_BRIDGE=br-ex  
PUBLIC_BRIDGE=br-ex  
OVS_BRIDGE_MAPPINGS=public:br-ex  

# VLAN configuration.Q_PLUGIN=ml2  
ENABLE_TENANT_VLANS=True

设置步骤

如图所示:

[global]
timeout = 6000
index-url = http://pypi.douban.com/simple/
[install]
trusted-host = pypi.douban.com

威尼斯手机娱乐官网 5

威尼斯手机娱乐官网 6

官方网址安装教程链接: 

root@ubuntu:/# mkdir /root/.pip
root@ubuntu:/# vi /root/.pip/pip.conf


[global]
timeout = 6000
index-url = http://pypi.douban.com/simple/
[install]
trusted-host = pypi.douban.com

本文由威尼斯手机娱乐官网发布于电脑系统,转载请注明出处:服务器版安装DevStack教程

上一篇:没有了 下一篇:没有了
猜你喜欢
热门排行
精彩图文