Illusion_02
Contributor
Contributor

Reconfigure VM via vRO failing with error Unknown field: provider-Cafe.Shim.VirtualMachine.Reconfigure.ExecutionSelector?

I am using vRA request resource with below sample properties.

vmProperties.put("provider-Cafe.Shim.VirtualMachine.Reconfigure.Requestor" , "service@domain.local");
vmProperties.put("provider-Cafe.Shim.VirtualMachine.Reconfigure.Storages" , "[]");
vmProperties.put("provider-Cafe.Shim.VirtualMachine.Reconfigure.Networks" , "[]");
vmProperties.put("provider-Cafe.Shim.VirtualMachine.Reconfigure.ExecutionSelector" , 1);
vmProperties.put("provider-Cafe.Shim.VirtualMachine.Reconfigure.CpuCount" , newCpuCount.toString());
vmProperties.put("provider-Cafe.Shim.VirtualMachine.Reconfigure.PropertyBag" , '[{"PropertyName": "VirtualMachine.Core.Count","PropertyValue": "2"}');

vmProperties.put("provider-Cafe.Shim.VirtualMachine.Reconfigure.MemorySize" , newMemorySizeMb.toString());

I am getting below error:

2018-06-08 13:54:42.375] [I] Accepted inputs:

[2018-06-08 13:54:42.387] [I]  - provider-MachineName

[2018-06-08 13:54:42.395] [I]  - provider-machineId

[2018-06-08 13:54:42.402] [I]  - provider-operationId

[2018-06-08 13:54:42.410] [I] Filling in resource action request...

[2018-06-08 13:54:42.427] [E] (com.vmware.library.vcaccafe.request/requestResourceAction) Error in (Dynamic Script Module name : requestResourceAction#11) Unknown field: provider-Cafe.Shim.VirtualMachine.Reconfigure.ExecutionSelector

Can anyone suggest what can be the issue?

0 Kudos
9 Replies
sbeaver
Leadership
Leadership

You need these inputs as part of the request

[2018-06-08 13:54:42.387] [I]  - provider-MachineName

[2018-06-08 13:54:42.395] [I]  - provider-machineId

[2018-06-08 13:54:42.402] [I]  - provider-operationId

Steve Beaver
VMware Communities User Moderator
VMware vExpert 2009 - 2020
VMware NSX vExpert - 2019 - 2020
====
Co-Author of "VMware ESX Essentials in the Virtual Data Center"
(ISBN:1420070274) from Auerbach
Come check out my blog: [www.virtualizationpractice.com/blog|http://www.virtualizationpractice.com/blog/]
Come follow me on twitter http://www.twitter.com/sbeaver

**The Cloud is a journey, not a project.**
0 Kudos
Illusion_02
Contributor
Contributor

These inputs are also part of the payload i am sending with action request.
But i am still getting the mentioned error.

0 Kudos
sbeaver
Leadership
Leadership

You have to use "provider-" before the inputs you provide

Steve Beaver
VMware Communities User Moderator
VMware vExpert 2009 - 2020
VMware NSX vExpert - 2019 - 2020
====
Co-Author of "VMware ESX Essentials in the Virtual Data Center"
(ISBN:1420070274) from Auerbach
Come check out my blog: [www.virtualizationpractice.com/blog|http://www.virtualizationpractice.com/blog/]
Come follow me on twitter http://www.twitter.com/sbeaver

**The Cloud is a journey, not a project.**
0 Kudos
Illusion_02
Contributor
Contributor

Hi sbeaver,

That is already there. To be clear below are all properties i am sending.

provider-Cafe.Shim.VirtualMachine.Reconfigure.MemorySize : 4096

provider-Cafe.Shim.VirtualMachine.Reconfigure.PropertyBag : []

provider-Cafe.Shim.VirtualMachine.Reconfigure.Networks : []

provider-Cafe.Shim.VirtualMachine.Reconfigure.Storages : []

provider-Cafe.Shim.VirtualMachine.Reconfigure.CpuCount : 2

provider-Cafe.Shim.VirtualMachine.TotalStorageSize : 60

provider-Cafe.Shim.VirtualMachine.Reconfigure.UpdatedTotalStorageSize : 60

provider-operationId : Infrastructure.Machine.Action.Reconfigure

provider-machineId : xxxxxxxx

provider-MachineName : xxxxx

provider-Cafe.Shim.VirtualMachine.Reason :

provider-Cafe.Shim.VirtualMachine.Reconfigure.PowerActionSelector : 0

provider-Cafe.Shim.VirtualMachine.Reconfigure.Requestor : 4

provider-Cafe.Shim.VirtualMachine.Reconfigure.RequestDate : 6/8/2018 1:12:13 PM

provider-Cafe.Shim.VirtualMachine.Reconfigure.ExecutionSelector : 1

NOTE: xxxx values are replaced by machine name and id at respective positions.

Still getting mentioned error.

Also a proper input is provided under Storages property with new disk values.

0 Kudos
lolichet
VMware Employee
VMware Employee

Hi,

Facing the same issue with 7.3.1, it was working fine in 7.3.0.

Did you manage to find out the issue ?

Thanks.

Laurent.

0 Kudos
Illusion_02
Contributor
Contributor

No, i can't find a fix to this issue.

To workaround this issue, i am now sending the updated JSON payload in place of properties for reconfigure request.

0 Kudos
tchristin
Enthusiast
Enthusiast

Hi,

Same issue there for me.

So you don't use the action requestResourceAction to achieve your goal ?

0 Kudos
tchristin
Enthusiast
Enthusiast

Just to add som details :

Accepted inputs is empty...

Scale Out for resource <deploymentName > was selected.

[2019-02-20 14:18:02.795] [I] Getting resource action 'Scale Out' request form...

[2019-02-20 14:18:03.171] [I] Accepted inputs:

[2019-02-20 14:18:03.184] [I] Filling in resource action request...

[2019-02-20 14:18:03.187] [E] (com.vmware.library.vcaccafe.request/requestResourceAction) Error in (Dynamic Script Module name : requestResourceAction#11) Unknown field: provider-VM

0 Kudos
rdaka
Enthusiast
Enthusiast

I am getting the same error when trying to use reconfigure action to change cpu and memory. I am passing all the properties required but failing with the same error. Anyone able to figure this out?

properties.put("provider-operationId","Infrastructure.Machine.Action.Reconfigure");

properties.put("provider-machineId", vcacVm.virtualMachineID);

properties.put("provider-MachineName", vcacVm.virtualMachineName);

properties.put("provider-Cafe.Shim.VirtualMachine.Reconfigure.MemorySize", "4096"));

properties.put("provider-Cafe.Shim.VirtualMachine.Reconfigure.CpuCount", "2");

properties.put("provider-Cafe.Shim.VirtualMachine.Reconfigure.ExecutionSelector", "1");

properties.put("provider-Cafe.Shim.VirtualMachine.Reconfigure.PowerActionSelector", 0);

properties.put("provider-Cafe.Shim.VirtualMachine.Reconfigure.Requestor" , "");

properties.put("provider-Cafe.Shim.VirtualMachine.Reconfigure.Storages" , "[]");

properties.put("provider-Cafe.Shim.VirtualMachine.Reconfigure.Networks" , "[]");

properties.put("provider-Cafe.Shim.VirtualMachine.Reconfigure.PropertyBag" ,"[]");

var requestDate = System.formatDate(new Date(), "M/d/yyyy h:mm:ss a");

properties.put("provider-Cafe.Shim.VirtualMachine.Reconfigure.RequestDate", requestDate);

(com.vmware.library.vcaccafe.request/requestResourceAction) Error in (Dynamic Script Module name : requestResourceAction#10) Unknown field: provider-Cafe.Shim.VirtualMachine.Reconfigure.ExecutionSelector

0 Kudos