我有一个问题,我无法想象为什么....
我已经为 openstack 下载了一个自动缩放热模板。在这个模板文件中有以下资源:
cpu_alarm_high:
type: OS::Ceilometer::Alarm
properties:
description: Scale-up if the average CPU > 50% for 1 minute
meter_name: cpu_util
statistic: avg
period: 60
evaluation_periods: 1
threshold: 50
alarm_actions:
- {get_attr: [server_scaleup_policy, alarm_url]}
matching_metadata: {'metadata.user_metadata.stack': {get_param: "OS::stack_id"}}
comparison_operator: gt
cpu_alarm_low:
type: OS::Ceilometer::Alarm
properties:
description: Scale-down if the average CPU < 15% for 1 minute
meter_name: cpu_util
statistic: avg
period: 60
evaluation_periods: 1
threshold: 15
alarm_actions:
- {get_attr: [server_scaledown_policy, alarm_url]}
matching_metadata: {'metadata.user_metadata.stack': {get_param: "OS::stack_id"}}
comparison_operator: lt
当我启动此堆栈时,openstack 会显示以下错误: NotFound: resources.cpu_alarm_low: Not Found (HTTP 404) (Request-ID: req-37d6c753-40db-4596-86a4-e1d10f0c531a)
在资源类型 OS::Ceilometer::Alarm 下可用。
我忘了在我的localrc中加载一些东西吗?这是我的 localrc 的一部分
# Enable the Ceilometer devstack plugin
enable_plugin ceilometer https://git.openstack.org/openstack/ceilometer.git
#Ceilometer-services
enable_service ceilometer-acompute ceilometer-acentral ceilometer-anotification ceilometer-collector ceilometer-api
#Ceilometer-alarm
enable_service ceilometer-alarm-notifier ceilometer-alarm-evaluator
#Ceilometer-ipmi (Use only if required)
enable_service ceilometer-aipmi
希望你能帮助我。
最好的问候,克里斯