[
https://issues.apache.org/jira/browse/DTACLOUD-275?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Ronelle Landy closed DTACLOUD-275.
----------------------------------
Resolution: Not A Problem
Closing this JIRA - the error message is correct, the XML is misformed with a
missing tag.
There is a problem, however, that when creating addresses, the dns, ip etc,.
passed to the create command are not honored and used when the instance is
created.
Checking in with Marios about ^^. Will open a separate JIRA is needed.
> CIMI: Creating a new address (POST /cimi/addresses) returns
> "REXML::ParseException: malformed XML" error
> --------------------------------------------------------------------------------------------------------
>
> Key: DTACLOUD-275
> URL: https://issues.apache.org/jira/browse/DTACLOUD-275
> Project: DeltaCloud
> Issue Type: Bug
> Components: Server
> Environment: deltacloud git commit:
> 714c474d240945ec07f39873bac148ce966a2246
> mock provider
> Fedora 16
> Reporter: Ronelle Landy
>
> Started deltacloud using the cimi frontend, targeting the mock provider:
> >> ./bin/deltacloudd -i mock -f cimi -r <hostname> -p 3006
> And then tried to create a new address ( as shown in the example below). No
> matter what I pass to the '-d' input parameters, I get the same malformed XML
> error: (possibly outdated or incorrect syntax?)
> curl -X POST --user "mockuser:mockpassword" -H "Content-Type:
> application/xml" -d '<AddressCreate> <name> an_address </name> <description>
> an IP Address </description> <addressTemplate> <ip> 192.168.10.10 </ip>
> <hostname> rlandy.local </hostname> <allocation> static </allocation>
> <defaultGateway> 192.168.0.1 </defaultGateway> <dns> 192.168.0.10 </dns>
> <macAddress></macAddress> <protocol> IPv4 </protocol> <mask> 255.255.0.0
> </mask> <network href="http://localhost:3006/cimi/network/network1"</network>
> </addressTemplate> </AddressCreate>'
> "http://dell-pe2900-02.rhts.eng.bos.redhat.com:3006/cimi/addresses?format=xml"
> |more
> % Total % Received % Xferd Average Speed Time Time Time Current
> Dload Upload Total Spent Left Speed
> 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:--
> 0<error status='500' url='/cimi/addresses?format=xml'>
> <kind>backend_error</kind>
> <message><![CDATA[#<REXML::ParseException: malformed XML: missing tag start
> Line:
> Position:
> Last 80 unconsumed characters:
> <network href="http://localhost:3006/cimi/network/network1"</network>
> </addressTe>
> /usr/lib/ruby/1.8/rexml/parsers/baseparser.rb:356:in `pull'
> /usr/lib/ruby/1.8/rexml/parsers/treeparser.rb:22:in `parse'
> /usr/lib/ruby/1.8/rexml/document.rb:227:in `build'
> /usr/lib/ruby/1.8/rexml/document.rb:43:in `initialize'
> /usr/lib/ruby/gems/1.8/gems/xml-simple-1.1.1/lib/xmlsimple.rb:965:in `new'
> /usr/lib/ruby/gems/1.8/gems/xml-simple-1.1.1/lib/xmlsimple.rb:965:in `parse'
> /usr/lib/ruby/gems/1.8/gems/xml-simple-1.1.1/lib/xmlsimple.rb:164:in `xml_in'
> /usr/lib/ruby/gems/1.8/gems/xml-simple-1.1.1/lib/xmlsimple.rb:203:in `xml_in'
> /home/dcloud/workspace/deltacloud/server/lib/cimi/./././models/address.rb:51:in
> `create'
> /home/dcloud/workspace/deltacloud/server/lib/cimi/./collections/addresses.rb:53
> /usr/lib/ruby/gems/1.8/gems/sinatra-rabbit-1.0.6/lib/sinatra/./rabbit/base.rb:387:in
> `instance_eval'
> /usr/lib/ruby/gems/1.8/gems/sinatra-rabbit-1.0.6/lib/sinatra/./rabbit/base.rb:387:in
> `POST /cimi/addresses'
> /usr/lib/ruby/gems/1.8/gems/sinatra-1.3.2/lib/sinatra/base.rb:1211:in `call'
> /usr/lib/ruby/gems/1.8/gems/sinatra-1.3.2/lib/sinatra/base.rb:1211:in
> `compile!'
> /usr/lib/ruby/gems/1.8/gems/sinatra-1.3.2/lib/sinatra/base.rb:785:in `[]'
> /usr/lib/ruby/gems/1.8/gems/sinatra-1.3.2/lib/sinatra/base.rb:785:in `route!'
> /usr/lib/ruby/gems/1.8/gems/sinatra-1.3.2/lib/sinatra/base.rb:801:in
> `route_eval'
> /usr/lib/ruby/gems/1.8/gems/sinatra-1.3.2/lib/sinatra/base.rb:785:in `route!'
> /usr/lib/ruby/gems/1.8/gems/sinatra-1.3.2/lib/sinatra/base.rb:822:in
> `process_route'
> /usr/lib/ruby/gems/1.8/gems/sinatra-1.3.2/lib/sinatra/base.rb:820:in `catch'
> /usr/lib/ruby/gems/1.8/gems/sinatra-1.3.2/lib/sinatra/base.rb:820:in
> `process_route'
> /usr/lib/ruby/gems/1.8/gems/sinatra-1.3.2/lib/sinatra/base.rb:784:in `route!'
> /usr/lib/ruby/gems/1.8/gems/sinatra-1.3.2/lib/sinatra/base.rb:783:in `each'
> /usr/lib/ruby/gems/1.8/gems/sinatra-1.3.2/lib/sinatra/base.rb:783:in `route!'
> /usr/lib/ruby/gems/1.8/gems/sinatra-1.3.2/lib/sinatra/base.rb:886:in
> `dispatch!'
> /usr/lib/ruby/gems/1.8/gems/sinatra-1.3.2/lib/sinatra/base.rb:719:in `call!'
> /usr/lib/ruby/gems/1.8/gems/sinatra-1.3.2/lib/sinatra/base.rb:871:in `invoke'
> /usr/lib/ruby/gems/1.8/gems/sinatra-1.3.2/lib/sinatra/base.rb:871:in `catch'
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira