[one-users] self service instance type error

Rogier Mars rogier at fortytwo.nl
Sun Mar 18 05:16:33 PDT 2012


Hi, 

I forgot to include the screenshot. 

Best regards, 

rogier



On Mar 18, 2012, at 1:14 PM, Rogier Mars wrote:

> Hi, 
> 
> I've made some progress. I've changed the following in /usr/lib/one/ruby/cloud/occi/OCCIServer.rb
> line 123:
> original:
>                 xml_resp << "\t<INSTANCE_TYPE href=\"#{@base_url}/instance_type/#{name.to_s}\" name=\"#{name}\">\n"
> 
> updated with closing tag "\":
>                 xml_resp << "\t<INSTANCE_TYPE href=\"#{@base_url}/instance_type/#{name.to_s}\" name=\"#{name}\" \/>\n"
> 
> Now the INSTANCE_TYPE is closed with a />. See below:
> 
> The view-source:http://cloudcontroller1.eq.redbee.nl:4567/instance_type
> 
> 	<INSTANCE_TYPE_COLLECTION>
> <INSTANCE_TYPE href="http://cloudcontroller1.eq.redbee.nl:4567/instance_type/small" name="small" />
> <INSTANCE_TYPE href="http://cloudcontroller1.eq.redbee.nl:4567/instance_type/medium" name="medium" />
> <INSTANCE_TYPE href="http://cloudcontroller1.eq.redbee.nl:4567/instance_type/large" name="large" />
> </INSTANCE_TYPE_COLLECTION>
> 
> 
> The Instance Type drop down in the create VM now lists Undefined, instead of the correct instance type names (small, medium, large). 
> 
> The problem seems to be in the javascript code that processes the XML content that the OCCI server produces. 
> 
> Please keep in mind that I'm a sysadmin, not a coder, so I might be interpreting all this wrong :)
> 
> Best regards, 
> 
> rogier
> 
> On Mar 17, 2012, at 7:01 PM, Rogier Mars wrote:
> 
>> Hi, 
>> 
>> 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). 
>> 
>> when I go to the OCCI url: view-source:http://localhost:4567/instance_type
>> I see the configured instance types:
>> <INSTANCE_TYPE_COLLECTION>
>> <INSTANCE_TYPE href="http://localhost:4567/instance_type/small" name="small">
>> <INSTANCE_TYPE href="http://localhost:4567/instance_type/basic" name="basic">
>> </INSTANCE_TYPE_COLLECTION>
>> 
>> 
>> 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. 
>> 
>> Thanks for any suggestions!
>> 
>> Cheers, 
>> 
>> Rogier
>> 
>> <Screen Shot 2012-03-17 at 6.52.15 PM.png><Screen Shot 2012-03-17 at 6.52.01 PM.png>
>> _______________________________________________
>> Users mailing list
>> Users at lists.opennebula.org
>> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
> 
> _______________________________________________
> Users mailing list
> Users at lists.opennebula.org
> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opennebula.org/pipermail/users-opennebula.org/attachments/20120318/39edf793/attachment-0003.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Screen Shot 2012-03-18 at 1.12.19 PM.png
Type: image/png
Size: 57036 bytes
Desc: not available
URL: <http://lists.opennebula.org/pipermail/users-opennebula.org/attachments/20120318/39edf793/attachment-0003.png>


More information about the Users mailing list