From: Sander Eikelenboom Subject: Re: xl / xend feature parity: Missing '-a' option for xl 'shutdown' to shutdown all domains Date: Wed, 5 Sep 2012 12:55:31 +0200 Message-ID: <117308334.20120905125531@eikelenboom.it> References: <885821548.20120831124902@eikelenboom.it> <1346410506.27277.179.camel@zakaz.uk.xensource.com> <1342800738.20120831133238@eikelenboom.it> <1346413938.27277.196.camel@zakaz.uk.xensource.com> <475752135.20120905124350@eikelenboom.it> <1346842320.17325.68.camel@zakaz.uk.xensource.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1346842320.17325.68.camel@zakaz.uk.xensource.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Ian Campbell Cc: "xen-devel@lists.xen.org" List-Id: xen-devel@lists.xenproject.org Wednesday, September 5, 2012, 12:52:00 PM, you wrote: > On Wed, 2012-09-05 at 11:43 +0100, Sander Eikelenboom wrote: >> The docs say you have to supply a domain_id as argument. >> But if you supply a domain_name instead it works as well. > xl(1) says "domain-id is the numeric domain id, or the domain name > (which will be internally translated to domain id)" >> But what if i'm stupid enough to give my domain a number as name (which seems to be allowed/possible) >> In that case i can't shut it down by name: >> >> serveerstertje:~# xl list >> Name ID Mem VCPUs State Time(s) >> Domain-0 0 1024 6 r----- 22318.7 >> media 12 256 1 -b---- 73.0 >> webproxy 14 768 5 -b---- 41385.2 >> www 15 507 2 -b---- 670.8 >> 13 17 256 1 -b---- 3.2 >> >> 13 17 256 1 -b---- 3.2 >> serveerstertje:~# xl shutdown 13 >> 13 is an invalid domain identifier (rc=-6) > I think this is a case of Don't Do That Then. If you want a patch to the > manpage clarifying that users should avoid purely numeric domain names > that would be nice. How acceptable would it be to make that explicit and enforce that policy on domain creation ?