CentOS6.5 上的Icehouse 版本devstack 一键安装

来源:互联网 发布:编程需要学的软件 编辑:程序博客网 时间:2024/04/28 02:52

步骤:

1. root 用户

git clone https://github.com/openstack-dev/devstack.git

2. 创建stack 用户

cd devstack;   ./tools/create-stack-user.sh

3. 开始安装

su - stack

git clone https://github.com/openstack-dev/devstack.git

cd devstack

./stack.sh


总结下安装过程中碰到的坑,

1. 由于网络质量问题,某些包无法自动下载安装,使用手工到pypi 下载包,然后python setup.py install 方式安装,或者pip 重新在线安装

2. mysql 的密码问题

   mysql 默认root 没有密码,安装过程 mysqladmin -u root password  "openstack"   报错, Access denied for user 'root'@'localhost' 

   使用以下两种方法之一修改

   方法一, 重新初始化root 密码

   进入mysql数据库 ,输入mysql –u root 进入mysql。

   mysql>update user set password=PASSWORD(‘123456’) where User='root';

   方法二,安全模式修改密码

   

# /etc/init.d/mysql stop# mysqld_safe --user=mysql --skip-grant-tables --skip-networking &# mysql -u root mysqlmysql> UPDATE user SET Password=PASSWORD('123456') where USER='root';mysql> FLUSH PRIVILEGES;mysql> quit# /etc/init.d/mysql restart# mysql -uroot -pEnter password: <输入新设的密码newpassword>mysql> 

3.  磁盘空间问题,剩余空间太小,glance 创建cirros 镜像时报无法连接服务


最后终于大功告成 ^_^

Horizon is now available at http://192.168.47.65/
Keystone is serving at http://192.168.47.65:5000/v2.0/
Examples on using novaclient command line is in exercise.sh
The default users are: admin and demo
The password: openstack
This is your host ip: 192.168.47.65
2014-07-21 18:56:23.583 | stack.sh completed in 1661 seconds.

0 0
原创粉丝点击