EMC VMAX driver does not handle newlines and whitespace consistently in xml
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Cinder |
Fix Released
|
Medium
|
Xing Yang |
Bug Description
This is my first openstack bug report. I believe this should go to Xing Yang.
The EMC VMAX driver parses an XML config file (default is /etc/cinder/
For example, I provide a file with newlines and white-space like the following:
<?xml version="1.0" encoding="UTF-8"?>
<EMC>
<EcomServerPo
</EcomServerPort>
<Array>
<EcomServerIp
</EcomServerIp>
<Pool>
<EcomUserName>
This shows newlines and indenting for some properties, and no newlines or indenting for others.
Then, EMCVMAXUtils.
(u'5.55.55.5\n ', u'5988\n ')
Where the newlines and whitespace are included in the address and port strings. This causes the driver to fail.
If I take out the whitespace and newlines, then the IP address and port are parsed correctly. However, the portgroups are not parsed correctly if I remove whitespace and newlines as is shown in the last line of the file. In this case EMCVMAXUtils.
u'PORTGROUP
Where it should return one of the port groups at random. Instead it munges the two together. Can the EMCVMAXUtils class be fixed to handle hand tolerate normal XML?
Changed in cinder: | |
assignee: | nobody → Xing Yang (xing-yang) |
tags: | added: drivers |
Changed in cinder: | |
status: | New → In Progress |
importance: | Undecided → Medium |
Changed in cinder: | |
milestone: | none → juno-rc1 |
Changed in cinder: | |
status: | Fix Committed → Fix Released |
Changed in cinder: | |
milestone: | juno-rc1 → 2014.2 |
Fix proposed to branch: master /review. openstack. org/121282
Review: https:/