The following image could not be found in erp5 OR is not following guidelines for links (eg no ./ prefix): developer-SlapOS.ViFiB.Home
Register to vifib.net, then go to "My Services".
To request an instance using vifib.net web interface, go to vifib.net, go to My Services, click on the "New service" button. Put the wanted name of the service in "Service title", then select "Kumofs" in the list of software. Make sure you have only one selected software. Send the form by clicking on "Order". On the next page, select the latest version of KumoFS available, and click on "order". Review and fill your informations, and click on the "Continue" button. You will be redirected to the home page. You will then have to wait for a few minutes for the instance to be deployed. You can know the state of the instantiation by going to "My Services" page. Your instance will appear after a few seconds, if you click on it, you can see the state of it.The following image could not be found in erp5 OR is not following guidelines for links (eg no ./ prefix): developer-SlapOS.ViFiB.My.Services
The following image could not be found in erp5 OR is not following guidelines for links (eg no ./ prefix): developer-SlapOS.ViFiB.Request.KumoFS.Service
The following image could not be found in erp5 OR is not following guidelines for links (eg no ./ prefix): developer-SlapOS.ViFiB.Request.KumoFS.Choose.Version
The following image could not be found in erp5 OR is not following guidelines for links (eg no ./ prefix): developer-SlapOS.ViFiB.Fill.Personal.Informations
The following image could not be found in erp5 OR is not following guidelines for links (eg no ./ prefix): developer-SlapOS.ViFiB.Home.Page.Software.Requested
The following image could not be found in erp5 OR is not following guidelines for links (eg no ./ prefix): developer-SlapOS.ViFiB.My.Services.See.KumoFS
The following image could not be found in erp5 OR is not following guidelines for links (eg no ./ prefix): developer-SlapOS.ViFiB.KumoFS.Instantiation.In.Progress
The following image could not be found in erp5 OR is not following guidelines for links (eg no ./ prefix): developer-SlapOS.ViFiB.KumoFS.Started
Install, (re)configure and launch stunnel to connect to your instance :
# apt-get install stunnel $ mkdir ~/slapos $ echo "foreground = yes syslog = no pid = /home/$(whoami)/slapos/stunnel.pid debug = debug [service] accept = 127.0.0.1:11211 connect = REPLACE_ME_BY_YOUR_STUNNEL_IP:12345 client = yes" > /home/$(whoami)/slapos/stunnel.conf $ stunnel4 /home/$(whoami)/slapos/stunnel.conf
$ telnet localhost 11211
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
set hoge 0 0 3
Foo
STORED
set bar 0 0 22
This is a sample text.
STORED
END
Connection closed by foreign host.
# In your slapos client directory : $ bin/slapconsole slapos.cfg >>> kumo_instance = request(kumofs, "second_kumo") Traceback (most recent call last): File "", line 1, in File "/Library/Python/2.6/site-packages/slapos.core-0.4_dev-py2.6.egg/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 and retry until it works : >>> kumo_instance = request(kumofs, "second_kumo") >>> kumo_instance.getState() Started >>> kumo_instance.getConnectionParameter('stunnel_ip') [IP appears here] >>> kumo_instance.getConnectionParameter('stunnel_port') [Port appears here]
Install, (re)configure and launch stunnel to connect to your instance :
# apt-get install stunnel $ mkdir ~/slapos $ echo "foreground = yes syslog = no pid = /home/$(whoami)/slapos/stunnel.pid debug = debug [service] accept = 127.0.0.1:11211 connect = REPLACE_ME_BY_YOUR_STUNNEL_IP:12345 client = yes" > /home/$(whoami)/slapos/stunnel.conf $ stunnel4 /home/$(whoami)/slapos/stunnel.conf
$ telnet localhost 11211
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
set hoge 0 0 3
Foo
STORED
set bar 0 0 22
This is another sample text.
STORED
END
Connection closed by foreign host.
# In your slapos client directory : $ bin/slapconsole slapos.cfg # Wait for a few minutes and retry until it works : >>> kumo_instance = request(kumofs, "first_kumo") >>> kumo_instance.getState() Started >>> kumo_instance.getConnectionParameter('stunnel_ip') [IP appears here] >>> kumo_instance.getConnectionParameter('stunnel_port') [Port appears here]
Install, (re)configure and launch stunnel to connect to your instance :
# apt-get install stunnel $ mkdir ~/slapos $ echo "foreground = yes syslog = no pid = /home/$(whoami)/slapos/stunnel.pid debug = debug [service] accept = 127.0.0.1:11211 connect = REPLACE_ME_BY_YOUR_STUNNEL_IP:12345 client = yes" > /home/$(whoami)/slapos/stunnel.conf $ stunnel4 /home/$(whoami)/slapos/stunnel.conf
$ telnet localhost 11211
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
set hoge 0 0 3
Foo
STORED
set bar 0 0 22
This is another sample text.
STORED
END
Connection closed by foreign host.
The following image could not be found in erp5 OR is not following guidelines for links (eg no ./ prefix): developer-SlapOS.ViFiB.Home
Register to vifib.net, then go to "My Services".
To request a Kumofs instance using vifib.net web interface, go to vifib.net, go to My Services, click on the "New service". Put the desired name of the service in "Service title", then select "Kumofs" in the list of softwares. Make sure you have only one selected software. Send the form by clicking on "Order". On the next page, select the latest version of kumofs available, and click on "order". Review and fill your informations, and click on the "Continue" button. You will be redirected to the home page. You will then have to wait for a few minutes for the instance to be deployed. You can know the state of the instantiation by going to "My Services" page. Your instance will appear after a few seconds, if you click on it, you can see the state of it.The following image could not be found in erp5 OR is not following guidelines for links (eg no ./ prefix): developer-SlapOS.ViFiB.My.Services
The following image could not be found in erp5 OR is not following guidelines for links (eg no ./ prefix): developer-SlapOS.ViFiB.Request.KumoFS.Service.With.SLA
The following image could not be found in erp5 OR is not following guidelines for links (eg no ./ prefix): developer-SlapOS.ViFiB.Request.KumoFS.Choose.Version
The following image could not be found in erp5 OR is not following guidelines for links (eg no ./ prefix): developer-SlapOS.ViFiB.Fill.Personal.Informations
The following image could not be found in erp5 OR is not following guidelines for links (eg no ./ prefix): developer-SlapOS.ViFiB.Home.Page.Software.Requested
The following image could not be found in erp5 OR is not following guidelines for links (eg no ./ prefix): developer-SlapOS.ViFiB.My.Services.See.KumoFS.With.SLA
The following image could not be found in erp5 OR is not following guidelines for links (eg no ./ prefix): developer-SlapOS.ViFiB.KumoFS.Instantiation.In.Progress.With.SLA
The following image could not be found in erp5 OR is not following guidelines for links (eg no ./ prefix): developer-SlapOS.ViFiB.KumoFS.Started.With.SLA
Install, (re)configure and launch stunnel to connect to your instance :
# apt-get install stunnel $ mkdir ~/slapos $ echo "foreground = yes syslog = no pid = /home/$(whoami)/slapos/stunnel.pid debug = debug [service] accept = 127.0.0.1:11211 connect = REPLACE_ME_BY_YOUR_STUNNEL_IP:12345 client = yes" > /home/$(whoami)/slapos/stunnel.conf $ stunnel4 /home/$(whoami)/slapos/stunnel.conf
$ telnet localhost 11211
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
set hoge 0 0 3
Foo
STORED
set bar 0 0 22
This is another sample text.
STORED
END
Connection closed by foreign host.
# In your slapos client directory : $ bin/slapconsole slapos.cfg >>> kumo_instance = slap.registerOpenOrder().request(kumofs, "fourth_kumo", filter_kw={ "computer_guid": "COMP-12345" }) Traceback (most recent call last): File "", line 1, in File "/Library/Python/2.6/site-packages/slapos.core-0.4_dev-py2.6.egg/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 and retry until it works : >>> kumo_instance = slap.registerOpenOrder().request(kumofs, "fourth_kumo", filter_kw={ "computer_guid": "COMP-12345" }) >>> kumo_instance.getState() Started >>> kumo_instance.getConnectionParameter('stunnel_ip') [IP appears here] >>> kumo_instance.getConnectionParameter('stunnel_port') [Port appears here]
Slapconsole allows your to interact with the SlapOS Master using the SLAP API.
Replace the COMP-12345 by your Computer ID.
Launch slapconsole, then ask the Master to deploy an instance of your software. First, it will raise an exception meaning that the instance is not ready yet.
You will have to wait until the instance is ready. From time to time, run again the same command to fetch up-to-date informations.
When it does not longer throw an exception, your instance is ready. You can then fetch the informations you need to connect to your instance.
Install, (re)configure and launch stunnel to connect to your instance :
# apt-get install stunnel $ mkdir ~/slapos $ echo "foreground = yes syslog = no pid = /home/$(whoami)/slapos/stunnel.pid debug = debug [service] accept = 127.0.0.1:11211 connect = REPLACE_ME_BY_YOUR_STUNNEL_IP:12345 client = yes" > /home/$(whoami)/slapos/stunnel.conf $ stunnel4 /home/$(whoami)/slapos/stunnel.conf
$ telnet localhost 11211
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
set hoge 0 0 3
Foo
STORED
set bar 0 0 22
This is another sample text.
STORED
END
Connection closed by foreign host.
The following image could not be found in erp5 OR is not following guidelines for links (eg no ./ prefix): NXD-Image.Lille.L.Building
For more information, please contact Jean-Paul, CEO of Nexedi (+33 629 02 44 25).