[Openstack] Autoscaling : heat stack failed

Mike Spreitzer mspreitz at us.ibm.com
Fri Mar 21 15:53:48 UTC 2014


Are you using Neutron?  Is this your first time with Neutron?  When I 
switched from nova networking to Neutron I was initially surprised by 
errors with the same text.  For me it was when creating VM instances.  Can 
you make a load balancer using the CLI?

Note that the log excerpt you show is telling you that what is being 
raised is an error that arose earlier and was cached.  Look for the 
earlier error.  The root cause may be found in the log of a different 
component.

Regards,
Mike



From:   <m.channappa.negalur at accenture.com>
To:     <openstack at lists.openstack.org>, 
Cc:     malleshicn at gmail.com
Date:   03/21/2014 08:40 AM
Subject:        Re: [Openstack] Autoscaling : heat stack failed



Hi Team,
 
I fixed the earlier error and landed at below error
 
2014-03-21 09:31:27.138 22406 ERROR heat.engine.resource [-] CREATE : 
LoadBalancer "ElasticLoadBalancer"
2014-03-21 09:31:27.138 22406 TRACE heat.engine.resource Traceback (most 
recent call last):
2014-03-21 09:31:27.138 22406 TRACE heat.engine.resource   File 
"/usr/lib/python2.7/dist-packages/heat/engine/resource.py", line 361, in 
_do_action
2014-03-21 09:31:27.138 22406 TRACE heat.engine.resource     while not 
check(handle_data):
2014-03-21 09:31:27.138 22406 TRACE heat.engine.resource   File 
"/usr/lib/python2.7/dist-packages/heat/engine/stack_resource.py", line 
116, in check_create_complete
2014-03-21 09:31:27.138 22406 TRACE heat.engine.resource     raise 
exception.Error(self._nested.status_reason)
2014-03-21 09:31:27.138 22406 TRACE heat.engine.resource Error: Resource 
create failed: BadRequest: Multiple possible networks found, use a Network 
ID to be more specific. (HTTP 400) (Request-ID: 
req-e21332a8-a730-40d4-9e87-9d9ae7908b31)
2014-03-21 09:31:27.138 22406 TRACE heat.engine.resource
2014-03-21 09:31:27.347 22406 WARNING heat.engine.service [-] Stack create 
failed, status FAILED
 
I have mentioned my network details in my template.
 
  "SubnetId" : {
        "Default" :"69b3ddd9-b092-4361-b541-4f171c736a9d",
          "Description" : "Name of an existing EC2 KeyPair to enable SSH 
access to the instances",
          "Type" : "String"
        },
 
   "PublicNetworkId" : {
        "Default" :"fbfc3fa8-473b-40fa-89e8-8c7a1acb0d0b",
          "Description" : "Name of an existing EC2 KeyPair to enable SSH 
access to the instances",
          "Type" : "String"
       },
 
   "PrivateNetworkId" : {
        "Default" :"ad5a1e6c-24b7-4190-b4e7-6e4f19b046ce",
          "Description" : "Name of an existing EC2 KeyPair to enable SSH 
access to the instances",
          "Type" : "String"
       },
 
Do I need to mention it somewhere in load balancer as well ?...?
 
"ElasticLoadBalancer" : {
      "Type" : "AWS::ElasticLoadBalancing::LoadBalancer",
      "Properties" : {
        "AvailabilityZones" : { "Fn::GetAZs" : "" },
         "Listeners" : [ {
          "LoadBalancerPort" : "80",
          "InstancePort" : "80",
          "Protocol" : "HTTP"
        } ],
        "HealthCheck" : {
          "Target" : "HTTP:80/",
          "HealthyThreshold" : "3",
          "UnhealthyThreshold" : "5",
          "Interval" : "30",
          "Timeout" : "5"
        }
      }
From: Channappa Negalur, M. 
Sent: Friday, March 21, 2014 1:56 PM
To: openstack at lists.openstack.org
Subject: Autoscaling : heat stack failed
 
Hello All,
 
I have configured openstack Havana on Ubuntu 12.04 . I configured heat & 
ceilometer.
 
When I was creating stack I found that stack creation failed in log
 
2014-03-21 05:37:50.170 22127 TRACE heat.engine.resource     raise 
exception.StackValidationFailed(message=msg)
2014-03-21 05:37:50.170 22127 TRACE heat.engine.resource 
StackValidationFailed: Unknown resource Type : AWS::CloudWatch::Alarm
2014-03-21 05:37:50.170 22127 TRACE heat.engine.resource
2014-03-21 05:37:50.203 22127 WARNING heat.engine.service [-] Stack create 
failed, status FAILED
 
So I added default.yaml in /etc/ceilometer/environment.d/
resource_registry:
 
    # allow older templates with Quantum in them.
 
    "OS::Quantum*": "OS::Neutron*"
 
    # Choose your implementation of AWS::CloudWatch::Alarm
 
    #"AWS::CloudWatch::Alarm": "
file:///etc/heat/templates/AWS_CloudWatch_Alarm.yaml"
 
#   "AWS::CloudWatch::Alarm": "OS::Heat::CWLiteAlarm"   
 
    "OS::Metering::Alarm": "OS::Ceilometer::Alarm"
 
#    "AWS::RDS::DBInstance": "
file:///etc/heat/templates/AWS_RDS_DBInstance.yaml"
 
#    "AWS::CloudWatch::Alarm": "OS::Ceilometer::Alarm"
 
 
If I remove the comment from #   "AWS::CloudWatch::Alarm": 
"OS::Heat::CWLiteAlarm"         , restarted  my heat services . If I try 
to create a stack it shows below error
 
2014-03-21 05:34:09.748 21972 INFO heat.engine.resource [-] creating 
LoadBalancer "ElasticLoadBalancer"
2014-03-21 05:34:09.809 21972 INFO heat.engine.resource [-] Validating 
CeilometerAlarm "latency_watcher"
2014-03-21 05:34:09.809 21972 ERROR heat.engine.parser [-] Property error 
: latency_watcher: Property meter_name not assigned
2014-03-21 05:34:09.809 21972 TRACE heat.engine.parser Traceback (most 
recent call last):
2014-03-21 05:34:09.809 21972 TRACE heat.engine.parser   File 
"/usr/lib/python2.7/dist-packages/heat/engine/parser.py", line 308, in 
validate
2014-03-21 05:34:09.809 21972 TRACE heat.engine.parser     result = 
res.validate()
2014-03-21 05:34:09.809 21972 TRACE heat.engine.parser   File 
"/usr/lib/python2.7/dist-packages/heat/engine/resource.py", line 490, in 
validate
2014-03-21 05:34:09.809 21972 TRACE heat.engine.parser     return 
self.properties.validate()
2014-03-21 05:34:09.809 21972 TRACE heat.engine.parser   File 
"/usr/lib/python2.7/dist-packages/heat/engine/properties.py", line 695, in 
validate
2014-03-21 05:34:09.809 21972 TRACE heat.engine.parser     raise 
exception.StackValidationFailed(message=msg)
2014-03-21 05:34:09.809 21972 TRACE heat.engine.parser 
StackValidationFailed: Property error : latency_watcher: Property 
meter_name not assigned
2014-03-21 05:34:09.809 21972 TRACE heat.engine.parser
2014-03-21 05:34:09.811 21972 ERROR heat.engine.resource [-] CREATE : 
LoadBalancer "ElasticLoadBalancer"
2014-03-21 05:34:09.811 21972 TRACE heat.engine.resource Traceback (most 
recent call last):
2014-03-21 05:34:09.811 21972 TRACE heat.engine.resource   File 
"/usr/lib/python2.7/dist-packages/heat/engine/resource.py", line 358, in 
_do_action
2014-03-21 05:34:09.811 21972 TRACE heat.engine.resource     handle_data = 
handle()
2014-03-21 05:34:09.811 21972 TRACE heat.engine.resource   File 
"/usr/lib/python2.7/dist-packages/heat/engine/resources/loadbalancer.py", 
line 382, in handle_create
2014-03-21 05:34:09.811 21972 TRACE heat.engine.resource     return 
self.create_with_template(templ, param)
2014-03-21 05:34:09.811 21972 TRACE heat.engine.resource   File 
"/usr/lib/python2.7/dist-packages/heat/engine/stack_resource.py", line 
101, in create_with_template
2014-03-21 05:34:09.811 21972 TRACE heat.engine.resource nested.validate()
2014-03-21 05:34:09.811 21972 TRACE heat.engine.resource   File 
"/usr/lib/python2.7/dist-packages/heat/engine/parser.py", line 314, in 
validate
2014-03-21 05:34:09.811 21972 TRACE heat.engine.resource     raise 
StackValidationFailed(message=str(ex))
2014-03-21 05:34:09.811 21972 TRACE heat.engine.resource 
StackValidationFailed: Property error : latency_watcher: Property 
meter_name not assigned
2014-03-21 05:34:09.811 21972 TRACE heat.engine.resource
2014-03-21 05:34:09.842 21972 WARNING heat.engine.service [-] Stack create 
failed, status FAILED 
 
 
 
Template details:
"CPUAlarmHigh": {
     "Type": "OS::Ceilometer::Alarm",
     "Properties": {
        "description": "Scale-up if cpu_util > 50% for 1 minute",
        "meter_name": "cpu_util",
        "enabled": "True",
        "repeat_actions": "True",
        "statistic": "avg",
        "period": "60",
        "evaluation_periods": "3",
        "threshold": "50",
         "comparison_operator" : "gt",
         "alarm_actions": [ { "Ref": "WebServerScaleUpPolicy" } ],
        "matching_metadata": {"metadata.user_metadata.server_group": 
"WebSG"}
 
      }
   },
 
"CPUAlarmLow": {
     "Type": "OS::Ceilometer::Alarm",
     "Properties": {
        "description": "Scale-up if cpu_util < 15% for 1 minute",
        "meter_name": "cpu_util",
        "enabled": "True",
        "repeat_actions": "True",
        "statistic": "avg",
        "period": "60",
        "evaluation_periods": "3",
        "threshold": "15",
         "comparison_operator" : "lt",
         "alarm_actions": [ { "Ref": "WebServerScaleUpPolicy" } ],
        "matching_metadata": {"metadata.user_metadata.server_group": 
"WebSG"}
        }
     },
 
"ElasticLoadBalancer" : {
      "Type" : "AWS::ElasticLoadBalancing::LoadBalancer",
      "Properties" : {
        "AvailabilityZones" : { "Fn::GetAZs" : "" },
         "Listeners" : [ {
          "LoadBalancerPort" : "80",
          "InstancePort" : "80",
          "Protocol" : "HTTP"
        } ],
        "HealthCheck" : {
          "Target" : "HTTP:80/",
          "HealthyThreshold" : "3",
          "UnhealthyThreshold" : "5",
          "Interval" : "30",
          "Timeout" : "5"
        }
 
 
Pelase help me 
 
 
Regards,
Malleshi CN


This message is for the designated recipient only and may contain 
privileged, proprietary, or otherwise confidential information. If you 
have received it in error, please notify the sender immediately and delete 
the original. Any other use of the e-mail by you is prohibited. Where 
allowed by local law, electronic communications with Accenture and its 
affiliates, including e-mail and instant messaging (including content), 
may be scanned by our systems for the purposes of information security and 
assessment of internal compliance with Accenture policy. 
______________________________________________________________________________________

www.accenture.com_______________________________________________
Mailing list: 
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
Post to     : openstack at lists.openstack.org
Unsubscribe : 
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack/attachments/20140321/0c020b7f/attachment.html>


More information about the Openstack mailing list