在UnitedStack公有云上DevStack快速部署Openstack

使用 devstack 脚本很简单,安装 git,然后下载 devstack 代码到本地,运行 stack.sh 脚本依次设定 MySQL, RabbitMQ, OpenStack Dashboard 和Keystone 的密码,密码输入后 stack.sh 脚本会自动开始安装必要的软件包和库并下载最新的 OpenStack 及其组件代码,整个过程自动完成无需干预

 

$ sudo apt-get update

$ sudo apt-get install git

$ git clonegit://github.com/openstack-dev/devstack.git

$ cd devstack/

 

 

创建localrc文件,内容如下:

FLOATING_RANGE=192.168.100.224/27

FIXED_RANGE=10.10.10.0/24

FIXED_NETWORK_SIZE=256

ADMIN_PASSWORD=root

MYSQL_PASSWORD=root

PULIC_INTERFACE=eth0

FLAT_INTERFACE=eth1

RABBIT_PASSWORD=root

SERVICE_TOKEN=root

SERVICE_PASSWORD=root

HOST_IP=192.168.0.4     #设置为你虚拟机第1块网卡的固定IP地址

NOVNCPROXY_URL="http://42.62.73.241:6080/vnc_auto.html"  #42.62.73.241是你虚拟机的公网IP地址

 

 

执行安装脚本

$ ./stack.sh

出现以下内容显示创建完毕,可以登录Horizon

Horizon is now available athttp://192.168.0.2/

Keystone is serving athttp://192.168.0.2:5000/v2.0/

Examples on using novaclient command lineis in exercise.sh

The default users are: admin and demo

The password: root

This is your host ip: 192.168.0.2

2014-11-24 07:44:17.564 | stack.shcompleted in 2181 seconds.

 

默认安装目录在/opt/stack下:

stack@ustack:~$ pwd

/opt/stack

stack@ustack:~$ ls

cinder data  glance  heat heat-cfntools  heat-templates  horizon keystone  nova  noVNC requirements  status  tempest

 

查看Openstack安装版本:

root@ustack:/opt/stack/keystone# git branch

* master

root@ustack:/opt/stack/keystone# git remote-v

origin        git://git.openstack.org/openstack/keystone.git(fetch)

origin        git://git.openstack.org/openstack/keystone.git(push)

root@ustack:/opt/stack/keystone# git branch--all

* master

 remotes/origin/HEAD -> origin/master

 remotes/origin/feature/hierarchical-multitenancy

 remotes/origin/feature/key-dist

 remotes/origin/master

 remotes/origin/stable/icehouse

 remotes/origin/stable/juno


你可能感兴趣的:(devstack,UnitedStack,部署Openstack)