Quantcast
Channel: VMware Communities : Discussion List - vRealize Orchestrator
Viewing all articles
Browse latest Browse all 6251

Changing VM Guest OS Customization after vApp deploy - No Go!

$
0
0

Short story: When a vApp is deployed, I am unable to change any virtual machines belonging to that vApps "Guest OS Customization".

 

How to reproduce:

1) Try to create a vApp in vCloud director (or probably any other places, as long as it is an vApp).

2) Put a new VM in that vApp.

3) Make sure you can change the "Guest OS Customization" on that VM. In other words, try to check/uncheck "Enable guest customization" under "Guest OS Customization" for that VM. Verify that the change is done (the UI wont tell you when it fails).

4) Deploy the vApp (I have no idea what this really does, but I am doing that via Orchestrator; System.getModule("com.vmware.library.vCloud.operation").deployVApp()

5) I am now unable to change the "Guest OS Customization", even if I turn off the VM, and vApp. Or even undeploys the vApp.

 

This means that I can't add a new VM to an existing vApp, as long as it depends on "Guest OS Customization", which it does, in my case.

 

I am able to reproduce this problem at all times, no random occurrence.

 

I also did an vApp.toXml() from orchestrator on this vApp, before I did deployVApp(), and after I undeployed it (it is still "broken"). Here is the diff (taken away SID's, MAC's and changed out domains).

 

@@ -1,4 +1,4 @@

-<!-- working -->

+<!-- broken -->

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

<ns6:VApp deployed="false" href="https://cloud.example.com/api/vApp/vapp-015c34" id="urn:vcloud:vapp:015c34" name="TEST_vapp" status="8" type="application/vnd.vmware.vcloud.vApp+xml" xmlns="http://www.vmware.com/vcloud/versions" xmlns:ns2="http://schemas.dmtf.org/ovf/envelope/1" xmlns:ns3="http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_VirtualSystemSettingData" xmlns:ns4="http://schemas.dmtf.org/wbem/wscim/1/common" xmlns:ns5="http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_ResourceAllocationSettingData" xmlns:ns6="http://www.vmware.com/vcloud/v1.5" xmlns:ns7="http://www.vmware.com/schema/ovf" xmlns:ns8="http://schemas.dmtf.org/ovf/environment/1" xmlns:ns9="http://www.vmware.com/vcloud/extension/v1.5">

     <ns6:Link href="https://cloud.example.com/api/vApp/vapp-015c34/power/action/powerOn" rel="power:powerOn"/>

@@ -52,6 +52,9 @@

             <ns6:IsDeployed>false</ns6:IsDeployed>

         </ns6:NetworkConfig>

     </ns6:NetworkConfigSection>

+    <ns2:ProductSection ns2:class="" ns2:instance="" ns2:required="true">

+        <ns2:Info>Information about the installed software</ns2:Info>

+    </ns2:ProductSection>

     <ns6:SnapshotSection href="https://cloud.example.com/api/vApp/vapp-015c34/snapshotSection" ns2:required="false" type="application/vnd.vmware.vcloud.snapshotSection+xml">

         <ns2:Info>Snapshot information section</ns2:Info>

     </ns6:SnapshotSection>

@@ -61,7 +64,7 @@

     </ns6:Owner>

     <ns6:InMaintenanceMode>false</ns6:InMaintenanceMode>

     <ns6:Children>

-        <ns6:Vm deployed="false" href="https://cloud.example.com/api/vApp/vm-9f147" id="urn:vcloud:vm:9f147" name="RHEL" needsCustomization="true" status="8" type="application/vnd.vmware.vcloud.vm+xml">

+        <ns6:Vm deployed="false" href="https://cloud.example.com/api/vApp/vm-9f147" id="urn:vcloud:vm:9f147" name="RHEL" needsCustomization="false" status="8" type="application/vnd.vmware.vcloud.vm+xml">

             <ns6:VCloudExtension required="false">

                 <ns9:VmVimInfo>

                     <ns9:VmVimObjectRef>

@@ -364,7 +367,7 @@

             <ns6:NetworkConnectionSection href="https://cloud.example.com/api/vApp/vm-9f147/networkConnectionSection/" ns2:required="false" type="application/vnd.vmware.vcloud.networkConnectionSection+xml">

                 <ns2:Info>Specifies the available VM network connections</ns2:Info>

                 <ns6:PrimaryNetworkConnectionIndex>0</ns6:PrimaryNetworkConnectionIndex>

-                <ns6:NetworkConnection needsCustomization="true" network="none">

+                <ns6:NetworkConnection needsCustomization="false" network="none">

                     <ns6:NetworkConnectionIndex>0</ns6:NetworkConnectionIndex>

                     <ns6:IsConnected>false</ns6:IsConnected>

                     <ns6:MACAddress>00:50:56:00:00:01</ns6:MACAddress>

@@ -374,7 +377,7 @@

             </ns6:NetworkConnectionSection>

             <ns6:GuestCustomizationSection href="https://cloud.example.com/api/vApp/vm-9f147/guestCustomizationSection/" ns2:required="false" type="application/vnd.vmware.vcloud.guestCustomizationSection+xml">

                 <ns2:Info>Specifies Guest OS Customization Settings</ns2:Info>

-                <ns6:Enabled>false</ns6:Enabled>

+                <ns6:Enabled>true</ns6:Enabled>

                 <ns6:ChangeSid>false</ns6:ChangeSid>

                 <ns6:VirtualMachineId>9f147</ns6:VirtualMachineId>

                 <ns6:JoinDomainEnabled>false</ns6:JoinDomainEnabled>

 

 

As a final note; I can't find any error messages anywhere, it just acts as being ok.

 

VMware vCloud Director v5.1.1.868405


Viewing all articles
Browse latest Browse all 6251

Trending Articles



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