<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">On 8 January 2014 18:14, Gareth Bult <span dir="ltr"><<a href="mailto:gareth@linux.co.uk" target="_blank">gareth@linux.co.uk</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div style="font-size:12pt;font-family:trebuchet ms,sans-serif"><div>Hi Daniel,<br></div><div><br></div><div>Well your patch for the SSH key works, which is a bit of a relief .. :-)</div>

<div><br></div><div>Also removing IMAGE_ID in advanced seems to work .. although could I propose that the</div><div>fact that it allows both and allows them to be different - is actually also a bug ??</div></div></div></blockquote>

<div><br></div><div>Yes, it is. Could you open a ticket in our dev page so we can fix it for upcoming relesases?</div><div><br></div><div>Cheers</div><div><br></div><div> <br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<div><div style="font-size:12pt;font-family:trebuchet ms,sans-serif"><div><br></div><div><span name="x"></span><div><div><span size="2" style="font-size:small">--</span></div><div><table><tbody><tr><td><img src="http://linuxforums.org.uk/index.php?action=dlattach;attach%3D262;type%3Davatar"></td>

<td><div><b style="font-family:verdana,Helvetica,sans-serif;font-size:11px;line-height:14px">Gareth Bult</b><br><span color="#666666" style="color:#666666"><span face="verdana, Helvetica, sans-serif" style="font-family:verdana,Helvetica,sans-serif"><span style="font-size:11px;line-height:14px">“The odds of hitting your target go up dramatically when you aim at it.”</span></span></span><span color="#666666" style="color:#666666"><br>

</span><span color="#666666" style="color:#666666"><span style="color:#666666;font-family:verdana,Helvetica,sans-serif;font-size:11px;line-height:14px">See the status of my current project at <a href="http://vdc-store.com" target="_blank">http://vdc-store.com</a></span></span></div>

<div><span color="#666666" style="color:#666666"><span face="verdana, Helvetica, sans-serif" style="font-family:verdana,Helvetica,sans-serif"><span style="font-size:11px;line-height:14px"><br></span></span></span></div></td>

</tr></tbody></table></div></div><span name="x"></span><br></div><hr><div style="font-size:12pt;font-style:normal;font-family:Helvetica,Arial,sans-serif;text-decoration:none;font-weight:normal"><b>From: </b>"Daniel Molina" <<a href="mailto:dmolina@opennebula.org" target="_blank">dmolina@opennebula.org</a>><br>

<b>To: </b>"Gareth Bult" <<a href="mailto:gareth@linux.co.uk" target="_blank">gareth@linux.co.uk</a>><br><b>Cc: </b>"Users OpenNebula" <<a href="mailto:users@lists.opennebula.org" target="_blank">users@lists.opennebula.org</a>><br>

<b>Sent: </b>Wednesday, 8 January, 2014 4:40:24 PM<br><b>Subject: </b>Re: [one-users] Sunstone issue re; editing Templates<div><div class="h5"><br><div><br></div><div dir="ltr">Hi Gareth,<div><br></div><div>When you define an image in a disk you can use:</div>

<div>a) IMAGE_ID</div><div>b) IMAGE & IMAGE_UNAME</div><div><br></div><div>In your template both options are defined and each one points to a different IMAGE. To fix this, open the advanced section of the storage tab in the update wizard and remove the content of the IMAGE_ID input. This should fix the problem.</div>



<div><br></div><div>Regarding the ssh key problem, you found a bug. It should be filled up as the rest of values, to fix it apply the following patch:</div><div><br></div><div><div>diff --git a/src/sunstone/public/js/plugins/templates-tab.js b/src/sunstone/public/js/plugins/templates-tab.js</div>



<div>index 47f95b6..d38151c 100644</div><div>--- a/src/sunstone/public/js/plugins/templates-tab.js</div><div>+++ b/src/sunstone/public/js/plugins/templates-tab.js</div><div>@@ -4691,7 +4691,7 @@ function fillTemplatePopUp(request, response){</div>



<div>                 $("#ssh_context", context_section).attr('checked','checked');</div><div><br></div><div>                 if (!publickey_regexp.test(value)) {</div><div>-                    $("input#ssh_public_key").val(value);</div>



<div>+                    $("#ssh_public_key", context_section).val(value);</div><div>                 }</div><div>             }</div><div>             else if (token_regexp.test(key)) {</div><div><br></div>Cheers<br>



<br>On 8 January 2014 17:40, Gareth Bult <<a href="mailto:gareth@linux.co.uk" target="_blank">gareth@linux.co.uk</a>> wrote:<br>><br>> Ok, it gets better, I have another VM that's running Ok, when I look at the browser I see;<br>



><br>> DISK<br>> CACHEwritethrough<br>> DEV_PREFIXsd<br>> DRIVERraw<br>> IMAGERelay1-Main<br>> IMAGE_ID93<br>> IMAGE_UNAMEoneadmin<br>> IOnative<br>> Yet when I edit the template I see;<br>><br>



> IDNameDatastoreTypeStatus#VMS<br>> 188Relay1-Copydata2OSREADY0<br>> 187Relay1-Maindata2OSUSED_PERS1<br>> 186NS3-Copydata2OSREADY0<br>> 185NS3-Maindata2OSUSED_PERS1<br>><br>> 1<br>> 2<br>> 3<br>



> 4<br>> 5<br>><br>><br>> You selected the following image: Relay1-Main<br>><br>><br>> i.e. The browser is showing image ID 93, whereas the template editor is showing the correct and running <br>> image_id which is 187.  (yes, I've tried the reload icon, and moved off/on etc etc)<br>



><br>> "onevm show" shows the correct name, but only the name ..<br>><br>> It looks like the GUI isn't keeping up with the underlying infrastructure ...<br>> (93 is an "old" image that "used" to be used by the template)<br>



><br>><br>> --<br>> Gareth Bult<br>> “The odds of hitting your target go up dramatically when you aim at it.”<br>> See the status of my current project at <a href="http://vdc-store.com" target="_blank">http://vdc-store.com</a><br>



><br>><br>> ________________________________<br>> From: "Gareth Bult" <<a href="mailto:gareth@linux.co.uk" target="_blank">gareth@linux.co.uk</a>><br>> To: "Users OpenNebula" <<a href="mailto:users@lists.opennebula.org" target="_blank">users@lists.opennebula.org</a>><br>



> Sent: Wednesday, 8 January, 2014 4:12:54 PM<br>><br>> Subject: [one-users] Sunstone issue re; editing Templates<br>><br>> Hi,<br>><br>> I seem to have run into a very strange issue .. I have a template that "looks" fine when you look<br>



> at it from the browser, launches Ok, but when you come to modify the template, and click on storage,<br>> it's showing the wrong storage volume. If you inadvertently click "update" at this point, your end<br>



> up with your template pointing at this wrong storage volume.<br>><br>> I've tried lots of random changes, but can't seem to change this behaviour .. yet other templates seem<br>> to work Ok .. any ideas re; how I debug this .. it's pretty critical if the GUI is going to blindly<br>



> change the storage volume when you change a.n.other part of the template ...<br>><br>> Also (!) while I'm on the subject, is there any way we can persuade the GUI to save the context information<br>> (SSH public key) between template modifications ... having to re-enter the SSH key *every* time I modify a<br>



> template is very frustrating ...<br>><br>> tia<br>> Gareth.<br>><br>> --<br>>         <br>> Gareth Bult<br>> “The odds of hitting your target go up dramatically when you aim at it.”<br>> See the status of my current project at <a href="http://vdc-store.com" target="_blank">http://vdc-store.com</a><br>



> _______________________________________________<br>> Users mailing list<br>> <a href="mailto:Users@lists.opennebula.org" target="_blank">Users@lists.opennebula.org</a><br>> <a href="http://lists.opennebula.org/listinfo.cgi/users-opennebula.org" target="_blank">http://lists.opennebula.org/listinfo.cgi/users-opennebula.org</a><br>



><br>> <br>><br>> _______________________________________________<br>> Users mailing list<br>> <a href="mailto:Users@lists.opennebula.org" target="_blank">Users@lists.opennebula.org</a><br>> <a href="http://lists.opennebula.org/listinfo.cgi/users-opennebula.org" target="_blank">http://lists.opennebula.org/listinfo.cgi/users-opennebula.org</a><br>



><br clear="all"><div><br></div>-- <br><div dir="ltr"><div>--<br></div>Daniel Molina<br>Project Engineer<br>OpenNebula - Flexible Enterprise Cloud Made Simple<br><a href="http://www.OpenNebula.org" target="_blank">www.OpenNebula.org</a> | <a href="mailto:dmolina@opennebula.org" target="_blank">dmolina@opennebula.org</a> | @OpenNebula</div>




</div></div>
</div></div></div><div><br></div></div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div dir="ltr"><div>--<br></div>Daniel Molina<br>Project Engineer<br>OpenNebula - Flexible Enterprise Cloud Made Simple<br>

<a href="http://www.OpenNebula.org" target="_blank">www.OpenNebula.org</a> | <a href="mailto:dmolina@opennebula.org" target="_blank">dmolina@opennebula.org</a> | @OpenNebula</div>
</div></div>