<div dir="ltr"><div><div><div>Hi,<br><br></div>two possibilities. You can check the interval in our /etc/ceilometer/pipeline.yaml and decrease it to collect samples more frequently (The default is sometimes 600 seconds, so on average you'd have to wait about 15 min for autoscaling to kick in, 60 is good for dev purposes, but not on a production :) ).<br></div>Another one is that you are filtering on the wrong metadata. You can search the ceilometer samples by resource_id of one of the nova instances in your asg and check that they indeed have metadata in the form of metadata.user_metadata.stack = 31f62d11-401e-435b-a2a7-1e5318ce8159<br><br></div>Best regards,<br></div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature"><div dir="ltr">Pavlo Shchelokovskyy<div>Software Engineer</div><div>Mirantis Inc</div><div><a href="http://www.mirantis.com" target="_blank">www.mirantis.com</a></div></div></div></div>
<br><div class="gmail_quote">On Thu, Mar 5, 2015 at 4:57 PM, Chinasubbareddy M <span dir="ltr"><<a href="mailto:chinasubbareddy_m@persistent.com" target="_blank">chinasubbareddy_m@persistent.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello all,<br>
<br>
I can see the alarm in alarm-history. However, no actions are triggered.<br>
Could you please help me out here ?<br>
<br>
Here is the alarm-show :<br>
<br>
root@build-server:~# ceilometer alarm-show --alarm_id ec8d3a5f-f890-465e-b796-dba2cf2c12fe<br>
+---------------------------+--------------------------------------------------------------------------+<br>
| Property                  | Value                                                                    |<br>
+---------------------------+--------------------------------------------------------------------------+<br>
| alarm_actions             | [u'<a href="http://10.44.191.200:8000/v1/signal/arn%3Aopenstack%3Aheat%3A%3Aec3e9" target="_blank">http://10.44.191.200:8000/v1/signal/arn%3Aopenstack%3Aheat%3A%3Aec3e9</a> |<br>
|                           | 3810a7c4be2881bd7ede428526a%3Astacks%2FasworkingFinal%2F31f62d11-401e-   |<br>
|                           | 435b-a2a7-1e5318ce8159%2Fresources%2Fweb_server_scaleup_policy?Timestamp |<br>
|                           | =2015-03-04T13%3A13%3A31Z&SignatureMethod=HmacSHA256&AWSAccessKeyId=8216 |<br>
|                           | 7ae13f3240e5aa6f1d6a5c4f39d3&SignatureVersion=2&Signature=fOH%2Fny5BpzbL |<br>
|                           | qwWce1qHyqAjBn9YXR0F%2FPlzeeJCdYc%3D']                                   |<br>
| alarm_id                  | ec8d3a5f-f890-465e-b796-dba2cf2c12fe                                     |<br>
| comparison_operator       | gt                                                                       |<br>
| description               | Scale-up if the average CPU > 50% for 1 minute                           |<br>
| enabled                   | True                                                                     |<br>
| evaluation_periods        | 1                                                                        |<br>
| exclude_outliers          | False                                                                    |<br>
| insufficient_data_actions | []                                                                       |<br>
| meter_name                | cpu_util                                                                 |<br>
| name                      | asworkingFinal-cpu_alarm_high-swtpxt4coqme                               |<br>
| ok_actions                | []                                                                       |<br>
| period                    | 60                                                                       |<br>
| project_id                | ec3e93810a7c4be2881bd7ede428526a                                         |<br>
| query                     | metadata.user_metadata.stack == 31f62d11-401e-435b-a2a7-1e5318ce8159     |<br>
| repeat_actions            | True                                                                     |<br>
| state                     | alarm                                                                    |<br>
| statistic                 | avg                                                                      |<br>
| threshold                 | 50.0                                                                     |<br>
| type                      | threshold                                                                |<br>
| user_id                   | cac9bb03d57f41359df9b12c4b6d2318                                         |<br>
+---------------------------+--------------------------------------------------------------------------+<br>
<br>
Here is the output of alarm history:<br>
<br>
| state transition | 2015-03-05T13:05:57.360308 | state: insufficient data                                    |<br>
| state transition | 2015-03-05T13:13:57.514774 | state: alarm                                                |<br>
| state transition | 2015-03-05T13:14:57.438538 | state: insufficient data                                    |<br>
| state transition | 2015-03-05T13:23:57.578754 | state: alarm                                                |<br>
| state transition | 2015-03-05T13:24:57.497549 | state: insufficient data                                    |<br>
| state transition | 2015-03-05T13:33:57.583486 | state: alarm                                                |<br>
| state transition | 2015-03-05T13:34:57.559243 | state: insufficient data                                    |<br>
| state transition | 2015-03-05T13:43:57.693379 | state: alarm                                                |<br>
| state transition | 2015-03-05T13:44:57.605715 | state: insufficient data                                    |<br>
| state transition | 2015-03-05T13:53:57.802353 | state: alarm                                                |<br>
| state transition | 2015-03-05T13:55:57.662511 | state: insufficient data                                    |<br>
| state transition | 2015-03-05T14:03:57.773131 | state: alarm                                                |<br>
| state transition | 2015-03-05T14:05:57.735085 | state: insufficient data                                    |<br>
| state transition | 2015-03-05T14:13:57.884780 | state: alarm                                                |<br>
| state transition | 2015-03-05T14:15:57.808676 | state: insufficient data                                    |<br>
| state transition | 2015-03-05T14:23:57.876373 | state: alarm                                                |<br>
| state transition | 2015-03-05T14:25:57.856860 | state: insufficient data                                    |<br>
| state transition | 2015-03-05T14:33:57.999285 | state: alarm                                                |<br>
| state transition | 2015-03-05T14:35:57.928619 | state: insufficient data                                    |<br>
| state transition | 2015-03-05T14:43:58.000641 | state: alarm                                                |<br>
| state transition | 2015-03-05T14:45:57.994070 | state: insufficient data                                    |<br>
| rule change      | 2015-03-05T14:46:28.934119 | repeat_actions: True                                        |<br>
| state transition | 2015-03-05T14:53:58.274025 | state: alarm                                                |<br>
| state transition | 2015-03-05T14:55:58.039142 | state: insufficient data                                    |<br>
+------------------+----------------------------+-------------------------------------------------------------+<br>
<div class="HOEnZb"><div class="h5"><br>
-----Original Message-----<br>
From: Chinasubbareddy M<br>
Sent: Thursday, March 05, 2015 5:38 PM<br>
To: 'Deepthi Dharwar'; <a href="mailto:openstack@lists.openstack.org">openstack@lists.openstack.org</a><br>
Subject: RE: [Openstack] [openstack][autoscaling][icehouse][OS::Heat:: AutoScalingGroup]<br>
<br>
Thank you Deepthi, its working now .<br>
<br>
-----Original Message-----<br>
From: Deepthi Dharwar [mailto:<a href="mailto:deepthi@linux.vnet.ibm.com">deepthi@linux.vnet.ibm.com</a>]<br>
Sent: Wednesday, March 04, 2015 4:18 PM<br>
To: <a href="mailto:openstack@lists.openstack.org">openstack@lists.openstack.org</a><br>
Subject: Re: [Openstack] [openstack][autoscaling][icehouse][OS::Heat:: AutoScalingGroup]<br>
<br>
On 03/04/2015 02:36 PM, Chinasubbareddy M wrote:<br>
> Hi,<br>
><br>
><br>
><br>
> I am testing openstack auto scaling function, but  the stack is<br>
> getting failed with below error,<br>
><br>
><br>
><br>
> :Multiple possible networks found, use a Network ID to be more<br>
> specific<br>
><br>
><br>
><br>
> could anybody tell me how to solve it? ,<br>
><br>
> This is happening in case of using  OS::Heat::AutoScalingGroup<br>
> resource,  is there any way to mention network id in this resource?<br>
<br>
In your load balancer yaml, i.e lb_server.yaml Add the following:<br>
<br>
Under 'parameters' add network id<br>
<br>
parameters:<br>
private_net_id:<br>
    type: string<br>
    default: XXXX<br>
<br>
<br>
And under resources:<br>
<br>
member:<br>
    type: OS::Neutron::PoolMember<br>
    properties:<br>
      pool_id: {get_param: pool_id}<br>
      address: {get_attr: [server, first_address]}<br>
      protocol_port: 80<br>
  server_port:<br>
    type: OS::Neutron::Port<br>
    properties:<br>
      network_id: { get_param: private_net_id } => add the network id.<br>
      fixed_ips:<br>
        - subnet_id: { get_param: subnet_id }<br>
<br>
This should help you specify the network in which you want to plug in your VMs.<br>
<br>
Regards,<br>
Deepthi<br>
<br>
<br>
<br>
><br>
><br>
> Regards,<br>
><br>
> Subbareddy,<br>
><br>
> Persistent systems ltd.<br>
><br>
> DISCLAIMER ========== This e-mail may contain privileged and<br>
> confidential information which is the property of Persistent Systems<br>
> Ltd. It is intended only for the use of the individual or entity to<br>
> which it is addressed. If you are not the intended recipient, you are<br>
> not authorized to read, retain, copy, print, distribute or use this<br>
> message. If you have received this communication in error, please<br>
> notify the sender and delete all copies of this message. Persistent<br>
> Systems Ltd. does not accept any liability for virus infected mails.<br>
><br>
><br>
><br>
> _______________________________________________<br>
> Mailing list: <a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack</a><br>
> Post to     : <a href="mailto:openstack@lists.openstack.org">openstack@lists.openstack.org</a><br>
> Unsubscribe :<br>
> <a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack</a><br>
><br>
<br>
<br>
_______________________________________________<br>
Mailing list: <a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack</a><br>
Post to     : <a href="mailto:openstack@lists.openstack.org">openstack@lists.openstack.org</a><br>
Unsubscribe : <a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack</a><br>
<br>
DISCLAIMER<br>
==========<br>
This e-mail may contain privileged and confidential information which is the property of Persistent Systems Ltd. It is intended only for the use of the individual or entity to which it is addressed. If you are not the intended recipient, you are not authorized to read, retain, copy, print, distribute or use this message. If you have received this communication in error, please notify the sender and delete all copies of this message. Persistent Systems Ltd. does not accept any liability for virus infected mails.<br>
<br>
</div></div><br>_______________________________________________<br>
Mailing list: <a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack</a><br>
Post to     : <a href="mailto:openstack@lists.openstack.org">openstack@lists.openstack.org</a><br>
Unsubscribe : <a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack</a><br>
<br></blockquote></div><br></div>