Hi<br><br><div class="gmail_quote">On 18 March 2012 13:14, Rogier Mars <span dir="ltr"><<a href="mailto:rogier@fortytwo.nl">rogier@fortytwo.nl</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div style="word-wrap:break-word">Hi, <div><br></div><div>I've made some progress. I've changed the following in /usr/lib/one/ruby/cloud/occi/OCCIServer.rb</div><div>line 123:</div><div>original:</div><div> xml_resp << "\t<INSTANCE_TYPE href=\"#{@base_url}/instance_type/#{name.to_s}\" name=\"#{name}\">\n"</div>
<div><div><div><br></div><div><div>updated with closing tag "\":</div><div> xml_resp << "\t<INSTANCE_TYPE href=\"#{@base_url}/instance_type/#{name.to_s}\" name=\"#{name}\" \/>\n"</div>
<div><br></div><div>Now the INSTANCE_TYPE is closed with a />. See below:</div><div><br></div><div>The <a>view-source:http://cloudcontroller1.eq.redbee.nl:4567/instance_type</a></div><div><br></div><div><span style="white-space:pre-wrap"> </span><INSTANCE_TYPE_COLLECTION><br>
<INSTANCE_TYPE href="<a href="http://cloudcontroller1.eq.redbee.nl:4567/instance_type/small" target="_blank">http://cloudcontroller1.eq.redbee.nl:4567/instance_type/small</a>" name="small" /><br>
<INSTANCE_TYPE href="<a href="http://cloudcontroller1.eq.redbee.nl:4567/instance_type/medium" target="_blank">http://cloudcontroller1.eq.redbee.nl:4567/instance_type/medium</a>" name="medium" /><br>
<INSTANCE_TYPE href="<a href="http://cloudcontroller1.eq.redbee.nl:4567/instance_type/large" target="_blank">http://cloudcontroller1.eq.redbee.nl:4567/instance_type/large</a>" name="large" /><br>
</INSTANCE_TYPE_COLLECTION></div></div></div></div></div></blockquote><div><br></div><div><br></div><div>What OpenNebula version are you using? This bug is already fixed in the master branch of the repository</div>
<div>
<br></div><div>Cheers</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word"><div><div><div><div><br></div><div><br></div>
<div>
The Instance Type drop down in the create VM now lists Undefined, instead of the correct instance type names (small, medium, large). </div><div><br></div><div>The problem seems to be in the javascript code that processes the XML content that the OCCI server produces. </div>
<div><br></div><div>Please keep in mind that I'm a sysadmin, not a coder, so I might be interpreting all this wrong :)</div><div><br></div><div>Best regards, </div><div><br></div><div>rogier</div><div><br></div><div>
<div>
</div></div></div><div><div class="h5"><div>On Mar 17, 2012, at 7:01 PM, Rogier Mars wrote:</div><br></div></div><blockquote type="cite"><div style="word-wrap:break-word"><div><div class="h5">Hi, <div><br></div><div>I've been trying to start using the selfservice portal in ONE 3.2.1. I've configured and started the OCCI Server. I was able to manually initiate an instance with the "occi-compute create" command. This was listed in the Self Service portal. However, when I login to the Self Service portal and try to create a new VM, the drop down box for the Instance Type stays empty, with only the word "Loading…" in it. The interface shows an empty Error box. When I look in the developer console this error message box shows the available instance types that I've configured in the occi-server.conf (see the attached screenshots). </div>
<div><br></div><div>when I go to the OCCI url: <a>view-source:http://localhost:4567/instance_type</a></div><div>I see the configured instance types:</div><div><table style="letter-spacing:normal;text-indent:0px;text-transform:none;word-spacing:0px">
<tbody><tr><td></td><td><span><INSTANCE_TYPE_COLLECTION></span></td></tr><tr><td></td><td> <span><INSTANCE_TYPE <span>href</span>="<a href="http://localhost:4567/instance_type/small" target="_blank">http://localhost:4567/instance_type/small</a>" <span>name</span>="<span>small</span>"></span></td>
</tr><tr><td></td><td> <span><INSTANCE_TYPE <span>href</span>="<a href="http://localhost:4567/instance_type/basic" target="_blank">http://localhost:4567/instance_type/basic</a>" <span>name</span>="<span>basic</span>"></span></td>
</tr><tr><td></td><td><span></INSTANCE_TYPE_COLLECTION></span></td></tr></tbody></table><div><br></div></div><div><br></div><div>Do you have any idea what can be wrong? I've updated all available gems just to be sure. I'm running on CentOS6 64-bit. </div>
<div><br></div><div>Thanks for any suggestions!</div><div><br></div><div>Cheers, </div><div><br></div><div>Rogier</div><div><br></div></div></div><div><span><Screen Shot 2012-03-17 at 6.52.15 PM.png></span><span><Screen Shot 2012-03-17 at 6.52.01 PM.png></span></div>
</div>_______________________________________________<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>
</blockquote></div><br></div></div><br>_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opennebula.org">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></blockquote></div><br><br clear="all"><div><br></div>-- <br>Daniel Molina<br>Project Engineer<br>OpenNebula - The Open Source Solution for Data Center Virtualization<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<br>