标签:云计算 openstack devstack 一键部署 测试
这段时间由于测试需要搭建openstack环境,搜遍谷歌百度进行不下30次尝试...看了陈沙克等前辈的安装教程,很多配置信息都已经过期了。不过大致的步骤基本不变,由于最近devstack在github更新频繁,可能很多功能被添加更新,源软件链接可能需要更改。下面给出这段时间安装的步骤(附最新源),希望对有需要进行一键部署openstack测试环境的朋友有帮助。
测试版本:Ubuntu 12.04.5 LTS
系统内核:Linux r10f17332.sqa.zmf 3.2.0-60-generic #91-Ubuntu SMP x86_64 x86_64
cd /etc/apt cp sources.list etc-apt-source.list vim sources.list
把源样本保存在etc-apt-source.list后清空sources.list并添加163源
deb http://mirrors.163.com/ubuntu/ precise main restricted
deb-src http://mirrors.163.com/ubuntu/ precise main restricted
deb http://mirrors.163.com/ubuntu/ precise-updates main restricted
deb-src http://mirrors.163.com/ubuntu/ precise-updates main restricted
deb http://mirrors.163.com/ubuntu/ precise universe
deb-src http://mirrors.163.com/ubuntu/ precise universe
deb http://mirrors.163.com/ubuntu/ precise-updates universe
deb-src http://mirrors.163.com/ubuntu/ precise-updates universe
deb http://mirrors.163.com/ubuntu/ precise multiverse
deb-src http://mirrors.163.com/ubuntu/ precise multiverse
deb http://mirrors.163.com/ubuntu/ precise-updates multiverse
deb-src http://mirrors.163.com/ubuntu/ precise-updates multiverse
deb http://mirrors.163.com/ubuntu/ precise-backports main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ precise-backports main restricted universe multiverse
deb http://mirrors.163.com/ubuntu/ precise-security main restricted
deb-src http://mirrors.163.com/ubuntu/ precise-security main restricted
deb http://mirrors.163.com/ubuntu/ precise-security universe
deb-src http://mirrors.163.com/ubuntu/ precise-security universe
deb http://mirrors.163.com/ubuntu/ precise-security multiverse
deb-src http://mirrors.163.com/ubuntu/ precise-security multiverse
deb http://extras.ubuntu.com/ubuntu precise main
deb-src http://extras.ubuntu.com/ubuntu precise main
如果遇到如下报错:
W: GPG error: http://extras.ubuntu.com precise Release: The following signatures couldn‘t be verified because the public key is not available: NO_PUBKEY
16126D3A3E5C1192
运行以下命令解决:
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 16126D3A3E5C1192
sudo apt-get update sudo apt-get upgrade
apt-get install git
mkdir ~/.pip cd ~/.pip touch pip.cnf vim pip.cnf在文件里面写入并保存
cd /home/xxx git clone https://github.com/openstack-dev/devstack.git
只能使用非root用户(这里我以xxx为例)运行该脚本
cd /home/xxx/devstack ./stack.sh过程需要配置5个密码,按照提示输入就可以了。
安装过程请保持良好的网络状态,整个过程大概需要20分钟,安装完毕后会一下提示
This is your host IP address:x.x.x.x
Hroizon is now available at https://x.x.x.x/
Keystone is serving at http://x.x.x.x:5000/
The default users are:admin and demo
The password:<之前你输入的密码>
至此,整个安装 过程就结束了。
访问host IP,显示页面如下
使用管理员账号进行登录进入主界面
过程中可能会进行的一些操作
安装pip:http://pip-cn.readthedocs.org/en/latest/installing.html#get-pip
升级python:http://blog.csdn.net/hanshileiai/article/details/43835413
重装mysql:http://blog.sina.com.cn/s/blog_73000beb01012eh4.html
如有任何疑惑或问题,欢迎留言讨论!
版权声明:本文为博主原创文章,未经博主允许不得转载。
网上最新的devstack安装教程【一键部署openstack测试环境】
标签:云计算 openstack devstack 一键部署 测试
原文地址:http://blog.csdn.net/u010794180/article/details/46987771