centos 6.4下openstack-grizzly安装:控制节点问题
副标题[/!--empirenews.page--] 参考的是官方文档,由于官方文档有些文件及步骤没有列出来,现已经补齐。经过测试没问题。备忘一下。 You need at leastthree machines, virtual or physical, with Fedora 18 installed. Introduction The Controllernode will provide : Databases (with MySQL) Queues (with Qpid) Keystone Glance Nova (without nova-compute) Cinder Quantum Server (with Open-vSwitch plugin) Dashboard (with Horizon) Common services Operating System MySQL DatabaseService Qpid MessagingService Operating System Install Fedora 18 . The exact installation procedure is outside the scope of this document, but please note the following configurations: Time zone: UTC Hostname: cloud Packages: OpenSSH-Server, wget Once installation has finished, the server will reboot. Use the Fedora repositories for Grizzly: 3. wgethttp://repos.fedorapeople.org/repos/openstack/openstack-grizzly/fedora-openstack-grizzly.repo mv fedora-openstack-grizzly.repo/etc/yum.repos.d/ spacer.gif Note ForCentOS, use http://repos.fedorapeople.org/repos/openstack/openstack-grizzly/epel-openstack-grizzly.repo. Configure the network: Set up old ethernet nic device names: sed -i 's/GOTO="netdevicename_end"/GOTO="netdevicename_end"/g'/lib/udev/rules.d/71-biosdevname.rules Disable NetworkManager and enable the network service · service NetworkManager stop · service network start · chkconfig NetworkManager off chkconfig network on Edit /etc/sysconfig/network-scripts/ifcfg-eth0: · Internal Network ·DEVICE=eth0 ·TYPE=Ethernet ·BOOTPROTO=static ·IPADDR=10.10.10.10 ·NETMASK=255.255.255.0 ·DEFROUTE=yes ·ONBOOT=yes Edit /etc/sysconf/network-scripts/ifcfg-eth1: · External Network ·DEVICE=eth1 ·TYPE=Ethernet ·BOOTPROTO=static ·IPADDR=10.0.0.10 ·NETMASK=255.255.255.0 ·GATEWAY=10.0.0.1 ·DNS=8.8.8.8 ·DEFROUTE=yes ·ONBOOT=yes Reboot Edit the /etc/hosts file and add cloud, network, and c01 hostnames with correct IP. ·127.0.0.1 localhost ·10.10.10.10 cloud ·10.10.10.9 network 10.10.10.11 c01 spacer.gif Note While manually specifying host entries is acceptable for a simple or testing environment, it is highly recommended to use proper DNS entries, or at a minimum a configuration management system such as Puppet, to maintain your IP to host mappings. Install NTP. NTP will ensure that the server has the correct time. This is important because if an OpenStack server's time is not correct, it will be removed from the rest of the cloud. · yum install -y ntp MySQL Database Service The variousOpenStack components store persistent data in a relational database. MySQL isthe most popular choice. Install the packages: yum install mysql mysql-server MySQL-python By default, MySQL will only accept connections from localhost. This needs changed so that the compute nodes can access the OpenStack Networking service. Database requests for the OpenStack Compute service are proxied through the nova-conductor service. sed -i 's/127.0.0.1/0.0.0.0/g' /etc/my.cnf Restart the service: systemctl start mysqld.service service mysqld restart chkconfig mysqld on The various databases that the OpenStack services require need created. Additionally, MySQL accounts to access those databases need created, too: 5. mysql -u root -p <<EOF 6.CREATE DATABASE nova; 7.GRANT ALL PRIVILEGES ON nova.* TO'nova'@'localhost' 8.IDENTIFIED BY 'password'; 9.CREATE DATABASE cinder; 10.GRANT ALL PRIVILEGES ON cinder.* TO'cinder'@'localhost' 11.IDENTIFIED BY 'password'; 12.CREATE DATABASE glance; 13.GRANT ALL PRIVILEGES ON glance.* TO'glance'@'localhost' 14.IDENTIFIED BY 'password'; 15.CREATE DATABASE keystone; 16.GRANT ALL PRIVILEGES ON keystone.* TO'keystone'@'localhost' 17.IDENTIFIED BY 'password'; 18.CREATE DATABASE quantum; (编辑:滁州站长网) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |