<html><body>
<p><font size="2" face="sans-serif">Hi, Henry:</font><br>
<br>
<font size="2" face="sans-serif">Appreciate very much for your kind reply!</font><br>
<br>
<font size="2" face="sans-serif">Yes, this is what I want, however, I am not seeing the detailed error message as you are seeing.</font><br>
<br>
<font size="2" face="sans-serif">I am still using OpenStack Icehouse, are you using OpenStack Juno or Icehouse?</font><br>
<br>
<tt><font size="1">[root@openstack-03 heat(keystone_admin)]# heat stack-show LCH_test1<br>
+----------------------+------------------------------------------------------------------------------------------------------------------------------------------------------+<br>
| Property             | Value                                                                                                                                                |<br>
+----------------------+--------------------------------------------------------------------------------------------------------------------------------</font></tt><tt><font size="1">                                                                                                                         |<br>
| stack_status_reason  | Resource CREATE failed: Error: Deployment to server                                                                                                  |<br>
|                      | failed: deploy_status_code : Deployment exited with                                                                                                  |<br>
|                      | non-zero status code: 1                                                                                                                              |<br>
                                                                                                                                        |<br>
+----------------------+------------------------------------------------------------------------------------------------------------------------------------------------------+</font></tt><br>
<font size="2" face="sans-serif"><br>
<br>
Thanks,<br>
Tao Tao, Ph.D.<br>
IBM T. J. Watson Research Center<br>
1101 Kitchawan Road<br>
Yorktown Heights, NY 10598<br>
Phone: (914) 945-4541<br>
Email: ttao@us.ibm.com</font><br>
<br>
<img width="16" height="16" src="cid:1__=0ABBF71ADF829E248f9e8a93df938@us.ibm.com" border="0" alt="Inactive hide details for Hang H Liu ---11/06/2014 09:53:40 PM---Hi, Tao Tao, Here is an example,"><font size="2" color="#424282" face="sans-serif">Hang H Liu ---11/06/2014 09:53:40 PM---Hi, Tao Tao, Here is an example,</font><br>
<br>
<font size="1" color="#5F5F5F" face="sans-serif">From:      </font><font size="1" face="sans-serif">Hang H Liu <hangliu@cn.ibm.com></font><br>
<font size="1" color="#5F5F5F" face="sans-serif">To:        </font><font size="1" face="sans-serif">"OpenStack Development Mailing List \(not for usage questions\)" <openstack-dev@lists.openstack.org></font><br>
<font size="1" color="#5F5F5F" face="sans-serif">Date:      </font><font size="1" face="sans-serif">11/06/2014 09:53 PM</font><br>
<font size="1" color="#5F5F5F" face="sans-serif">Subject:   </font><font size="1" face="sans-serif">Re: [openstack-dev] [heat] How to expose the error messages if the heat stack creation fails with software config/software deployment</font><br>
<hr width="100%" size="2" align="left" noshade style="color:#8091A5; "><br>
<br>
<br>
<font size="2" face="sans-serif">Hi, Tao Tao,</font><font size="3" face="sans-serif"><br>
</font><font size="2" face="sans-serif"><br>
Here is an example,</font><font size="3" face="sans-serif"><br>
</font><font size="2" face="sans-serif"><br>
DEBUG (session) REQ: curl -i -X GET </font><a href="http://9.186.100.22:8004/v1/f334fc078b944b60a08d121022fae0f0/stacks/s1"><font size="2" color="#0000FF" face="sans-serif"><u>http://9.186.100.22:8004/v1/f334fc078b944b60a08d121022fae0f0/stacks/s1</u></font></a><font size="2" face="sans-serif">  ... ...</font><font size="3" face="sans-serif"><br>
</font><font size="2" face="sans-serif"><br>
RESP BODY:<br>
{ "stack" : { "capabilities" : [  ],</font><font size="3" face="sans-serif"><br>
</font><font size="2" face="sans-serif"><br>
      ... ...</font><font size="3" face="sans-serif"><br>
</font><font size="2" face="sans-serif"><br>
      "parent" : null,<br>
      "stack_name" : "s1",<br>
      "stack_owner" : "admin",<br>
      "stack_status" : "CREATE_FAILED",<br>
      "stack_status_reason" : "Resource CREATE failed: Error: Resource CREATE failed: Forbidden: Quota exceeded for instances: Requested 1, but already used 4 of 4 instances (HTTP 403) (Request-ID: req-02784ecc-4713-4601-84b5-099586d7b436)",<br>
      "template_description" : "Creates an autoscaling application using Ceilometer.",<br>
      "timeout_mins" : null,<br>
      "updated_time" : null<br>
    } }</font><font size="3" face="sans-serif"><br>
<br>
</font><font size="2" face="sans-serif"><br>
Whether "stack_status_reason" can satisfy your requirement?<br>
<br>
<br>
Best Regards,<br>
Liu, Hang(Henry) <br>
<br>
----------------------------------------------------------<br>
hangliu@cn.ibm.com | Tel: +8610-58748871   | ITN: 6-9058871<br>
----------------------------------------------------------</font><tt><font size="2"><br>
OpenStack-dev mailing list<br>
OpenStack-dev@lists.openstack.org</font></tt><font size="3" color="#0000FF" face="sans-serif"><u><br>
</u></font><a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev"><tt><font size="2" color="#0000FF"><u>http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</u></font></tt></a><font size="3" face="sans-serif"><br>
<br>
<br>
</font><tt><font size="2"><br>
Tao Tao <ttao@us.ibm.com> Ð´ÓÚ 2014/11/07 08:08:17:<br>
<br>
> From: Tao Tao <ttao@us.ibm.com><br>
> To: "OpenStack Development Mailing List \(not for usage questions\)"<br>
> <openstack-dev@lists.openstack.org><br>
> Date: 2014/11/07 08:11<br>
> Subject: Re: [openstack-dev] [heat] How to expose the error messages<br>
> if the heat stack creation fails with software config/software deployment<br>
> <br>
> Hi, Ton:<br>
> <br>
> Thanks for your kind reply.<br>
> <br>
> What I really mean is how to expose the error messages so that I can<br>
> use Heat REST API to find the error messages?<br>
> <br>
> In another word, how would a user to be able to find out the <br>
> specific error message as a Heat client?<br>
> <br>
> <br>
> Thanks,<br>
> Tao Tao, Ph.D.<br>
> IBM T. J. Watson Research Center<br>
> 1101 Kitchawan Road<br>
> Yorktown Heights, NY 10598<br>
> Phone: (914) 945-4541<br>
> Email: ttao@us.ibm.com<br>
> <br>
> [ͼÏñÒÑɾ³ý] Ton Ngo---11/06/2014 07:04:30 PM---Hi Tao Tao,    If <br>
> you use Ubuntu image, you can check /var/log/syslog<br>
> <br>
> From: Ton Ngo/Watson/IBM@IBMUS<br>
> To: "OpenStack Development Mailing List \(not for usage questions\)"<br>
> <openstack-dev@lists.openstack.org><br>
> Date: 11/06/2014 07:04 PM<br>
> Subject: Re: [openstack-dev] [heat] How to expose the error messages<br>
> if the heat stack creation fails with software config/software deployment<br>
> <br>
> <br>
> <br>
> Hi Tao Tao,<br>
>   If you use Ubuntu image, you can check /var/log/syslog<br>
> Look for section like:<br>
> Running /opt/stack/os-config-refresh/configure.d/20-os-apply-config<br>
> You should see the logs for running the script, error message, script<br>
> output<br>
> The scripts are stored on the VM instance<br>
> in:  /var/lib/heat-config/heat-config-script<br>
> Ton Ngo,<br>
> <br>
> <br>
> <br>
> From: Tao Tao/Watson/IBM@IBMUS<br>
> To: "OpenStack List" <openstack-dev@lists.openstack.org><br>
> Date: 11/06/2014 12:09 PM<br>
> Subject: [openstack-dev] [heat] How to expose the error messages if the<br>
>            heat stack creation fails with software config/software<br>
>            deployment<br>
> <br>
> <br>
> <br>
> Hi, All:<br>
> <br>
> When the heat stack creation fails due to software config/software<br>
> deployment with scripts/chef/puppet, we are not able to locate the error<br>
> message with Heat REST APIs.<br>
> <br>
> What is the best practice to solve this problem?<br>
> <br>
> <br>
> Thanks,<br>
> Tao Tao, Ph.D.<br>
> IBM T. J. Watson Research Center<br>
> 1101 Kitchawan Road<br>
> Yorktown Heights, NY 10598<br>
> Phone: (914) 945-4541<br>
> Email: ttao@us.ibm.com_______________________________________________<br>
> OpenStack-dev mailing list<br>
> OpenStack-dev@lists.openstack.org<br>
> </font></tt><a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev"><tt><font size="2" color="#0000FF"><u>http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</u></font></tt></a><tt><font size="2"><br>
> <br>
> <br>
> <br>
> _______________________________________________<br>
> OpenStack-dev mailing list<br>
> OpenStack-dev@lists.openstack.org<br>
> </font></tt><a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev"><tt><font size="2" color="#0000FF"><u>http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</u></font></tt></a><tt><font size="2"><br>
> <br>
> _______________________________________________<br>
> OpenStack-dev mailing list<br>
> OpenStack-dev@lists.openstack.org<br>
> </font></tt><a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev"><tt><font size="2" color="#0000FF"><u>http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</u></font></tt></a><tt><font size="2">_______________________________________________<br>
OpenStack-dev mailing list<br>
OpenStack-dev@lists.openstack.org<br>
</font></tt><tt><font size="2"><a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</a></font></tt><tt><font size="2"><br>
</font></tt><br>
</body></html>