Autoscaling alarms are not triggered
I have Openstack and Tacker installed at the following versions:
Openstack version: 3.8.1 (Ocata)
Tacker version: 0.9.0
I want to perform autoscaling based on the cpu usage (scale in if cpu_util < 10%, scale out if cpu_util > 50%).
I use the following VNFD file :
tosca_definitio
description: Demo example
metadata:
template_name: sample-tosca-vnfd
topology_template:
node_templates:
VDU1:
type: tosca.nodes.
capabilities:
properties:
image: centos
metadata: {metering.vnf: SG1}
key_name: key_pair
CP1:
type: tosca.nodes.
properties:
management: true
requirements:
- virtualLink:
node: VL1
- virtualBinding:
node: VDU1
CP2:
type: tosca.nodes.
properties:
requirements:
- virtualLink:
node: VL2
- virtualBinding:
node: VDU1
VL1:
type: tosca.nodes.nfv.VL
properties:
vendor: Tacker
VL2:
type: tosca.nodes.nfv.VL
properties:
vendor: Tacker
policies:
- SP1:
type: tosca.policies.
properties:
cooldown: 10
targets: [VDU1]
- vdu_cpu_
type: tosca.policies.
triggers:
When I launch the VNF creation from the VNFD, the VNF and the alarms are created correctly, but when I stress the CPU of the VNF the alarms are never triggered. The alarms are always at the "Insufficient Data" state, even after several hours :
aodh alarm list
+------
| alarm_id | type | name | state | severity | enabled |
+------
| 4bd2fd4e-
| | | ef602dbf-
| | | w7kkft25idzk | | | |
| 0bbcefb4-
| | | ef602dbf-
+------
However, there are measures stored in the gnocchi database:
gnocchi measures show 45618bb7-
+------
| timestamp | granularity | value |
+------
| 2018-04-
| 2018-04-
| 2018-04-
| 2018-04-
| 2018-04-
Checking /var/log/
2018-04-24 13:34:03.870 32877 INFO aodh.evaluator [-] initiating evaluation cycle on 2 alarms
2018-04-24 13:34:04.090 32877 WARNING aodh.evaluator.
2018-04-24 13:34:04.095 32877 WARNING aodh.evaluator.
2018-04-24 13:35:03.850 32877 WARNING oslo_db.
So I have several questions:
1- Is tacker autoscaling feature compatible with Ceilometer/
2- Does tacker support other types of alarms apart from “threshold” (i.e. gnocchi_
Any help will be really appreciated, even if it is not related to the 2 questions. Thanks in advance !
Question information
- Language:
- English Edit question
- Status:
- Expired
- For:
- tacker Edit question
- Assignee:
- No assignee Edit question
- Last query:
- Last reply: