OpenStack03-Basic OS Configuration02

Terschelling In The Mist wallpaper

继续实践Installation Guide for Ubuntu 12.04 (LTS) Serverd -> Chapter 2. Basic operating system configuration 中的剩余部分:MySQL, OpenStack packages和Messaging server。

PS: 我用的是Havana。

安装配置MySQL

Follow guide,在Controller安装MySQL Server,在Node安装python-mysqldb。文档里面只写了在Node上安装apt-get install python-mysqldb,但是我是安装的是:

安装Node上的东西很简单,这里总结下Controller上安装MySQL Server做的步骤:

  • apt-get install mysql-server
  • set bind-address to the internal IP address of the controller, to enable access from outside the controller node.
  • You must delete the anonymous users that are created when the database is first started. Otherwise, database connection problems occur when you follow the instructions in this guide.


上面的最后一点,我是直接执行没问题(文档说如果失败,需要先执行mysql_install_db),log如下:

2014-01-13 更新: 记得修改/etc/mysql/my.cnf中的:

否则后面执行keystone db_sync会失败。参见我的Blog:OpenStack05-Identity Service02

OpenStack Packages

这节很简单,在Controller和Node跟着guide执行命令即可,花个几分钟。

PS:文档并没有指明是在Controller还是Node,我就都执行了一遍。

Messaging Server

更简单了,只在Controller上执行一条命令安装RabbitMq-Server就行。

Congratulations, now you are ready to install OpenStack services!

继续实践Installation Guide for Ubuntu 12.04 (LTS) Serverd -> Chapter 2. Basic operating system configuration 中的剩余部分:MySQL, OpenStack packages和Messaging server。

PS: 我用的是Havana。

安装配置MySQL

Follow guide,在Controller安装MySQL Server,在Node安装python-mysqldb。文档里面只写了在Node上安装apt-get install python-mysqldb,但是我是安装的是:

安装Node上的东西很简单,这里总结下Controller上安装MySQL Server做的步骤:

  • apt-get install mysql-server
  • set bind-address to the internal IP address of the controller, to enable access from outside the controller node.
  • You must delete the anonymous users that are created when the database is first started. Otherwise, database connection problems occur when you follow the instructions in this guide.


上面的最后一点,我是直接执行没问题(文档说如果失败,需要先执行mysql_install_db),log如下:

2014-01-13 更新: 记得修改/etc/mysql/my.cnf中的:

否则后面执行keystone db_sync会失败。参见我的Blog:OpenStack05-Identity Service02

OpenStack Packages

这节很简单,在Controller和Node跟着guide执行命令即可,花个几分钟。

PS:文档并没有指明是在Controller还是Node,我就都执行了一遍。

Messaging Server

更简单了,只在Controller上执行一条命令安装RabbitMq-Server就行。

Congratulations, now you are ready to install OpenStack services!

Related posts