Quantcast
Viewing all 7719 articles
Browse latest View live

Re: API call to find the org membership of a user

You can use the /api/query?type=adminUser query and it will get you a result like:

 

<QueryResultRecords  name="adminUser" page="1" pageSize="25" total="7" href="https://172.16.1.2:8443/api/query?type=adminUser&page=1&pageSize=25&format=records" type="application/vnd.vmware.vcloud.query.records+xml">

 

    <AdminUserRecord deployedVMQuota="0" deployedVMQuotaRank="-1" fullName="vappauthor" identityProviderType="INTEGRATED" isEnabled="true" isLdapUser="false" name="vappauthor" numberOfDeployedVMs="0" numberOfStoredVMs="0" org="https://172.16.1.2:8443/api/org/838d246e-a26f-4003-971d-f9c839bd6235" storedVMQuota="0" storedVMQuotaRank="-1" href="https://172.16.1.2:8443/api/admin/user/742e8118-033f-430c-bb0d-283040f48717"/>

 

</QueryResultRecords>

 

the "org=" attribute gives you the information you need.

 


Re: REST API - Struggling to customise a VM at point of deployment

Indeed using VmGeneralParamsType in this scenario fails (correctly) with a BAD_REQUEST exception (I have reproduced this).

If instead you change your input to be:

 

<RecomposeVAppParams

xmlns="http://www.vmware.com/vcloud/v1.5"

xmlns:ovf="http://schemas.dmtf.org/ovf/envelope/1"

    xmlns:environment_1="http://schemas.dmtf.org/ovf/environment/1">

    <SourcedItem>

        <Source href="https://api.vcd.local/api/vAppTemplate/vappTemplate-b1490f4a-86e0-4095-b258-2e7062ee0335" name="XXX"/>

    </SourcedItem>

</RecomposeVAppParams>

 

then the name attribute is completely ignored. This means there's no way to rename a VM on the fly in recompose when the input comes from a vAppTemplate.

Changing this is a feature request.

 

Note however that if all you do is use recomposeVApp  to reconfigure a VM and rename it, then that works. So you can solve your problem by doing 2 recomposes: 1 to instantiate the template, and another 1 to rename the VM.

Re: Unable to fetch vApp Template information from the vApp GET or LIST vCloud Director 9.5 API 30.0v

During vAppTemplate instantiation, vCD sets a metadata key/value on the newly-created vApp with key=vapp.origin.id and value=id of template.

This is not guaranteed to be present (it can be removed by the sysadmin), but when it's present you can get that information in the vapp query:

 

https://wdc-vcd-sp-static-34-7.eng.vmware.com/api/query?type=adminVApp&format=records&page=1&fields=name,metadata@SYSTEM…

 

and you'll get something like the following back:

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<QueryResultRecords  name="adminVApp" page="1" pageSize="25" total="20" href="https://wdc-vcd-sp-static-34-7.eng.vmware.com/api/query?type=adminVApp&amp;page=1&amp;pageSize=25&amp;format=records&amp;fields=name,metadata@SYSTEM:vapp.origin.id" type="application/vnd.vmware.vcloud.query.records+xml">
    <AdminVAppRecord name="vApp-2020-02-28-15-18-25.640" href="https://wdc-vcd-sp-static-34-7.eng.vmware.com/api/vApp/vapp-04c0ff5c-9b59-4383-a939-108833771d37"/>
    <AdminVAppRecord name="vapp-fde9f1fd-4e84-459e-965a-8e1e37459496" href="https://wdc-vcd-sp-static-34-7.eng.vmware.com/api/vApp/vapp-0951f25b-568e-4173-bfe2-4eac91851ebb"/>
    <AdminVAppRecord name="vAppTemplate-2020-02-28-11-35-31.357" href="https://wdc-vcd-sp-static-34-7.eng.vmware.com/api/vApp/vapp-2e230495-9c06-4a06-b544-4239c1f66210">
        <Metadata>
            <MetadataEntry>
                <Domain visibility="READONLY">SYSTEM</Domain>
                <Key>vapp.origin.id</Key>
                <TypedValue xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="MetadataStringValue">
                    <Value>6f84c9b5-9113-4287-ac5a-44c0368bfa20</Value>
                </TypedValue>
            </MetadataEntry>
        </Metadata>
    </AdminVAppRecord>
</QueryResultRecords>

 

then you can extract the ID of the vAppTemplate from there...

vCloud Availability problem with pairing

It need to being paired two site with "VMware vCloud Availability" in different locations.

 

We have:

Both sites: ESXi 6.7.0 / Build 151601 38

Both sites: vCenter Server Version: 6.7.0 / Build: 151299 73

Both sites: VMware vCloud  Availability / 3.5.0.15038 129-0f0184b

 

One site: vCloud Director version: 10.0.0.154496 38

Other site: vCloud Director version: 9.1.0.119778 10

 

There are no networking issues between both locations.

 

 

 

Re: vCloud Availability problem with pairing

Moderator: Moved to vCloud Director

Image may be NSFW.
Clik here to view.

Re: vCloud Availability problem with pairing

This error typically is due to the endpoint configuration on the tunnel appliance and ensure it matches what's specified in the URL endpoint. Verify this is setup correctly between the Cloud Replication Manager and the Tunnel appliance.

Image may be NSFW.
Clik here to view.

vCloud Availabilty Serve installation error

Hi!

 

During the installation of vCloud Availabilty Server at the stage of Lookup service details, we get the error "The IP address of the host could not be determined.". Please help.

 

Image may be NSFW.
Clik here to view.
Снимок.JPG

Image may be NSFW.
Clik here to view.

Re: vCloud Director 10 - VM policy placement via CLI/API


Re: vCloud Director 10 - VM policy placement via CLI/API

How it exactly works??

 

1) I retrieve the VM element of target virtual machine

 

GET https://vcdcloud.com/api/vApp/vapp-ef36fa87-186f-4a2c-816c-fad5e3cf4c1b

 

 

2) I copy all output after request from body

 

3) I created new request with PUT and in body I modify VDC compute policy

 

https://vcdcloud.com/api/vApp/vm-dbfcb645-7a84-4ac6-9631-f29695e2cf53/action/reconfigureVm

 

 

4) After apply I get error "HTTP 405 Method Not Allowed"

 

I am not sure, that I use API request correct

 

Can you send me manual how to do??

 

Thank you

Re: vCloud Availabilty Serve installation error

What version of vCenter is this? Also, have you tried the DNS FQDN rather than the IP?

Image may be NSFW.
Clik here to view.

Re: vCloud Director 10 - VM policy placement via CLI/API

I can’t remove PvDC resource pools

I can’t remove PvDC resource pools, the following error occurs:

 

 

2020-03-04 14:29:52,628 | ERROR    | pool-jetty-256669         | RclServiceImpl                 | Cannot remove hubs [moref://eaa4d8b2-eb18-416e-acd5-7a64b7059f68/ResourcePool#resgroup-772] because they contain 1 runnable VMs | requestId=8ee9a3e7-3d2a-4188-89d1-b2c350a9bb40,request=POST https://***.***.**/cloud/amfsecure,requestTime=1583321391907,remoteAddress=192.168.7.66:21215,userAgent=Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 ...,accept=*/* method=rclService.updateResourcePoolSet

2020-03-04 14:29:52,637 | INFO     | pool-jetty-256669         | Conversation                   | Transaction rolled back; session has been closed [Conversation: aee0f4e1-8173-493f-b247-8067ed7ca718, transaction null, transactionDepth: 0] | requestId=8ee9a3e7-3d2a-4188-89d1-b2c350a9bb40,request=POST https://***.***.**/cloud/amfsecure,requestTime=1583321391907,remoteAddress=192.168.7.66:21215,userAgent=Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 ...,accept=*/* method=rclService.updateResourcePoolSet

2020-03-04 14:29:52,638 | WARN     | pool-jetty-256669         | BatchTask                      | Error executing backend call. | requestId=8ee9a3e7-3d2a-4188-89d1-b2c350a9bb40,request=POST https://***.***.**/cloud/amfsecure,requestTime=1583321391907,remoteAddress=192.168.7.66:21215,userAgent=Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 ...,accept=*/* method=rclService.updateResourcePoolSet

com.vmware.vcloud.api.presentation.service.BadRequestException: Unable to delete a resource pool with one or more VMs associated. Evacuate all the VMs before you delete the resource pool.

 

Checked records in select * from computevm database where computehub_id = 0x42697A0FDBCA497DBAFAC6FAE22E3FF4

There are no entries in the table, id belongs to the desired pool.

API call /api/admin/extension/resourcePool/38c2b6d9-fe0b-4e94-aff3-3f549c697fd7/vmList also returns the absence of a VM in the pool

 

How can I find out what interferes with the procedure?

Image may be NSFW.
Clik here to view.

Re: Expanding a VM disk in vCloud Director results in Storage vMotion

VCD's placement engine does *try* to keep items in their current datastore. However, there are many caveats which result in the item being moved. There are also a few known bugs in this area, which have been resolved.

 

If you could provide logs, as well as information about the request that expands a VM's disk, that'd help us figure out why the disk was moved in your specific case. Depending on whether this is a case we've already encountered, or a new scenario we haven't covered, we can either suggest an upgrade to a build that should resolve your issue, or try to address it in a future release.

 

Thanks,

Praag

Image may be NSFW.
Clik here to view.

vCloud director 9.7 API: Create and Attach “independent disks” to VMs fails with Error Internal Server Error

Hi,

 

Using vCloud director 9.7 when we try to create and attach “independent disks” to VMs which is failing as follows.

 

Image may be NSFW.
Clik here to view.

 

Command executed:

 

curl -i -k -H "Accept:application/*+xml;version=32.0" -H "Content-Type:application/vnd.vmware.vcloud.diskAttachOrDetachParams+xml" -H  "x-vcloud-authorization:84259732ee6d48d985ad10935d7ac698" -u z00185xc@vcd0012:***pwd****** -d @attach.xml -X POST https://vcd03ui.tre.nsn-rdnet.net/api/vApp/vm-7dbeedf0-d8e2-4467-98d8-2b5bde3c4bf4/disk/action/attach

 

[root@osboxes /]# cat attach.xml

<?xml version="1.0" encoding="UTF-8"?>

<DiskAttachOrDetachParams

   xmlns="http://www.vmware.com/vcloud/v1.5">

   <Disk

type="application/vnd.vmware.vcloud.disk+xml"

      href="https://vcd03ui.tre.nsn-rdnet.net/api/disk/f1414c3c-8535-43ab-b2aa-be315bfff8bf" >

   </Disk>

   <BusNumber> 0 </BusNumber>

   <UnitNumber> 1 </UnitNumber>

</DiskAttachOrDetachParams>

 

result:

 

HTTP/1.1 202 Accepted

Date: Fri, 06 Mar 2020 10:44:44 GMT

X-VMWARE-VCLOUD-REQUEST-ID: 5c21a5df-8256-455b-b118-87f22010437b

X-VMWARE-VCLOUD-CEIP-ID: 167319ac-ee18-4d16-b01c-9be512f56528

X-VMWARE-VCLOUD-ACCESS-TOKEN: eyJhbGciOiJSUzI1NiJ9.eyJzdWIiOiJ6MDAxODV4YyIsImlzcyI6IjU0NDg0MTQ0LTgzNDgtNGM3OS04MmFjLTJlN2M1YjE2OTBiYkBjNjJhMGVjYi05MmMwLTQ3NTUtYjZlZS0zNTU3YjkwNWZkZGMiLCJleHAiOjE1ODM1NzY1MjEsInZlcnNpb24iOiJ2Y2xvdWRfMS4wIiwianRpIjoiODQyNTk3MzJlZTZkNDhkOTg1YWQxMDkzNWQ3YWM2OTgifQ.VJlA78XP_x3Y5Z8mB0kaumchJfrVUNCAJlEEUm6hS8A1B-6DT1XFc9rh5pEAUffA_OS_stTiqt35J85XWAJmboYAB0KvhhZc1pUGq6URUl1H7L16xgc-xEa3b1kOga5WADzec6b-lU_9j4yRBQTcYtn1yzMM00i7ThVulCyuHcSKiZHDP9iCVOoF9wP4z7HwR4dVBVhwnJ4KGbC7jTee5kpOgxYJcusKPS1IOnL93h1KrvnEoKS--jUj7YJTxzs5tQtOmOEP_dWtNOnCBHYR6UCihgBHGcDCmqVSHcxByqRY8HLcCXwH2kTHgABVw5AHd7lmS4kKr5JZf_kZ2qqdJg

X-VMWARE-VCLOUD-TOKEN-TYPE: Bearer

x-vcloud-authorization: 84259732ee6d48d985ad10935d7ac698

Location: https://vcd03ui.tre.nsn-rdnet.net/api/task/408c946c-ad4c-46e3-859b-8d8e85ec7b47

Content-Type: application/vnd.vmware.vcloud.task+xml;version=32.0

X-VMWARE-VCLOUD-REQUEST-EXECUTION-TIME: 124

Cache-Control: no-store, must-revalidate

Vary: Accept-Encoding, User-Agent

Content-Length: 1803

 

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>

<Task xmlns="http://www.vmware.com/vcloud/v1.5" xmlns:ovf="http://schemas.dmtf.org/ovf/envelope/1" xmlns:vssd="http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_VirtualSystemSettingData" xmlns:common="http://schemas.dmtf.org/wbem/wscim/1/common" xmlns:rasd="http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_ResourceAllocationSettingData" xmlns:vmw="http://www.vmware.com/schema/ovf" xmlns:ovfenv="http://schemas.dmtf.org/ovf/environment/1" xmlns:vmext="http://www.vmware.com/vcloud/extension/v1.5" xmlns:ns9="http://www.vmware.com/vcloud/versions" cancelRequested="false" expiryTime="2020-06-04T10:44:44.190Z" operation="Attaching Disk to Virtual Machine cbam-installer(7dbeedf0-d8e2-4467-98d8-2b5bde3c4bf4)" operationName="vappAttachDisk" serviceNamespace="com.vmware.vcloud" startTime="2020-03-06T10:44:44.190Z" status="queued" name="task" id="urn:vcloud:task:408c946c-ad4c-46e3-859b-8d8e85ec7b47" href="https://vcd03ui.tre.nsn-rdnet.net/api/task/408c946c-ad4c-46e3-859b-8d8e85ec7b47" type="application/vnd.vmware.vcloud.task+xml">

    <Owner href="https://vcd03ui.tre.nsn-rdnet.net/api/vApp/vm-7dbeedf0-d8e2-4467-98d8-2b5bde3c4bf4" id="urn:vcloud:vm:7dbeedf0-d8e2-4467-98d8-2b5bde3c4bf4" name="cbam-installer" type="application/vnd.vmware.vcloud.vm+xml"/>

    <User href="https://vcd03ui.tre.nsn-rdnet.net/api/admin/user/eb174bd1-452c-4f72-b4a4-a37c9ea543db" id="urn:vcloud:user:eb174bd1-452c-4f72-b4a4-a37c9ea543db" name="z00185xc" type="application/vnd.vmware.admin.user+xml"/>

    <Organization href="https://vcd03ui.tre.nsn-rdnet.net/api/org/54484144-8348-4c79-82ac-2e7c5b1690bb" id="urn:vcloud:org:54484144-8348-4c79-82ac-2e7c5b1690bb" name="VCD0012" type="application/vnd.vmware.vcloud.org+xml"/>

    <Details></Details>

</Task>

 

Tried with CLI as well:

[root@osboxes bin]# ./vcd vapp attach vapptest cbam-installer testdisk

vappAttachDisk: Attaching Disk to Virtual Machine cbam-installer(7dbeedf0-d8e2-4467-98d8-2b5bde3c4bf4)

task: 6f395f41-8681-4245-96e1-afbc4d534544, result: error, message: [ 29b5e3a2-dd33-4aec-9317-2cb89c036107 ] Unable to perform this action. Contact your cloud administrator.

 

Errors:

 

This is the error message from first attach attempt task.

[ 2ce3f2e7-37ba-4b16-bc40-8ee02d3413bf ] Invalid hard disk parameters specified. The following parameters are invalid or conflict with other configured devices in the virtual machine: [vcId=952a6b3b-2407-4150-b07c-9dff51a28315, moref=vm-816] Adaptor Type: SCSIPARAVIRTUAL, Bus Number: 0, Unit Number: 0

The three following attempts all failed with Internal Server Error on the task with the below error message on the event.

{"id":{"id":"ca9af300-a431-4199-a66a-fe2b3accc1a7"},"timestamp":1583491484951,"type":"com/vmware/vcloud/event/task/complete","properties":{"user.taskId":"408c946c-ad4c-46e3-859b-8d8e85ec7b47","currentContext.org.id":{"id":"54484144-8348-4c79-82ac-2e7c5b1690bb","name":"VCD0012","type":"com.vmware.vcloud.entity.org"},"currentContext.login.org.id":{"id":"54484144-8348-4c79-82ac-2e7c5b1690bb","name":null,"type":"com.vmware.vcloud.entity.org"},"currentContext.success":false,"task.name":"VAPP_ATTACH_DISK","currentContext.login.user.id":{"id":"81d94f5e-dcf6-4464-9a67-747125ce940d","name":null,"type":"com.vmware.vcloud.entity.user"},"currentContext.user.clientIpAddress":"","task.ownerType":"com.vmware.vcloud.entity.vm","currentContext.user.name":"z00185xc","currentContext.org.name":"VCD0012","task.ownerId":{"id":"7dbeedf0-d8e2-4467-98d8-2b5bde3c4bf4"},"currentContext.login.member.id":{"id":"eb174bd1-452c-4f72-b4a4-a37c9ea543db","name":"z00185xc","type":"com.vmware.vcloud.entity.user"},"user.taskId.cellId":"96d57b54-b61c-419c-a7d0-304d626cd4dd","entity.type":"com.vmware.vcloud.entity.task","currentContext.user.id":{"id":"81d94f5e-dcf6-4464-9a67-747125ce940d","name":"z00185xc","type":"com.vmware.vcloud.entity.user"},"currentContext.cell.uuid":"a9ccc261-d719-4e64-ba0f-27f59e854af3","currentContext.login.user.name":"z00185xc","entity.name":"VAPP_ATTACH_DISK","currentContext.user.proxyAddress":"","entity.id":{"id":"408c946c-ad4c-46e3-859b-8d8e85ec7b47","name":"VAPP_ATTACH_DISK","type":"com.vmware.vcloud.entity.task"}},"serviceName":"com.vmware.vcloud","entity":{"id":"408c946c-ad4c-46e3-859b-8d8e85ec7b47","name":"VAPP_ATTACH_DISK","type":"com.vmware.vcloud.entity.task"},"externalEntity":null,"external":false}

The Internal Server Error
and the above events are from your curl call example.

 

 

vCloud Director log files that have either WARNING or ERROR in them.


[ /opt/vmware/vcloud-director/logs ]#  grep  f1414c3c-8535-43ab-b2aa-be315bfff8bf * | grep -e WARN -e ERROR
vcloud-container-debug.log.1:2020-03-06 08:43:31,763 | ERROR | task-service-activity-pool-45 | FutureUtil | Error attaching disk testdisk(com.vmware.vcloud.entity.disk:f1414c3c-8535-43ab-b2aa-be315bfff8bf) to VM cbam-installer(com.vmware.vcloud.entity.vm:7dbeedf0-d8e2-4467-98d8-2b5bde3c4bf4) | requestId=2ce3f2e7-37ba-4b16-bc40-8ee02d3413bf,request=POST https://vcd03ui.tre.nsn-rdnet.net/api/vApp/vm-7dbeedf0-d8e2-4467-98d8-2b5bde3c4bf4/disk/action/attach,requestTime=1583484186816,remoteAddress=10.10.132.81:53046,userAgent=curl/7.29.0,accept=application/*+xml;version 32.0 vcd=440e6d2e-0958-4920-823e-85ca0b4ff370,task=f94d2fd0-2b80-4098-89cd-67b0e52196c7 activity=(com.vmware.vcloud.backendbase.management.system.TaskActivity,urn:uuid:f94d2fd0-2b80-4098-89cd-67b0e52196c7)
vcloud-container-debug.log.1:2020-03-06 08:58:50,257 | ERROR | task-service-activity-pool-46 | FutureUtil | Error attaching disk testdisk(com.vmware.vcloud.entity.disk:f1414c3c-8535-43ab-b2aa-be315bfff8bf) to VM cbam-installer(com.vmware.vcloud.entity.vm:7dbeedf0-d8e2-4467-98d8-2b5bde3c4bf4) | requestId=29b5e3a2-dd33-4aec-9317-2cb89c036107,request=POST https://vcd03ui.tre.nsn-rdnet.net/api/vApp/vm-7dbeedf0-d8e2-4467-98d8-2b5bde3c4bf4/disk/action/attach,requestTime=1583485129460,remoteAddress=10.10.132.81:53640,userAgent=python-requests/2.23.0,accept=application/*+xml;version 32.0 vcd=440e6d2e-0958-4920-823e-85ca0b4ff370,task=6f395f41-8681-4245-96e1-afbc4d534544 activity=(com.vmware.vcloud.backendbase.management.system.TaskActivity,urn:uuid:6f395f41-8681-4245-96e1-afbc4d534544)
vcloud-container-debug.log.1:2020-03-06 10:44:44,906 | ERROR | task-service-activity-pool-47 | FutureUtil | Error attaching disk testdisk(com.vmware.vcloud.entity.disk:f1414c3c-8535-43ab-b2aa-be315bfff8bf) to VM cbam-installer(com.vmware.vcloud.entity.vm:7dbeedf0-d8e2-4467-98d8-2b5bde3c4bf4) | requestId=5c21a5df-8256-455b-b118-87f22010437b,request=POST https://vcd03ui.tre.nsn-rdnet.net/api/vApp/vm-7dbeedf0-d8e2-4467-98d8-2b5bde3c4bf4/disk/action/attach,requestTime=1583491484125,remoteAddress=10.10.132.81:27808,userAgent=curl/7.29.0,accept=application/*+xml;version 32.0 vcd=96d57b54-b61c-419c-a7d0-304d626cd4dd,task=408c946c-ad4c-46e3-859b-8d8e85ec7b47 activity=(com.vmware.vcloud.backendbase.management.system.TaskActivity,urn:uuid:408c946c-ad4c-46e3-859b-8d8e85ec7b47)
vcloud-container-debug.log.2:2020-03-06 08:12:19,554 | WARN     | pc-activity-pool-18005    | VmIdentityResolverImpl         | Cannot find VM [valref=[vcId=952a6b3b-2407-4150-b07c-9dff51a28315, moref=vm-817], instanceuuid=50017589-88c4-7c59-aa57-424242075772, clouduuid=65d844e8-7da5-4dc8-ab09-534bedf86e4d, locationPath=[VCD03CLU01_DS10] testdisk (f1414c3c-8535-43ab-b2aa-be315bfff8bf)/testdisk (f1414c3c-8535-43ab-b2aa-be315bfff8bf).vmx] in model database | activity=(com.vmware.vcloud.vimproxy.internal.impl.PropertyCollectorReader,urn:uuid:7f1c205f-c099-3130-b308-a3c12e1bab20)
vcloud-container-info.log:2020-03-06 08:12:19,554 | WARN     | pc-activity-pool-18005    | VmIdentityResolverImpl         | Cannot find VM [valref=[vcId=952a6b3b-2407-4150-b07c-9dff51a28315, moref=vm-817], instanceuuid=50017589-88c4-7c59-aa57-424242075772, clouduuid=65d844e8-7da5-4dc8-ab09-534bedf86e4d, locationPath=[VCD03CLU01_DS10] testdisk (f1414c3c-8535-43ab-b2aa-be315bfff8bf)/testdisk (f1414c3c-8535-43ab-b2aa-be315bfff8bf).vmx] in model database | activity=(com.vmware.vcloud.vimproxy.internal.impl.PropertyCollectorReader,urn:uuid:7f1c205f-c099-3130-b308-a3c12e1bab20)
vcloud-container-info.log:2020-03-06 08:43:31,763 | ERROR    | task-service-activity-pool-45 | FutureUtil | Error attaching disk testdisk(com.vmware.vcloud.entity.disk:f1414c3c-8535-43ab-b2aa-be315bfff8bf) to VM cbam-installer(com.vmware.vcloud.entity.vm:7dbeedf0-d8e2-4467-98d8-2b5bde3c4bf4) | requestId=2ce3f2e7-37ba-4b16-bc40-8ee02d3413bf,request=POST https://vcd03ui.tre.nsn-rdnet.net/api/vApp/vm-7dbeedf0-d8e2-4467-98d8-2b5bde3c4bf4/disk/action/attach,requestTime=1583484186816,remoteAddress=10.10.132.81:53046,userAgent=curl/7.29.0,accept=application/*+xml;version 32.0 vcd=440e6d2e-0958-4920-823e-85ca0b4ff370,task=f94d2fd0-2b80-4098-89cd-67b0e52196c7 activity=(com.vmware.vcloud.backendbase.management.system.TaskActivity,urn:uuid:f94d2fd0-2b80-4098-89cd-67b0e52196c7)
vcloud-container-info.log:2020-03-06 08:58:50,257 | ERROR    | task-service-activity-pool-46 | FutureUtil | Error attaching disk testdisk(com.vmware.vcloud.entity.disk:f1414c3c-8535-43ab-b2aa-be315bfff8bf) to VM cbam-installer(com.vmware.vcloud.entity.vm:7dbeedf0-d8e2-4467-98d8-2b5bde3c4bf4) | requestId=29b5e3a2-dd33-4aec-9317-2cb89c036107,request=POST https://vcd03ui.tre.nsn-rdnet.net/api/vApp/vm-7dbeedf0-d8e2-4467-98d8-2b5bde3c4bf4/disk/action/attach,requestTime=1583485129460,remoteAddress=10.10.132.81:53640,userAgent=python-requests/2.23.0,accept=application/*+xml;version 32.0 vcd=440e6d2e-0958-4920-823e-85ca0b4ff370,task=6f395f41-8681-4245-96e1-afbc4d534544 activity=(com.vmware.vcloud.backendbase.management.system.TaskActivity,urn:uuid:6f395f41-8681-4245-96e1-afbc4d534544)
vcloud-container-info.log:2020-03-06 10:44:44,906 | ERROR    | task-service-activity-pool-47 | FutureUtil | Error attaching disk testdisk(com.vmware.vcloud.entity.disk:f1414c3c-8535-43ab-b2aa-be315bfff8bf) to VM cbam-installer(com.vmware.vcloud.entity.vm:7dbeedf0-d8e2-4467-98d8-2b5bde3c4bf4) | requestId=5c21a5df-8256-455b-b118-87f22010437b,request=POST https://vcd03ui.tre.nsn-rdnet.net/api/vApp/vm-7dbeedf0-d8e2-4467-98d8-2b5bde3c4bf4/disk/action/attach,requestTime=1583491484125,remoteAddress=10.10.132.81:27808,userAgent=curl/7.29.0,accept=application/*+xml;version 32.0 vcd=96d57b54-b61c-419c-a7d0-304d626cd4dd,task=408c946c-ad4c-46e3-859b-8d8e85ec7b47 activity=(com.vmware.vcloud.backendbase.management.system.TaskActivity,urn:uuid:408c946c-ad4c-46e3-859b-8d8e85ec7b47)

Unfortunately, they do not provide any reason for the Internal Server Error =/.

 

Image may be NSFW.
Clik here to view.

Re: Need help with creating vApp Networks in vCloud Director

I'm seeing the same thing. Does anyone have any insight into what's going on?

Image may be NSFW.
Clik here to view.

Re: VMware vCloud Director 9.0 and 3rd-party SAML IDP

Yes, I did through Azure AD:

in Azure AD you create a custom enterprise application based on SAML

- you configure which users are allowed to use this method in here (as well on vCloud Director in Administration > Users)

This has to be an emailformat

- you configure SAML: Exchange the vCD Federation Metadata with Azure AD and Exchange the metadata of Azure AD (through the URL, not the downloadable XML) with vCD

- you also configure it to use SHA1 up until vCD 9.5.0.3 and as of vCD 9.5.0.4 you can use the standard SHA256

- vCloud Director supports only tokens with the age of 2hours. if you use AzureAD as the federation IDP you need to downsize the lifetime of the token (being 90days) to 2hrs. this can be done through the Azure AD Policy cmdlet.

 

the SAML attribute in AzureAD user.useruniqueidentifier is also known as the NameID, this one is the info the vCD is looking for and has to be filled in with either:

- user.mail or

- user.userprincipalname (if you don't have exchange)

Re: VMware vCloud Director 9.0 and 3rd-party SAML IDP

Moderator: Moved to vCloud Director

Re: vCloud director 9.7 API: Create and Attach “independent disks” to VMs fails with Error Internal Server Error

same problem occured when loading iso file into catalog.

no quota policy on storage

read/write is enable

can create catalog

tenant user is owner administrator role in tenant domain.

 

it stayes on 50% after long time it failed with error.

 

Event:

Task 'Upload Media' complete

 

Event Id:

 

7d8a1fb3-8b82-4dc9-9900-985e1704acb6

 

Type:

 

  task

Target:

 

vdcUploadMedia

Status:

 

      Failed

Service Namespace:

 

    com.vmware.vcloud

do it need firewall rules to be open?

do it need tenant specila permission from VCD Administrator ?

 

thanks

amir

Image may be NSFW.
Clik here to view.

Re: I can’t remove PvDC resource pools

Dear x129,

 

sadly i won't have a solution for you but i want attached my understandings of that case because i got the same error and resolved it but not my problem.

Can i assume that you moved all VMs from the old vSphere Cluster to a new one and want to remove this PvDC or its Ressource Pool?

 

In that case i found out, that if you moved the VMs with vCenter tools and not with vCloud tools you can "empty VM containers".

Or i mean i think this is the basic information of that error. When i move VMs Back to its original place and use "Migrate to.." on each VM in Ressource Pool View (Flash) i solved it.

After every VM was moved with "Migrate to..." i could detach the old Ressourcepool or delete the PvDC.

 

Sadly the prerequisites to click on 'Migrate to' are not public and i cannot do this.

I found a blog in the internet with the same error and you have to clean up the Database with the "stranded/stale" database entries of old or lost VMs.

After cleaning up this should work again.

 

At the moment i am searching the official documentation of "Merging PvDCs".

Not the vCloud documentation like "look here you can click on Merge".

Something more like "you have to connect the dvswitches, the datastores must be their, vxlan and vtep must be the same...." documentation....

 

Hoped my information helped you a bit or you can get more precised?

 

Regards

Tobias

Vcloud issue while importing

I'm using vcloud director for the first time. We have a requirement to move the on-prem VM's to AWS. When I create a snapshot for one of the VM which is 8gb in vcloud. I see multiple files in the datastores.

 

ctk.vmdk

flat.vmdk

ctk.vmdk

delta.vmdk

Snapshot23.vmsn

.vmx

.vmsd

.nvram

.vmx~

 

 

So, I consider a flat.vmdk which was the size of the VM(wild guess) 8gb. When I imported it in AWS and tried to convert it into AMI. It failed apparently "StatusMessage": "ClientError: Disk validation failed [Unsupported specified file format]","

 

step 7 - GitHub - miztiik/server-migration-onprem-to-aws: Simple demonstration on how to Lift & Shift OnPremise workload to AWS

 

 

VMware, Inc.® VMware vCloud Director

version 8.0.2.4348775

 

can someone please help. Which file to consider for migration.

Viewing all 7719 articles
Browse latest View live


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