<html><body>
<p><font size="2" face="sans-serif">I am using devstack, which should be juno version.</font><br>
<font size="2" face="sans-serif"><br>
Best Regards,<br>
Liu, Hang(Henry) <br>
<br>
</font><tt><font size="2"> ----------------------------------------------------------<br>
 hangliu@cn.ibm.com | Tel: +8610-58748871   | ITN: 6-9058871<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">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</font></tt></a><br>
<br>
<tt><font size="2"><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">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</font></tt></a><br>
<tt><font size="2">Tao Tao <ttao@us.ibm.com> Ð´ÓÚ 2014/11/07 11:17:49:<br>
<br>
> From: Tao Tao <ttao@us.ibm.com></font></tt><br>
<tt><font size="2">> To: "OpenStack Development Mailing List \(not for usage questions\)"<br>
> <openstack-dev@lists.openstack.org></font></tt><br>
<tt><font size="2">> Date: 2014/11/07 11:21</font></tt><br>
<tt><font size="2">> Subject: Re: [openstack-dev] [heat] How to expose the error messages<br>
> if the heat stack creation fails with software config/software deployment</font></tt><br>
<tt><font size="2">> <br>
> Hi, Henry:<br>
> <br>
> Appreciate very much for your kind reply!<br>
> <br>
> Yes, this is what I want, however, I am not seeing the detailed <br>
> error message as you are seeing.<br>
> <br>
> I am still using OpenStack Icehouse, are you using OpenStack Juno orIcehouse?<br>
> <br>
> [root@openstack-03 heat(keystone_admin)]# heat stack-show LCH_test1<br>
> +----------------------<br>
> +------------------------------------------------------------------------------------------------------------------------------------------------------<br>
> +<br>
> | Property             | Value                                              |<br>
> +----------------------<br>
> +--------------------------------------------------------------------------------------------------------------------------------<br>
> |<br>
> | stack_status_reason  | Resource CREATE failed: Error: Deployment <br>
> to server                                                                   |<br>
> |                      | failed: deploy_status_code : Deployment <br>
> exited with                                                                 |<br>
> |                      | non-zero status code: 1                            |<br>
>                                                                             |<br>
> +----------------------<br>
> +------------------------------------------------------------------------------------------------------------------------------------------------------<br>
> +<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>
> [ͼÏñÒÑɾ³ý] Hang H Liu ---11/06/2014 09:53:40 PM---Hi, Tao Tao, <br>
> Here is an example,<br>
> <br>
> From: Hang H Liu <hangliu@cn.ibm.com><br>
> To: "OpenStack Development Mailing List \(not for usage questions\)"<br>
> <openstack-dev@lists.openstack.org><br>
> Date: 11/06/2014 09:53 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>
> <br>
> Here is an example,<br>
> <br>
> DEBUG (session) REQ: curl -i -X GET <a href="http://9.186.100.22:8004/v1/">http://9.186.100.22:8004/v1/</a><br>
> f334fc078b944b60a08d121022fae0f0/stacks/s1  ... ...<br>
> <br>
> RESP BODY:<br>
> { "stack" : { "capabilities" : [  ],<br>
> <br>
>      ... ...<br>
> <br>
>      "parent" : null,<br>
>      "stack_name" : "s1",<br>
>      "stack_owner" : "admin",<br>
>      "stack_status" : "CREATE_FAILED",<br>
>      "stack_status_reason" : "Resource CREATE failed: Error: <br>
> Resource CREATE failed: Forbidden: Quota exceeded for instances: <br>
> Requested 1, but already used 4 of 4 instances (HTTP 403) (Request-<br>
> ID: req-02784ecc-4713-4601-84b5-099586d7b436)",<br>
>      "template_description" : "Creates an autoscaling application <br>
> using Ceilometer.",<br>
>      "timeout_mins" : null,<br>
>      "updated_time" : null<br>
>    } }<br>
> <br>
> <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>
> ----------------------------------------------------------<br>
> OpenStack-dev mailing list<br>
> OpenStack-dev@lists.openstack.org<br>
> <a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</a><br>
> <br>
> <br>
> <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>
> > <a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</a><br>
> > <br>
> > <br>
> > <br>
> > _______________________________________________<br>
> > OpenStack-dev mailing list<br>
> > OpenStack-dev@lists.openstack.org<br>
> > <a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</a><br>
> > <br>
> > _______________________________________________<br>
> > OpenStack-dev mailing list<br>
> > OpenStack-dev@lists.openstack.org<br>
> > <a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</a><br>
> _______________________________________________<br>
> OpenStack-dev mailing list<br>
> OpenStack-dev@lists.openstack.org<br>
> <a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</a><br>
> _______________________________________________<br>
> OpenStack-dev mailing list<br>
> OpenStack-dev@lists.openstack.org<br>
> <a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</a><br>
</font></tt></body></html>