centos 6.4下openstack-grizzly安装:控制节点问题
...and then to validate that these usersactually exist now: There were no users listed in the SASLdbat all after my initial installation, so the QPID docs (security chapter) werequite handy:
service qpidd start OpenStack Identity Service The OpenStackIdentity Service provides the cloud environment with an authentication andauthorization system. In this system, users are a part of one or more projects.In each of these projects, they hold a specific role. Install the packages: yum install openstack-utils openstack-keystone python-keystonepython-keystoneclient Edit /etc/keystone/keystone.conf: 3.[DEFAULT] 4.admin_token = password 5.debug = True 6.verbose = True 7. 8.[sql] connection =mysql://keystone:password@localhost/keystone Create the ssl keys: 10. keystone-manage pki_setup chown -R keystone:keystone /etc/keystone/* Restart Keystone and create the tables in the database: 12. service openstack-keystone restart openstack-db --init --service keystone spacer.gif Note Check the /var/log/keystone/keystone.log file for errors that would prevent the Identity Service from successfully starting. Create an openrc file: Create a file called ~/openrc. This file contains the OpenStack admin credentials that are used when interacting with the OpenStack environment on the command line. ·export OS_TENANT_NAME=admin ·export OS_USERNAME=admin ·export OS_PASSWORD=password ·export OS_AUTH_URL="http://localhost:5000/v2.0/" ·export OS_SERVICE_ENDPOINT="http://localhost:35357/v2.0" export OS_SERVICE_TOKEN=password spacer.gif Note Best practice for bootstrapping the first administrative user is to use the OS_SERVICE_ENDPOINT and OS_SERVICE_TOKEN together as environment variables, then set up a separate RC file just for Identity administration that uses port 35357 for the OS_AUTH_URL. This example is meant to provide a quick setup, not an audit-able environment. Source the credentials into your environment: source ~/openrc Configure the Bash shell to load these credentials upon each login: echo "source ~/openrc">> ~/.bashrc The following bash script will populate Keystone with some initial data: Projects: admin and services Roles: admin, Member Users: admin, demo, nova, glance, quantum, and cinder Services: compute, volume, image, identity, ec2, and network 15.!/bin/bash 16. 17. Modify these variables as needed 18.ADMIN_PASSWORD=${ADMIN_PASSWORD:-password} 19.SERVICE_PASSWORD=${SERVICE_PASSWORD:-$ADMIN_PASSWORD} 20.DEMO_PASSWORD=${DEMO_PASSWORD:-$ADMIN_PASSWORD} 21.exportOS_SERVICE_TOKEN="password" 22.exportOS_SERVICE_ENDPOINT="http://localhost:35357/v2.0" 23.SERVICE_TENANT_NAME=${SERVICE_TENANT_NAME:-service} 24. 25.MYSQL_USER=keystone 26.MYSQL_DATABASE=keystone 27.MYSQL_HOST=localhost 28.MYSQL_PASSWORD=password (编辑:徐州站长网) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |