Quantcast
Channel: VMware Communities: Message List
Viewing all articles
Browse latest Browse all 232869

Re: vCloud database upgrade fail

$
0
0

I had the same problem, here is how I found out what VM was causing it:

 

Ran this query off of the 1/2 upgraded database and found the VM with mem that was NULL

 

SELECT distinct vm.id, vrprp.computehub_id, vrp.id,
        0,
        vminv.mem_reservation, vminv.mem, vminv.mem_overhead,
        vminv.cpu_reservation, vminv.vcpu_count,
        vm.moref
        FROM vm vm, vm_inv vminv, vapp_vm vappvm,
        vrp vrp, vrp_rp vrprp,
        vm_container vmcont,
        org_prov_vdc o, org_prov_vdc_rp orp
        WHERE vm.moref = vminv.moref
        AND vm.vc_id = vminv.vc_id
        AND vm.id NOT IN (SELECT vm_id FROM deployed_vm)
        AND vm.id = vappvm.svm_id
        AND vappvm.vapp_id = vmcont.sg_id
        AND vmcont.org_vdc_id = o.id
        AND o.id = orp.org_prov_vdc_id
        AND orp.rp_moref = vrprp.sub_rp_moref
        AND orp.vc_id=vrprp.sub_rp_vc_id
        AND vrp.id = vrprp.vrp_id
        AND vminv.resource_pool_moref = vrprp.sub_rp_moref
        order by mem

 

Once I had that I tried to find the name by moref ID.

 

SELECT TOP 1000 [id]

      ,[vc_id]

      ,[computer_name]

      ,[storage_allocation_mb]

      ,[validity_status]

      ,[guest_os]

      ,[is_vrouter]

      ,[is_published]

      ,[date_created]

      ,[template_id]

      ,[is_template]

      ,[needs_customization]

      ,[primary_nic_id]

      ,[guest_cust_vm_id]

      ,[guestos_id]

      ,[moref]

      ,[location_path]

      ,[cloud_uuid]

      ,[instance_uuid]

      ,[creation_status]

      ,[version_number]

      ,[suspend_proctype_id]

      ,[snapshot_moref]

      ,[dstore_moref]

      ,[ovf_env]

      ,[ovf_env_transports]

  FROM [VCLOUDDB].[dbo].[vm]

 

where moref = 'vm-8971'

 

It gave me the name of the VM and it's ID, the problem was the ID was not in vCenter so I had to dig through the vCloud UI until I found a machine that matched it, deleted it and after that the upgrade ran smoothly.

 

Hope this helps someone!


Viewing all articles
Browse latest Browse all 232869

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>