Open pkirklewski opened 12 years ago
If you're just looking for any resource pool to use, try /xyz.com/Development/computers/<hostname>/resourcePool
If you still want to create one, use that path as the parent of your resource pool. You should only need to create one if you want to limit the CPU or memory resources.
The documentation states "Each standalone host and each DRS cluster has an (invisible) root resource pool that groups the resources of that host or cluster." If you need more information, take a look at http://pubs.vmware.com/vsphere-50/topic/com.vmware.vsphere.resmgmt.doc_50/GUID-60077B40-66FF-4625-934A-641703ED7601.html.
/MyVsphere> resource_pool.create Pool10test /MyVsphere/Development/computers/MyCluster/resourcePool/
InvalidArgument: A specified parameter was not correct.
/MyVsphere> resource_pool.create Pool10test /MyVsphere/Development/computers/MyCluster/resourcePool/pools/
Expected ResourcePool but got RVC::FakeFolder at "/MyVsphere/Development/computers/MyCluster/resourcePool/pools/"
I'am still having problem creating the resource_pool. What am I dooing wrong please ?
I have just discovered something peculiar. The above problem only occurs while in v Sphere environment. The command works perfectly fine in my SINGLE ESXi setup:
/10.10.10.100/ha-datacenter/vm> resource_pool.create pool17 /10.10.10.100/ha-datacenter/computers/ESXi.LIPOWA/resourcePool/
No errors and the resoruce_pool gets created in a split of a second.
Why would this command not work in VSphere ?
If the error doesn't have enough info, do "debug" before issuing the command and then paste the raw SOAP. Also did you activate DRS (at least in manual mode)? Otherwise resource pools are deactivated.
/MyVsphere> debug debug mode enabled /MyVsphere> resource_pool.create pooltest10 /MyVsphere/Development/computers/MyCluster/resourcePool/ Request:
OK here is what you do: a) You use the UI and make sure it allows you to create resource pools b) You check the vpxd.log (vCenter logs) to get the full error message c) If it doesn't have enough data, change VC logging to trivia, rerun your experiment, grab the logs and change logging back to whatever it was before.
17352 2012-08-21T08:35:12.363+02:00 [02148 verbose 'QsAdapter.HTTPService'] User agent is 'VMware vim-java 1.0'^M
17353 2012-08-21T08:35:12.363+02:00 [02148 verbose 'QsAdapter.HTTPService'] HTTP Response: Complete (processed 3896 bytes)^M
17354 2012-08-21T08:35:12.363+02:00 [03988 info 'Default' opID=8bed6eed] [VpxLRO] -- BEGIN task-39639 -- resgroup-86 -- vim.ResourcePool.createResourcePool -- 52205233 -d1c5-2f87-85dc-72eeeaff6d59(529925d5-8be2-6840-4ced-e6bce89b4728)^M
17355 2012-08-21T08:35:12.363+02:00 [03988 error 'Default' opID=8bed6eed](Log recursion level 2) vmodl.fault.InvalidArgument^M
17356
17357 ------ In-memory logs end --------
17358 2012-08-21T08:35:12.363+02:00 [03988 error 'Default' opID=8bed6eed] Section for VMware VirtualCenter, pid=3164, version=5.0.0, build=build-755629, option=Release
17359 --> ^M
17360 2012-08-21T08:35:12.363+02:00 [03988 info 'Default' opID=8bed6eed] [VpxLRO] -- FINISH task-39639 -- resgroup-86 -- vim.ResourcePool.createResourcePool -- 5220523 3-d1c5-2f87-85dc-72eeeaff6d59(529925d5-8be2-6840-4ced-e6bce89b4728)^M
17361 2012-08-21T08:35:12.363+02:00 [03988 info 'Default' opID=8bed6eed] [VpxLRO] -- ERROR task-39639 -- resgroup-86 -- vim.ResourcePool.createResourcePool: vmodl.faul t.InvalidArgument:
17362 --> Result:
17363 --> (vmodl.fault.InvalidArgument) {
17364 --> dynamicType =
OK, I was able to reproduce the issue. The issue stems from some fields not being optional it seems. From the looks of it, limits and reservations are mandatory. Now, one further issue is that RVC doesn't allow negative numbers, but no limit is expressed as -1. I will put together a fix.
Thanks @cdickmann & @pkirklewski: I was able to create a resource pool. Apparently 2^64 - 1 is equivalent to "unlimited":
resource_pool.create duck_pool /vcentercf.nono.com/private/computers/private/resourcePool/ --cpu-reservation 0 --cpu-limit 18446744073709551615 --cpu-expandable --mem-limit 18446744073709551615 --mem-reservation 0 --mem-expandable
Hi there, Could you please add some examples of the commands under the HELP command ? I am trying to create a resourcepool with no lick whatsoever, there is no info on the web on how to sort it out + there is no eamples of the commands when I query the RVC. What is 'parent' - I don't want to create a sub-pool so why do I need to give the name of the parent ? Please help.
Attempt1: xyz.com/Dev/datastores/upgr> resource_pool.create test-rpool missing argument 'parent' Attempt2: xyz.com/Dev/datastores/upgr>resource_pool.create test-rpool /xyz.com/Dev/datastores/upgr/DT1/ Expected ResourcePool but got Datastore at "/xyz.com/Dev/datastores/upgr/DT1/"
Attempt3: /xyz.com> resource_pool.create test-rpool /xyz.com/Development/datastores/upgr/DT1/Resources
no matches for "/xyz.com/Development/datastores/upgr/DT1/Resources"