Sangeetha Hariharan created CLOUDSTACK-2488:
-----------------------------------------------
Summary: Object_Store_Refactor - ISO - Not able to delete ISO.
Async job is in progress forever.
Key: CLOUDSTACK-2488
URL: https://issues.apache.org/jira/browse/CLOUDSTACK-2488
Project: CloudStack
Issue Type: Bug
Security Level: Public (Anyone can view this level - this is the default.)
Components: Management Server
Affects Versions: 4.2.0
Environment: Build from object_store
Reporter: Sangeetha Hariharan
Fix For: 4.2.0
Steps to reproduce the problem:
Register an ISO.
Deploy a Vm using this ISO.
In my case , Vm deployment failed because of CLOUDSTACK-2484.
Tried to delete the ISO.
Deletion of ISO does not succeed. Async job is in progress forever.
Tried to destroy the Vm that is in "Error" state so that it is now in
"Expunging" state.
Tried to delete the ISO again.
Deletion of ISO still does not succeed. Async job is in progress forever.
mysql> select * from vm_template where id=204;
+-----+--------------------------------------------+--------------------+--------------------------------------+--------+----------+------+-----+------+--------------------------------------------------------------------+--------+---------------------+---------+------------+----------------------------------+--------------------+-----------------+---------------+-------------+----------+-------------+-------------+-------------+-----------------+--------------------+--------------+----------+-----------+------------+--------------+---------------------+
| id | unique_name | name | uuid
| public | featured | type | hvm | bits | url
| format | created
| removed | account_id | checksum |
display_text | enable_password | enable_sshkey | guest_os_id | bootable |
prepopulate | cross_zones | extractable | hypervisor_type | source_template_id
| template_tag | sort_key | size | state | update_count | updated
|
+-----+--------------------------------------------+--------------------+--------------------------------------+--------+----------+------+-----+------+--------------------------------------------------------------------+--------+---------------------+---------+------------+----------------------------------+--------------------+-----------------+---------------+-------------+----------+-------------+-------------+-------------+-----------------+--------------------+--------------+----------+-----------+------------+--------------+---------------------+
| 204 | 204-2-d0f3bd6f-5886-3327-adac-1629d738fd8f | test-ubuntu-iso123 |
dcec8151-8066-43a5-a5fa-97a23861129f | 1 | 1 | USER | 1 | 64 |
http://nfs1.lab.vmops.com/isos_64bit/ubuntu-12.04-server-amd64.iso | ISO |
2013-05-14 17:10:53 | NULL | 2 | f2e921788d35bbdf0336d05d228136eb |
test-ubuntu-iso123 | 0 | 0 | 100 | 1 |
0 | 1 | 1 | VMware | NULL
| NULL | 0 | 717533184 | Destroying | 8 | 2013-05-14
20:35:34 |
+-----+--------------------------------------------+--------------------+--------------------------------------+--------+----------+------+-----+------+--------------------------------------------------------------------+--------+---------------------+---------+------------+----------------------------------+--------------------+-----------------+---------------+-------------+----------+-------------+-------------+-------------+-----------------+--------------------+--------------+----------+-----------+------------+--------------+---------------------+
1 row in set (0.00 sec)
mysql> select * from user_vm where iso_id=204;
+----+--------+--------------+-----------+-------------------+
| id | iso_id | display_name | user_data | update_parameters |
+----+--------+--------------+-----------+-------------------+
| 6 | 204 | test-iso-1 | NULL | 1 |
+----+--------+--------------+-----------+-------------------+
1 row in set (0.00 sec)
mysql> select * from vm_instance where id=6;
+----+------------+--------------------------------------+---------------+-----------+----------------+-------------+---------------------+--------------------+--------+----------------+---------+--------------+----------+-------------------+----------------------------------------------+------------+---------------+--------------+---------------------+---------------------+---------+------+---------+------------+-----------+---------------------+----------------+-----------------+------------------+------+------+-------+-------+------------+--------------+---------------+
| id | name | uuid | instance_name |
state | vm_template_id | guest_os_id | private_mac_address |
private_ip_address | pod_id | data_center_id | host_id | last_host_id |
proxy_id | proxy_assign_time | vnc_password |
ha_enabled | limit_cpu_use | update_count | update_time | created
| removed | type | vm_type | account_id | domain_id | service_offering_id
| reservation_id | hypervisor_type | disk_offering_id | cpu | ram | owner |
speed | host_name | display_name | desired_state |
+----+------------+--------------------------------------+---------------+-----------+----------------+-------------+---------------------+--------------------+--------+----------------+---------+--------------+----------+-------------------+----------------------------------------------+------------+---------------+--------------+---------------------+---------------------+---------+------+---------+------------+-----------+---------------------+----------------+-----------------+------------------+------+------+-------+-------+------------+--------------+---------------+
| 6 | test-iso-1 | c537e134-fab6-4c1b-8aac-441a032fbbe0 | i-2-6-VM |
Expunging | 204 | 100 | NULL | NULL
| NULL | 1 | NULL | NULL | NULL | NULL
| vXvnlGHLmOJD//n+4DQL0xxm74q0knU0o9KjAGuAWZM= | 0 |
0 | 2 | 2013-05-14 20:27:22 | 2013-05-14 17:14:31 | NULL | User |
User | 2 | 1 | 2 | NULL |
VMware | 4 | NULL | NULL | 2 | 1000 | test-iso-1 |
test-iso-1 | NULL |
+----+------------+--------------------------------------+---------------+-----------+----------------+-------------+---------------------+--------------------+--------+----------------+---------+--------------+----------+-------------------+----------------------------------------------+------------+---------------+--------------+---------------------+---------------------+---------+------+---------+------------+-----------+---------------------+----------------+-----------------+------------------+------+------+-------+-------+------------+--------------+---------------+
1 row in set (0.00 sec)
mysql>
management server logs:
2013-05-14 13:35:34,125 DEBUG [cloud.async.AsyncJobManagerImpl]
(catalina-exec-18:null) submit async job-29, details: AsyncJobVO {id:29,
userId: 2, accountId: 2, sessionKey: null, instanceType: Iso, instanceId: 204,
cmd: org.apache.cloudstack.api.command.user.iso.DeleteIsoCmd, cmdOriginator:
null, cmdInfo:
{"id":"dcec8151-8066-43a5-a5fa-97a23861129f","response":"json","sessionkey":"YAkWjubvg7E1hmj821JZ4NtchT4\u003d","ctxUserId":"2","zoneid":"a281057d-2a6a-47c1-ab05-f36a20006129","httpmethod":"GET","_":"1368567152947","ctxAccountId":"2","ctxStartEventId":"98"},
cmdVersion: 0, callbackType: 0, callbackAddress: null, status: 0,
processStatus: 0, resultCode: 0, result: null, initMsid: 206915885079359,
completeMsid: null, lastUpdated: null, lastPolled: null, created: null}
2013-05-14 13:35:34,129 DEBUG [cloud.async.AsyncJobManagerImpl]
(Job-Executor-1:job-29) Executing
org.apache.cloudstack.api.command.user.iso.DeleteIsoCmd for job-29
2013-05-14 13:35:34,129 DEBUG [cloud.api.ApiServlet] (catalina-exec-18:null)
===END=== 10.217.252.128 -- GET
command=deleteIso&id=dcec8151-8066-43a5-a5fa-97a23861129f&zoneid=a281057d-2a6a-47c1-ab05-f36a20006129&response=json&sessionkey=YAkWjubvg7E1hmj821JZ4NtchT4%3D&_=1368567152947
2013-05-14 13:35:34,176 INFO [cloud.template.HypervisorTemplateAdapter]
(Job-Executor-1:job-29) Delete template from image store:
nfs://10.223.110.232/export/home/sangeetha/campo-systemp-1/secondary
there is no entries for this job.
--
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