← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1337263] [NEW] Multi-provider extension does not support XML

 

Public bug reported:

multi-provider extension does not support network creation using xml
body because segments markup are not correctly parsed.


Use case:

#$ curl -i http://192.168.128.11:9696/v2.0/networks -X POST  -H "X-Auth-
Token:  blah" -d @xml_input -H 'Content-Type: application/xml'

HTTP/1.1 500 Internal Server Error
Content-Type: application/xml; charset=UTF-8
Content-Length: 290
X-Openstack-Request-Id: req-e4234a24-7ca3-4327-892c-802acd50cba3
Date: Thu, 03 Jul 2014 10:04:33 GMT

<?xml version='1.0' encoding='UTF-8'?>
<NeutronError xmlns="http://openstack.org/quantum/api/v2.0"; xmlns:quantum="http://openstack.org/quantum/api/v2.0"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";>Request Failed: internal server error while processing your request.</NeutronError>


xml_input
<?xml version='1.0' encoding='UTF-8'?>
<network xmlns="http://openstack.org/quantum/api/v2.0"; xmlns:provider="http://docs.openstack.org/ext/provider/api/v1.0"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";>
  <name>aa</name>
  <segments>
    <segment>  
      <provider:segmentation_id>1002</provider:segmentation_id>
      <provider:network_type>gre</provider:network_type>
  </segment>
    <segment>
      <provider:network_type>local</provider:network_type>
    </segment>
  </segments>
</network>

** Affects: neutron
     Importance: Undecided
     Assignee: MARIN-FRISONROCHE Julien (julien-marinfrisonroche)
         Status: In Progress


** Tags: api

** Changed in: neutron
       Status: New => In Progress

** Changed in: neutron
     Assignee: (unassigned) => MARIN-FRISONROCHE Julien (julien-marinfrisonroche)

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to neutron.
https://bugs.launchpad.net/bugs/1337263

Title:
  Multi-provider extension does not support XML

Status in OpenStack Neutron (virtual network service):
  In Progress

Bug description:
  multi-provider extension does not support network creation using xml
  body because segments markup are not correctly parsed.


  Use case:

  #$ curl -i http://192.168.128.11:9696/v2.0/networks -X POST  -H "X
  -Auth-Token:  blah" -d @xml_input -H 'Content-Type: application/xml'

  HTTP/1.1 500 Internal Server Error
  Content-Type: application/xml; charset=UTF-8
  Content-Length: 290
  X-Openstack-Request-Id: req-e4234a24-7ca3-4327-892c-802acd50cba3
  Date: Thu, 03 Jul 2014 10:04:33 GMT

  <?xml version='1.0' encoding='UTF-8'?>
  <NeutronError xmlns="http://openstack.org/quantum/api/v2.0"; xmlns:quantum="http://openstack.org/quantum/api/v2.0"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";>Request Failed: internal server error while processing your request.</NeutronError>


  xml_input
  <?xml version='1.0' encoding='UTF-8'?>
  <network xmlns="http://openstack.org/quantum/api/v2.0"; xmlns:provider="http://docs.openstack.org/ext/provider/api/v1.0"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";>
    <name>aa</name>
    <segments>
      <segment>  
        <provider:segmentation_id>1002</provider:segmentation_id>
        <provider:network_type>gre</provider:network_type>
    </segment>
      <segment>
        <provider:network_type>local</provider:network_type>
      </segment>
    </segments>
  </network>

To manage notifications about this bug go to:
https://bugs.launchpad.net/neutron/+bug/1337263/+subscriptions


Follow ups

References