Yes, exactly. Hence my comments on other threads about preferring to just build packages and reinstall when doing KVM development rather than copying jars around, its the best way to ensure the agent/host get all of the fresh code.
Your secondary storage should be fine. I run everything on one vm. On Sep 11, 2013 4:06 PM, "Mike Tutkowski" <[email protected]> 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 < > [email protected]> 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 <[email protected] > >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" <[email protected] > > > >> 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 <[email protected]> > >> wrote: > >> > > >> > > Can you check whether the systemvm*.iso on your host is new or not? > >> > > > >> > > > >> > > 2013/9/11 Mike Tutkowski <[email protected]> > >> > > > >> > > > 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 < > >> > > > [email protected]> 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 < > >> > > > > [email protected]> 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 < > >> > > > >> [email protected]> wrote: > >> > > > >> > >> > > > >>> Typically I build this way: > >> > > > >>> > >> > > > >>> mvn -P developer,systemvm clean install -Dnonoss > >> > > > >>> > >> > > > >>> > >> > > > >>> On Wed, Sep 11, 2013 at 2:54 PM, Wei ZHOU < > >> [email protected]> > >> > > > 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 <[email protected]> > >> > > > >>>> > >> > > > >>>> > 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 < > >> > > [email protected]> > >> > > > >>>> 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 < > >> > > > >>>> > > [email protected]> 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 < > >> > > > >>>> > > > [email protected]> 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 <[email protected] > >> > <mailto: > >> > > > >>>> > > > > [email protected]>> > >> > > > >>>> > > > > Reply-To: "[email protected]<mailto: > >> > > > >>>> > [email protected] > >> > > > >>>> > > >" > >> > > > >>>> > > > < > >> > > > >>>> > > > > [email protected]<mailto: > >> > [email protected] > >> > > >> > >> > > > >>>> > > > > Date: Wednesday, September 11, 2013 12:39 PM > >> > > > >>>> > > > > To: "[email protected]<mailto: > >> > > > [email protected]>" > >> > > > >>>> < > >> > > > >>>> > > > > [email protected]<mailto: > >> > [email protected] > >> > > >>, > >> > > > >>>> Marcus > >> > > > >>>> > > > > Sorensen <[email protected]<mailto: > >> [email protected] > >> > >> > >> > > > >>>> > > > > 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: [email protected]<mailto: > >> > > > >>>> [email protected]> > >> > > > >>>> > > > > 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: [email protected] > >> > > > >>>> > > > 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: [email protected] > >> > > > >>>> > 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: [email protected] > >> > > > >>> 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: [email protected] > >> > > > >> 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: [email protected] > >> > > > > 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: [email protected] > >> > > > 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: [email protected] > >> > 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: [email protected] > > 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: [email protected] > o: 303.746.7302 > Advancing the way the world uses the > cloud<http://solidfire.com/solution/overview/?video=play> > *™* >
