Bug 787604

Summary: A slash in the network name kills the network
Product: [Community] Virtualization Tools Reporter: Dennis Schubert <redhat>
Component: libvirtAssignee: Libvirt Maintainers <libvirt-maint>
Status: CLOSED UPSTREAM QA Contact:
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: unspecifiedCC: crobinso, redhat, xen-maint
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-05-02 14:20:05 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Dennis Schubert 2012-02-06 09:49:52 UTC
Description of problem:

I just tried to create a new network with a / in the name. When I clicked save, the system deleted the network, because it's trying to write into a subdirectory of /etc/libvirt/qemu/networks.

I think slashes in the network names are inportant as it's usual to use CIDR-notation like 127.0.0.1/28.

Version-Release number of selected component (if applicable):

0.9.8 and 0.8.3

How reproducible:

Create a new network with a / in its name.

Actual results:

No file under /etc/libvirt/qemu/networks is created.

Expected results:

New file under /etc/libvirt/qemu/networks

Comment 1 Cole Robinson 2016-04-26 19:25:13 UTC
Patch posted upstream: http://www.redhat.com/archives/libvir-list/2016-April/msg01765.html

Comment 2 Cole Robinson 2016-05-02 14:20:05 UTC
Upstream now:

commit 454f739f24a936aedec48c3a3ba659b374ce251a
Author: Cole Robinson <crobinso>
Date:   Tue Apr 26 12:47:42 2016 -0400

    conf: network: reject name containing '/'