Skip to contentSkip to conversation

tap downscript is not executed when exiting qemu through "quit" monitor command

Qemu-devel Max 1 participant 4 messages Sep 12, 2010 – Jun 27, 2016

lore
Share & tools
lore

Max

author
#0 lore raw

Public bug reported:

When you tell qemu to shutdown using the "quit" monitor command, the downscript of the tap interface is not executed.

To reproduce:

Create the test script /tmp/qemu-ifdown-test.sh :

==
#!/bin/bash

touch /tmp/is_this_working
==

Run:

==

# chmod +x /tmp/qemu-ifdown-test.sh
# qemu-system-x86_64 -daemonize -net nic -net tap,script=/etc/qemu-ifup,downscript=/tmp/qemu-ifdown-test.sh -monitor unix:/tmp/monitor.socket,nowait,server
VNC server running on `127.0.0.1:5900'
# nc -U /tmp/monitor.socket 
QEMU 0.12.5 monitor - type 'help' for more information
(qemu) quit
quit
# ls /tmp/is*
ls: cannot access /tmp/is*: No such file or directory

==

If I quit qemu by sending a SIGTERM instead of using the "quit" command, the downscript does get executed:

==

# qemu-system-x86_64 -daemonize -net nic -net tap,script=/etc/qemu-ifup,downscript=/tmp/qemu-ifdown-test.sh -monitor unix:/tmp/monitor.socket,nowait,server
VNC server running on `127.0.0.1:5900'
# killall qemu-system-x86_64
# ls /tmp/is*
/tmp/is_this_working
==

Issue occurs with both 0.12.3 and 0.12.5

** Affects: qemu
Importance: Undecided
Status: New

Signature · 48 lines
tap downscript is not executed when exiting qemu through "quit" monitor command
https://bugs.launchpad.net/bugs/636095
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.

Status in QEMU: New

Bug description:
When you tell qemu to shutdown using the "quit" monitor command, the downscript of the tap interface is not executed.


To reproduce:


Create the test script /tmp/qemu-ifdown-test.sh :

==
#!/bin/bash

touch /tmp/is_this_working
==

Run:

==
# chmod +x /tmp/qemu-ifdown-test.sh
# qemu-system-x86_64 -daemonize -net nic -net tap,script=/etc/qemu-ifup,downscript=/tmp/qemu-ifdown-test.sh -monitor unix:/tmp/monitor.socket,nowait,server
VNC server running on `127.0.0.1:5900'
# nc -U /tmp/monitor.socket 
QEMU 0.12.5 monitor - type 'help' for more information
(qemu) quit
quit
# ls /tmp/is*
ls: cannot access /tmp/is*: No such file or directory

==

If I quit qemu by sending a SIGTERM instead of using the "quit" command, the downscript does get executed:

==
# qemu-system-x86_64 -daemonize -net nic -net tap,script=/etc/qemu-ifup,downscript=/tmp/qemu-ifdown-test.sh -monitor unix:/tmp/monitor.socket,nowait,server
VNC server running on `127.0.0.1:5900'
# killall qemu-system-x86_64
# ls /tmp/is*
/tmp/is_this_working
==

Issue occurs with both 0.12.3 and 0.12.5
#1 lore raw

Have you reported this to QEMU developers' mailing list?

Signature · 57 lines
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/636095

Title:
  tap downscript is not executed when exiting qemu through "quit"
  monitor command

Status in QEMU:
  New

Bug description:
  When you tell qemu to shutdown using the "quit" monitor command, the
  downscript of the tap interface is not executed.

  
  To reproduce:

  
  Create the test script /tmp/qemu-ifdown-test.sh :

  ==
  #!/bin/bash

  touch /tmp/is_this_working
  ==

  Run:

  ==
  # chmod +x /tmp/qemu-ifdown-test.sh
  # qemu-system-x86_64 -daemonize -net nic -net tap,script=/etc/qemu-ifup,downscript=/tmp/qemu-ifdown-test.sh -monitor unix:/tmp/monitor.socket,nowait,server
  VNC server running on `127.0.0.1:5900'
  # nc -U /tmp/monitor.socket 
  QEMU 0.12.5 monitor - type 'help' for more information
  (qemu) quit
  quit
  # ls /tmp/is*
  ls: cannot access /tmp/is*: No such file or directory

  ==

  If I quit qemu by sending a SIGTERM instead of using the "quit"
  command, the downscript does get executed:

  ==
  # qemu-system-x86_64 -daemonize -net nic -net tap,script=/etc/qemu-ifup,downscript=/tmp/qemu-ifdown-test.sh -monitor unix:/tmp/monitor.socket,nowait,server
  VNC server running on `127.0.0.1:5900'
  # killall qemu-system-x86_64
  # ls /tmp/is*
  /tmp/is_this_working
  ==

  Issue occurs with both 0.12.3 and 0.12.5

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/636095/+subscriptions
#2 lore raw
In reply to Max

Thanks for providing instructions on how to reproduce this bug. I ran your instructions on qemu.git/master and the issue does not occur.

QEMU 0.12.x is old, please try the latest stable release 0.15.0 or qemu.git/master.

** Changed in: qemu
Status: New => Fix Committed

Signature · 57 lines
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/636095

Title:
  tap downscript is not executed when exiting qemu through "quit"
  monitor command

Status in QEMU:
  Fix Committed

Bug description:
  When you tell qemu to shutdown using the "quit" monitor command, the
  downscript of the tap interface is not executed.

  
  To reproduce:

  
  Create the test script /tmp/qemu-ifdown-test.sh :

  ==
  #!/bin/bash

  touch /tmp/is_this_working
  ==

  Run:

  ==
  # chmod +x /tmp/qemu-ifdown-test.sh
  # qemu-system-x86_64 -daemonize -net nic -net tap,script=/etc/qemu-ifup,downscript=/tmp/qemu-ifdown-test.sh -monitor unix:/tmp/monitor.socket,nowait,server
  VNC server running on `127.0.0.1:5900'
  # nc -U /tmp/monitor.socket 
  QEMU 0.12.5 monitor - type 'help' for more information
  (qemu) quit
  quit
  # ls /tmp/is*
  ls: cannot access /tmp/is*: No such file or directory

  ==

  If I quit qemu by sending a SIGTERM instead of using the "quit"
  command, the downscript does get executed:

  ==
  # qemu-system-x86_64 -daemonize -net nic -net tap,script=/etc/qemu-ifup,downscript=/tmp/qemu-ifdown-test.sh -monitor unix:/tmp/monitor.socket,nowait,server
  VNC server running on `127.0.0.1:5900'
  # killall qemu-system-x86_64
  # ls /tmp/is*
  /tmp/is_this_working
  ==

  Issue occurs with both 0.12.3 and 0.12.5

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/636095/+subscriptions
author
#3 lore raw
In reply to Max

** Changed in: qemu
Status: Fix Committed => Fix Released

Signature · 57 lines
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/636095

Title:
  tap downscript is not executed when exiting qemu through "quit"
  monitor command

Status in QEMU:
  Fix Released

Bug description:
  When you tell qemu to shutdown using the "quit" monitor command, the
  downscript of the tap interface is not executed.

  
  To reproduce:

  
  Create the test script /tmp/qemu-ifdown-test.sh :

  ==
  #!/bin/bash

  touch /tmp/is_this_working
  ==

  Run:

  ==
  # chmod +x /tmp/qemu-ifdown-test.sh
  # qemu-system-x86_64 -daemonize -net nic -net tap,script=/etc/qemu-ifup,downscript=/tmp/qemu-ifdown-test.sh -monitor unix:/tmp/monitor.socket,nowait,server
  VNC server running on `127.0.0.1:5900'
  # nc -U /tmp/monitor.socket 
  QEMU 0.12.5 monitor - type 'help' for more information
  (qemu) quit
  quit
  # ls /tmp/is*
  ls: cannot access /tmp/is*: No such file or directory

  ==

  If I quit qemu by sending a SIGTERM instead of using the "quit"
  command, the downscript does get executed:

  ==
  # qemu-system-x86_64 -daemonize -net nic -net tap,script=/etc/qemu-ifup,downscript=/tmp/qemu-ifdown-test.sh -monitor unix:/tmp/monitor.socket,nowait,server
  VNC server running on `127.0.0.1:5900'
  # killall qemu-system-x86_64
  # ls /tmp/is*
  /tmp/is_this_working
  ==

  Issue occurs with both 0.12.3 and 0.12.5

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/636095/+subscriptions