Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
slapos
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Levin Zimmermann
slapos
Commits
1929d78e
Commit
1929d78e
authored
Sep 13, 2024
by
Thomas Gambier
🚴🏼
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
slapos.cookbook: remove unused recipes
See merge request
nexedi/slapos!1642
parent
b3edaef2
Changes
7
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
0 additions
and
247 deletions
+0
-247
setup.py
setup.py
+0
-2
slapos/recipe/erp5scalabilitytestbed/__init__.py
slapos/recipe/erp5scalabilitytestbed/__init__.py
+0
-106
slapos/recipe/erp5scalabilitytestbed/template/erp5tester_manager_run.in
...erp5scalabilitytestbed/template/erp5tester_manager_run.in
+0
-9
slapos/recipe/erp5scalabilitytestbed/template/nosqltester_run.in
...recipe/erp5scalabilitytestbed/template/nosqltester_run.in
+0
-7
slapos/recipe/sheepdogtestbed/__init__.py
slapos/recipe/sheepdogtestbed/__init__.py
+0
-115
slapos/recipe/sheepdogtestbed/template/nosqltester_manager_run.in
...ecipe/sheepdogtestbed/template/nosqltester_manager_run.in
+0
-4
slapos/recipe/sheepdogtestbed/template/nosqltester_run.in
slapos/recipe/sheepdogtestbed/template/nosqltester_run.in
+0
-4
No files found.
setup.py
View file @
1929d78e
...
...
@@ -98,7 +98,6 @@ setup(name=name,
'dropbear.client = slapos.recipe.dropbear:Client'
,
'equeue = slapos.recipe.equeue:Recipe'
,
'erp5.promise = slapos.recipe.erp5_promise:Recipe'
,
'erp5scalabilitytestbed = slapos.recipe.erp5scalabilitytestbed:Recipe'
,
'erp5testnode = slapos.recipe.erp5testnode:Recipe'
,
'free_port = slapos.recipe.free_port:Recipe'
,
'generate.mac = slapos.recipe.random:Mac'
,
...
...
@@ -145,7 +144,6 @@ setup(name=name,
'requestoptional.serialised = '
'slapos.recipe.request:RequestOptionalJSONEncoded'
,
're6stnet.registry = slapos.recipe.re6stnet:Recipe'
,
'sheepdogtestbed = slapos.recipe.sheepdogtestbed:SheepDogTestBed'
,
'shell = slapos.recipe.shell:Recipe'
,
'signalwrapper= slapos.recipe.signal_wrapper:Recipe'
,
'simplelogger = slapos.recipe.simplelogger:Recipe'
,
...
...
slapos/recipe/erp5scalabilitytestbed/__init__.py
deleted
100644 → 0
View file @
b3edaef2
##############################################################################
#
# Copyright (c) 2011 Vifib SARL and Contributors. All Rights Reserved.
#
# WARNING: This program as such is intended to be used by professional
# programmers who take the whole responsibility of assessing all potential
# consequences resulting from its eventual inadequacies and bugs End users who
# are looking for a ready-to-use solution with commercial guarantees and
# support are strongly adviced to contract a Free Software Service Company
#
# This program is Free Software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the Free
# Software Foundation; either version 3 of the License, or (at your option)
# any later version.
#
# This program is distributed in the hope that it will be useful, but WITHOUT
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
# more details.
#
# You should have received a copy of the GNU General Public License along with
# this program; if not, write to the Free Software Foundation, Inc., 59 Temple
# Place - Suite 330, Boston, MA 02111-1307, USA.
#
##############################################################################
import
os
import
pkg_resources
from
slapos.recipe.librecipe
import
BaseSlapRecipe
class
Recipe
(
BaseSlapRecipe
):
def
_install
(
self
):
self
.
parameter_dict
=
self
.
computer_partition
.
getInstanceParameterDict
()
software_type
=
self
.
parameter_dict
.
get
(
'slap_software_type'
,
'default'
)
if
software_type
is
None
or
software_type
==
'RootSoftwareInstance'
:
software_type
=
'erp5_scalability_cloud'
if
"run_%s"
%
software_type
in
dir
(
self
)
and
\
callable
(
getattr
(
self
,
"run_%s"
%
software_type
)):
return
getattr
(
self
,
"run_%s"
%
software_type
)()
else
:
raise
NotImplementedError
(
"Do not support %s"
%
software_type
)
def
run_erp5_scalability_cloud
(
self
):
config
=
{}
config
.
update
(
self
.
options
)
config
.
update
(
self
.
parameter_dict
)
config
[
'address'
]
=
self
.
getGlobalIPv6Address
()
config
[
'report_path'
]
=
self
.
log_directory
config
.
setdefault
(
'user_range_increment'
,
1
)
config
[
'software_release_url'
]
=
self
.
software_release_url
config
[
'server_url'
]
=
self
.
server_url
config
[
'key_file'
]
=
self
.
key_file
config
[
'cert_file'
]
=
self
.
cert_file
config
[
'computer_id'
]
=
self
.
computer_id
config
[
'computer_partition_id'
]
=
self
.
computer_partition_id
config
[
'plugin_name'
]
=
'erp5'
if
','
in
config
[
'nb_users'
]:
config
[
'nb_tester_init'
]
=
config
[
'nb_users'
].
split
(
','
)[
0
]
config
[
'nb_tester_max'
]
=
config
[
'nb_users'
].
split
(
','
)[
1
]
else
:
config
[
'nb_tester_init'
]
=
config
[
'nb_users'
]
config
[
'nb_tester_max'
]
=
config
[
'nb_users'
]
connection
=
{}
connection
[
'url'
]
=
'http://['
+
config
[
'address'
]
+
']:5000/'
connection
[
'erp5_url'
]
=
config
[
'erp5_url'
]
connection
[
'repeat'
]
=
config
[
'repeat'
]
connection
[
'nb_users'
]
=
config
[
'nb_users'
]
connection
[
'benchmark_suites'
]
=
config
[
'benchmark_suites'
]
connection
[
'erp5_publish_url'
]
=
config
.
get
(
'erp5_publish_url'
,
''
)
connection
[
'erp5_publish_project'
]
=
config
.
get
(
'erp5_publish_project'
,
''
)
self
.
computer_partition
.
setConnectionDict
(
connection
)
nosqltester_manager_wrapper_template_location
=
pkg_resources
.
resource_filename
(
__name__
,
os
.
path
.
join
(
'template'
,
'erp5tester_manager_run.in'
))
nosqltester_manager_runner_path
=
self
.
createRunningWrapper
(
"erp5tester_manager"
,
self
.
substituteTemplate
(
nosqltester_manager_wrapper_template_location
,
config
))
return
[
nosqltester_manager_runner_path
]
def
run_erp5_tester
(
self
):
tester_config
=
{}
tester_config
.
update
(
self
.
options
)
tester_config
.
update
(
self
.
parameter_dict
)
tester_config
[
'tester_address'
]
=
self
.
getGlobalIPv6Address
()
tester_config
[
'report_path'
]
=
self
.
log_directory
tester_config
[
'filename_prefix'
]
=
'%s-%s'
%
(
self
.
computer_id
,
self
.
computer_partition_id
)
tester_connection
=
{
'url'
:
'http://[%s]:5000/'
%
\
tester_config
[
'tester_address'
]}
self
.
computer_partition
.
setConnectionDict
(
tester_connection
)
tester_wrapper_template_location
=
pkg_resources
.
resource_filename
(
__name__
,
os
.
path
.
join
(
'template'
,
'nosqltester_run.in'
))
tester_runner_path
=
self
.
createRunningWrapper
(
"nosqltester"
,
self
.
substituteTemplate
(
tester_wrapper_template_location
,
tester_config
))
return
[
tester_runner_path
]
slapos/recipe/erp5scalabilitytestbed/template/erp5tester_manager_run.in
deleted
100755 → 0
View file @
b3edaef2
#!/bin/sh
# BEWARE: This file is operated by slapos node
# BEWARE: It will be overwritten automatically
exec
%
(
scalability_tester_manager_binary
)
s %
(
plugin_name
)
s
-a
%
(
address
)
s
\
-r
%
(
report_path
)
s
-m
%
(
nb_tester_init
)
s
-t
%
(
nb_tester_max
)
s
\
-i
%
(
user_range_increment
)
s
--erp5-publish-url
"%(erp5_publish_url)s"
\
--erp5-publish-project
"%(erp5_publish_project)s"
%
(
software_release_url
)
s
\
%
(
server_url
)
s
"%(key_file)s"
"%(cert_file)s"
%
(
computer_id
)
s
\
%
(
computer_partition_id
)
s
slapos/recipe/erp5scalabilitytestbed/template/nosqltester_run.in
deleted
100755 → 0
View file @
b3edaef2
#!/bin/sh
# BEWARE: This file is operated by slapos node
# BEWARE: It will be overwritten automatically
cd
%
(
benchmark_suite_path
)
s
&&
\
exec
%
(
scalability_tester_binary
)
s
-m
%
(
host_address
)
s
-a
%
(
tester_address
)
s
\
-r
%
(
report_path
)
s
-l
%
(
report_path
)
s
--filename-prefix
%
(
filename_prefix
)
s
\
--repeat
%
(
repeat
)
s %
(
erp5_url
)
s 1 %
(
benchmark_suites
)
s
slapos/recipe/sheepdogtestbed/__init__.py
deleted
100644 → 0
View file @
b3edaef2
##############################################################################
#
# Copyright (c) 2010 Vifib SARL and Contributors. All Rights Reserved.
#
# WARNING: This program as such is intended to be used by professional
# programmers who take the whole responsibility of assessing all potential
# consequences resulting from its eventual inadequacies and bugs
# End users who are looking for a ready-to-use solution with commercial
# guarantees and support are strongly adviced to contract a Free Software
# Service Company
#
# This program is Free Software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 3
# of the License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#
##############################################################################
import
os
import
pkg_resources
from
slapos.recipe.librecipe
import
BaseSlapRecipe
class
SheepDogTestBed
(
BaseSlapRecipe
):
def
_install
(
self
):
self
.
parameter_dict
=
self
.
computer_partition
.
getInstanceParameterDict
()
software_type
=
self
.
parameter_dict
.
get
(
'slap_software_type'
,
'default'
)
if
software_type
is
None
or
software_type
==
'RootSoftwareInstance'
:
software_type
=
'default'
if
"run_%s"
%
software_type
in
dir
(
self
)
and
\
callable
(
getattr
(
self
,
"run_%s"
%
software_type
)):
return
getattr
(
self
,
"run_%s"
%
software_type
)()
else
:
raise
NotImplementedError
(
"Do not support %s"
%
software_type
)
def
run_default
(
self
):
return
self
.
run_sheepdog_test
()
def
run_sheepdog_test
(
self
):
""" Launch sheepdog test process. """
sheepdog_test_config
=
{}
sheepdog_test_config
.
update
(
self
.
options
)
sheepdog_test_config
.
update
(
self
.
parameter_dict
)
sheepdog_test_config
[
'address'
]
=
self
.
getGlobalIPv6Address
()
sheepdog_test_config
[
'report_path'
]
=
self
.
log_directory
if
'nb_server_max'
not
in
sheepdog_test_config
:
sheepdog_test_config
[
'nb_server_max'
]
=
0
if
'nb_tester_max'
not
in
sheepdog_test_config
:
sheepdog_test_config
[
'nb_tester_max'
]
=
3
if
'nb_thread'
not
in
sheepdog_test_config
:
sheepdog_test_config
[
'nb_thread'
]
=
1
if
'nb_request'
not
in
sheepdog_test_config
:
sheepdog_test_config
[
'nb_request'
]
=
1000
sheepdog_test_config
[
'software_release_url'
]
=
self
.
software_release_url
sheepdog_test_config
[
'server_url'
]
=
self
.
server_url
sheepdog_test_config
[
'key_file'
]
=
self
.
key_file
sheepdog_test_config
[
'cert_file'
]
=
self
.
cert_file
sheepdog_test_config
[
'computer_id'
]
=
self
.
computer_id
sheepdog_test_config
[
'computer_partition_id'
]
=
self
.
computer_partition_id
sheepdog_test_config
[
'plugin_name'
]
=
'sheepdog'
sheepdog_test_connection
=
{}
sheepdog_test_connection
[
'url'
]
=
"http://["
+
sheepdog_test_config
[
'address'
]
+
"]:5000/"
self
.
computer_partition
.
setConnectionDict
(
sheepdog_test_connection
)
nosqltester_manager_wrapper_template_location
=
pkg_resources
.
resource_filename
(
__name__
,
os
.
path
.
join
(
'template'
,
'nosqltester_manager_run.in'
))
nosqltester_manager_runner_path
=
self
.
createRunningWrapper
(
"sheepdog_test_manager"
,
self
.
substituteTemplate
(
nosqltester_manager_wrapper_template_location
,
sheepdog_test_config
))
return
[
nosqltester_manager_runner_path
]
def
run_sheepdog_tester
(
self
):
""" Runs the sheepdog tester. """
tester_config
=
{}
tester_config
.
update
(
self
.
options
)
tester_config
.
update
(
self
.
parameter_dict
)
tester_config
[
'tester_address'
]
=
self
.
getGlobalIPv6Address
()
tester_config
[
'report_path'
]
=
self
.
log_directory
tester_config
[
'binary'
]
=
tester_config
[
'sheepstrike_binary'
]
+
\
" -t "
+
\
tester_config
[
'nb_thread'
]
+
" "
+
\
tester_config
[
'nb_request'
]
#" 1000" " -t 32 1024000"
tester_connection
=
{}
tester_connection
[
'start_url'
]
=
"http://%s:5000/start"
%
tester_config
[
'tester_address'
]
self
.
computer_partition
.
setConnectionDict
(
tester_connection
)
tester_wrapper_template_location
=
pkg_resources
.
resource_filename
(
__name__
,
os
.
path
.
join
(
'template'
,
'nosqltester_run.in'
))
tester_runner_path
=
self
.
createRunningWrapper
(
"nosqltester"
,
self
.
substituteTemplate
(
tester_wrapper_template_location
,
tester_config
))
return
[
tester_runner_path
]
slapos/recipe/sheepdogtestbed/template/nosqltester_manager_run.in
deleted
100644 → 0
View file @
b3edaef2
#!/bin/sh
# BEWARE: This file is operated by slapos node
# BEWARE: It will be overwritten automatically
exec
%
(
nosqltester_manager_binary
)
s
-a
%
(
address
)
s
-r
%
(
report_path
)
s
-s
%
(
nb_server_max
)
s
-t
%
(
nb_tester_max
)
s %
(
software_release_url
)
s %
(
server_url
)
s
"%(key_file)s"
"%(cert_file)s"
%
(
computer_id
)
s %
(
computer_partition_id
)
s %
(
plugin_name
)
s
slapos/recipe/sheepdogtestbed/template/nosqltester_run.in
deleted
100644 → 0
View file @
b3edaef2
#!/bin/sh
# BEWARE: This file is operated by slapos node
# BEWARE: It will be overwritten automatically
exec
%
(
nosqltester_binary
)
s
-h
%
(
host_address
)
s
-a
%
(
tester_address
)
s
-r
%
(
report_path
)
s
-b
"%(binary)s"
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment