#该篇文章基于Queens同时基于All-in-one开发,下面创建的项目都是同一ip,同一个项目,同时密码也是基于自动部署的密码,所以详细内容请看官方文档.下一篇自动部署会
attention:ladys and Gentlemen,this is impotant.
kenstone操作基本每次都需要做
source keystone_admin或者admin_pre
vim keystone_admin(这是重点)
unset OS_SERVICE_TOKEN
export OS_USERNAME=admin
export OS_PASSWORD='admin'
export OS_AUTH_URL=http://192.168.1.90:5000/v3
export PS1='[\u@\h \W(keystone_admin)]\$ '
export OS_PROJECT_NAME=admin
export OS_USER_DOMAIN_NAME=Default
export OS_PROJECT_DOMAIN_NAME=Default
export OS_IDENTITY_API_VERSION=3
export OS_AUTH_TYPE=password
export OS_REGION_NAME=RegionOne
####一.现在做的操作都在计算节点操作,#这里的ip地址都为controler
1)下载ceilometer
# yum install openstack-ceilometer-compute
2)编辑文件:
vim /etc/ceilometer/ceilometer.conf
[DEFAULT]
transport_url = rabbit://guest:guest@192.168.1.90
[service_credentials]
auth_url = http://192.168.1.90:5000
project_domain_id = default
user_domain_id = default
auth_type = password
username = 192.168.1.90
project_name = services
password = admin
interface = internalURL
region_name = RegionOne
vim /etc/nova/nova.conf
[DEFAULT]
instance_usage_audit = True
instance_usage_audit_period = hour
notify_on_state_change = vm_and_task_state
[oslo_messaging_notifications]
driver = messagingv2
启动代理并且自启
#systemctl enable openstack-ceilometer-compute.service #systemctl start openstack-ceilometer-compute.service
重启计算节点:
#systemctl restart openstack-nova-compute.service
####二.配置文件