neutron XML request/response fails

Bug #1355384 reported by Vedamurthy Joshi
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Juniper Openstack
Fix Committed
Critical
Sachin Bansal

Bug Description

Build 1.10 10

root@nodec22:~# neutron net-create --request-format xml vn1
Malformed request body: Cannot understand XML
root@nodec22:~#

Similar error for other xml formatted requests to create SG..

http://anamika.englab.juniper.net:8080/job/ubuntu-12-04_havana_Single_node_Tempest/160/testReport/tempest.api.network.test_security_groups/SecGroupTestXML/test_create_list_update_show_delete_security_group_gate_smoke_/

root@nodec22:~# neutron -v net-create --request-format xml vn1
DEBUG: neutronclient.neutron.v2_0.network.CreateNetwork get_data(Namespace(admin_state=True, columns=[], formatter='table', name=u'vn1', prefix='', request_format=u'xml', shared=False, tenant_id=None, variables=[]))
DEBUG: neutronclient.client
REQ: curl -i http://10.204.217.70:5000/v2.0/tokens -X POST -H "Content-Type: application/json" -H "Accept: application/json" -H "User-Agent: python-neutronclient" -d '{"auth": {"tenantName": "admin", "passwordCredentials": {"username": "admin", "password": "contrail123"}}}'

DEBUG: neutronclient.client RESP:{'date': 'Mon, 11 Aug 2014 18:48:49 GMT', 'vary': 'X-Auth-Token', 'content-length': '6363', 'status': '200', 'content-type': 'application/json'} {"access": {"token": <token>}"tenant": {"description": null, "enabled": true, "id": "34dc2c51572b4ebfbacc2b9949801f58", "name": "admin"}}, "serviceCatalog": [{"endpoints": [{"adminURL": "http://10.204.217.70:8774/v1.1/34dc2c51572b4ebfbacc2b9949801f58", "region": "RegionOne", "internalURL": "http://10.204.217.70:8774/v1.1/34dc2c51572b4ebfbacc2b9949801f58", "id": "38f4372ce9e24fe584b7c1be2a5e18af", "publicURL": "http://10.204.217.70:8774/v1.1/34dc2c51572b4ebfbacc2b9949801f58"}], "endpoints_links": [], "type": "compute", "name": "nova"}, {"endpoints": [{"adminURL": "http://10.204.217.69:9696", "region": "RegionOne", "internalURL": "http://10.204.217.69:9696", "id": "12ed369716454c9da7d31041a1008303", "publicURL": "http://10.204.217.69:9696"}], "endpoints_links": [], "type": "network", "name": "neutron"}, {"endpoints": [{"adminURL": "http://localhost:9292/v1", "region": "RegionOne", "internalURL": "http://localhost:9292/v1", "id": "0b00189a742141f9920ab94daa927436", "publicURL": "http://localhost:9292/v1"}], "endpoints_links": [], "type": "image", "name": "glance"}, {"endpoints": [{"adminURL": "http://localhost:8776/v1/34dc2c51572b4ebfbacc2b9949801f58", "region": "RegionOne", "internalURL": "http://localhost:8776/v1/34dc2c51572b4ebfbacc2b9949801f58", "id": "69af68a377224bc095aa266f8e0d73e4", "publicURL": "http://localhost:8776/v1/34dc2c51572b4ebfbacc2b9949801f58"}], "endpoints_links": [], "type": "volume", "name": "cinder"}, {"endpoints": [{"adminURL": "http://localhost:8773/services/Admin", "region": "RegionOne", "internalURL": "http://localhost:8773/services/Cloud", "id": "577fead980f345ffa8ef0930d8f9d65a", "publicURL": "http://localhost:8773/services/Cloud"}], "endpoints_links": [], "type": "ec2", "name": "ec2"}, {"endpoints": [{"adminURL": "http://10.204.217.70:35357/v2.0", "region": "RegionOne", "internalURL": "http://10.204.217.70:35357/v2.0", "id": "0e09d60f6556456ca815824cedb0fb3c", "publicURL": "http://10.204.217.70:5000/v2.0"}], "endpoints_links": [], "type": "identity", "name": "keystone"}], "user": {"username": "admin", "roles_links": [], "id": "cce0c943efd944a0a17f82aff07a7731", "roles": [{"name": "KeystoneServiceAdmin"}, {"name": "admin"}, {"name": "KeystoneAdmin"}], "name": "admin"}, "metadata": {"is_admin": 0, "roles": ["47840ca13f944d1780d47f6de3c0d627", "f1fcdf0cb6ff4de09c44ed53c51807da", "cc3c5e04af564ed0bf503f1ecc16e7c7"]}}}

DEBUG: neutronclient.client

REQ: curl -i http://10.204.217.69:9696/v2.0/extensions.json -X GET -H "X-Auth-Token: <token> " -H "Content-Type: application/json" -H "Accept: application/json" -H "User-Agent: python-neutronclient"

DEBUG: neutronclient.client RESP:{'date': 'Mon, 11 Aug 2014 18:48:50 GMT', 'status': '200', 'content-length': '3002', 'content-type': 'application/json; charset=UTF-8', 'content-location': 'http://10.204.217.69:9696/v2.0/extensions.json'} {"extensions": [{"updated": "2012-07-23T10:00:00-00:00", "name": "Port Security", "links": [], "namespace": "http://docs.openstack.org/ext/portsecurity/api/v1.0", "alias": "port-security", "description": "Provides port security"}, {"updated": "2012-10-05T10:00:00-00:00", "name": "security-group", "links": [], "namespace": "http://docs.openstack.org/ext/securitygroups/api/v2.0", "alias": "security-group", "description": "The security groups extension."}, {"updated": "2012-07-20T10:00:00-00:00", "name": "Network IP Address Management", "links": [], "namespace": "http://docs.openstack.org/TODO", "alias": "ipam", "description": "Configuration object for holding common to a set of IP address blocks"}, {"updated": "2013-07-24T10:00:00-00:00", "name": "route-table", "links": [], "namespace": "http://docs.openstack.org/ext/routetables/api/v2.0", "alias": "route-table", "description": "VPC route tables extension."}, {"updated": "2012-11-14T10:00:00-00:00", "name": "Port Binding", "links": [], "namespace": "http://docs.openstack.org/ext/binding/api/v1.0", "alias": "binding", "description": "Expose port bindings of a virtual port to external application"}, {"updated": "2012-07-29T10:00:00-00:00", "name": "Quota management support", "links": [], "namespace": "http://docs.openstack.org/network/ext/quotas-sets/api/v2.0", "alias": "quotas", "description": "Expose functions for quotas management"}, {"updated": "2013-02-03T10:00:00-00:00", "name": "agent", "links": [], "namespace": "http://docs.openstack.org/ext/agent/api/v2.0", "alias": "agent", "description": "The agent management extension."}, {"updated": "2013-01-14T10:00:00-00:00", "name": "Neutron external network", "links": [], "namespace": "http://docs.openstack.org/ext/neutron/external_net/api/v1.0", "alias": "external-net", "description": "Adds external network attribute to network resource."}, {"updated": "2012-07-20T10:00:00-00:00", "name": "Network Policy", "links": [], "namespace": "http://docs.openstack.org/TODO", "alias": "policy", "description": "Configuration object for Network Policies"}, {"updated": "2012-07-20T10:00:00-00:00", "name": "Neutron L3 Router", "links": [], "namespace": "http://docs.openstack.org/ext/neutron/router/api/v1.0", "alias": "router", "description": "Router abstraction for basic L3 forwarding between L2 Neutron networks and access to external networks via a NAT gateway."}, {"updated": "2013-07-23T10:00:00-00:00", "name": "Allowed Address Pairs", "links": [], "namespace": "http://docs.openstack.org/ext/allowedaddresspairs/api/v2.0", "alias": "allowed-address-pairs", "description": "Provides allowed address pairs"}, {"updated": "2013-03-17T12:00:00-00:00", "name": "Neutron Extra DHCP opts", "links": [], "namespace": "http://docs.openstack.org/ext/neutron/extra_dhcp_opt/api/v1.0", "alias": "extra_dhcp_opt", "description": "Extra options configuration for DHCP. For example PXE boot options to DHCP clients can be specified (e.g. tftp-server, server-ip-address, bootfile-name)"}]}

DEBUG: neutronclient.common.serializer Data True type is <type 'bool'>
DEBUG: neutronclient.common.serializer Data vn1 type is <type 'unicode'>
DEBUG: neutronclient.client
REQ: curl -i http://10.204.217.69:9696/v2.0/networks.xml -X POST -H "X-Auth-Token: <token>" -H "Content-Type: application/xml" -H "Accept: application/xml" -H "User-Agent: python-neutronclient" -d '<?xml version='1.0' encoding='UTF-8'?>
<network 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"><admin_state_up quantum:type="bool">True</admin_state_up><name>vn1</name></network>'

DEBUG: neutronclient.client RESP:{'date': 'Mon, 11 Aug 2014 18:48:50 GMT', 'status': '201', 'content-length': '816', 'content-type': 'application/xml; charset=UTF-8'} <?xml version='1.0' encoding='UTF-8'?>
<network xmlns="http://openstack.org/quantum/api/v2.0" xmlns:quantum="http://openstack.org/quantum/api/v2.0" xmlns:router="http://docs.openstack.org/ext/neutron/router/api/v1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><status>ACTIVE</status><router:external quantum:type="bool">False</router:external><subnets quantum:type="list" /><name>vn1</name><admin_state_up quantum:type="bool">True</admin_state_up><tenant_id>34dc2c51572b4ebfbacc2b9949801f58</tenant_id><shared quantum:type="bool">False</shared><contrail:instance_count quantum:type="int">0</contrail:instance_count><id>0f503bdb-753b-4c05-a58d-8950ba282230</id><contrail:fq_name><item>default-domain</item><item>admin</item><item>vn1-0f503bdb-753b-4c05-a58d-8950ba282230</item></contrail:fq_name></network>

DEBUG: neutronclient.client
REQ: curl -i http://10.204.217.69:9696/v2.0/extensions.json -X GET -H "X-Auth-Token: <token>" -H "Content-Type: application/json" -H "Accept: application/json" -H "User-Agent: python-neutronclient"

DEBUG: neutronclient.client RESP:{'date': 'Mon, 11 Aug 2014 18:48:50 GMT', 'status': '200', 'content-length': '3002', 'content-type': 'application/json; charset=UTF-8', 'content-location': 'http://10.204.217.69:9696/v2.0/extensions.json'} {"extensions": [{"updated": "2012-07-23T10:00:00-00:00", "name": "Port Security", "links": [], "namespace": "http://docs.openstack.org/ext/portsecurity/api/v1.0", "alias": "port-security", "description": "Provides port security"}, {"updated": "2012-10-05T10:00:00-00:00", "name": "security-group", "links": [], "namespace": "http://docs.openstack.org/ext/securitygroups/api/v2.0", "alias": "security-group", "description": "The security groups extension."}, {"updated": "2012-07-20T10:00:00-00:00", "name": "Network IP Address Management", "links": [], "namespace": "http://docs.openstack.org/TODO", "alias": "ipam", "description": "Configuration object for holding common to a set of IP address blocks"}, {"updated": "2013-07-24T10:00:00-00:00", "name": "route-table", "links": [], "namespace": "http://docs.openstack.org/ext/routetables/api/v2.0", "alias": "route-table", "description": "VPC route tables extension."}, {"updated": "2012-11-14T10:00:00-00:00", "name": "Port Binding", "links": [], "namespace": "http://docs.openstack.org/ext/binding/api/v1.0", "alias": "binding", "description": "Expose port bindings of a virtual port to external application"}, {"updated": "2012-07-29T10:00:00-00:00", "name": "Quota management support", "links": [], "namespace": "http://docs.openstack.org/network/ext/quotas-sets/api/v2.0", "alias": "quotas", "description": "Expose functions for quotas management"}, {"updated": "2013-02-03T10:00:00-00:00", "name": "agent", "links": [], "namespace": "http://docs.openstack.org/ext/agent/api/v2.0", "alias": "agent", "description": "The agent management extension."}, {"updated": "2013-01-14T10:00:00-00:00", "name": "Neutron external network", "links": [], "namespace": "http://docs.openstack.org/ext/neutron/external_net/api/v1.0", "alias": "external-net", "description": "Adds external network attribute to network resource."}, {"updated": "2012-07-20T10:00:00-00:00", "name": "Network Policy", "links": [], "namespace": "http://docs.openstack.org/TODO", "alias": "policy", "description": "Configuration object for Network Policies"}, {"updated": "2012-07-20T10:00:00-00:00", "name": "Neutron L3 Router", "links": [], "namespace": "http://docs.openstack.org/ext/neutron/router/api/v1.0", "alias": "router", "description": "Router abstraction for basic L3 forwarding between L2 Neutron networks and access to external networks via a NAT gateway."}, {"updated": "2013-07-23T10:00:00-00:00", "name": "Allowed Address Pairs", "links": [], "namespace": "http://docs.openstack.org/ext/allowedaddresspairs/api/v2.0", "alias": "allowed-address-pairs", "description": "Provides allowed address pairs"}, {"updated": "2013-03-17T12:00:00-00:00", "name": "Neutron Extra DHCP opts", "links": [], "namespace": "http://docs.openstack.org/ext/neutron/extra_dhcp_opt/api/v1.0", "alias": "extra_dhcp_opt", "description": "Extra options configuration for DHCP. For example PXE boot options to DHCP clients can be specified (e.g. tftp-server, server-ip-address, bootfile-name)"}]}

ERROR: neutronclient.shell Malformed request body: Cannot understand XML
DEBUG: neutronclient.shell clean_up CreateNetwork
DEBUG: neutronclient.shell got an error: Malformed request body: Cannot understand XML
root@nodec22:~#

Sachin Bansal (sbansal)
Changed in juniperopenstack:
status: New → In Progress
Revision history for this message
Sachin Bansal (sbansal) wrote :
Changed in juniperopenstack:
status: In Progress → Fix Committed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.