Description of problem: Port Mirroring ignore network details when activating on specific vm nic and actually take the attached network (to the nic) As default port mirroring network. An example of the problem: <nic> <network> <name>sw1</name> </network> <port_mirroring> <networks> <network/> </networks> </port_mirroring> </nic> In the above example we can see that even though i haven't added specific network the command will succeed and configure sw1 automatically for port mirroring. The thing is that having wrong network details also be ignored. Engine log doesn't even present anything regarding the action.
(In reply to comment #0) Right, The network id need to be set.
In the engine the property is a boolean so this BZ is relevant only for the API.
posted at: http://gerrit.ovirt.org/#/c/6547/
merged at: 184f19a80152f291e021ac839cf66f582fee7949
Verify on SI14 - PASS but have related BUG The main issue solved, adding port mirroring works only when adding the current network id. BUT, it accept only ID. adding port mirroring should also support adding by name. <port_mirroring> <networks> <network>sw2</network> </networks> </port_mirroring> Return org.jboss.resteasy.spi.UnhandledException: java.lang.NullPointerException org.jboss.resteasy.core.SynchronousDispatcher.handleApplicationException(SynchronousDispatcher.java:340) org.jboss.resteasy.core.SynchronousDispatcher.handleException(SynchronousDispatcher.java:214) org.jboss.resteasy.core.SynchronousDispatcher.handleInvokerException(SynchronousDispatcher.java:190) org.jboss.resteasy.core.SynchronousDispatcher.getResponse(SynchronousDispatcher.java:540) org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:502) org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:119) org.jboss.resteasy.plugins.server.servlet.ServletContainerDispatcher.service(ServletContainerDispatcher.java:208) org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:55) org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:50) javax.servlet.http.HttpServlet.service(HttpServlet.java:847)
Created attachment 605722 [details] engine log
support port mirroring via network name: posted at: http://gerrit.ovirt.org/#/c/7602/
merged at: 9233ef4a337e9528f77bf0557f5af6b5b10e1fe2
Verify on SI17 - PASS <nic> <network> <name>rhevm</name> </network> <port_mirroring> <networks> <network><name>rhevm</name></network> </networks> </port_mirroring> </nic>