Re: Java process not running in KVM SSVM

2013-09-12 Thread Mike Tutkowski
The good news, however, is that the GUI now reports my SSVM's VM and Agent states as both Up (as opposed to yesterday where it was showing a dash for the SSVM's Agent state). On Thu, Sep 12, 2013 at 2:28 PM, Mike Tutkowski < mike.tutkow...@solidfire.com> wrote: > OK, I fixed the script and check

Re: Java process not running in KVM SSVM

2013-09-12 Thread Mike Tutkowski
OK, I fixed the script and checked it into master. I rebuilt master, then redeployed my .debs. This time I see the following exception in the same script: http://i.imgur.com/8Vi2KU3.png On Wed, Sep 11, 2013 at 11:42 PM, Mike Tutkowski < mike.tutkow...@solidfire.com> wrote: > Sure, I can fix t

Re: Java process not running in KVM SSVM

2013-09-11 Thread Mike Tutkowski
Sure, I can fix that code in 4.2. On Wed, Sep 11, 2013 at 11:33 PM, Wei ZHOU wrote: > Mike, > The script is an issue only in master branch. Few people work are > working on testing it as most are on 4.2 release now. > Please feel free to create JIRA ticket and commit patch for it. > -- *Mi

Re: Java process not running in KVM SSVM

2013-09-11 Thread Wei ZHOU
Mike, The script is an issue only in master branch. Few people work are working on testing it as most are on 4.2 release now. Please feel free to create JIRA ticket and commit patch for it.

Re: Java process not running in KVM SSVM

2013-09-11 Thread Mike Tutkowski
What about that script, though? The domain variable being referenced instead of the vmName one. That still seems like an issue. On Wed, Sep 11, 2013 at 11:24 PM, Mike Tutkowski < mike.tutkow...@solidfire.com> wrote: > Ah, if what Marcus says is accurate, then that would likely explain the > situ

Re: Java process not running in KVM SSVM

2013-09-11 Thread Mike Tutkowski
Ah, if what Marcus says is accurate, then that would likely explain the situation. On Wed, Sep 11, 2013 at 11:23 PM, Marcus Sorensen wrote: > I think there's a special command to generate the nonoss debs. I've > seen it on the mailing list recently, it seems. > > On Wed, Sep 11, 2013 at 11:21 PM

Re: Java process not running in KVM SSVM

2013-09-11 Thread Mike Tutkowski
Thanks, Wei. So, not putting in -Dnonoss should solve my problem, it seems. However, is there still not a problem for those who need -Dnonoss? On Wed, Sep 11, 2013 at 11:21 PM, Wei ZHOU wrote: > The "Premium" comes from this part in ./client/tomcatconf/nonossComp > onentContext.xml

Re: Java process not running in KVM SSVM

2013-09-11 Thread Mike Tutkowski
Sure, I can run "mvn -P developer,systemvm clean install" (omitting -Dnonoss). I can then redeploy the .debs and see what happens. I'll do this in 4.2. On Wed, Sep 11, 2013 at 11:18 PM, Wei ZHOU wrote: > Agree with Marcus, it could because of the different ./client/tomcatconf/ > nonossCompone

Re: Java process not running in KVM SSVM

2013-09-11 Thread Marcus Sorensen
I think there's a special command to generate the nonoss debs. I've seen it on the mailing list recently, it seems. On Wed, Sep 11, 2013 at 11:21 PM, Wei ZHOU wrote: > The "Premium" comes from this part in ./client/tomcatconf/nonossComp > onentContext.xml

Re: Java process not running in KVM SSVM

2013-09-11 Thread Wei ZHOU
The "Premium" comes from this part in ./client/tomcatconf/nonossComp onentContext.xml 2013/9/12 Wei ZHOU > Agree with Marcus, it could because of the different ./client/tomcatconf/ > nonossComponentContext.xml.in a

Re: Java process not running in KVM SSVM

2013-09-11 Thread Wei ZHOU
Agree with Marcus, it could because of the different ./client/tomcatconf/ nonossComponentContext.xml.in and ./client/tomcatconf/ componentContext.xml.in Mike, could you try "mvn -P developer,systemvm clean install" instead? 2013/9/12 Mike Tutkowski > Since the 4.2 code isn't yet available from

Re: Java process not running in KVM SSVM

2013-09-11 Thread Mike Tutkowski
Since the 4.2 code isn't yet available from a pre-built source on the web, maybe I should do 4.1.1. Otherwise I'd have to build the 4.2 .debs and we'd be subject to the same possible build errors. Unless the 4.2 ones are available on the web. On Wed, Sep 11, 2013 at 11:11 PM, Marcus Sorensen wr

Re: Java process not running in KVM SSVM

2013-09-11 Thread Marcus Sorensen
Yeah, 4.1.1 or 4.2 RC maybe. I was just thinking we have no way to know if the debs you generated are missing something. I think I have seen that Premium class missing once before due to not building in vmware support or something, and it turned out to be oss vs non-oss builds. On Wed, Sep 11, 201

Re: Java process not running in KVM SSVM

2013-09-11 Thread Mike Tutkowski
Are you thinking I should perhaps download the .deb files from pre-4.2 and try those out? On Wed, Sep 11, 2013 at 10:49 PM, Marcus Sorensen wrote: > I think the "premium" class refers to oss vs non oss builds. Before you > file a bug, maybe try with some known good release artifacts that someon

Re: Java process not running in KVM SSVM

2013-09-11 Thread Marcus Sorensen
I think the "premium" class refers to oss vs non oss builds. Before you file a bug, maybe try with some known good release artifacts that someone else has built to maybe see if its a config or build issue. If the artifacts work it will at least narrow it down. In fact that might be a good idea in

Re: Java process not running in KVM SSVM

2013-09-11 Thread Mike Tutkowski
So, do we feel there are at least two bugs here that I should create JIRA tickets for? 1) 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.ClassNotFound

Re: Java process not running in KVM SSVM

2013-09-11 Thread Mike Tutkowski
Interesting...no error message from Ubuntu this time (with the script updated), but still no state shown in the GUI for SSVM (after destroying and letting it be re-created). On Wed, Sep 11, 2013 at 4:40 PM, Mike Tutkowski < mike.tutkow...@solidfire.com> wrote: > I made that change and am just go

Re: Java process not running in KVM SSVM

2013-09-11 Thread Mike Tutkowski
I made that change and am just going to reboot Ubuntu to be on the safe side. On Wed, Sep 11, 2013 at 4:36 PM, Mike Tutkowski < mike.tutkow...@solidfire.com> wrote: > Is this what you recommend, Wei? > > def getvmId(vmName): > > conn = libvirt.openReadOnly('qemu:///system') > > if conn =

Re: Java process not running in KVM SSVM

2013-09-11 Thread Mike Tutkowski
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:

Re: Java process not running in KVM SSVM

2013-09-11 Thread Wei ZHOU
Moreover, all the string matching "virsh list |grep " in ./scripts/vm/network/security_group.py should be changed to "virsh list |grep -w " 2013/9/12 Marcus Sorensen > That looks like the python script might be trying to talk to libvirtd. > Remember, domain also refers to a VM. I have no idea,

Re: Java process not running in KVM SSVM

2013-09-11 Thread Mike Tutkowski
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

Re: Java process not running in KVM SSVM

2013-09-11 Thread Marcus Sorensen
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,

Re: Java process not running in KVM SSVM

2013-09-11 Thread Wei ZHOU
./scripts/vm/network/security_group.py 2013/9/12 Wei ZHOU > it should be a bug. try after changing domain to vmName in line 934 > > > 2013/9/12 Mike Tutkowski > >> hostname --domain comes back empty...Is this the problem? If so, how might >> I solve this? Thanks >> >> >> On Wed, Sep 11, 2013 a

Re: Java process not running in KVM SSVM

2013-09-11 Thread Mike Tutkowski
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

Re: Java process not running in KVM SSVM

2013-09-11 Thread Wei ZHOU
it should be a bug. try after changing domain to vmName in line 934 2013/9/12 Mike Tutkowski > 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: > > > P

Re: Java process not running in KVM SSVM

2013-09-11 Thread Mike Tutkowski
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 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 > s

Re: Java process not running in KVM SSVM

2013-09-11 Thread Mike Tutkowski
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

Re: Java process not running in KVM SSVM

2013-09-11 Thread Mike Tutkowski
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,

Re: Java process not running in KVM SSVM

2013-09-11 Thread Marcus Sorensen
It should be in the "common" package. On Sep 11, 2013 4:06 PM, "Mike Tutkowski" 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

Re: Java process not running in KVM SSVM

2013-09-11 Thread Marcus Sorensen
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.

Re: Java process not running in KVM SSVM

2013-09-11 Thread Wei ZHOU
It could work if you scp/cp the new systemvm.iso to /usr/share/cloudstack-common/vms/systemvm.iso on KVM host. 2013/9/12 Mike Tutkowski > 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

Re: Java process not running in KVM SSVM

2013-09-11 Thread Mike Tutkowski
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.PremiumSecondary

Re: Java process not running in KVM SSVM

2013-09-11 Thread Marcus Sorensen
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 parameter

Re: Java process not running in KVM SSVM

2013-09-11 Thread Mike Tutkowski
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 wrote: > Can you check whether the systemvm*.iso on your host is new or not? > > > 2013/9/11 Mike Tutkowski > > > In fac

Re: Java process not running in KVM SSVM

2013-09-11 Thread Mike Tutkowski
Sorry if these are really basic questions about how system VMs work: 1) Is systemvm.iso used for system VMs of all different hypervisor types? 2) Does a system VM access systemvm.iso via a virtual CD/DVD drive? 3) Is systemvm.iso downloaded to each hypervisor host from the management server (I d

Re: Java process not running in KVM SSVM

2013-09-11 Thread Mike Tutkowski
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

Re: Java process not running in KVM SSVM

2013-09-11 Thread Mike Tutkowski
Typically I build this way: mvn -P developer,systemvm clean install -Dnonoss On Wed, Sep 11, 2013 at 2:54 PM, Wei ZHOU 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 > > > T

Re: Java process not running in KVM SSVM

2013-09-11 Thread Mike Tutkowski
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,sys

Re: Java process not running in KVM SSVM

2013-09-11 Thread Wei ZHOU
Can you check whether the systemvm*.iso on your host is new or not? 2013/9/11 Mike Tutkowski > 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.

Re: Java process not running in KVM SSVM

2013-09-11 Thread Wei ZHOU
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 > 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 cl

Re: Java process not running in KVM SSVM

2013-09-11 Thread Mike Tutkowski
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 du

Re: Java process not running in KVM SSVM

2013-09-11 Thread Ahmad Emneina
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

Re: Java process not running in KVM SSVM

2013-09-11 Thread Mike Tutkowski
Maybe it's /var/log/cloud.log On Wed, Sep 11, 2013 at 2: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..

Re: Java process not running in KVM SSVM

2013-09-11 Thread Mike Tutkowski
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

Re: Java process not running in KVM SSVM

2013-09-11 Thread Alena Prokharchyk
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 mailto:mike.tutkow...@solidfire.com>> Reply-To: "dev@cloudstack.apache.org" mailto:dev@clo