yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #26446
[Bug 1277285] Re: Agent list API fails with XML when hyper-v bridge mapping key contains a "*"
XML support has been dropped in neutron. I think this makes this bug
invalid. Please, reopen if you think otherwise.
** Changed in: neutron
Status: In Progress => Invalid
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to neutron.
https://bugs.launchpad.net/bugs/1277285
Title:
Agent list API fails with XML when hyper-v bridge mapping key contains
a "*"
Status in OpenStack Neutron (virtual network service):
Invalid
Bug description:
While running tempest tests on a devstack instance with a hyper-v
compute node connected, the following test:
tempest.api.network.admin.test_agent_management
fails with:
ft10.1: setUpClass (tempest.api.network.admin.test_agent_management.AgentManagementTestXML)_StringException: Traceback (most recent call last):
File "tempest/api/network/admin/test_agent_management.py", line 26, in setUpClass
resp, body = cls.admin_client.list_agents()
File "tempest/services/network/network_client_base.py", line 104, in _list
result = {plural_name: self.deserialize_list(body)}
File "tempest/services/network/xml/network_client.py", line 41, in deserialize_list
return parse_array(etree.fromstring(body), self.PLURALS)
File "lxml.etree.pyx", line 2754, in lxml.etree.fromstring (src/lxml/lxml.etree.c:54631)
File "parser.pxi", line 1578, in lxml.etree._parseMemoryDocument (src/lxml/lxml.etree.c:82748)
File "parser.pxi", line 1457, in lxml.etree._parseDoc (src/lxml/lxml.etree.c:81546)
File "parser.pxi", line 965, in lxml.etree._BaseParser._parseDoc (src/lxml/lxml.etree.c:78216)
File "parser.pxi", line 569, in lxml.etree._ParserContext._handleParseResultDoc (src/lxml/lxml.etree.c:74472)
File "parser.pxi", line 650, in lxml.etree._handleParseResult (src/lxml/lxml.etree.c:75363)
File "parser.pxi", line 590, in lxml.etree._raiseParseError (src/lxml/lxml.etree.c:74696)
XMLSyntaxError: StartTag: invalid element name, line 2, column 2346
Further investigation reveiled that the XML that was generated
contained an invalid element (<.*>br100</.*>). Sample XML data cn be
found at the following pastebin address:
http://paste.openstack.org/show/62882/
The line that defines the dictionarry from which the element name is
being defined is:
https://github.com/openstack/neutron/blob/4cdccd69a45aec19d547c10f29f61359b69ad6c1/neutron/plugins/hyperv/agent/hyperv_neutron_agent.py#L91
Although the issue is generated in the hyper-v agent, this looks more
like a XML general marshalling issue.
To manage notifications about this bug go to:
https://bugs.launchpad.net/neutron/+bug/1277285/+subscriptions
References