Is this what you recommend, Wei? def getvmId(vmName):
conn = libvirt.openReadOnly('qemu:///system') if conn == None: print 'Failed to open connection to the hypervisor' sys.exit(3) try: dom = (conn.lookupByName (vmName)) except libvirt.libvirtError: return None conn.close() return dom.ID() On Wed, Sep 11, 2013 at 4:26 PM, Marcus Sorensen <shadow...@gmail.com>wrote: > That looks like the python script might be trying to talk to libvirtd. > Remember, domain also refers to a VM. I have no idea, just that 'conn' > usually refers to a libvirtd connection. Didn't know security groups py did > that. I usually deal in advanced zones without security groups though. > On Sep 11, 2013 4:22 PM, "Mike Tutkowski" <mike.tutkow...@solidfire.com> > wrote: > > > hostname --domain comes back empty...Is this the problem? If so, how > might > > I solve this? Thanks > > > > > > On Wed, Sep 11, 2013 at 4:18 PM, Mike Tutkowski < > > mike.tutkow...@solidfire.com> wrote: > > > > > Please take a look at this when you get a chance: > > > > > > http://i.imgur.com/9sQkpHM.png > > > > > > Thanks! > > > > > > > > > On Wed, Sep 11, 2013 at 4:16 PM, Mike Tutkowski < > > > mike.tutkow...@solidfire.com> wrote: > > > > > >> I restarted Ubuntu to make sure everything was fresh, destroyed, and > > >> re-created my system VMs. > > >> > > >> I got an error message from Ubuntu about a failed process (it's > related > > >> to the agent). > > >> > > >> I'll put a screen shot on the web and provide a link in a moment. > > >> > > >> > > >> On Wed, Sep 11, 2013 at 4:05 PM, Mike Tutkowski < > > >> mike.tutkow...@solidfire.com> wrote: > > >> > > >>> So, actually, what Marcus brings up is related to one of my earlier > > >>> questions about how system VM's work. > > >>> > > >>> I rebuilt the codebase about an hour ago, but did not re-deploy the > > .deb > > >>> files. > > >>> > > >>> It sounds like the systemvm.iso file is part of the .deb packaging (I > > >>> wasn't sure if it was or if it was later downloaded from the CSMS). > > >>> > > >>> > > >>> On Wed, Sep 11, 2013 at 3:56 PM, Mike Tutkowski < > > >>> mike.tutkow...@solidfire.com> wrote: > > >>> > > >>>> Is it going to be a problem that my KVM host is doubling as my > > >>>> secondary storage server? > > >>>> > > >>>> > > >>>> On Wed, Sep 11, 2013 at 3:44 PM, Marcus Sorensen < > shadow...@gmail.com > > >wrote: > > >>>> > > >>>>> And they've been installed with the agent? Via .deb files or what? > > You > > >>>>> should be able to look at the .deb packages you generated and > verify > > >>>>> the > > >>>>> systemvm.iso that is mounted to your ssvm is the same md5sum as the > > >>>>> one in > > >>>>> the .deb you installed. "virsh dumpxml (vmname)" will give you the > > VM > > >>>>> parameters, you'll see a systemvm.iso path here. > > >>>>> On Sep 11, 2013 3:33 PM, "Mike Tutkowski" < > > >>>>> mike.tutkow...@solidfire.com> > > >>>>> wrote: > > >>>>> > > >>>>> > Looks like there are three that were built a little while ago > > >>>>> (around the > > >>>>> > time I was building the codebase). 44,621,824 bytes each. > > >>>>> > > > >>>>> > > > >>>>> > On Wed, Sep 11, 2013 at 3:21 PM, Wei ZHOU <ustcweiz...@gmail.com > > > > >>>>> wrote: > > >>>>> > > > >>>>> > > Can you check whether the systemvm*.iso on your host is new or > > not? > > >>>>> > > > > >>>>> > > > > >>>>> > > 2013/9/11 Mike Tutkowski <mike.tutkow...@solidfire.com> > > >>>>> > > > > >>>>> > > > In fact, all 26 ERROR messages in the file are the same > (minus > > >>>>> the > > >>>>> > > > timestamp being a little different, of course). > > >>>>> > > > > > >>>>> > > > > > >>>>> > > > On Wed, Sep 11, 2013 at 3:14 PM, Mike Tutkowski < > > >>>>> > > > mike.tutkow...@solidfire.com> wrote: > > >>>>> > > > > > >>>>> > > > > Same error message in the log after a rebuild of the code > > base > > >>>>> (using > > >>>>> > > mvn > > >>>>> > > > > -P developer,systemvm clean install -Dnonoss): > > >>>>> > > > > > > >>>>> > > > > 2013-09-11 21:10:40,929 ERROR [cloud.agent.AgentShell] > > >>>>> (main:null) > > >>>>> > > Unable > > >>>>> > > > > to start agent: Resource class not found: > > >>>>> > > > > com.cloud.storage.resource.PremiumSecondaryStorageResource > > due > > >>>>> to: > > >>>>> > > > > java.lang.ClassNotFoundException: > > >>>>> > > > > com.cloud.storage.resource.PremiumSecondaryStorageResource > > >>>>> > > > > > > >>>>> > > > > > > >>>>> > > > > On Wed, Sep 11, 2013 at 2:58 PM, Mike Tutkowski < > > >>>>> > > > > mike.tutkow...@solidfire.com> wrote: > > >>>>> > > > > > > >>>>> > > > >> I am rebuilding using mvn -P developer,systemvm clean > > install > > >>>>> > -Dnonoss > > >>>>> > > > >> right now. > > >>>>> > > > >> > > >>>>> > > > >> Once this has completed, I can destroy my system VMs and > let > > >>>>> them be > > >>>>> > > > >> re-deployed and see if that fixes the issue. > > >>>>> > > > >> > > >>>>> > > > >> > > >>>>> > > > >> On Wed, Sep 11, 2013 at 2:57 PM, Mike Tutkowski < > > >>>>> > > > >> mike.tutkow...@solidfire.com> wrote: > > >>>>> > > > >> > > >>>>> > > > >>> Typically I build this way: > > >>>>> > > > >>> > > >>>>> > > > >>> mvn -P developer,systemvm clean install -Dnonoss > > >>>>> > > > >>> > > >>>>> > > > >>> > > >>>>> > > > >>> On Wed, Sep 11, 2013 at 2:54 PM, Wei ZHOU < > > >>>>> ustcweiz...@gmail.com> > > >>>>> > > > wrote: > > >>>>> > > > >>> > > >>>>> > > > >>>> I guess something wrong with systemvm.iso > > >>>>> > > > >>>> Did you build systemvm when you run "mvn -P > > >>>>> developer,systemvm > > >>>>> > > clean > > >>>>> > > > >>>> install" ? > > >>>>> > > > >>>> > > >>>>> > > > >>>> > > >>>>> > > > >>>> 2013/9/11 Mike Tutkowski <mike.tutkow...@solidfire.com> > > >>>>> > > > >>>> > > >>>>> > > > >>>> > This error is repeated over and over: > > >>>>> > > > >>>> > > > >>>>> > > > >>>> > 2013-09-11 19:25:57,878 ERROR [cloud.agent.AgentShell] > > >>>>> > (main:null) > > >>>>> > > > >>>> Unable > > >>>>> > > > >>>> > to start agent: Resource class not found: > > >>>>> > > > >>>> > > > >>>>> com.cloud.storage.resource.PremiumSecondaryStorageResource due > > >>>>> > to: > > >>>>> > > > >>>> > java.lang.ClassNotFoundException: > > >>>>> > > > >>>> > > > com.cloud.storage.resource.PremiumSecondaryStorageResource > > >>>>> > > > >>>> > > > >>>>> > > > >>>> > Is this just a bad image? Does someone know where I > > could > > >>>>> > > download a > > >>>>> > > > >>>> better > > >>>>> > > > >>>> > one? > > >>>>> > > > >>>> > > > >>>>> > > > >>>> > Thanks! > > >>>>> > > > >>>> > > > >>>>> > > > >>>> > > > >>>>> > > > >>>> > On Wed, Sep 11, 2013 at 2:41 PM, Ahmad Emneina < > > >>>>> > > aemne...@gmail.com> > > >>>>> > > > >>>> wrote: > > >>>>> > > > >>>> > > > >>>>> > > > >>>> > > should be in /var/log/cloud or just /var/log and > look > > >>>>> for a > > >>>>> > file > > >>>>> > > > >>>> called > > >>>>> > > > >>>> > > cloud.log or cloud.out > > >>>>> > > > >>>> > > > > >>>>> > > > >>>> > > > > >>>>> > > > >>>> > > On Wed, Sep 11, 2013 at 1:38 PM, Mike Tutkowski < > > >>>>> > > > >>>> > > mike.tutkow...@solidfire.com> wrote: > > >>>>> > > > >>>> > > > > >>>>> > > > >>>> > > > Thanks, Alena > > >>>>> > > > >>>> > > > > > >>>>> > > > >>>> > > > I'm not familiar with debugging SSVM. Can you tell > > me > > >>>>> where > > >>>>> > > the > > >>>>> > > > >>>> log is > > >>>>> > > > >>>> > > > located? > > >>>>> > > > >>>> > > > > > >>>>> > > > >>>> > > > > > >>>>> > > > >>>> > > > On Wed, Sep 11, 2013 at 1:58 PM, Alena > Prokharchyk < > > >>>>> > > > >>>> > > > alena.prokharc...@citrix.com> wrote: > > >>>>> > > > >>>> > > > > > >>>>> > > > >>>> > > > > Mike, did you check the log inside the SSVM? It > > >>>>> should > > >>>>> > print > > >>>>> > > > >>>> out the > > >>>>> > > > >>>> > > > > exception stack trace with the reason why java > > >>>>> process > > >>>>> > > failed > > >>>>> > > > to > > >>>>> > > > >>>> > start. > > >>>>> > > > >>>> > > > > > > >>>>> > > > >>>> > > > > -alena. > > >>>>> > > > >>>> > > > > > > >>>>> > > > >>>> > > > > From: Mike Tutkowski < > > mike.tutkow...@solidfire.com > > >>>>> > <mailto: > > >>>>> > > > >>>> > > > > mike.tutkow...@solidfire.com>> > > >>>>> > > > >>>> > > > > Reply-To: "dev@cloudstack.apache.org<mailto: > > >>>>> > > > >>>> > dev@cloudstack.apache.org > > >>>>> > > > >>>> > > >" > > >>>>> > > > >>>> > > > < > > >>>>> > > > >>>> > > > > dev@cloudstack.apache.org<mailto: > > >>>>> > dev@cloudstack.apache.org > > >>>>> > > >> > > >>>>> > > > >>>> > > > > Date: Wednesday, September 11, 2013 12:39 PM > > >>>>> > > > >>>> > > > > To: "dev@cloudstack.apache.org<mailto: > > >>>>> > > > dev@cloudstack.apache.org>" > > >>>>> > > > >>>> < > > >>>>> > > > >>>> > > > > dev@cloudstack.apache.org<mailto: > > >>>>> > dev@cloudstack.apache.org > > >>>>> > > >>, > > >>>>> > > > >>>> Marcus > > >>>>> > > > >>>> > > > > Sorensen <shadow...@gmail.com<mailto: > > >>>>> shadow...@gmail.com > > >>>>> > >> > > >>>>> > > > >>>> > > > > Subject: Java process not running in KVM SSVM > > >>>>> > > > >>>> > > > > > > >>>>> > > > >>>> > > > > Hi, > > >>>>> > > > >>>> > > > > > > >>>>> > > > >>>> > > > > I'm having a bit of trouble with the KVM SSVM. > > >>>>> > > > >>>> > > > > > > >>>>> > > > >>>> > > > > The KVM CPVM reads as VM and Agent states Up; > > >>>>> however, > > >>>>> > SSVM > > >>>>> > > > has > > >>>>> > > > >>>> a > > >>>>> > > > >>>> > dash > > >>>>> > > > >>>> > > > for > > >>>>> > > > >>>> > > > > Agent state (its VM state is Up). > > >>>>> > > > >>>> > > > > > > >>>>> > > > >>>> > > > > On the SSVM, I ran > > >>>>> /usr/local/cloud/systemvm/ssvm-check.sh > > >>>>> > > and > > >>>>> > > > >>>> got > > >>>>> > > > >>>> > back > > >>>>> > > > >>>> > > > the > > >>>>> > > > >>>> > > > > following message: > > >>>>> > > > >>>> > > > > > > >>>>> > > > >>>> > > > > ERROR: Java process not running. Try restarting > > >>>>> the SSVM. > > >>>>> > > > >>>> > > > > > > >>>>> > > > >>>> > > > > I restarted the VM and re-ran ssvm-check.sh > (after > > >>>>> still > > >>>>> > > > seeing > > >>>>> > > > >>>> a > > >>>>> > > > >>>> > dash > > >>>>> > > > >>>> > > > for > > >>>>> > > > >>>> > > > > the Agent state) and received the same error > > >>>>> message. > > >>>>> > > > >>>> > > > > > > >>>>> > > > >>>> > > > > I'm running on master. I installed the KVM > system > > >>>>> template > > >>>>> > > > this > > >>>>> > > > >>>> way: > > >>>>> > > > >>>> > > > > > > >>>>> > > > >>>> > > > > sudo > > >>>>> > > > >>>> > > > > > > >>>>> > > > >>>> > > > > > > >>>>> > > > >>>> > > > > > >>>>> > > > >>>> > > > > >>>>> > > > >>>> > > > >>>>> > > > >>>> > > >>>>> > > > > > >>>>> > > > > >>>>> > > > >>>>> > > > /home/mtutkowski/cloudstack/scripts/storage/secondary/cloud-install-sys-tmplt > > >>>>> > > > >>>> > > > > -m /mnt/secondary -u > > >>>>> > > > >>>> > > > > > > >>>>> > > > >>>> > > > > > > >>>>> > > > >>>> > > > > > >>>>> > > > >>>> > > > > >>>>> > > > >>>> > > > >>>>> > > > >>>> > > >>>>> > > > > > >>>>> > > > > >>>>> > > > >>>>> > > > http://download.cloud.com/templates/4.2/systemvmtemplate-2013-06-12-master-kvm.qcow2.bz2-h > > >>>>> > > > >>>> > > > > kvm -F > > >>>>> > > > >>>> > > > > > > >>>>> > > > >>>> > > > > Any thoughts on this? > > >>>>> > > > >>>> > > > > > > >>>>> > > > >>>> > > > > Thanks! > > >>>>> > > > >>>> > > > > > > >>>>> > > > >>>> > > > > -- > > >>>>> > > > >>>> > > > > *Mike Tutkowski* > > >>>>> > > > >>>> > > > > *Senior CloudStack Developer, SolidFire Inc.* > > >>>>> > > > >>>> > > > > e: mike.tutkow...@solidfire.com<mailto: > > >>>>> > > > >>>> mike.tutkow...@solidfire.com> > > >>>>> > > > >>>> > > > > o: 303.746.7302 > > >>>>> > > > >>>> > > > > Advancing the way the world uses the > > >>>>> > > > >>>> > > > > cloud< > > >>>>> http://solidfire.com/solution/overview/?video=play> > > >>>>> > > > >>>> > > > > *™* > > >>>>> > > > >>>> > > > > > > >>>>> > > > >>>> > > > > > > >>>>> > > > >>>> > > > > > >>>>> > > > >>>> > > > > > >>>>> > > > >>>> > > > -- > > >>>>> > > > >>>> > > > *Mike Tutkowski* > > >>>>> > > > >>>> > > > *Senior CloudStack Developer, SolidFire Inc.* > > >>>>> > > > >>>> > > > e: mike.tutkow...@solidfire.com > > >>>>> > > > >>>> > > > o: 303.746.7302 > > >>>>> > > > >>>> > > > Advancing the way the world uses the > > >>>>> > > > >>>> > > > cloud< > > >>>>> http://solidfire.com/solution/overview/?video=play> > > >>>>> > > > >>>> > > > *™* > > >>>>> > > > >>>> > > > > > >>>>> > > > >>>> > > > > >>>>> > > > >>>> > > > >>>>> > > > >>>> > > > >>>>> > > > >>>> > > > >>>>> > > > >>>> > -- > > >>>>> > > > >>>> > *Mike Tutkowski* > > >>>>> > > > >>>> > *Senior CloudStack Developer, SolidFire Inc.* > > >>>>> > > > >>>> > e: mike.tutkow...@solidfire.com > > >>>>> > > > >>>> > o: 303.746.7302 > > >>>>> > > > >>>> > Advancing the way the world uses the > > >>>>> > > > >>>> > cloud< > > http://solidfire.com/solution/overview/?video=play> > > >>>>> > > > >>>> > *™* > > >>>>> > > > >>>> > > > >>>>> > > > >>>> > > >>>>> > > > >>> > > >>>>> > > > >>> > > >>>>> > > > >>> > > >>>>> > > > >>> -- > > >>>>> > > > >>> *Mike Tutkowski* > > >>>>> > > > >>> *Senior CloudStack Developer, SolidFire Inc.* > > >>>>> > > > >>> e: mike.tutkow...@solidfire.com > > >>>>> > > > >>> o: 303.746.7302 > > >>>>> > > > >>> Advancing the way the world uses the cloud< > > >>>>> > > > http://solidfire.com/solution/overview/?video=play> > > >>>>> > > > >>> *™* > > >>>>> > > > >>> > > >>>>> > > > >> > > >>>>> > > > >> > > >>>>> > > > >> > > >>>>> > > > >> -- > > >>>>> > > > >> *Mike Tutkowski* > > >>>>> > > > >> *Senior CloudStack Developer, SolidFire Inc.* > > >>>>> > > > >> e: mike.tutkow...@solidfire.com > > >>>>> > > > >> o: 303.746.7302 > > >>>>> > > > >> Advancing the way the world uses the cloud< > > >>>>> > > > http://solidfire.com/solution/overview/?video=play> > > >>>>> > > > >> *™* > > >>>>> > > > >> > > >>>>> > > > > > > >>>>> > > > > > > >>>>> > > > > > > >>>>> > > > > -- > > >>>>> > > > > *Mike Tutkowski* > > >>>>> > > > > *Senior CloudStack Developer, SolidFire Inc.* > > >>>>> > > > > e: mike.tutkow...@solidfire.com > > >>>>> > > > > o: 303.746.7302 > > >>>>> > > > > Advancing the way the world uses the cloud< > > >>>>> > > > http://solidfire.com/solution/overview/?video=play> > > >>>>> > > > > *™* > > >>>>> > > > > > > >>>>> > > > > > >>>>> > > > > > >>>>> > > > > > >>>>> > > > -- > > >>>>> > > > *Mike Tutkowski* > > >>>>> > > > *Senior CloudStack Developer, SolidFire Inc.* > > >>>>> > > > e: mike.tutkow...@solidfire.com > > >>>>> > > > o: 303.746.7302 > > >>>>> > > > Advancing the way the world uses the > > >>>>> > > > cloud<http://solidfire.com/solution/overview/?video=play> > > >>>>> > > > *™* > > >>>>> > > > > > >>>>> > > > > >>>>> > > > >>>>> > > > >>>>> > > > >>>>> > -- > > >>>>> > *Mike Tutkowski* > > >>>>> > *Senior CloudStack Developer, SolidFire Inc.* > > >>>>> > e: mike.tutkow...@solidfire.com > > >>>>> > o: 303.746.7302 > > >>>>> > Advancing the way the world uses the > > >>>>> > cloud<http://solidfire.com/solution/overview/?video=play> > > >>>>> > *™* > > >>>>> > > > >>>>> > > >>>> > > >>>> > > >>>> > > >>>> -- > > >>>> *Mike Tutkowski* > > >>>> *Senior CloudStack Developer, SolidFire Inc.* > > >>>> e: mike.tutkow...@solidfire.com > > >>>> o: 303.746.7302 > > >>>> Advancing the way the world uses the cloud< > > http://solidfire.com/solution/overview/?video=play> > > >>>> *™* > > >>>> > > >>> > > >>> > > >>> > > >>> -- > > >>> *Mike Tutkowski* > > >>> *Senior CloudStack Developer, SolidFire Inc.* > > >>> e: mike.tutkow...@solidfire.com > > >>> o: 303.746.7302 > > >>> Advancing the way the world uses the cloud< > > http://solidfire.com/solution/overview/?video=play> > > >>> *™* > > >>> > > >> > > >> > > >> > > >> -- > > >> *Mike Tutkowski* > > >> *Senior CloudStack Developer, SolidFire Inc.* > > >> e: mike.tutkow...@solidfire.com > > >> o: 303.746.7302 > > >> Advancing the way the world uses the cloud< > > http://solidfire.com/solution/overview/?video=play> > > >> *™* > > >> > > > > > > > > > > > > -- > > > *Mike Tutkowski* > > > *Senior CloudStack Developer, SolidFire Inc.* > > > e: mike.tutkow...@solidfire.com > > > o: 303.746.7302 > > > Advancing the way the world uses the cloud< > > http://solidfire.com/solution/overview/?video=play> > > > *™* > > > > > > > > > > > -- > > *Mike Tutkowski* > > *Senior CloudStack Developer, SolidFire Inc.* > > e: mike.tutkow...@solidfire.com > > o: 303.746.7302 > > Advancing the way the world uses the > > cloud<http://solidfire.com/solution/overview/?video=play> > > *™* > > > -- *Mike Tutkowski* *Senior CloudStack Developer, SolidFire Inc.* e: mike.tutkow...@solidfire.com o: 303.746.7302 Advancing the way the world uses the cloud<http://solidfire.com/solution/overview/?video=play> *™*