Bug #214

OCCI: post_network

Added by Gyula Csom about 11 years ago. Updated about 11 years ago.

Status:ClosedStart date:04/19/2010
Priority:NormalDue date:
Assignee:-% Done:


Target version:Release 1.4.2
Resolution:fixed Pull request:
Affected Versions:


Hi there,
when testing the OCCI interface I've met the following problem. The OCCI
post_network method seems to use a buggy xml schema within the 1.4 distrib.


The OCCI user guide gives the following example for creating a network:

$ ./occi-network --url http://localhost:4567 --username oneadmin --password opennebula create vnxml 

From the example above it's clear that the network settings must be put
under a top level NETWORK element.


The example above fits the OCCIServer.rb code, eg.:

221:            network_info=Crack::XML.parse(request.body.read)
234:            vntemplate = network.to_one_template(
235:                          network_info['NETWORK'],
236:                          @config[:bridge])


However the ONE v.1.4 distribution available for download contains
a different code, and uses a different schema:

222:            network_info=Crack::XML.parse(request.body.read)
235:            vntemplate = network.to_one_template(
236:                          network_info['NIC'],
237:                          @config[:bridge])

Thus the distrib uses another schema, where network settings
should be put under a top level NIC element.


Associated revisions

Revision 4018be72
Added by Javi Fontan about 4 years ago

Do not set VNC ports as used in certain states #214

Original fix by @dfelsch


#1 Updated by Ruben S. Montero about 11 years ago

  • Category set to 11
  • Status changed from New to Closed
  • Target version set to Release 1.4.2
  • Resolution set to fixed


This is right OpenNebula 1.4 has a wrong XML schema for the networks, this has been fixed for the next release as you noted.

Also available in: Atom PDF