cloudstack-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "manasaveloori (JIRA)" <>
Subject [jira] [Created] (CLOUDSTACK-6723) [DynamicallyAddingGuestOs]Observed NPE when VM is deployed using the guest OS which has no mapping to any hypervisor
Date Tue, 20 May 2014 11:52:37 GMT
manasaveloori created CLOUDSTACK-6723:

             Summary: [DynamicallyAddingGuestOs]Observed NPE when VM is deployed using the
guest OS which has no mapping to any hypervisor
                 Key: CLOUDSTACK-6723
             Project: CloudStack
          Issue Type: Bug
      Security Level: Public (Anyone can view this level - this is the default.)
          Components: XenServer
    Affects Versions: 4.4.0
            Reporter: manasaveloori
            Priority: Critical
             Fix For: 4.4.0

1. Add a guest os using API
I added it using cloudmonkey:
 add guestos name=test oscategoryid=11 osdisplayname=test1centos
mysql> select category_id,name,uuid,display_name from guest_os where display_name="test1centos";
| category_id | name | uuid                                 | display_name |
|          11 | test | 8c413100-8b68-49c3-b81c-372c3ba8f998 | test1centos  |
1 row in set (0.00 sec)

2. did not create any mapping for this OS to hypervisor.
mysql> select hypervisor_type ,guest_os_name,hypervisor_version from guest_os_hypervisor
where guest_os_name="test1centos";
Empty set (0.00 sec)
3. Registered the template using the above created OS type.
4. Now deploy a VM using the template.


Observed NPE in Ms logs and deploy VM is failing.

2014-05-20 17:08:53,747 DEBUG [c.c.n.NetworkModelImpl] (Work-Job-Executor-23:job-61/job-63
ctx-0477ee48) Service SecurityGroup is not supported in the network id=206
2014-05-20 17:08:53,749 DEBUG [o.a.c.e.o.VolumeOrchestrator] (Work-Job-Executor-23:job-61/job-63
ctx-0477ee48) Checking if we need to prepare 1 volumes for VM[User|i-2-13-VM]
2014-05-20 17:08:53,750 DEBUG [o.a.c.e.o.VolumeOrchestrator] (Work-Job-Executor-23:job-61/job-63
ctx-0477ee48) No need to recreate the volume: Vol[13|vm=13|ROOT], since it already has a pool
assigned: 1, adding disk to VM
2014-05-20 17:08:53,773 ERROR [c.c.v.VirtualMachineManagerImpl] (Work-Job-Executor-23:job-61/job-63
ctx-0477ee48) Failed to start instance VM[User|i-2-13-VM]
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(
        at java.lang.reflect.Method.invoke(
        at org.apache.cloudstack.managed.context.ManagedContextRunnable$
        at org.apache.cloudstack.managed.context.impl.DefaultManagedContext$
        at org.apache.cloudstack.managed.context.impl.DefaultManagedContext.callWithContext(
        at org.apache.cloudstack.managed.context.impl.DefaultManagedContext.runWithContext(
        at java.util.concurrent.Executors$
        at java.util.concurrent.ThreadPoolExecutor.runWorker(
        at java.util.concurrent.ThreadPoolExecutor$
2014-05-20 17:08:53,780 DEBUG [c.c.v.VirtualMachineManagerImpl] (Work-Job-Executor-23:job-61/job-63
ctx-0477ee48) Cleaning up resources for the vm VM[User|i-2-13-VM] in Starting state
2014-05-20 17:08:53,783 DEBUG [c.c.a.t.Request] (Work-Job-Executor-23:job-61/job-63 ctx-0477ee48)
Seq 1-7387310763771167224: Sending  { Cmd , MgmtId: 7672522866886, via: 1(Rack1Pod1Host28),
Ver: v1, Flags: 100011, [{"":{"isProxy":false,"executeInSequence":false,"checkBeforeCleanup":false,"vmName":"i-2-13-VM","wait":0}}]
2014-05-20 17:08:53,783 DEBUG [c.c.a.t.Request] (Work-Job-Executor-23:jo

Attaching the logs and db dump.

This message was sent by Atlassian JIRA

View raw message