centos 6.4下openstack-grizzly安装:控制节点问题
82.keystone endpoint-create --region$KEYSTONE_REGION --service-id $IDENTITY_SERVICE --publicurl'http://'"$KEYSTONE_HOST"':5000/v2.0' --adminurl'http://'"$KEYSTONE_HOST"':35357/v2.0' --internalurl'http://'"$KEYSTONE_HOST"':5000/v2.0' 83.keystone endpoint-create --region$KEYSTONE_REGION --service-id $EC2_SERVICE --publicurl'http://'"$KEYSTONE_HOST"':8773/services/Cloud' --adminurl'http://'"$KEYSTONE_HOST"':8773/services/Admin' --internalurl'http://'"$KEYSTONE_HOST"':8773/services/Cloud' 84.keystone endpoint-create --region$KEYSTONE_REGION --service-id $NETWORK_SERVICE --publicurl'http://'"$KEYSTONE_HOST"':9696/' --adminurl'http://'"$KEYSTONE_HOST"':9696/' --internalurl'http://'"$KEYSTONE_HOST"':9696/'
Note If you make a mistake during this guide, you can reset the Keystone database by performing the following steps: mysql -u root -p -e "drop database keystone" mysql -u root -p -e "create database keystone" mysql -u root -p -e "grant all privileges on keystone.* TO 'keystone'@'localhost' identified by 'password'" keystone-manage db_sync And finally, re-run the above bash script. OpenStack Image Service The Image Serviceprovides a catalog of virtual machine images from which you can launchinstances. For example, ifa Fedora 19 image exists, you can use it to launch a Fedora19 instance.
Install the OpenStack Image packages, as follows: yum install openstack-glance Configure the OpenStack Image Service, as follows: The OpenStack Image Service provides the glance-api and glance-registry services. You configure these services identically. However, be aware that each provides a distinct service. Edit /etc/glance/glance-api.conf and /etc/glance/glance-registry.conf,as follows: 查看本栏目更多精彩内容:http://www.bianceng.cn/OS/Linux/ [DEFAULT] sql_connection =mysql://glance:password@localhost/glance [keystone_authtoken] admin_tenant_name = service admin_user = glance admin_password = password [paste_deploy] flavor=keystone Restart both services, as follows: service openstack-glance-api restart&& service openstack-glance-registry restart spacer.gif Note Check the /var/log/glance/*.log files for errors that cause the Image Service to fail to start. Create the OpenStack Image tables in the database, as follows: glance-manage db_sync Download and import the latest Fedora cloud image: e.$ wgethttp://cloud.fedoraproject.org/fedora-latest.x86_64.qcow2 glance image-create --is-public true--disk-format qcow2 --container-format bare --name "Fedora" <fedora-latest.x86_64.qcow2 Download and import the CirrOS QCOW2 Image: $ wgethttp://download.cirros-cloud.net/0.3.1/cirros-0.3.1-x86_64-disk.img $ glance image-create --is-public true--disk-format qcow2 --container-format bare --name "CirrOS 0.3.1"< cirros-0.3.1-x86_64-disk.img Check if the images have been introduced in the index: $ glance image-list +--------------------------------------+--------------+-------------+------------------+-----------+--------+ | ID | Name | Disk Format | Container Format |Size | Status | +--------------------------------------+--------------+-------------+------------------+-----------+--------+ | acafc7c0-40aa-4026-9673-b879898e1fc2 |CirrOS 0.3.1 | qcow2 | bare | 13147648 | active | | 62f9278e-a26e-4fa0-9537-1eb503aa2f01 |Fedora | qcow2 | bare | 237371392 | active | +--------------------------------------+--------------+-------------+------------------+-----------+--------+ OpenStack Compute (Cloud Controller services) The OpenStackCompute Service provides the cloud environment with the ability to manage thescheduling, creation and deletion of virtual machines (instances). Install the Nova packages: 2. yum install -y openstack-nova-apiopenstack-nova-scheduler openstack-nova-cert 3. openstack-nova-consoleopenstack-nova-doc genisoimage openstack-dashboard openstack-nova-novncproxy openstack-nova-conductor novnc Configure Nova: /etc/nova/nova.confis missing an essential "auth_strategy=keystone" line in the[DEFAULT] section (编辑:徐州站长网) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |