[one-users] OCCI: parsing bug, unsupported character?

Marco Strutz marco.strutz at desy.de
Mon Jul 25 06:45:43 PDT 2011


ps: the installed opennebula version:

$ git log | head -n 6
commit d07323d2940acd9195dcad690d5dea9b66aff37a
Author: Javi Fontan <jfontan at gmail.com>
Date:   Mon Jul 11 14:40:50 2011 +0200

    bug #707: fix bug introduced in 5bf12e0, time not shown in onevm list




On 07/25/2011 03:43 PM, Marco Strutz wrote:
> Hello developers.
>
>
> I might found a bug in the occi-context section related to a proper
> string parsing.
> In generel, the 'occi-compute create' command outputs error-message if
> unsupported characters (like '$') are detected:
>   [VirtualMachineAllocate] Error trying to CREATE VM Could not parse
> CONTEXT for VM.
>
> In my occi.xml I wanted to define a customized context-attribute
> containing the char '%'. This leads 'occi-compute create' into a timeout
> and a ruby process [1] gets a 100% cpu load:
>   Error timeout while connected to server (execution expired).
>   Server: localhost:4567
>
> I guess this syntax-issue is related to the use of "<% ...%>" of the
> ruby-occi-template definition [2] since percent-chars are used as well.
>
> This leads me to the following question: What can I do to have a
> '%'-char in my self-defined context-attributes. Is this even possible?
> In the end I need the %-char in the context.sh-file of the booted
> VirtualMachine.
>
>
>  [1] ruby /cloud/one/lib/ruby/cloud/occi/occi-server.rb
>  [2] $ONE_LOCATION/etc/occi_templates/common.erb
>
>
>
> thanks in advance
> Marco
> _______________________________________________
> Users mailing list
> Users at lists.opennebula.org
> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org




More information about the Users mailing list