1. 程式人生 > >CentOS6.5 上的Icehouse 版本devstack 一鍵安裝

CentOS6.5 上的Icehouse 版本devstack 一鍵安裝

步驟:

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 mysql
mysql> UPDATE user SET Password=PASSWORD('123456') where USER='root';
mysql> FLUSH PRIVILEGES;
mysql> quit

# /etc/init.d/mysql restart
# mysql -uroot -p
Enter 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.