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
Labels
Merge Requests
106
Merge Requests
106
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Jobs
Commits
Open sidebar
nexedi
slapos
Commits
fc81994b
Commit
fc81994b
authored
Oct 04, 2024
by
Thomas Gambier
🚴🏼
Browse files
Options
Browse Files
Download
Plain Diff
Update Release Candidate
parents
912cdbc4
bd855c2e
Pipeline
#37248
failed with stage
in 0 seconds
Changes
22
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
22 changed files
with
118 additions
and
50 deletions
+118
-50
component/pygolang/buildout.cfg
component/pygolang/buildout.cfg
+2
-2
setup.py
setup.py
+1
-1
slapos/recipe/pbs.py
slapos/recipe/pbs.py
+6
-1
slapos/recipe/re6stnet/re6stnet.py
slapos/recipe/re6stnet/re6stnet.py
+2
-6
software/beremiz-runtime/buildout.hash.cfg
software/beremiz-runtime/buildout.hash.cfg
+1
-1
software/beremiz-runtime/instance-input-schema.json
software/beremiz-runtime/instance-input-schema.json
+5
-0
software/beremiz-runtime/instance.cfg.in
software/beremiz-runtime/instance.cfg.in
+1
-0
software/beremiz-runtime/test/test.py
software/beremiz-runtime/test/test.py
+17
-8
software/clammit/buildout.hash.cfg
software/clammit/buildout.hash.cfg
+2
-2
software/clammit/clamd.conf.in
software/clammit/clamd.conf.in
+10
-0
software/clammit/instance.cfg.in
software/clammit/instance.cfg.in
+7
-0
software/erp5/software-py3.cfg
software/erp5/software-py3.cfg
+0
-3
software/erp5/software-py3.cfg.json
software/erp5/software-py3.cfg.json
+14
-1
software/erp5/software-py3.cfg.json
software/erp5/software-py3.cfg.json
+14
-1
software/erp5/software.cfg
software/erp5/software.cfg
+0
-3
software/kvm/instance-kvm-cluster-input-schema.json
software/kvm/instance-kvm-cluster-input-schema.json
+6
-0
software/kvm/instance-kvm-input-schema.json
software/kvm/instance-kvm-input-schema.json
+6
-0
software/slapos-testing/buildout.hash.cfg
software/slapos-testing/buildout.hash.cfg
+1
-1
software/slapos-testing/instance.cfg
software/slapos-testing/instance.cfg
+3
-14
software/slapos-testing/test/test.py
software/slapos-testing/test/test.py
+17
-4
stack/resilient/buildout.hash.cfg
stack/resilient/buildout.hash.cfg
+1
-1
stack/resilient/pbsready.cfg.in
stack/resilient/pbsready.cfg.in
+2
-1
No files found.
component/pygolang/buildout.cfg
View file @
fc81994b
...
@@ -31,9 +31,9 @@ exe = ${buildout:bin-directory}/gpython
...
@@ -31,9 +31,9 @@ exe = ${buildout:bin-directory}/gpython
[pygolang-repository]
[pygolang-repository]
recipe = slapos.recipe.build:gitclone
recipe = slapos.recipe.build:gitclone
repository = https://lab.nexedi.com/nexedi/pygolang
.git
repository = https://lab.nexedi.com/nexedi/pygolang
branch = master
branch = master
revision = pygolang-0.1-
69-g044deb35
revision = pygolang-0.1-
77-g9434cf0
location = ${buildout:parts-directory}/pygolang
location = ${buildout:parts-directory}/pygolang
git-executable = ${git:location}/bin/git
git-executable = ${git:location}/bin/git
...
...
setup.py
View file @
fc81994b
...
@@ -28,7 +28,7 @@ from setuptools import setup, find_packages
...
@@ -28,7 +28,7 @@ from setuptools import setup, find_packages
import
glob
import
glob
import
os
import
os
version
=
'1.0.36
7
'
version
=
'1.0.36
9
'
name
=
'slapos.cookbook'
name
=
'slapos.cookbook'
long_description
=
open
(
"README.rst"
).
read
()
long_description
=
open
(
"README.rst"
).
read
()
...
...
slapos/recipe/pbs.py
View file @
fc81994b
...
@@ -236,7 +236,12 @@ class Recipe(GenericSlapRecipe, Notify, Callback):
...
@@ -236,7 +236,12 @@ class Recipe(GenericSlapRecipe, Notify, Callback):
# Create the rdiff-backup wrapper
# Create the rdiff-backup wrapper
# It is useful to separate it from the notifier so that we can run it manually.
# It is useful to separate it from the notifier so that we can run it manually.
remote_schema
=
'{ssh} -o "ConnectTimeout 300" -p %s {username}@{hostname}'
.
format
(
remote_schema
=
(
'{ssh} '
'-o "ConnectTimeout 300" '
'-o "ServerAliveCountMax 10" '
'-o "ServerAliveInterval 30" '
'-p %s '
'{username}@{hostname}'
).
format
(
ssh
=
self
.
options
[
'sshclient-binary'
],
ssh
=
self
.
options
[
'sshclient-binary'
],
username
=
parsed_url
.
username
,
username
=
parsed_url
.
username
,
hostname
=
parsed_url
.
hostname
hostname
=
parsed_url
.
hostname
...
...
slapos/recipe/re6stnet/re6stnet.py
View file @
fc81994b
# -*- coding: utf-8 -*-
# -*- coding: utf-8 -*-
import
httplib
import
logging
import
logging
import
json
import
json
import
os
import
os
...
@@ -93,9 +92,6 @@ def requestRemoveToken(client, token_base_path):
...
@@ -93,9 +92,6 @@ def requestRemoveToken(client, token_base_path):
reference
=
reference_key
.
split
(
'.'
)[
0
]
reference
=
reference_key
.
split
(
'.'
)[
0
]
try
:
try
:
result
=
client
.
deleteToken
(
token
)
result
=
client
.
deleteToken
(
token
)
except
httplib
.
NOT_FOUND
:
# Token is alread removed.
result
=
True
except
Exception
:
except
Exception
:
log
.
debug
(
'Request delete token fail for %s...
\
n
%s'
%
(
request_file
,
log
.
debug
(
'Request delete token fail for %s...
\
n
%s'
%
(
request_file
,
traceback
.
format_exc
()))
traceback
.
format_exc
()))
...
@@ -119,7 +115,7 @@ def requestRemoveToken(client, token_base_path):
...
@@ -119,7 +115,7 @@ def requestRemoveToken(client, token_base_path):
os
.
unlink
(
ipv6_file
)
os
.
unlink
(
ipv6_file
)
else
:
else
:
log
.
debug
(
'Bad token. Request
add
token fail for %s...'
%
request_file
)
log
.
debug
(
'Bad token. Request
remove
token fail for %s...'
%
request_file
)
def
checkService
(
client
,
token_base_path
,
token_json
,
computer_partition
):
def
checkService
(
client
,
token_base_path
,
token_json
,
computer_partition
):
token_dict
=
loadJsonFile
(
token_json
)
token_dict
=
loadJsonFile
(
token_json
)
...
@@ -128,7 +124,7 @@ def checkService(client, token_base_path, token_json, computer_partition):
...
@@ -128,7 +124,7 @@ def checkService(client, token_base_path, token_json, computer_partition):
return
return
# Check token status
# Check token status
for
slave_reference
,
token
in
token_dict
.
ite
rite
ms
():
for
slave_reference
,
token
in
token_dict
.
items
():
log
.
info
(
"%s %s"
%
(
slave_reference
,
token
))
log
.
info
(
"%s %s"
%
(
slave_reference
,
token
))
status_file
=
os
.
path
.
join
(
token_base_path
,
'%s.status'
%
slave_reference
)
status_file
=
os
.
path
.
join
(
token_base_path
,
'%s.status'
%
slave_reference
)
if
not
os
.
path
.
exists
(
status_file
):
if
not
os
.
path
.
exists
(
status_file
):
...
...
software/beremiz-runtime/buildout.hash.cfg
View file @
fc81994b
[instance-profile]
[instance-profile]
filename = instance.cfg.in
filename = instance.cfg.in
md5sum =
9da5ea88824bdbf233d65c756b4cadbc
md5sum =
4dc7ebc5f38baca776f520e7f5ccf9a7
software/beremiz-runtime/instance-input-schema.json
View file @
fc81994b
...
@@ -7,6 +7,11 @@
...
@@ -7,6 +7,11 @@
"description"
:
"The network (http / https) address of the gzipped PLC source project program file."
,
"description"
:
"The network (http / https) address of the gzipped PLC source project program file."
,
"type"
:
"string"
,
"type"
:
"string"
,
"default"
:
""
"default"
:
""
},
"runtime_plc_md5sum"
:
{
"description"
:
"The md5sum of the downloaded gzipped PLC source project program file. If empty, md5sum is not checked."
,
"type"
:
"string"
,
"default"
:
""
}
}
}
}
}
}
software/beremiz-runtime/instance.cfg.in
View file @
fc81994b
...
@@ -18,6 +18,7 @@ offline = true
...
@@ -18,6 +18,7 @@ offline = true
recipe = slapos.recipe.build:download-unpacked
recipe = slapos.recipe.build:download-unpacked
offline = false
offline = false
url = ${instance-parameter:configuration.runtime_plc_url}
url = ${instance-parameter:configuration.runtime_plc_url}
md5sum = ${instance-parameter:configuration.runtime_plc_md5sum}
[instance-parameter]
[instance-parameter]
recipe = slapos.cookbook:slapconfiguration
recipe = slapos.cookbook:slapconfiguration
...
...
software/beremiz-runtime/test/test.py
View file @
fc81994b
...
@@ -71,17 +71,17 @@ class BeremizRuntimeTestCase(SlapOSInstanceTestCase):
...
@@ -71,17 +71,17 @@ class BeremizRuntimeTestCase(SlapOSInstanceTestCase):
for
process
in
supervisor
.
getAllProcessInfo
()]
for
process
in
supervisor
.
getAllProcessInfo
()]
self
.
assertIn
(
'beremiz-runtime-on-watch'
,
process_names
)
self
.
assertIn
(
'beremiz-runtime-on-watch'
,
process_names
)
def
check_conne
x
ion
(
self
,
ip
,
port
):
def
check_conne
ct
ion
(
self
,
ip
,
port
):
conne
x
ion_list
=
[]
# test node debug
conne
ct
ion_list
=
[]
# test node debug
for
conne
x
ion
in
psutil
.
net_connections
(
kind
=
'tcp4'
):
for
conne
ct
ion
in
psutil
.
net_connections
(
kind
=
'tcp4'
):
# test node debug
# test node debug
if
conne
x
ion
.
laddr
.
port
==
port
:
if
conne
ct
ion
.
laddr
.
port
==
port
:
conne
xion_list
.
append
(
connex
ion
)
conne
ction_list
.
append
(
connect
ion
)
# debug end
# debug end
if
conne
xion
.
laddr
.
ip
==
ip
and
connexion
.
laddr
.
port
==
port
and
connex
ion
.
status
==
'ESTABLISHED'
:
if
conne
ction
.
laddr
.
ip
==
ip
and
connection
.
laddr
.
port
==
port
and
connect
ion
.
status
==
'ESTABLISHED'
:
return
True
return
True
# test node debug
# test node debug
print
(
conne
x
ion_list
)
print
(
conne
ct
ion_list
)
test_path
=
self
.
computer_partition_root_path
test_path
=
self
.
computer_partition_root_path
with
open
(
os
.
path
.
join
(
test_path
,
'.'
+
os
.
path
.
basename
(
test_path
)
+
'_beremiz-runtime.log'
))
as
log_file
:
with
open
(
os
.
path
.
join
(
test_path
,
'.'
+
os
.
path
.
basename
(
test_path
)
+
'_beremiz-runtime.log'
))
as
log_file
:
print
(
log_file
.
readlines
()[
-
15
:])
print
(
log_file
.
readlines
()[
-
15
:])
...
@@ -89,4 +89,13 @@ class BeremizRuntimeTestCase(SlapOSInstanceTestCase):
...
@@ -89,4 +89,13 @@ class BeremizRuntimeTestCase(SlapOSInstanceTestCase):
return
False
return
False
def
test_opc_ua
(
self
):
def
test_opc_ua
(
self
):
self
.
assertTrue
(
self
.
check_connexion
(
'127.0.0.1'
,
4840
))
self
.
assertTrue
(
self
.
check_connection
(
'127.0.0.1'
,
4840
))
class
BeremizRuntimeWithMd5sumTestCase
(
BeremizRuntimeTestCase
):
@
classmethod
def
getInstanceParameterDict
(
cls
):
return
{
"runtime_plc_url"
:
"https://lab.nexedi.com/nexedi/osie/-/raw/dd9aea8012376124ad216e3516e4f33945d14fc5/Beremiz/beremiz_test_opc_ua/bin/beremiz_test_opc_ua.tgz"
,
"runtime_plc_md5sum"
:
"6c918cc80505f65b2bd20cdd7f40ba68"
}
software/clammit/buildout.hash.cfg
View file @
fc81994b
...
@@ -15,11 +15,11 @@
...
@@ -15,11 +15,11 @@
[instance.cfg.in]
[instance.cfg.in]
filename = instance.cfg.in
filename = instance.cfg.in
md5sum = d
a846d59eb75a82d0d392c396517e76d
md5sum = d
7b01c5ad2817c893c429d3fdd9a28a3
[clamd.conf.in]
[clamd.conf.in]
filename = clamd.conf.in
filename = clamd.conf.in
md5sum =
bdd237340b052e97b19218c5b6098cb8
md5sum =
098c0631a70929bb5bb9e57871346e99
[freshclam.conf.in]
[freshclam.conf.in]
filename = freshclam.conf.in
filename = freshclam.conf.in
...
...
software/clammit/clamd.conf.in
View file @
fc81994b
...
@@ -12,3 +12,13 @@ LocalSocketMode 660
...
@@ -12,3 +12,13 @@ LocalSocketMode 660
ReadTimeout 30
ReadTimeout 30
# MaxScanTime is in milliseconds.
# MaxScanTime is in milliseconds.
MaxScanTime 60000
MaxScanTime 60000
ExtendedDetectionInfo yes
StreamMaxLength 25M
AlertExceedsMax yes
AlertBrokenExecutables yes
AlertBrokenMedia yes
AlertEncrypted yes
AlertEncryptedArchive yes
AlertEncryptedDoc yes
AlertOLE2Macros yes
AlertPartitionIntersection yes
software/clammit/instance.cfg.in
View file @
fc81994b
...
@@ -15,6 +15,7 @@ parts =
...
@@ -15,6 +15,7 @@ parts =
clamd-parts =
clamd-parts =
clamd
clamd
clamd-socket-promise
clamd-logrotate
clamd-logrotate
freshclam-parts =
freshclam-parts =
freshclam
freshclam
...
@@ -97,6 +98,12 @@ hash-files =
...
@@ -97,6 +98,12 @@ hash-files =
hash-existing-files =
hash-existing-files =
{{ buildout.directory }}/.completed
{{ buildout.directory }}/.completed
[clamd-socket-promise]
<= monitor-promise-base
promise = check_command_execute
name = check_clamd_socket.py
config-command = test -S ${clam-config:clamd-socket-file}
[clamd-logrotate]
[clamd-logrotate]
<= logrotate-entry-base
<= logrotate-entry-base
name = clamd
name = clamd
...
...
software/erp5/software-py3.cfg
View file @
fc81994b
...
@@ -19,6 +19,3 @@ develop = true
...
@@ -19,6 +19,3 @@ develop = true
# The requirement ('msgpack<1,>=0.5.6') is not allowed by your [versions] constraint (1.0.5)
# The requirement ('msgpack<1,>=0.5.6') is not allowed by your [versions] constraint (1.0.5)
revision = c4443632e3541c064f5b43096099f4a8b74cbf58
revision = c4443632e3541c064f5b43096099f4a8b74cbf58
[template-zope]
link-binary +=
${python3:location}/bin/2to3
software/erp5/software-py3.cfg.json
deleted
120000 → 0
View file @
912cdbc4
software.cfg.json
\ No newline at end of file
software/erp5/software-py3.cfg.json
0 → 100644
View file @
fc81994b
{
"name"
:
"ERP5"
,
"description"
:
"ERP5, Open-Source ERP (using python3)"
,
"serialisation"
:
"json-in-xml"
,
"software-type"
:
{
"default"
:
{
"title"
:
"Default"
,
"software-type"
:
"default"
,
"request"
:
"instance-erp5-input-schema.json"
,
"response"
:
"instance-erp5-output-schema.json"
,
"index"
:
0
}
}
}
software/erp5/software.cfg
View file @
fc81994b
...
@@ -3,9 +3,6 @@ extends =
...
@@ -3,9 +3,6 @@ extends =
../../stack/erp5/buildout.cfg
../../stack/erp5/buildout.cfg
../../stack/slapos-py2.cfg
../../stack/slapos-py2.cfg
[template-zope]
link-binary +=
${python2.7:location}/bin/2to3
# Test Suite: ERP5.UnitTest-Master ran at 2024/09/27 17:16:50.045835 UTC
# Test Suite: ERP5.UnitTest-Master ran at 2024/09/27 17:16:50.045835 UTC
...
...
software/kvm/instance-kvm-cluster-input-schema.json
View file @
fc81994b
...
@@ -509,6 +509,12 @@
...
@@ -509,6 +509,12 @@
"https://shacache.nxdcdn.com/6c355def68b3c0427f21598cb054ffc893568902f205601ac60f192854769b31bc9cff8eeb6ce99ef975a8fb887d8d3e56fc6cd5ea5cb4b3bba1175c520047cb#57088b77f795ca44b00971e44782ee23"
"https://shacache.nxdcdn.com/6c355def68b3c0427f21598cb054ffc893568902f205601ac60f192854769b31bc9cff8eeb6ce99ef975a8fb887d8d3e56fc6cd5ea5cb4b3bba1175c520047cb#57088b77f795ca44b00971e44782ee23"
],
],
"title"
:
"FreeBSD 12.1 RELEASE bootonly x86_64"
"title"
:
"FreeBSD 12.1 RELEASE bootonly x86_64"
},
{
"const"
:
[
"https://shacache.nxdcdn.com/e72e03bbcc4c54ce4b8d5f360b47dab9ee514d754e8d78c403626cf000d6ae98d808b3bcff2201e3cf49c1be1b0f308f1cb5ed81676adcb1837dfc811d2451ac"
],
"title"
:
"SUSE Linux Enterprise Server 15 SP6 x86_64"
}
}
]
]
},
},
...
...
software/kvm/instance-kvm-input-schema.json
View file @
fc81994b
...
@@ -369,6 +369,12 @@
...
@@ -369,6 +369,12 @@
"https://shacache.nxdcdn.com/6c355def68b3c0427f21598cb054ffc893568902f205601ac60f192854769b31bc9cff8eeb6ce99ef975a8fb887d8d3e56fc6cd5ea5cb4b3bba1175c520047cb#57088b77f795ca44b00971e44782ee23"
"https://shacache.nxdcdn.com/6c355def68b3c0427f21598cb054ffc893568902f205601ac60f192854769b31bc9cff8eeb6ce99ef975a8fb887d8d3e56fc6cd5ea5cb4b3bba1175c520047cb#57088b77f795ca44b00971e44782ee23"
],
],
"title"
:
"FreeBSD 12.1 RELEASE bootonly x86_64"
"title"
:
"FreeBSD 12.1 RELEASE bootonly x86_64"
},
{
"const"
:
[
"https://shacache.nxdcdn.com/e72e03bbcc4c54ce4b8d5f360b47dab9ee514d754e8d78c403626cf000d6ae98d808b3bcff2201e3cf49c1be1b0f308f1cb5ed81676adcb1837dfc811d2451ac"
],
"title"
:
"SUSE Linux Enterprise Server 15 SP6 x86_64"
}
}
]
]
},
},
...
...
software/slapos-testing/buildout.hash.cfg
View file @
fc81994b
...
@@ -15,4 +15,4 @@
...
@@ -15,4 +15,4 @@
[template]
[template]
filename = instance.cfg
filename = instance.cfg
md5sum =
9493b2789de783c375920eec74252499
md5sum =
5f5378550470b551d280dd432878a0ba
software/slapos-testing/instance.cfg
View file @
fc81994b
...
@@ -102,17 +102,6 @@ template = inline:#!/bin/sh
...
@@ -102,17 +102,6 @@ template = inline:#!/bin/sh
python -m unittest discover -v
python -m unittest discover -v
rendered = $${re6stnet:location}/test-runner.sh
rendered = $${re6stnet:location}/test-runner.sh
# XXX: Quick fix for tests failing due to python -E unknown option.
# When gpython:main supports -E, move back to using that instead.
[real-python-with-eggs]
recipe = slapos.recipe.template
inline =
#!/bin/sh
export PYTHONPATH=$(python -c "import sys; print(':'.join(p for p in sys.path if p))")
python=$(python -c "import sys; print(sys._gpy_underlying_executable)")
exec $python "$@"
output = $${buildout:bin-directory}/$${:_buildout_section_name_}
[slapos-test-runner-nxdtest-environment.sh]
[slapos-test-runner-nxdtest-environment.sh]
recipe = slapos.recipe.template
recipe = slapos.recipe.template
output = $${create-directory:etc}/$${:_buildout_section_name_}
output = $${create-directory:etc}/$${:_buildout_section_name_}
...
@@ -182,9 +171,9 @@ inline =
...
@@ -182,9 +171,9 @@ inline =
)
)
TestCase(
TestCase(
"slapos.recipe.template",
"slapos.recipe.template",
# ['
$${real-python-with-eggs:output}
', '-m', 'unittest', 'slapos.recipe.template.tests.test_suite'],
# ['
python
', '-m', 'unittest', 'slapos.recipe.template.tests.test_suite'],
# XXX some test fail when running with unittest, so we keep using setup.py test
# XXX some test fail when running with unittest, so we keep using setup.py test
['
$${real-python-with-eggs:output}
', 'setup.py', 'test'],
['
python
', 'setup.py', 'test'],
cwd="""$${slapos.recipe.template:location}""",
cwd="""$${slapos.recipe.template:location}""",
summaryf=UnitTest.summary,
summaryf=UnitTest.summary,
)
)
...
@@ -216,7 +205,7 @@ inline =
...
@@ -216,7 +205,7 @@ inline =
)
)
TestCase(
TestCase(
"slapos.rebootstrap",
"slapos.rebootstrap",
['
$${real-python-with-eggs:output}
', '-m', 'unittest', '-v', 'slapos.rebootstrap.tests.test_suite'],
['
python
', '-m', 'unittest', '-v', 'slapos.rebootstrap.tests.test_suite'],
cwd="""$${slapos.rebootstrap:location}""",
cwd="""$${slapos.rebootstrap:location}""",
summaryf=UnitTest.summary,
summaryf=UnitTest.summary,
)
)
...
...
software/slapos-testing/test/test.py
View file @
fc81994b
...
@@ -51,17 +51,30 @@ def setUpModule():
...
@@ -51,17 +51,30 @@ def setUpModule():
)
)
class
SlaposTestingTestCase
(
SlapOSInstanceTestCase
):
class
SlaposTestingTestCase
(
SlapOSInstanceTestCase
):
@
classmethod
def
requestDefaultInstance
(
cls
,
state
=
'started'
):
def
requestDefaultInstance
(
cls
,
state
=
'started'
):
# This method is called for requesting and destroying (state='destroyed').
# This method is called for requesting and destroying (state='destroyed').
for
name
,
url
in
zip
(
software_files
,
software_urls
):
for
name
,
url
in
zip
(
software_files
,
software_urls
):
cls
.
slap
.
request
(
c
omputer_partition
=
c
ls
.
slap
.
request
(
software_release
=
url
,
software_release
=
url
,
software_type
=
None
,
# default
software_type
=
None
,
# default
partition_reference
=
'Instance_of_'
+
name
,
partition_reference
=
'Instance_of_'
+
name
,
partition_parameter_kw
=
cls
.
_instance_parameter_dict
,
partition_parameter_kw
=
cls
.
_instance_parameter_dict
,
state
=
state
,
state
=
state
,
)
)
# one of the requested computer partitions
# to satisfy slapos.testing.testcase (slapos.core < 1.13.0)
# and to make it call waitForInstance (slapos.core >= 1.13.0).
return
computer_partition
def
test
():
def
test
(
self
):
# Just test that each version of the software compiled and instantiates.
# Just test that each version of the software compiles and instantiates.
pass
# Check that all expected instances have been requested.
cp
=
self
.
slap
.
computer
.
getComputerPartitionList
()
requested
=
{
p
.
getSoftwareRelease
().
_software_release
:
p
.
getConnectionParameterDict
()
for
p
in
self
.
slap
.
computer
.
getComputerPartitionList
()
if
p
.
getState
()
==
'started'
}
self
.
assertEqual
(
set
(
requested
.
keys
()),
set
(
software_urls
))
self
.
assertTrue
(
all
(
'environment-script'
in
d
for
d
in
requested
.
values
()))
stack/resilient/buildout.hash.cfg
View file @
fc81994b
...
@@ -14,7 +14,7 @@
...
@@ -14,7 +14,7 @@
# not need these here).
# not need these here).
[pbsready]
[pbsready]
filename = pbsready.cfg.in
filename = pbsready.cfg.in
md5sum =
e24d0567cda7c72e39f6c8fcb0ede7ab
md5sum =
5fec0e5f892aaf06beb814e24e514cae
[pbsready-import]
[pbsready-import]
filename = pbsready-import.cfg.in
filename = pbsready-import.cfg.in
...
...
stack/resilient/pbsready.cfg.in
View file @
fc81994b
...
@@ -172,7 +172,6 @@ config-command = $${notifier-stalled-promise-bin:wrapper-path}
...
@@ -172,7 +172,6 @@ config-command = $${notifier-stalled-promise-bin:wrapper-path}
#--
#--
#-- OpenSSH.
#-- OpenSSH.
[resilient-sshd-config]
[resilient-sshd-config]
# XXX: Add timeout support
recipe = slapos.recipe.template
recipe = slapos.recipe.template
output = $${directory:etc}/resilient-sshd.conf
output = $${directory:etc}/resilient-sshd.conf
path_pid = $${directory:run}/resilient-sshd.pid
path_pid = $${directory:run}/resilient-sshd.pid
...
@@ -186,6 +185,8 @@ inline =
...
@@ -186,6 +185,8 @@ inline =
PasswordAuthentication no
PasswordAuthentication no
PubkeyAuthentication yes
PubkeyAuthentication yes
ForceCommand $${rdiff-backup-server:wrapper}
ForceCommand $${rdiff-backup-server:wrapper}
ClientAliveInterval 30
ClientAliveCountMax 10
[sshd-raw-server]
[sshd-raw-server]
recipe = slapos.cookbook:wrapper
recipe = slapos.cookbook:wrapper
...
...
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