VMware Cloud Community
Subnet88
Enthusiast
Enthusiast

VclVApp.vAppSize not returning data

Should VclVApp.vAppSize be returning data? If not, Does anybody have an idea of how to return the vApp size?

0 Kudos
6 Replies
cdecanini_
VMware Employee
VMware Employee

It may not help you but I have tried it on a few vApps and it returns their disk space in MB.

Nt sure why you do not get it.

Have you tried on different ones ?

Christophe.

If my answer resolved or helped you, please mark it as Correct or Helpful to award points. Thank you! Visit http://www.vcoteam.info & http://blogs.vmware.com/orchestrator for vCenter Orchestrator tips and tutorials - @vCOTeam on Twitter
0 Kudos
Subnet88
Enthusiast
Enthusiast

I have tried on 20 different vApps and they all return an empty value.

0 Kudos
cdecanini_
VMware Employee
VMware Employee

System.log your vApp.toXML();

In mine the size seems to come from this section:

<ovf:Item>
     <rasd:AddressOnParent>0</rasd:AddressOnParent>
     <rasd:Description>Hard disk</rasd:Description>
     <rasd:ElementName>Hard disk 1</rasd:ElementName>
     <rasd:HostResource vcloud:capacity="8192" vcloud:busSubType="lsilogic" vcloud:busType="6"/>
     <rasd:InstanceID>2000</rasd:InstanceID>
     <rasd:Parent>2</rasd:Parent>
     <rasd:ResourceType>17</rasd:ResourceType>
</ovf:Item>

Christophe.

If my answer resolved or helped you, please mark it as Correct or Helpful to award points. Thank you! Visit http://www.vcoteam.info & http://blogs.vmware.com/orchestrator for vCenter Orchestrator tips and tutorials - @vCOTeam on Twitter
0 Kudos
Subnet88
Enthusiast
Enthusiast

here is the same section I recieve back with vApp.toXml

<ns2:Item>
                    <ns3:Address xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:nil="true"/>
                    <ns3:AddressOnParent>0</ns3:AddressOnParent>
                    <ns3:AllocationUnits xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:nil="true"/>
                    <ns3:AutomaticAllocation xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:nil="true"/>
                    <ns3:AutomaticDeallocation xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:nil="true"/>
                    <ns3:Caption xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:nil="true"/>
                    <ns3:ChangeableType xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:nil="true"/>
                    <ns3:ConfigurationName xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:nil="true"/>
                    <ns3:ConsumerVisibility xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:nil="true"/>
                    <ns3:Description>Hard disk</ns3:Description>
                    <ns3:ElementName>Hard disk 1</ns3:ElementName>
                    <ns3:Generation xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:nil="true"/>
                    <ns3:HostResource ns6:capacity="40960" ns6:busSubType="lsilogicsas" ns6:busType="6"></ns3:HostResource>
                    <ns3:InstanceID>2000</ns3:InstanceID>
                    <ns3:Limit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:nil="true"/>
                    <ns3:MappingBehavior xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:nil="true"/>
                    <ns3:OtherResourceType xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:nil="true"/>
                    <ns3:Parent>2</ns3:Parent>
                    <ns3:PoolID xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:nil="true"/>
                    <ns3:Reservation xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:nil="true"/>
                    <ns3:ResourceSubType xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:nil="true"/>
                    <ns3:ResourceType>17</ns3:ResourceType>
                    <ns3:VirtualQuantity xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:nil="true"/>
                    <ns3:VirtualQuantityUnits xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:nil="true"/>
                    <ns3:Weight xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:nil="true"/>
                </ns2:Item>
0 Kudos
cdecanini_
VMware Employee
VMware Employee

I need to get the attention from someone who has access to the back-end source to understand what is going on. You can also resort to GSS to make this an official request.

Christophe.

If my answer resolved or helped you, please mark it as Correct or Helpful to award points. Thank you! Visit http://www.vcoteam.info & http://blogs.vmware.com/orchestrator for vCenter Orchestrator tips and tutorials - @vCOTeam on Twitter
0 Kudos
admin
Immortal
Immortal

This property is provided by the vCD Java SDK.

What it returns is the sum of all VM hard disk sizes within the vApp.

If the vApp has at least one VM that has a hard disk I see no reason for this to fail.

0 Kudos