VMware Cloud Community
RanjnaAggarwal
VMware Employee
VMware Employee

Task Status in vCD?

What will happen to the task, if task started from vCD is started on vCenter too and then suddenly connection between vCD and vCenter is lost and after 10-15 mins connection is back. It will fail at vCD or Completed? (what would be the status of this task in vCD)?

Regards, Ranjna Aggarwal
Reply
0 Kudos
4 Replies
mhampto
VMware Employee
VMware Employee

The task is passed to vCenter and should be completed on that end. vCD may not reflect this completion though as it may no longer be tracking the task.

Reply
0 Kudos
mjha
Hot Shot
Hot Shot

The status of task in vCD is most likely to be reflect as failed. The task may be completed at vCenter level, but since connection between vCD and vCenter was broken, vCD is not informed about task status.

You can check the task status in VCDDB to see whats the status code assigned to task.

You can fire following queries in DB:

1: Find The Org ID from DB

SELECT * FROM organization WHERE name LIKE '%Org_Name9%';

Note down the Org ID and supply in next query. Org id will be similar to  0xBDC5FF75F4424D9982.........

2: Find all tasks that are currently running in this Org

SELECT * FROM task WHERE org_id in  (0xBDC5FF75F4424D9982..............)

Also if the task status is vCD is showing as busy and not failed then

SELECT * FROM busy_object bo INNER JOIN task t ON bo.task_id = t.id WHERE t.org_id in  (0xBDC5FF75F4424D9982.......................)

SELECT * FROM jobs WHERE org_id in (0xBDC5FF75F4424D9982...........................) AND stoptime LIKE '%9999%' ORDER BY starttime

So if a task has completed at vCenter and status of same task is busy in vCD then either via API call we have to kill the task force status oft ask to be completed via DB edit.

Please consider marking this answer "correct" or "helpful" if you think your query have been answered correctly. Manish Jha | Operations Support Engineer | vCloud Air Operations vExpert 2015-17 | vExpert-NSX | vExpert-Cloud | VCAP6-DCV | VCP6-DCV | RHCE-7 Website : http://vstellar.com
Reply
0 Kudos
RanjnaAggarwal
VMware Employee
VMware Employee

That's what i was thinking, but i don't have environment to test it out. If you have, you can test it and let me know.

Regards, Ranjna Aggarwal
Reply
0 Kudos
mjha
Hot Shot
Hot Shot

Ranjana this is tested solution. I have done this few times in production

Please consider marking this answer "correct" or "helpful" if you think your query have been answered correctly. Manish Jha | Operations Support Engineer | vCloud Air Operations vExpert 2015-17 | vExpert-NSX | vExpert-Cloud | VCAP6-DCV | VCP6-DCV | RHCE-7 Website : http://vstellar.com
Reply
0 Kudos