Backlog #442

onevm delete * should delete all available virtual machines

Added by Zaina Afoulki over 10 years ago. Updated about 6 years ago.

Status:ClosedStart date:12/10/2010
Priority:NoneDue date:
Assignee:-% Done:

0%

Category:Core & System
Target version:-

Description

Hi

I make a lot of tests with OpenNebula and so I have to launch/manage multiple VMs... and it's not convenient to delete them one by one each time. I think it might be useful to have an option for onevm delete that deletes all currently listed VMs. (for example onevm delete *)

This might also be implemented for onehost delete, onevnet etc... but also for the other options of onevm: such as suspend, shutdown...

Thank you


Related issues

Related to Feature #1353: Improve CLI commands Closed 07/12/2012

Associated revisions

Revision 936ef46d
Added by Sergio Semedi over 3 years ago

B #5340 instance_types scripts now work properly (#442)

Revision 373890c0
Added by Sergio Semedi over 3 years ago

B #5340 instance_types scripts now work properly (#442)

(cherry picked from commit 936ef46d0302ce7c0cbdea92baf83074d3c20456)

History

#1 Updated by Nuno Cardoso over 10 years ago

I've had the same problem... I've came up with this solution:

#!/bin/bash

for a in `onevm list |tail -n +2|awk '{print $1}'`; do
        echo "Killing: $a";
        if [[ $# > 0 ]]; then
                onevm $1 $a;
        else
                onevm delete $a;
        fi
done;

#2 Updated by Anonymous over 9 years ago

I support this requested feature.

#3 Updated by Ruben S. Montero almost 8 years ago

  • Tracker changed from Request to Backlog

#4 Updated by Ruben S. Montero almost 8 years ago

  • Status changed from New to Pending

#5 Updated by Ruben S. Montero over 7 years ago

  • Priority changed from Low to None

#6 Updated by Ruben S. Montero about 6 years ago

  • Status changed from Pending to Closed

Also available in: Atom PDF