Bug 787604 - A slash in the network name kills the network
Summary: A slash in the network name kills the network
Keywords:
Status: CLOSED UPSTREAM
Alias: None
Product: Virtualization Tools
Classification: Community
Component: libvirt
Version: unspecified
Hardware: All
OS: Linux
unspecified
unspecified
Target Milestone: ---
Assignee: Libvirt Maintainers
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-02-06 09:49 UTC by Dennis Schubert
Modified: 2016-05-02 14:20 UTC (History)
3 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2016-05-02 14:20:05 UTC
Embargoed:


Attachments (Terms of Use)

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 '/'


Note You need to log in before you can comment on or make changes to this bug.