<div dir="ltr"><div><div><div>Not sure that whether I have resolved the problem completely or not, but now its working with the following changes in heat.conf file:<br><br>#[profiler]<br>#profiler_enabled = True<br>#trace_sqlalchemy = True<br><br></div>Just commented the above and restarted the service and now its working. If there is any suggestion or any other input/advice in general then please drop me an email.<br><br></div>Thanks & Regards,<br></div>Mohit<br></div><div class="gmail_extra"><br><div class="gmail_quote">On 27 June 2017 at 14:16, Mohit Taneja <span dir="ltr"><<a href="mailto:mohit.taneja@postgrad.wit.ie" target="_blank">mohit.taneja@postgrad.wit.ie</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><img class="m_6979867672486397998mailtrack-img" style="float:right" alt="" width="0" height="0"><br><div class="gmail_quote"><div dir="ltr"><div class="gmail_quote"><br><div dir="ltr">---------- Forwarded message ----------<br><div class="gmail_quote"><div><div class="h5">From: <b class="gmail_sendername">MOHIT TANEJA</b> <span dir="ltr"><<a href="mailto:mohittaneja7@gmail.com" target="_blank">mohittaneja7@gmail.com</a>></span><br>Date: Tue, Jun 27, 2017 at 11:34 AM<br>Subject: Openstack Heat/Orchestration Service - 500 Internal Server Error<br>To: <a href="mailto:ochuprykov@mirantis.com" target="_blank">ochuprykov@mirantis.com</a>, <a href="mailto:skraynev@mirantis.com" target="_blank">skraynev@mirantis.com</a>, <a href="mailto:mkr1481@gmail.com" target="_blank">mkr1481@gmail.com</a><br><br><br></div></div><div dir="ltr"><div><div class="h5"><div>Hi, <br><br></div><div>When I try to orchestrate (create stack) using heat template I get the following error:<br><br></div><div><u><b>Commands:</b></u><br><br></div><div><u><b>To Create Stack:</b></u><br><br></div><div>$> openstack stack create -t <file.yaml> -e <file.env> STACKNAME<br></div><div><br><br></div><div><u><b>To Check Stack list:<br><br></b></u></div><div>$>openstack stack list<br><br></div><div>/*Both command after sourcing the shell file*/<br></div><div><u></u></div><div><br></div></div></div><div><div><div class="h5"><u><b>Error that I receive:</b></u><br><br>ubuntu@mohitfogcloud:~$ openstack stack list<br>ERROR: <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"><br><html><head><br><title>500 Internal Server Error</title><br></head><body><br><h1>Internal Server Error</h1><br><p>The server encountered an internal error or<br>misconfiguration and was unable to complete<br>your request.</p><br><p>Please contact the server administrator at <br> [no address given] to inform them of the time this error occurred,<br> and the actions you performed just before this error.</p><br><p>More information about this error may be available<br>in the server error log.</p><br><hr><br><address>Apache/2.4.18 (Ubuntu) Server at 192.168.1.126 Port 8004</address><br></body></html><br><br>​<br></div></div><u><b>heat_api.log shows the following:</b></u><br><br>2017-06-27 12:37:58.884717 
mod_wsgi (pid=2139): Target WSGI script '/usr/local/bin/heat-wsgi-api' 
cannot be loaded as Python module.<br>2017-06-27 12:37:58.884737 mod_wsgi (pid=2139): Exception occurred processing WSGI script '/usr/local/bin/heat-wsgi-api'<wbr>.<br>2017-06-27 12:37:58.884754 Traceback (most recent call last):<br>2017-06-27 12:37:58.884770   File "/usr/local/bin/heat-wsgi-api"<wbr>, line 54, in <module><br>2017-06-27 12:37:58.884814     application = init_application()<br>2017-06-27 12:37:58.884825   File "/opt/stack/heat/heat/httpd/he<wbr>at_api.py", line 36, in init_application<br>2017-06-27 12:37:58.884852     logging.register_options(cfg.C<wbr>ONF)<br>2017-06-27 12:37:58.884861   File "/usr/local/lib/python2.7/dist<wbr>-packages/oslo_log/log.py", line 250, in register_options<br>2017-06-27 12:37:58.884874     conf.register_cli_opts(_option<wbr>s.common_cli_opts)<br>2017-06-27 12:37:58.884882   File "/usr/local/lib/python2.7/dist<wbr>-packages/oslo_config/cfg.py", line 2329, in __inner<br>2017-06-27 12:37:58.884895     result = f(self, *args, **kwargs)<br>2017-06-27 12:37:58.884902   File "/usr/local/lib/python2.7/dist<wbr>-packages/oslo_config/cfg.py", line 2551, in register_cli_opts<br>2017-06-27 12:37:58.884913     self.register_cli_opt(opt, group, clear_cache=False)<br>2017-06-27 12:37:58.884932   File "/usr/local/lib/python2.7/dist<wbr>-packages/oslo_config/cfg.py", line 2333, in __inner<br>2017-06-27 12:37:58.884943     return f(self, *args, **kwargs)<br>2017-06-27 12:37:58.884949   File "/usr/local/lib/python2.7/dist<wbr>-packages/oslo_config/cfg.py", line 2543, in register_cli_opt<br>2017-06-27 12:37:58.884960     raise ArgsAlreadyParsedError("cannot register CLI option")<br>2017-06-27 12:37:58.884977 ArgsAlreadyParsedError: arguments already parsed: cannot register CLI option<br><br><br></div><span class=""><div>I checked that it was a bug initially which was fixed in openstac/heat 6.0.0.0b1. I referred to the following links:<br><br><a href="https://bugs.launchpad.net/heat/+bug/1500807" target="_blank">https://bugs.launchpad.net/hea<wbr>t/+bug/1500807</a><br><br><a href="https://review.openstack.org/gitweb?p=openstack/heat.git;a=commitdiff;h=a1b3c23ff856ed2574a1ab50ba854f6a79b3213e#patch1" target="_blank">https://review.openstack.org/g<wbr>itweb?p=openstack/heat.git;a=c<wbr>ommitdiff;h=a1b3c23ff856ed2574<wbr>a1ab50ba854f6a79b3213e#patch1</a><br><br><a href="https://git.openstack.org/cgit/openstack/heat/diff/?id=a1b3c23ff856ed2574a1ab50ba854f6a79b3213e" target="_blank">https://git.openstack.org/cgit<wbr>/openstack/heat/diff/?id=a1b3c<wbr>23ff856ed2574a1ab50ba854f6a79b<wbr>3213e</a><br><br><br></div><div>I am using latest version of heat and everything seems to be as desired as per the links above, but I am still getting the error as mentioned.<br><br></div><div>I please request you to help me out here to fix this issue.<br><br></div><div>Eagerly waiting for your response!<br><br></div><div>Thanking you in anticipation!<br><br></div><div>Best Regards,<br></div><div>Mohit<br></div><div><br></div></span></div></div></div></div>
</div>
</div><br></div>
</blockquote></div><br></div>