Red Hat Bugzilla – Bug 823191
OVF XML writer doesn't work with Java 7 StAX implementation
Last modified: 2016-02-10 14:41:40 EST
Description of problem:
When creating a VM the OVF XML writer is used to generate the metadata. This doesn't work with Java 7 because the code doesn't provide explicitly the namespace URIs for some attributes.
Version-Release number of selected component (if applicable):
ovirt-engine commit 44f32cf2892ff99a8c5fcf63eb617e85ac63c249
Steps to Reproduce:
1. Build the engine with Java 7.
2. Run the engine with Java 7.
3. Create a virtual machine.
The following exception appears in the log of the engine:
java.lang.RuntimeException: Failed to write attribute
Caused by: javax.xml.stream.XMLStreamException: NamespaceURI cannot be null
The creation of the virtual machine never finishes.
The virtual machine should be created without problems.
The following change has been proposed to fix the problem in ovirt-engine:
This change has already been merged.
AFAIK, downstream does not use Java 7 yet - how do we test this fix downstream?
(In reply to comment #3)
> AFAIK, downstream does not use Java 7 yet - how do we test this fix
Downstream used to work correctly before this change. What we need to make sure is that it continues to work correctly after. A way to do it is to create a virtual machine before without the change, take the generated OVF file and compare it with the result of creating the same VM after the change. The OVF files should be exactly equal.
SI18: as we don't have an OVF from before the change, and OVF look OK right now, I'm moving this bug to VERIFIED. If we find specific issues with the OVF, we'll re-open.