in 2.13.4 kvm.pm looks a bit different but still

 sub handled_commands
[...]
lsvm          => ['nodehm:mgt=ipmi', 'nodehm:mgt=kvm'], #allow both 
hypervisor and VMs as params
[...]

changing nodehm.mgt to "kvm" gets it to list the running vms but renders 
rpower useless (ucs plugin)

$ nodels  kvmhost1 nodehm.mgt 
kvmhost1: ucs

$ chdef  kvmhost1 mgt=kvm
1 object definitions have been created or modified.

$ nodels  kvmhost1 nodehm.mgt
kvmhost1: kvm

$ lsvm kvmhost1
kvmhost1: lnx0155a
kvmhost1: lnx0205b
kvmhost1: lnx0204a

$ rpower kvmhost1 stat
kvmhost1: off

$ chdef  kvmhost1 mgt=ucs
1 object definitions have been created or modified.

$ rpower kvmhost1 stat
kvmhost1: chassis1/blade7: on

--
Matthias Merk

Jarrod Johnson <jjohns...@lenovo.com> schrieb am 22.05.2017 15:36:14:

> Von: Jarrod Johnson <jjohns...@lenovo.com>
> An: xCAT Users Mailing list <xcat-user@lists.sourceforge.net>
> Datum: 22.05.2017 15:39
> Betreff: Re: [xcat-user] kvmhost1: Error: Unable to identify plugin 
> for this command, check relevant tables:
> 
> diff --git a/xCAT-server/lib/xcat/plugins/kvm.pm b/xCAT-server/lib/
> xcat/plugins/kvm.pm
> index dd881b5d2..d3804e4f8 100755
> --- a/xCAT-server/lib/xcat/plugins/kvm.pm
> +++ b/xCAT-server/lib/xcat/plugins/kvm.pm
> @@ -79,7 +79,7 @@ sub handled_commands {
>          #rvitals => 'nodehm:mgt',
>          #rinv => 'nodehm:mgt',
>          getrvidparms  => 'nodehm:mgt',
> -        lsvm          => 'hypervisor:type',
> +        lsvm => 'nodehm:mgt=ipmi',
>          rbeacon       => 'nodehm:mgt',
>          revacuate     => 'hypervisor:type',
>          vmstatenotify => 'hypervisor:type',
> 
> Why????
> 
> commit c5faf316a91b3c7d72c59af0723a6bcba5b98ef0
> Author: Mark Gurevich <gurev...@us.ibm.com>
> Date:   Wed May 4 13:53:33 2016 -0400
> 
>     Enable lsvm for kvm hypervisor (#1022)
> 
>     * Enable lsvm for kvm hypervisor
> 
> 
> 
> From: Mark Gurevich [mailto:gurev...@us.ibm.com] 
> Sent: Monday, May 22, 2017 9:24 AM
> To: xCAT Users Mailing list
> Subject: Re: [xcat-user] kvmhost1: Error: Unable to identify plugin 
> for this command, check relevant tables:
> 
> Matthias,
> 
> What is "mgt" attribute of kvmhost1 set to ?
> 
> Mark Gurevich
> Poughkeepsie Development Lab
> HPC Software Development - xCAT
> 
> "If we knew what it was we were doing, it would not be called 
> research, would it?"
> --Albert Einstein
> 
> 
> 
> 
> 
> From:        matthias.m...@arz.at
> To:        xCAT Users Mailing list <xcat-user@lists.sourceforge.net>
> Date:        05/22/2017 05:44 AM
> Subject:        [xcat-user] kvmhost1: Error: Unable to identify 
> plugin for this command, check relevant tables:
> 
> 
> 
> 
> Hi, 
> 
> I just upgraded von xcat 2.9 to 2.13.4 (a bit of a jump :) 
> 
> lsvm used to work and list the running vms. Now it throws the following 
error:
> 
> $ lsvm kvmhost1 
> kvmhost1: Error: Unable to identify plugin for this command, check 
> relevant tables: hypervisor.type;nodetype.os=
> 
(esx.*);nodehm.mgt;nodehm.mgt=ipmi;nodehm.mgt=kvm;hypervisor.type=(rhev.*)
> 1 
> 
> when given a running VM its working: 
> $ lsvm lnx0206a 
> lnx0206a: Id: 8 
> lnx0206a: Host: kvmhost1 
> lnx0206a: OS: hvm 
> lnx0206a: Memory: 8388608 
> lnx0206a: CPU: 4 
> lnx0206a: State: 1 (The domain is active and running)
> lnx0206a: Disk file: /dev/clustervg/lnx0206a.vda.raw
> lnx0206a: Disk file: /dev/clustervg/lnx0206a.vdb.raw
> lnx0206a: Disk file: /dev/clustervg/lnx0206a.vdc.raw
> 
> here a are the kvmhost attributes: 
> $ nodels kvmhost1 hypervisor.type nodehm.mgt nodetype.os hypervisor.type
> kvmhost1: nodetype.os: sles12.1 
> kvmhost1: hypervisor.type: kvm 
> kvmhost1: nodehm.mgt: ucs 
> 
> is it missing an attribute to be identified as a hypervisor?
> 
> Thanks! 
> 
> --
> Matthias Merk
> 
------------------------------------------------------------------------------
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> _______________________________________________
> xCAT-user mailing list
> xCAT-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/xcat-user
> 
> 
------------------------------------------------------------------------------
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> _______________________________________________
> xCAT-user mailing list
> xCAT-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/xcat-user

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
xCAT-user mailing list
xCAT-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/xcat-user

Reply via email to