[
https://issues.apache.org/jira/browse/CLOUDSTACK-4136?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13733193#comment-13733193
]
manasaveloori commented on CLOUDSTACK-4136:
-------------------------------------------
Pasted wrong entry from db.
Please find below entries
mysql> select * from snapshots where uuid =
"acf6d258-99fa-4832-8499-a81a631627ce";
+----+----------------+------------+-----------+-----------+------------------+----------+--------------------------------------+-----------------------------------------------------+--------------------------------------+---------------+------------------+------------+---------------------+---------------------+---------------------------------------------------------------------------+----------+------------+--------------+-----------------+---------+-------+
| id | data_center_id | account_id | domain_id | volume_id | disk_offering_id |
status | path | name
| uuid | snapshot_type |
type_description | size | created | removed |
backup_snap_id |
swift_id | sechost_id | prev_snap_id | hypervisor_type | version | s3_id |
+----+----------------+------------+-----------+-----------+------------------+----------+--------------------------------------+-----------------------------------------------------+--------------------------------------+---------------+------------------+------------+---------------------+---------------------+---------------------------------------------------------------------------+----------+------------+--------------+-----------------+---------+-------+
| 1 | 2 | 2 | 1 | 10 | 11 |
BackedUp | a42cea59-2aaf-45e3-9289-adb1909ab29a |
0f459cba-04ca-4659-b1b5-5a1350d796c8_20130806121236 |
acf6d258-99fa-4832-8499-a81a631627ce | 0 | MANUAL |
2147483648 | 2013-08-06 12:12:36 | 2013-08-07 14:59:19 |
db7e14cc-e957-47d2-895c-cf038463457a/db7e14cc-e957-47d2-895c-cf038463457a |
NULL | 6 | 0 | VMware | 2.2 | NULL |
+----+----------------+------------+-----------+-----------+------------------+----------+--------------------------------------+-----------------------------------------------------+--------------------------------------+---------------+------------------+------------+---------------------+---------------------+---------------------------------------------------------------------------+----------+------------+--------------+-----------------+---------+-------+
1 row in set (0.03 sec)
mysql> select * from snapshot_store_ref where snapshot_id=1;
Empty set (0.01 sec)
> [upgraded ENV]Deleting Snapshot which was created before upgrade is throwing
> NPE.
> ---------------------------------------------------------------------------------
>
> Key: CLOUDSTACK-4136
> URL: https://issues.apache.org/jira/browse/CLOUDSTACK-4136
> Project: CloudStack
> Issue Type: Bug
> Security Level: Public(Anyone can view this level - this is the
> default.)
> Components: Storage Controller, Upgrade
> Affects Versions: 4.2.0
> Environment: upgraded from 3.0.7 to 4.2
> Reporter: manasaveloori
> Assignee: Koushik Das
> Priority: Critical
> Fix For: 4.2.0
>
> Attachments: management-server.zip, mysqldumpAfterUpnew.dmp,
> mysqldumpBeforeUp.dmp
>
>
> Steps:
> 1. Have CS with 3.0.7 build with VMware and Xen hypervisor.
> 2. Deploy a VM.
> 3. Create a snapshot of root volume.
> 4. Upgrade the build to 4.2.
> 5. Try to delete the snapshot now.
> Observing NPE while deleting the snapshot for the 1st time
> Tried to delete the same snapshot again deletes it. Verified the state of
> snapshot in DB also.
> 2013-08-07 20:29:19,535 DEBUG [cloud.api.ApiServlet] (catalina-exec-1:null)
> ===END=== 10.252.192.69 -- GET
> command=deleteSnapshot&id=acf6d258-99fa-4832-8499-a81a631627ce&response=json&sessionkey=uKcUJCauPB9Gj8yRMfQdmpPpTAE%3D&_=1375868166341
> 2013-08-07 20:29:19,539 DEBUG [cloud.async.AsyncJobManagerImpl]
> (Job-Executor-43:job-215 = [ 055cd377-272a-4ee6-a9c9-5b57fbbf6536 ])
> Executing org.apache.cloudstack.api.command.user.snapshot.DeleteSnapshotCmd
> for job-215 = [ 055cd377-272a-4ee6-a9c9-5b57fbbf6536 ]
> 2013-08-07 20:29:19,573 DEBUG [storage.snapshot.XenserverSnapshotStrategy]
> (Job-Executor-43:job-215 = [ 055cd377-272a-4ee6-a9c9-5b57fbbf6536 ]) Can't
> find snapshot on backup storage, delete it in db
> 2013-08-07 20:29:19,582 DEBUG [storage.snapshot.SnapshotManagerImpl]
> (Job-Executor-43:job-215 = [ 055cd377-272a-4ee6-a9c9-5b57fbbf6536 ]) Failed
> to delete snapshot: 1:java.lang.NullPointerException
> 2013-08-07 20:29:19,596 ERROR [cloud.async.AsyncJobManagerImpl]
> (Job-Executor-43:job-215 = [ 055cd377-272a-4ee6-a9c9-5b57fbbf6536 ])
> Unexpected exception while executing
> org.apache.cloudstack.api.command.user.snapshot.DeleteSnapshotCmd
> com.cloud.utils.exception.CloudRuntimeException: Failed to delete
> snapshot:java.lang.NullPointerException
> at
> com.cloud.storage.snapshot.SnapshotManagerImpl.deleteSnapshot(SnapshotManagerImpl.java:508)
> at
> com.cloud.utils.component.ComponentInstantiationPostProcessor$InterceptorDispatcher.intercept(ComponentInstantiationPostProcessor.java:125)
> at
> org.apache.cloudstack.api.command.user.snapshot.DeleteSnapshotCmd.execute(DeleteSnapshotCmd.java:96)
> at com.cloud.api.ApiDispatcher.dispatch(ApiDispatcher.java:158)
> at
> com.cloud.async.AsyncJobManagerImpl$1.run(AsyncJobManagerImpl.java:531)
> at
> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
> at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
> at java.util.concurrent.FutureTask.run(FutureTask.java:166)
> at
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
> at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
> at java.lang.Thread.run(Thread.java:679)
> 2013-08-07 20:29:19,600 DEBUG [cloud.async.AsyncJobManagerImpl]
> (Job-Executor-43:job-215 = [ 055cd377-272a-4ee6-a9c9-5b57fbbf6536 ]) Complete
> async job-215 = [ 055cd377-272a-4ee6-a9c9-5b57fbbf6536 ], jobStatus: 2,
> resultCode: 530, result: Error Code: 530 Error text: Failed to delete
> snapshot:java.lang.NullPointerException
> 2013-08-07 20:29:20,718 DEBUG [cloud.server.StatsCollector]
> (StatsCollector-2:null) VmStatsCollector is running...
> Attaching the MS logs.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira