Run the following commands to instantiate a software on a specific node:
$ sudo su
# slapos console --cfg ~/.slapos/slapos-client.cfg
instance_b = request(wordpress, "Wordpress B from console",
filter_kw={ "computer_guid": "COMP-12345" }
)
instance_b.getState()
Traceback (most recent call last):
File "", line 1, in
File "/Library/Python/2.6/site-packages/.../slapos/console.py", line 108, in
slap.registerOpenOrder().request(software_release, reference)
File "/Library/Python/2.6/site-packages/slapos/slap/slap.py", line 162, in request
self._connection_helper.POST('/requestComputerPartition', request_dict)
File "/Library/Python/2.6/site-packages/slapos/slap/slap.py", line 469, in POST
raise ResourceNotReady("%s - %s" % (path, parameter_dict))
ResourceNotReady: /requestComputerPartition
Wait for a few minutes, then retry:
instance_b = request(wordpress, "Wordpress B from console",
filter_kw={ "computer_guid": "COMP-12345" }
)
instance_b.getState()
# Started
instance_b.getConnectionParameter('url')