<div dir="ltr">hi,<div>trying to add a little of context to the request of daniel :)</div><div><br></div><div>we are playing with nova-docker, and we realized that </div><div><br></div><div>1) it's unclear (or not supported) passing enviroment variable through userdata. probably the current version of  IBM Cloud Manager with OpenStack V4.3 indeed does implement a mechanism [1], but is not commited on stackforge</div><div><br></div><div>2) a large number of containers will fail during the start because of missing required enviroment parameters. the user in the interface will be notified a "No valid host found", which is quite puzzling and not very user friendly :)</div><div><br></div><div>so we are tyring to find out:</div><div><br></div><div>about 1) is there already an official solution? not much work also to implement the same solution proposed in [1]. most important is agreeing on how to pass such parameters (also without a metadata server and cloud-init, e.g. using user_data).</div><div><br></div><div>about 2) unfortunately the docker remote client regardless any error during the start of a containers returns you a simple 204 code. what can be done, is checking - after the "start" command - if the container as an error code using the container inspector. still this has 2 inconvinients: a) if the inspections occurs before the container exiting with error, you will not be able to detect the issue; b) we tried to retrieve the "error message" but apparently is not available through the docker apis, while on command line using "docker run..." you would get a nice message such as: please set this variable. </div><div>any nice idea on how to solve this?</div><div><br></div><div>cheers,</div><div>federico</div><div><br></div><div>[1] <a href="http://www-01.ibm.com/support/knowledgecenter/#!/SST55W_4.3.0/liaca/liaca_container_instance.html">http://www-01.ibm.com/support/knowledgecenter/#!/SST55W_4.3.0/liaca/liaca_container_instance.html</a></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Jul 10, 2015 at 11:03 AM, Daniel Depaoli <span dir="ltr"><<a href="mailto:daniel.depaoli@create-net.org" target="_blank">daniel.depaoli@create-net.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr">Hi all.<div>I have a brief question about nova and nova-docker.</div><div>In nova-docker I add a piece of code when I raise an exception, in particular in 'novadocker/virt/docker/driver.py', function '_start_container':</div><div><br></div><div><div><div><i><font size="1">        exitcode=self.docker.inspect_container(container_id)['State']['ExitCode']</font></i></div><div><i><font size="1">        if exitcode > 0:</font></i></div><div><i><font size="1">            raise exception.NoValidHost(reason="Error in docker exit code")</font></i></div></div><div><br></div><div>In nova cli or horizon I expect to see my error and not the general error raised after my code.</div><div>Can you help me?</div><span class=""><font color="#888888"><div><br></div><div>Daniel</div>
</font></span></div></div>
<br>__________________________________________________________________________<br>
OpenStack Development Mailing List (not for usage questions)<br>
Unsubscribe: <a href="http://OpenStack-dev-request@lists.openstack.org?subject:unsubscribe" rel="noreferrer" target="_blank">OpenStack-dev-request@lists.openstack.org?subject:unsubscribe</a><br>
<a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev" rel="noreferrer" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><span style="color:rgb(0,0,0);font-family:Helvetica;font-size:12px">--</span><br style="color:rgb(0,0,0);font-family:Helvetica;font-size:12px"><span style="color:rgb(0,0,0);font-family:Helvetica;font-size:12px">Future Internet is closer than you think!</span><br style="color:rgb(0,0,0);font-family:Helvetica;font-size:12px"><span style="color:rgb(0,0,0);font-family:Helvetica;font-size:12px"><a href="http://www.fiware.org" target="_blank">http://www.fiware.org</a></span><br style="color:rgb(0,0,0);font-family:Helvetica;font-size:12px"><br style="color:rgb(0,0,0);font-family:Helvetica;font-size:12px"><span style="color:rgb(0,0,0);font-family:Helvetica;font-size:12px">Official Mirantis partner for OpenStack Training</span><br style="color:rgb(0,0,0);font-family:Helvetica;font-size:12px"><span style="color:rgb(0,0,0);font-family:Helvetica;font-size:12px"><a href="https://www.create-net.org/community/openstack-training" target="_blank">https://www.create-net.org/community/openstack-training</a></span><br style="color:rgb(0,0,0);font-family:Helvetica;font-size:12px"><br style="color:rgb(0,0,0);font-family:Helvetica;font-size:12px"><span style="color:rgb(0,0,0);font-family:Helvetica;font-size:12px">-- </span><br style="color:rgb(0,0,0);font-family:Helvetica;font-size:12px"><span style="color:rgb(0,0,0);font-family:Helvetica;font-size:12px">Dr. Federico M. Facca</span><br style="color:rgb(0,0,0);font-family:Helvetica;font-size:12px"><br style="color:rgb(0,0,0);font-family:Helvetica;font-size:12px"><span style="color:rgb(0,0,0);font-family:Helvetica;font-size:12px">CREATE-NET</span><br style="color:rgb(0,0,0);font-family:Helvetica;font-size:12px"><span style="color:rgb(0,0,0);font-family:Helvetica;font-size:12px">Via alla Cascata 56/D</span><br style="color:rgb(0,0,0);font-family:Helvetica;font-size:12px"><span style="color:rgb(0,0,0);font-family:Helvetica;font-size:12px">38123 Povo Trento (Italy)</span><br style="color:rgb(0,0,0);font-family:Helvetica;font-size:12px"><br style="color:rgb(0,0,0);font-family:Helvetica;font-size:12px"><span style="color:rgb(0,0,0);font-family:Helvetica;font-size:12px">P  </span><span style="color:rgb(0,0,0);font-family:Helvetica;font-size:12px">+39 0461 312471</span><br style="color:rgb(0,0,0);font-family:Helvetica;font-size:12px"><span style="color:rgb(0,0,0);font-family:Helvetica;font-size:12px">M +39 334 6049758</span><br style="color:rgb(0,0,0);font-family:Helvetica;font-size:12px"><span style="color:rgb(0,0,0);font-family:Helvetica;font-size:12px">E  <a href="mailto:federico.facca@create-net.org" target="_blank">federico.facca@create-net.org</a></span><br style="color:rgb(0,0,0);font-family:Helvetica;font-size:12px"><span style="color:rgb(0,0,0);font-family:Helvetica;font-size:12px">T @chicco785</span><br style="color:rgb(0,0,0);font-family:Helvetica;font-size:12px"><span style="color:rgb(0,0,0);font-family:Helvetica;font-size:12px">W  <a href="http://www.create-net.org" target="_blank">www.create-net.org</a></span></div></div></div></div></div></div>
</div></div>