libvirt-bin should emit net-device-up and net-device-down

Bug #1056921 reported by Scott Moser
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
libvirt (Ubuntu)
Triaged
Medium
Unassigned

Bug Description

I was trying to create an upstart job that would occur when a libvirt network became available:
$ cat /etc/init/maas-dhcp-server-restart.conf
description "restart dhcpd"
start on net-device-up INTERFACE=maasbr0
task

script
 stop maas-dhcp-server
 start maas-dhcp-server
end script
EOF

This didn't work. as libvirt does not emit 'net-device-up' events. Those are only emitted by network manager and devices in /etc/network/interfaces.

It seems possibly useful to have libvirt do that also.

ProblemType: Bug
DistroRelease: Ubuntu 12.10
Package: libvirt-bin 0.9.13-0ubuntu10
ProcVersionSignature: User Name 3.5.0-15.23-generic 3.5.4
Uname: Linux 3.5.0-15-generic x86_64
ApportVersion: 2.5.2-0ubuntu4
Architecture: amd64
Date: Wed Sep 26 14:57:54 2012
Ec2AMI: ami-00000153
Ec2AMIManifest: FIXME
Ec2AvailabilityZone: nova
Ec2InstanceType: m1.small
Ec2Kernel: unavailable
Ec2Ramdisk: unavailable
ProcEnviron:
 TERM=screen
 PATH=(custom, no user)
 LANG=en_US.UTF-8
 SHELL=/bin/bash
SourcePackage: libvirt
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Scott Moser (smoser) wrote :
Revision history for this message
Serge Hallyn (serge-hallyn) wrote :

Thanks for submitting this bug. I agree this should be done.

Given that we are quite late in the quantal cycle, how important is this feature to your deliverables? Do we need to ask for an FFE for quantal, or can it wait until after release?

Changed in libvirt (Ubuntu):
status: New → Triaged
importance: Undecided → Medium
Revision history for this message
Scott Moser (smoser) wrote :

I think this is fine for 'R'.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.