Ask Your Question

threeout's profile - activity

2016-03-01 23:10:56 -0500 received badge  Popular Question (source)
2016-03-01 23:10:56 -0500 received badge  Notable Question (source)
2016-02-28 11:37:43 -0500 asked a question ceilometer alarm-list , insufficient data

I would like to use autoscaling using heat and ceilometer. But the state of alarm indicates always insufficient data. ( $ ceilometer alarm-list ).

The stack's status indicates CREATE_COMPLETE ( $ heat stack-list )

I've installed openstack(kilo) on single machine . The local.conf is below.

-----------------------------------------------------------------
[[local|localrc]]

HOST_IP=192.168.10.53
SERVICE_HOST=192.168.10.53
MYSQL_HOST=192.168.10.53
RABBIT_HOST=192.168.10.53
GLANCE_HOSTPORT=192.168.10.53:9292

# Logging
LOGFILE=$DEST/logs/stack.sh.log
VERBOSE=True
LOG_COLOR=False
SCREEN_LOGDIR=$DEST/logs/screen

# Credentials
ADMIN_PASSWORD=devstack
MYSQL_PASSWORD=devstack
RABBIT_PASSWORD=devstack
SERVICE_PASSWORD=devstack
SERVICE_TOKEN=tokentoken

enable_service ceilometer-acompute ceilometer-acentral ceilometer-anotification ceilometer-collector
enable_service ceilometer-alarm-notifier ceilometer-alarm-evaluator
enable_service ceilometer-api


enable_service heat,h-api,h-eng,h-api-cfn

# Neutron - Networking Service
disable_service n-net
enable_service q-svc,q-agt,q-dhpc,q-l3,q-meta,q-metering,neutron

CEILOMETER_PIPELINE_INTERVAL=10
-----------------------------------------------------------------

After installation, I made simple heat-template for autoscaling. The template files I used are below.

---------------cirros.yaml---------------------------------------
heat_template_version: 2014-10-16  
description: A simple server.  
resources:  
  server:
    type: OS::Nova::Server
    properties:
      block_device_mapping:
        - device_name: vda
          delete_on_termination: true
          volume_id: { get_resource: volume } 
      flavor: m1.nano
      networks:
        - network: internal001

  volume:
    type: OS::Cinder::Volume
    properties:
      image: 'Cirros 0.3.3'
      size: 1
-----------------------------------------------------------------

---------------environment.yaml ---------------------------------
resource_registry:  
    "OS::Nova::Server::Cirros": "cirros.yaml"
-----------------------------------------------------------------

---------------environment.yaml ----------------------------
heat_template_version: 2014-10-16  
description: A simple auto scaling group.  
resources:  
  group:
    type: OS::Heat::AutoScalingGroup
    properties:
      cooldown: 60
      desired_capacity: 2
      max_size: 5
      min_size: 1
      resource:
        type: OS::Nova::Server::Cirros

  scaleup_policy:
    type: OS::Heat::ScalingPolicy
    properties:
      adjustment_type: change_in_capacity
      auto_scaling_group_id: { get_resource: group }
      cooldown: 60
      scaling_adjustment: 1

  cpu_alarm_high:
    type: OS::Ceilometer::Alarm
    properties:
      meter_name: cpu_util
      statistic: avg
      period: 60
      evaluation_periods: 1
      threshold: 50
      alarm_actions:
        - {get_attr: [scaleup_policy, alarm_url]}
      comparison_operator: gt

$ heat stack-create simple -f simple.yaml -e environment.yaml

And I've checked the ceilometer's sampling period. It is set to 10 in pipeline.yaml

Does anyone have same issue ? Please let me know some tips to find which component has problem.

2015-12-22 00:08:35 -0500 received badge  Enthusiast
2015-12-14 06:53:54 -0500 answered a question tox -egenconfig to create fails to run

You can ceck yor tox version

$tox --version

https://launchpad.net/ubuntu/+source/tox/2.1.1-2 (https://launchpad.net/ubuntu/+source/...) Download v2.1.1 and run setup.py

$python setup.py install

then ceck the version again

$tox --version