Quantcast
Channel: VMware Communities : All Content - vRealize Automation Tools
Viewing all articles
Browse latest Browse all 9859

Can not edit VM by requesting a resource action from VCO?

$
0
0

VCAC version:VMware-vCAC-Appliance-6.0.1.1-1768531_OVF10

 

As I successfully editted VM from vCAC's web page, I tried to send a edit request by calling "Request a resource action". But the request affected nothing of the target VM.

The request from workflow could be displayed in vCAC's web page 'correctly'. Here 'correctly' means, the cpu count and memory size displayed in web were as setted in worklfow.

I observed the difference between the request from web and the request from workflow: the request from web triggered a Reconfigure (the state of the target VM in item list is Reconfigure), but the request from workflow did not.

 

What is the possible cause for this problem?

 

The request data from vCAC web:

LiteralMap[values={provider-operationId=Infrastructure.Machine.Action.Reconfigure, provider-Cafe.Shim.VirtualMachine.Reconfigure.ExecutionSelector=1, provider-Cafe.Shim.VirtualMachine.Reconfigure.RequestDate=8/18/2014 12:51:00 PM, provider-machineId=a151e9ef-add5-436f-bc35-f963b6e7f0e7, provider-Cafe.Shim.VirtualMachine.Reconfigure.PowerActionSelector=0, provider-Cafe.Shim.VirtualMachine.Reason=, provider-Cafe.Shim.VirtualMachine.Reconfigure.Requestor=1, provider-TARGET_MACHINE_NAME=MP31, provider-Cafe.Shim.VirtualMachine.Reconfigure.PropertyBag=[{"PropertyName":"VirtualMachine.Admin.AgentID","PropertyValue":"faab3542-1d3c-e5b1-d847-900e0a8147c5","IsHidden":false,"IsRuntime":false,"IsEncrypted":false},{"PropertyName":"VirtualMachine.Admin.HostIdentity","PropertyValue":"192.168.1.161/datacenter/host/cluster","IsHidden":false,"IsRuntime":false,"IsEncrypted":false},{"PropertyName":"VirtualMachine.Admin.Hostname","PropertyValue":"cluster","IsHidden":false,"IsRuntime":false,"IsEncrypted":false},{"PropertyName":"VirtualMachine.Admin.TotalDiskUsage","PropertyValue":"10240","IsHidden":false,"IsRuntime":false,"IsEncrypted":false},{"PropertyName":"VirtualMachine.Admin.UUID","PropertyValue":"4235abfa-3c1d-b1e5-d847-900e0a8147c5","IsHidden":false,"IsRuntime":false,"IsEncrypted":false},{"PropertyName":"VirtualMachine.CPU.Count","PropertyValue":"1","IsHidden":false,"IsRuntime":false,"IsEncrypted":false},{"PropertyName":"VirtualMachine.Memory.Size","PropertyValue":"1024","IsHidden":false,"IsRuntime":false,"IsEncrypted":false},{"PropertyName":"VirtualMachine.Storage.Name","PropertyValue":"datastore2","IsHidden":false,"IsRuntime":false,"IsEncrypted":false},{"PropertyName":"Vrm.ProxyAgent.Uri","PropertyValue":"https://vcaciaas.sytest.com/VMPS2","IsHidden":false,"IsRuntime":false,"IsEncrypted":false}], provider-Cafe.Shim.VirtualMachine.Reconfigure.MemorySize=1048, provider-Cafe.Shim.VirtualMachine.Reconfigure.Storages=[{"ExternalId":"6000C291-eb25-1ad1-c46a-9465ba9a57d1","CapacityInGB":10,"StoragePath":"datastore2","StoragePolicy":null,"StoragePolicyMode":null,"Label":null,"Device":null,"CustomProperties":[{"PropertyName":"Name","PropertyValue":"Harddisk1","IsHidden":false,"IsRuntime":false,"IsEncrypted":false}]}], provider-Cafe.Shim.VirtualMachine.Reconfigure.Networks=[{"NetworkName":"VM Network","MacAddress":"00:50:56:b5:61:5e","CustomProperties":[]}], provider-Cafe.Shim.VirtualMachine.Reconfigure.CpuCount=1}]

 

**I changed a unicode charactor to "Harddisk1" when I create this post.

 

The request data from workflow:

LiteralMap[values={provider-operationId=Infrastructure.Machine.Action.Reconfigure, provider-Cafe.Shim.VirtualMachine.Reconfigure.ExecutionSelector=1, provider-Cafe.Shim.VirtualMachine.Reconfigure.RequestDate=2014/8/17 2:55:00, provider-Cafe.Shim.VirtualMachine.Reconfigure.PowerActionSelector=0, provider-machineId=a151e9ef-add5-436f-bc35-f963b6e7f0e7, provider-Cafe.Shim.VirtualMachine.Reason=, provider-TARGET_MACHINE_NAME=MP31, provider-Cafe.Shim.VirtualMachine.Reconfigure.PropertyBag=[{"PropertyName":"VirtualMachine.Admin.AgentID","PropertyValue":"faab3542-1d3c-e5b1-d847-900e0a8147c5","IsHidden":false,"IsRuntime":false,"IsEncrypted":false},{"PropertyName":"VirtualMachine.Admin.HostIdentity","PropertyValue":"192.168.1.161/datacenter/host/cluster","IsHidden":false,"IsRuntime":false,"IsEncrypted":false},{"PropertyName":"VirtualMachine.Admin.Hostname","PropertyValue":"cluster","IsHidden":false,"IsRuntime":false,"IsEncrypted":false},{"PropertyName":"VirtualMachine.Admin.TotalDiskUsage","PropertyValue":"10240","IsHidden":false,"IsRuntime":false,"IsEncrypted":false},{"PropertyName":"VirtualMachine.Admin.UUID","PropertyValue":"4235abfa-3c1d-b1e5-d847-900e0a8147c5","IsHidden":false,"IsRuntime":false,"IsEncrypted":false},{"PropertyName":"VirtualMachine.CPU.Count","PropertyValue":"1","IsHidden":false,"IsRuntime":false,"IsEncrypted":false},{"PropertyName":"VirtualMachine.Memory.Size","PropertyValue":"1024","IsHidden":false,"IsRuntime":false,"IsEncrypted":false},{"PropertyName":"VirtualMachine.Storage.Name","PropertyValue":"datastore2","IsHidden":false,"IsRuntime":false,"IsEncrypted":false},{"PropertyName":"Vrm.ProxyAgent.Uri","PropertyValue":"https://vcaciaas.sytest.com/VMPS2","IsHidden":false,"IsRuntime":false,"IsEncrypted":false}], provider-Cafe.Shim.VirtualMachine.Reconfigure.MemorySize=1500, provider-Cafe.Shim.VirtualMachine.Reconfigure.Storages=[{"ExternalId":"6000C291-eb25-1ad1-c46a-9465ba9a57d1","CapacityInGB":10,"StoragePath":"datastore2","StoragePolicy":null,"StoragePolicyMode":null,"Label":null,"Device":null,"CustomProperties":[{"PropertyName":"Name","PropertyValue":"HardDisk1","IsHidden":false,"IsRuntime":false,"IsEncrypted":false}]}], provider-Cafe.Shim.VirtualMachine.Reconfigure.Networks=[{"NetworkName":"VM Network","MacAddress":"00:50:56:b5:61:5e","CustomProperties":[{"PropertyName":"DnsSearchSuffixes","PropertyValue":"","IsHidden":false,"IsRuntime":false,"IsEncrypted":false},{"PropertyName":"DnsSuffix","PropertyValue":"","IsHidden":false,"IsRuntime":false,"IsEncrypted":false},{"PropertyName":"Gateway","PropertyValue":"192.168.1.1","IsHidden":false,"IsRuntime":false,"IsEncrypted":false},{"PropertyName":"PrimaryDns","PropertyValue":"192.168.1.1","IsHidden":false,"IsRuntime":false,"IsEncrypted":false},{"PropertyName":"PrimaryWins","PropertyValue":"","IsHidden":false,"IsRuntime":false,"IsEncrypted":false},{"PropertyName":"SecondaryDns","PropertyValue":"","IsHidden":false,"IsRuntime":false,"IsEncrypted":false},{"PropertyName":"SecondaryWins","PropertyValue":"","IsHidden":false,"IsRuntime":false,"IsEncrypted":false},{"PropertyName":"SubnetMask","PropertyValue":"255.255.255.0","IsHidden":false,"IsRuntime":false,"IsEncrypted":false}]}], provider-Cafe.Shim.VirtualMachine.Reconfigure.CpuCount=2}]

 

The 2 request data are almost the same, except that provider-Cafe.Shim.VirtualMachine.Reconfigure.Requestor is missing in workflow's request.

If I put it in request, I get "Exception during request callback with id 5f57a568-68a9-4e42-a70a-41fd8f364e25 for item a151e9ef-add5-436f-bc35-f963b6e7f0e7. Error Message: [Error code: 42000 ] - [Error Msg: Infrastructure service provider error]"

 

BTW, I successfully editted VM's description from workflow.


Viewing all articles
Browse latest Browse all 9859

Trending Articles



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