<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hi, <div><br></div><div>Another update, it seems to be solved now. The javascript code seems to be case-sensitive. </div><div><br></div><div>in compute.js line 262 I've updated the NAME to name (lowercase). Now the instance types are properly formated. </div><div><br></div><div>orig:                var type = response[i].INSTANCE_TYPE.NAME;</div><div><br></div><div><div>updated:     <span class="Apple-tab-span" style="white-space:pre">  </span>var type = response[i].INSTANCE_TYPE.name;</div><div><br></div><div><br></div><div>I've tested with Firefox and Chrome on OS-X 10.7.3</div><div><br></div><div>Is this something that is a bug, or that is related to my OS/browser?</div><div><br></div><div>Best regards, </div><div><br></div><div>rogier</div><div><br></div><div><div>On Mar 18, 2012, at 1:16 PM, Rogier Mars wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hi, <div><br></div><div>I forgot to include the screenshot. </div><div><br></div><div>Best regards, </div><div><br></div><div>rogier</div><div><br></div><div><br></div><div><span><Screen Shot 2012-03-18 at 1.12.19 PM.png></span><br><div><div>On Mar 18, 2012, at 1:14 PM, Rogier Mars wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">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 href="view-source:http://cloudcontroller1.eq.redbee.nl:4567/instance_type">view-source:http://cloudcontroller1.eq.redbee.nl:4567/instance_type</a></div><div><br></div><div><span class="Apple-tab-span" style="white-space:pre">     </span><INSTANCE_TYPE_COLLECTION><br><INSTANCE_TYPE href="<a href="http://cloudcontroller1.eq.redbee.nl:4567/instance_type/small">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">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">http://cloudcontroller1.eq.redbee.nl:4567/instance_type/large</a>" name="large" /><br></INSTANCE_TYPE_COLLECTION></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>On Mar 17, 2012, at 7:01 PM, Rogier Mars wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">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 href="view-source:http://localhost:4567/instance_type">view-source:http://localhost:4567/instance_type</a></div><div>I see the configured instance types:</div><div><table style="letter-spacing: normal; orphans: 2; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><tbody><tr><td class="webkit-line-number"></td><td class="webkit-line-content"><span class="webkit-html-tag"><INSTANCE_TYPE_COLLECTION></span></td></tr><tr><td class="webkit-line-number"></td><td class="webkit-line-content">     <span class="webkit-html-tag"><INSTANCE_TYPE <span class="webkit-html-attribute-name">href</span>="<a class="webkit-html-attribute-value webkit-html-resource-link" target="_blank" href="http://localhost:4567/instance_type/small">http://localhost:4567/instance_type/small</a>"  <span class="webkit-html-attribute-name">name</span>="<span class="webkit-html-attribute-value">small</span>"></span></td></tr><tr><td class="webkit-line-number"></td><td class="webkit-line-content">        <span class="webkit-html-tag"><INSTANCE_TYPE <span class="webkit-html-attribute-name">href</span>="<a class="webkit-html-attribute-value webkit-html-resource-link" target="_blank" href="http://localhost:4567/instance_type/basic">http://localhost:4567/instance_type/basic</a>"  <span class="webkit-html-attribute-name">name</span>="<span class="webkit-html-attribute-value">basic</span>"></span></td></tr><tr><td class="webkit-line-number"></td><td class="webkit-line-content"><span class="webkit-html-tag"></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><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">Users@lists.opennebula.org</a><br><a href="http://lists.opennebula.org/listinfo.cgi/users-opennebula.org">http://lists.opennebula.org/listinfo.cgi/users-opennebula.org</a><br></blockquote></div><br></div></div>_______________________________________________<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">http://lists.opennebula.org/listinfo.cgi/users-opennebula.org</a><br></blockquote></div><br></div></div>_______________________________________________<br>Users mailing list<br><a href="mailto:Users@lists.opennebula.org">Users@lists.opennebula.org</a><br>http://lists.opennebula.org/listinfo.cgi/users-opennebula.org<br></blockquote></div><br></div></body></html>