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
Léo-Paul Géneau
slapos
Commits
db061c01
Commit
db061c01
authored
Jun 05, 2024
by
Xavier Thompson
Browse files
Options
Browse Files
Download
Plain Diff
Version up zc.buildout 3.0.1+slapos002
See merge request
nexedi/slapos!1550
parents
2cea0bf2
e7c0994d
Changes
28
Show whitespace changes
Inline
Side-by-side
Showing
28 changed files
with
119 additions
and
197 deletions
+119
-197
component/numpy/buildout.cfg
component/numpy/buildout.cfg
+1
-1
software/backupserver/software.cfg
software/backupserver/software.cfg
+3
-6
software/beremiz-ide/software.cfg
software/beremiz-ide/software.cfg
+3
-7
software/beremiz-runtime/software.cfg
software/beremiz-runtime/software.cfg
+3
-6
software/build-rina/software.cfg
software/build-rina/software.cfg
+4
-6
software/buildout-testing/runTestSuite.in
software/buildout-testing/runTestSuite.in
+1
-0
software/buildout-testing/software-py2.cfg
software/buildout-testing/software-py2.cfg
+2
-5
software/dream/software.cfg
software/dream/software.cfg
+4
-6
software/hellorina/software.cfg
software/hellorina/software.cfg
+4
-6
software/monitor/software.cfg
software/monitor/software.cfg
+8
-2
software/neoppod/software-common.cfg
software/neoppod/software-common.cfg
+3
-6
software/neotest/software.cfg
software/neotest/software.cfg
+2
-6
software/re6stnet/software.cfg
software/re6stnet/software.cfg
+3
-6
software/slapos-sr-testing/software.cfg
software/slapos-sr-testing/software.cfg
+3
-3
software/slapos-testing/software-py2.cfg
software/slapos-testing/software-py2.cfg
+2
-5
software/theia/buildout.hash.cfg
software/theia/buildout.hash.cfg
+2
-2
software/theia/instance-export.cfg.jinja.in
software/theia/instance-export.cfg.jinja.in
+4
-0
software/theia/instance-import.cfg.jinja.in
software/theia/instance-import.cfg.jinja.in
+4
-0
software/theia/test/dummy/software.cfg
software/theia/test/dummy/software.cfg
+1
-1
software/theia/test/resilience_dummy/software.cfg
software/theia/test/resilience_dummy/software.cfg
+4
-4
software/theia/test/test.py
software/theia/test/test.py
+2
-1
software/theia/test/test_resiliency.py
software/theia/test/test_resiliency.py
+2
-5
software/theia/test/upgrade_tests.py
software/theia/test/upgrade_tests.py
+1
-85
software/tsn-demo/software.cfg
software/tsn-demo/software.cfg
+3
-6
software/zabbix-agent/software.cfg
software/zabbix-agent/software.cfg
+3
-6
stack/erp5/buildout.cfg
stack/erp5/buildout.cfg
+15
-4
stack/slapos-py2.cfg
stack/slapos-py2.cfg
+18
-0
stack/slapos.cfg
stack/slapos.cfg
+14
-12
No files found.
component/numpy/buildout.cfg
View file @
db061c01
...
@@ -21,7 +21,7 @@ environment = numpy-env
...
@@ -21,7 +21,7 @@ environment = numpy-env
eggs = ${cython:egg}
eggs = ${cython:egg}
[versions]
[versions]
numpy = 1.2
2.0
numpy = 1.2
4.4
[numpy:sys.version_info < (3,8)]
[numpy:sys.version_info < (3,8)]
depends =
depends =
...
...
software/backupserver/software.cfg
View file @
db061c01
...
@@ -15,6 +15,9 @@ extends =
...
@@ -15,6 +15,9 @@ extends =
../../stack/slapos.cfg
../../stack/slapos.cfg
../../stack/monitor/buildout.cfg
../../stack/monitor/buildout.cfg
# Python2 versions for buildout (keep last)
../../stack/slapos-py2.cfg
parts =
parts =
dcron
dcron
logrotate
logrotate
...
@@ -27,12 +30,6 @@ parts =
...
@@ -27,12 +30,6 @@ parts =
template-crontab-line
template-crontab-line
slapos-cookbook
slapos-cookbook
[python]
part = python2.7
[openssl]
<= openssl-1.1
[rssgen-eggs]
[rssgen-eggs]
recipe = zc.recipe.egg
recipe = zc.recipe.egg
interpreter = python-${:_buildout_section_name_}
interpreter = python-${:_buildout_section_name_}
...
...
software/beremiz-ide/software.cfg
View file @
db061c01
...
@@ -28,6 +28,9 @@ extends =
...
@@ -28,6 +28,9 @@ extends =
../../stack/nxdtest.cfg
../../stack/nxdtest.cfg
./buildout.hash.cfg
./buildout.hash.cfg
# Python2 versions for buildout (keep last)
../../stack/slapos-py2.cfg
parts +=
parts +=
slapos-cookbook
slapos-cookbook
beremiz-eggs
beremiz-eggs
...
@@ -41,13 +44,6 @@ parts +=
...
@@ -41,13 +44,6 @@ parts +=
# Always build GCC for Fortran (see openblas).
# Always build GCC for Fortran (see openblas).
max_version = 0
max_version = 0
[python]
# Beremiz works with python2.7 for now, the code is not yet upgraded for python3
part = python2.7
[openssl]
<= openssl-1.1
[open62541]
[open62541]
# Beremiz need it to be in folder parts/open62541
# Beremiz need it to be in folder parts/open62541
# as Beremiz search for open62541 to BEREMIZ_PATH/../open62541
# as Beremiz search for open62541 to BEREMIZ_PATH/../open62541
...
...
software/beremiz-runtime/software.cfg
View file @
db061c01
...
@@ -11,6 +11,9 @@ extends =
...
@@ -11,6 +11,9 @@ extends =
../../stack/monitor/buildout.cfg
../../stack/monitor/buildout.cfg
../../stack/slapos.cfg
../../stack/slapos.cfg
# Python2 versions for buildout (keep last)
../../stack/slapos-py2.cfg
parts =
parts =
beremiz-source
beremiz-source
slapos-cookbook
slapos-cookbook
...
@@ -19,12 +22,6 @@ parts =
...
@@ -19,12 +22,6 @@ parts =
matiec
matiec
open62541
open62541
[python]
part = python2.7
[openssl]
<= openssl-1.1
[gcc]
[gcc]
# we want this SR to use a fixed gcc (so that we have the same gcc as open62541 component)
# we want this SR to use a fixed gcc (so that we have the same gcc as open62541 component)
max_version = 0
max_version = 0
...
...
software/build-rina/software.cfg
View file @
db061c01
...
@@ -3,17 +3,15 @@ extends =
...
@@ -3,17 +3,15 @@ extends =
../../stack/slapos.cfg
../../stack/slapos.cfg
../../component/vm-img/debian.cfg
../../component/vm-img/debian.cfg
../../component/rina-tools/buildout.cfg
../../component/rina-tools/buildout.cfg
# Python2 versions for buildout (keep last)
../../stack/slapos-py2.cfg
parts =
parts =
slapos-cookbook
slapos-cookbook
template
template
download-cache = ${:directory}/download-cache
download-cache = ${:directory}/download-cache
[python]
part = python2.7
[openssl]
<= openssl-1.1
[template]
[template]
recipe = slapos.recipe.template:jinja2
recipe = slapos.recipe.template:jinja2
# XXX: "template.cfg" is hardcoded in instanciation recipe
# XXX: "template.cfg" is hardcoded in instanciation recipe
...
...
software/buildout-testing/runTestSuite.in
View file @
db061c01
...
@@ -114,6 +114,7 @@ zope.testrunner = 5.2
...
@@ -114,6 +114,7 @@ zope.testrunner = 5.2
recipe = zc.recipe.egg
recipe = zc.recipe.egg
eggs =
eggs =
${:recipe}
${:recipe}
zc.buildout[test]
zope.testing
zope.testing
zope.testrunner
zope.testrunner
scripts =
scripts =
...
...
software/buildout-testing/software-py2.cfg
View file @
db061c01
...
@@ -2,8 +2,5 @@
...
@@ -2,8 +2,5 @@
extends =
extends =
software.cfg
software.cfg
[python]
# Python2 versions for buildout (keep last)
part = python2.7
../../stack/slapos-py2.cfg
[openssl]
<= openssl-1.1
software/dream/software.cfg
View file @
db061c01
...
@@ -6,6 +6,10 @@ extends =
...
@@ -6,6 +6,10 @@ extends =
../../component/manpy/buildout.cfg
../../component/manpy/buildout.cfg
../../stack/monitor/buildout.cfg
../../stack/monitor/buildout.cfg
./buildout.hash.cfg
./buildout.hash.cfg
# Python2 versions for buildout (keep last)
../../stack/slapos-py2.cfg
parts =
parts =
slapos-cookbook
slapos-cookbook
manpy
manpy
...
@@ -21,12 +25,6 @@ max_version = 0
...
@@ -21,12 +25,6 @@ max_version = 0
# also use old gcc version for old scipy version used in python2
# also use old gcc version for old scipy version used in python2
part = gcc-8.5
part = gcc-8.5
[python]
part = python2.7
[openssl]
<= openssl-1.1
[dream-repository.git]
[dream-repository.git]
revision = f3bcf115741886835df8c0ca0fdbf510d77d8db8
revision = f3bcf115741886835df8c0ca0fdbf510d77d8db8
...
...
software/hellorina/software.cfg
View file @
db061c01
...
@@ -2,16 +2,14 @@
...
@@ -2,16 +2,14 @@
extends =
extends =
../../stack/slapos.cfg
../../stack/slapos.cfg
../../component/rina-tools/buildout.cfg
../../component/rina-tools/buildout.cfg
# Python2 versions for buildout (keep last)
../../stack/slapos-py2.cfg
parts =
parts =
slapos-cookbook
slapos-cookbook
template
template
[python]
part = python2.7
[openssl]
<= openssl-1.1
[file]
[file]
# For old GCC like 4.9.2 on Debian 8.
# For old GCC like 4.9.2 on Debian 8.
# XXX: This should be moved to component/rina-tools/buildout.cfg, next to where
# XXX: This should be moved to component/rina-tools/buildout.cfg, next to where
...
...
software/monitor/software.cfg
View file @
db061c01
...
@@ -66,13 +66,20 @@ scripts =
...
@@ -66,13 +66,20 @@ scripts =
surykatka = 0.8.0
surykatka = 0.8.0
# For surykatka 0.7.1
# For surykatka 0.7.1
dnspython = 2.1.0
dnspython = 2.1.0:whl
forcediphttpsadapter = 1.0.1
forcediphttpsadapter = 1.0.1
miniupnpc = 2.0.2
miniupnpc = 2.0.2
peewee = 3.14.4
peewee = 3.14.4
python-whois = 0.7.3
python-whois = 0.7.3
future = 0.18.3
future = 0.18.3
# For statsmodel =0.11.1
numpy = 1.22.0
# For numy = 1.22.0
setuptools = 44.1.1
# Build GCC with Fortran for OpenBLAS (scipy & numpy)
# Build GCC with Fortran for OpenBLAS (scipy & numpy)
[gcc]
[gcc]
max_version = 0
max_version = 0
...
@@ -82,4 +89,3 @@ eggs +=
...
@@ -82,4 +89,3 @@ eggs +=
${pandas:egg}
${pandas:egg}
${statsmodels:egg}
${statsmodels:egg}
${scipy:egg}
${scipy:egg}
software/neoppod/software-common.cfg
View file @
db061c01
...
@@ -23,6 +23,9 @@ extends =
...
@@ -23,6 +23,9 @@ extends =
../../component/ZEO/buildout.cfg
../../component/ZEO/buildout.cfg
../../component/zodbtools/buildout.cfg
../../component/zodbtools/buildout.cfg
# Python2 versions for buildout (keep last)
../../stack/slapos-py2.cfg
parts =
parts =
# keep neoppod first so that ZODB is built correctly,
# keep neoppod first so that ZODB is built correctly,
# before any other section that would depend on it
# before any other section that would depend on it
...
@@ -30,12 +33,6 @@ parts =
...
@@ -30,12 +33,6 @@ parts =
neoppod
neoppod
slapos-cookbook
slapos-cookbook
[python]
part = python2.7
[openssl]
<= openssl-1.1
[gcc:python2]
[gcc:python2]
# use old gcc version for old scipy version used in python2
# use old gcc version for old scipy version used in python2
part = gcc-8.5
part = gcc-8.5
...
...
software/neotest/software.cfg
View file @
db061c01
...
@@ -19,6 +19,8 @@ extends =
...
@@ -19,6 +19,8 @@ extends =
../../component/pygolang/buildout.cfg
../../component/pygolang/buildout.cfg
../../stack/nxdtest.cfg
../../stack/nxdtest.cfg
# Python2 versions for buildout (keep last)
../../stack/slapos-py2.cfg
parts =
parts =
gowork
gowork
...
@@ -47,12 +49,6 @@ parts =
...
@@ -47,12 +49,6 @@ parts =
slapos-cookbook
slapos-cookbook
instance.cfg
instance.cfg
[python]
part = python2.7
[openssl]
<= openssl-1.1
[neo]
[neo]
<= go-git-package
<= go-git-package
go.importpath = lab.nexedi.com/kirr/neo
go.importpath = lab.nexedi.com/kirr/neo
...
...
software/re6stnet/software.cfg
View file @
db061c01
...
@@ -13,16 +13,13 @@ extends =
...
@@ -13,16 +13,13 @@ extends =
# Monitoring stack (keep on bottom)
# Monitoring stack (keep on bottom)
../../stack/monitor/buildout.cfg
../../stack/monitor/buildout.cfg
# Python2 versions for buildout (keep bottom-most)
../../stack/slapos-py2.cfg
parts +=
parts +=
slapos-cookbook
slapos-cookbook
template
template
[python]
part = python2.7
[openssl]
<= openssl-1.1
[re6stnet-repository]
[re6stnet-repository]
recipe = slapos.recipe.build:gitclone
recipe = slapos.recipe.build:gitclone
repository = https://lab.nexedi.com/nexedi/re6stnet.git
repository = https://lab.nexedi.com/nexedi/re6stnet.git
...
...
software/slapos-sr-testing/software.cfg
View file @
db061c01
...
@@ -344,7 +344,7 @@ eggs +=
...
@@ -344,7 +344,7 @@ eggs +=
supervisor
supervisor
${slapos.cookbook-setup:egg}
${slapos.cookbook-setup:egg}
${slapos.test.backupserver-setup:egg}
${slapos.test.backupserver-setup:egg}
${slapos.test.beremiz-ide-setup:egg}
#
${slapos.test.beremiz-ide-setup:egg}
${slapos.test.caucase-setup:egg}
${slapos.test.caucase-setup:egg}
${slapos.test.cloudooo-setup:egg}
${slapos.test.cloudooo-setup:egg}
${slapos.test.dream-setup:egg}
${slapos.test.dream-setup:egg}
...
@@ -434,7 +434,7 @@ context =
...
@@ -434,7 +434,7 @@ context =
tests =
tests =
json-schemas ${slapos.cookbook-setup:setup}
json-schemas ${slapos.cookbook-setup:setup}
backupserver ${slapos.test.backupserver-setup:setup}
backupserver ${slapos.test.backupserver-setup:setup}
beremiz-ide ${slapos.test.beremiz-ide-setup:setup}
#
beremiz-ide ${slapos.test.beremiz-ide-setup:setup}
caucase ${slapos.test.caucase-setup:setup}
caucase ${slapos.test.caucase-setup:setup}
cloudooo ${slapos.test.cloudooo-setup:setup}
cloudooo ${slapos.test.cloudooo-setup:setup}
dream ${slapos.test.dream-setup:setup}
dream ${slapos.test.dream-setup:setup}
...
@@ -496,7 +496,7 @@ requests-toolbelt = 0.8.0
...
@@ -496,7 +496,7 @@ requests-toolbelt = 0.8.0
testfixtures = 6.11.0
testfixtures = 6.11.0
mysqlclient = 2.1.1
mysqlclient = 2.1.1
pexpect = 4.8.0
pexpect = 4.8.0
ptyprocess = 0.6.0
ptyprocess = 0.6.0
:whl
paho-mqtt = 1.5.0
paho-mqtt = 1.5.0
pcpp = 1.30
pcpp = 1.30
xmltodict = 0.13.0
xmltodict = 0.13.0
...
...
software/slapos-testing/software-py2.cfg
View file @
db061c01
...
@@ -2,11 +2,8 @@
...
@@ -2,11 +2,8 @@
extends =
extends =
software.cfg
software.cfg
[python]
# Python2 versions for buildout (keep last)
part = python2.7
../../stack/slapos-py2.cfg
[openssl]
<= openssl-1.1
[extra-eggs]
[extra-eggs]
eggs +=
eggs +=
...
...
software/theia/buildout.hash.cfg
View file @
db061c01
...
@@ -23,11 +23,11 @@ md5sum = 9658a11340c018de816d0de40683706a
...
@@ -23,11 +23,11 @@ md5sum = 9658a11340c018de816d0de40683706a
[instance-import]
[instance-import]
_update_hash_filename_ = instance-import.cfg.jinja.in
_update_hash_filename_ = instance-import.cfg.jinja.in
md5sum =
c8d1be7aee980deb0f0d1a3126c9b9da
md5sum =
d0ff7b93e392f9b9233f9ae6ba81583f
[instance-export]
[instance-export]
_update_hash_filename_ = instance-export.cfg.jinja.in
_update_hash_filename_ = instance-export.cfg.jinja.in
md5sum = b
b6d26c56b4bb9cf553c130fdd51000d
md5sum = b
982e83fa42103b7391d97eb36591174
[instance-resilient]
[instance-resilient]
_update_hash_filename_ = instance-resilient.cfg.jinja
_update_hash_filename_ = instance-resilient.cfg.jinja
...
...
software/theia/instance-export.cfg.jinja.in
View file @
db061c01
...
@@ -10,6 +10,10 @@ parts +=
...
@@ -10,6 +10,10 @@ parts +=
$${:theia-environment-parts}
$${:theia-environment-parts}
resilient-publish-connection-parameter
resilient-publish-connection-parameter
# Avoid publication conflicts
parts -=
publish-connection-parameter
# The resilient stack makes the 'resilient' instance
# The resilient stack makes the 'resilient' instance
# request the 'export' instance with a 'namebase' parameter.
# request the 'export' instance with a 'namebase' parameter.
...
...
software/theia/instance-import.cfg.jinja.in
View file @
db061c01
...
@@ -14,6 +14,10 @@ parts +=
...
@@ -14,6 +14,10 @@ parts +=
$${:theia-parts}
$${:theia-parts}
$${:theia-environment-parts}
$${:theia-environment-parts}
# Avoid publication conflicts
parts -=
publish-connection-parameter
# The resilient stack makes the 'resilient' instance
# The resilient stack makes the 'resilient' instance
# request the 'import' instance with a 'namebase' parameter.
# request the 'import' instance with a 'namebase' parameter.
...
...
software/theia/test/dummy/software.cfg
View file @
db061c01
...
@@ -17,4 +17,4 @@ update =
...
@@ -17,4 +17,4 @@ update =
json.dump(dict(os.environ), f)
json.dump(dict(os.environ), f)
[versions]
[versions]
slapos.recipe.build = 0.
48
slapos.recipe.build = 0.
57
software/theia/test/resilience_dummy/software.cfg
View file @
db061c01
[buildout]
[buildout]
find-links +=
find-links +=
http://www.nexedi.org/static/packages/source/
slapos.buildout/zc.buildout-2.7.1%2Bslapos010.tar.gz
http://www.nexedi.org/static/packages/source/
http://www.nexedi.org/static/packages/source/
zc.recipe.egg-2.0.3%2Bslapos003.tar.gz
http://www.nexedi.org/static/packages/source/
slapos.buildout/
parts =
parts =
instance-template
instance-template
...
@@ -20,8 +20,8 @@ url = ${:_profile_base_location_}/instance.cfg.in
...
@@ -20,8 +20,8 @@ url = ${:_profile_base_location_}/instance.cfg.in
output = ${buildout:directory}/instance.cfg
output = ${buildout:directory}/instance.cfg
[versions]
[versions]
setuptools = 44.
0.0
setuptools = 44.
1.1
zc.buildout = 2.7.1+slapos01
0
zc.buildout = 2.7.1+slapos01
9
zc.recipe.egg = 2.0.3+slapos003
zc.recipe.egg = 2.0.3+slapos003
Jinja2 = 2.11.2
Jinja2 = 2.11.2
MarkupSafe = 1.0
MarkupSafe = 1.0
software/theia/test/test.py
View file @
db061c01
...
@@ -263,7 +263,8 @@ class TestTheia(TheiaTestCase):
...
@@ -263,7 +263,8 @@ class TestTheia(TheiaTestCase):
ipv6
,
*
prefixlen
=
self
.
_ipv6_address
.
split
(
'/'
)
ipv6
,
*
prefixlen
=
self
.
_ipv6_address
.
split
(
'/'
)
if
not
prefixlen
:
if
not
prefixlen
:
raise
unittest
.
SkipTest
(
'No IPv6 range'
)
raise
unittest
.
SkipTest
(
'No IPv6 range'
)
elif
int
(
prefixlen
[
0
])
>=
123
:
elif
int
(
prefixlen
[
0
])
+
16
>=
123
:
# Note: prefixlen-theia = prefixlen-sr-testing + 16
raise
unittest
.
SkipTest
(
'IPv6 range too small: %s'
%
self
.
_ipv6_address
)
raise
unittest
.
SkipTest
(
'IPv6 range too small: %s'
%
self
.
_ipv6_address
)
with
sqlite3
.
connect
(
proxy_path
)
as
db
:
with
sqlite3
.
connect
(
proxy_path
)
as
db
:
...
...
software/theia/test/test_resiliency.py
View file @
db061c01
...
@@ -187,7 +187,7 @@ class ExportAndImportMixin(object):
...
@@ -187,7 +187,7 @@ class ExportAndImportMixin(object):
old_value
=
self
.
slap
.
_force_slapos_node_instance_all
old_value
=
self
.
slap
.
_force_slapos_node_instance_all
self
.
slap
.
_force_slapos_node_instance_all
=
True
self
.
slap
.
_force_slapos_node_instance_all
=
True
try
:
try
:
self
.
slap
.
waitForInstance
(
error_lines
=
0
)
self
.
slap
.
waitForInstance
(
max_retry
=
2
,
error_lines
=
0
)
except
SlapOSNodeCommandError
as
e
:
except
SlapOSNodeCommandError
as
e
:
s
=
str
(
e
)
s
=
str
(
e
)
self
.
assertNotIn
(
"Promise 'resiliency-export-promise.py' failed"
,
s
)
self
.
assertNotIn
(
"Promise 'resiliency-export-promise.py' failed"
,
s
)
...
@@ -561,10 +561,7 @@ class TestTheiaResilience(TheiaSyncMixin, ResilientTheiaTestCase):
...
@@ -561,10 +561,7 @@ class TestTheiaResilience(TheiaSyncMixin, ResilientTheiaTestCase):
def
_checkSync
(
self
):
def
_checkSync
(
self
):
# Check that ~/etc still contains everything it did before
# Check that ~/etc still contains everything it did before
etc_listdir
=
os
.
listdir
(
self
.
getPartitionPath
(
'import'
,
'etc'
))
etc_listdir
=
os
.
listdir
(
self
.
getPartitionPath
(
'import'
,
'etc'
))
try
:
self
.
assertTrue
(
set
(
self
.
etc_listdir
).
issubset
(
etc_listdir
))
self
.
assertTrue
(
set
(
self
.
etc_listdir
).
issubset
(
etc_listdir
))
except
AssertionError
:
breakpoint
()
def
_checkTakeover
(
self
):
def
_checkTakeover
(
self
):
# Check that there is an export, import and frozen instance and get their new partition IDs
# Check that there is an export, import and frozen instance and get their new partition IDs
...
...
software/theia/test/upgrade_tests.py
View file @
db061c01
...
@@ -11,7 +11,7 @@ import test
...
@@ -11,7 +11,7 @@ import test
import
test_resiliency
import
test_resiliency
stable_software_url
=
"https://lab.nexedi.com/nexedi/slapos/raw/1.0.3
24
/software/theia/software.cfg"
stable_software_url
=
"https://lab.nexedi.com/nexedi/slapos/raw/1.0.3
49
/software/theia/software.cfg"
dev_software_url
=
os
.
path
.
abspath
(
dev_software_url
=
os
.
path
.
abspath
(
os
.
path
.
join
(
os
.
path
.
dirname
(
__file__
),
'..'
,
'software.cfg'
))
os
.
path
.
join
(
os
.
path
.
dirname
(
__file__
),
'..'
,
'software.cfg'
))
...
@@ -102,87 +102,3 @@ class TestTheiaResilienceWithInitialInstance(
...
@@ -102,87 +102,3 @@ class TestTheiaResilienceWithInitialInstance(
def
beforeUpgrade
(
cls
):
def
beforeUpgrade
(
cls
):
# Check initial embedded instance
# Check initial embedded instance
test
.
TestTheiaWithEmbeddedInstance
.
test
(
cls
())
test
.
TestTheiaWithEmbeddedInstance
.
test
(
cls
())
class
TestResilientTheiaUpgradeWithInitialInstance
(
UpgradeTestCase
,
test_resiliency
.
ResilientTheiaTestCase
,
test_resiliency
.
TheiaSyncMixin
):
backup_max_tries
=
70
backup_wait_interval
=
10
old_flag_file
=
os
.
path
.
join
(
'etc'
,
'embedded-instance-config.json.done'
)
old_exitcode_file
=
os
.
path
.
join
(
'etc'
,
'embedded-request-exitcode'
)
flag_file
=
os
.
path
.
join
(
'var'
,
'state'
,
'standalone-ran-before.flag'
)
exitcode_file
=
os
.
path
.
join
(
'var'
,
'state'
,
'embedded-request.exitcode'
)
@
classmethod
def
getInstanceParameterDict
(
cls
):
return
{
'initial-embedded-instance'
:
json
.
dumps
({
'software-url'
:
test_resiliency
.
dummy_software_url
}),
}
def
assertExists
(
self
,
path
):
self
.
assertTrue
(
os
.
path
.
exists
(
path
))
def
assertNotFound
(
self
,
path
):
self
.
assertFalse
(
os
.
path
.
exists
(
path
))
@
classmethod
def
beforeUpgrade
(
cls
):
self
=
cls
()
self
.
assertExists
(
cls
.
getPartitionPath
(
'export'
,
self
.
old_flag_file
))
self
.
assertExists
(
cls
.
getPartitionPath
(
'export'
,
self
.
old_exitcode_file
))
self
.
assertExists
(
self
.
getPartitionPath
(
'import'
,
self
.
old_flag_file
))
self
.
assertNotFound
(
self
.
getPartitionPath
(
'import'
,
self
.
old_exitcode_file
))
def
_prepareExport
(
self
):
# after upgrade
self
.
assertNotFound
(
self
.
getPartitionPath
(
'export'
,
self
.
old_flag_file
))
self
.
assertNotFound
(
self
.
getPartitionPath
(
'export'
,
self
.
old_exitcode_file
))
self
.
assertNotFound
(
self
.
getPartitionPath
(
'import'
,
self
.
old_flag_file
))
self
.
assertNotFound
(
self
.
getPartitionPath
(
'import'
,
self
.
old_exitcode_file
))
self
.
assertExists
(
self
.
getPartitionPath
(
'export'
,
self
.
flag_file
))
self
.
assertExists
(
self
.
getPartitionPath
(
'export'
,
self
.
exitcode_file
))
self
.
assertExists
(
self
.
getPartitionPath
(
'import'
,
self
.
flag_file
))
self
.
assertNotFound
(
self
.
getPartitionPath
(
'import'
,
self
.
exitcode_file
))
def
_checkSync
(
self
):
self
.
assertExists
(
self
.
getPartitionPath
(
'export'
,
self
.
flag_file
))
self
.
assertExists
(
self
.
getPartitionPath
(
'export'
,
self
.
exitcode_file
))
self
.
assertExists
(
self
.
getPartitionPath
(
'import'
,
self
.
flag_file
))
self
.
assertExists
(
self
.
getPartitionPath
(
'import'
,
self
.
exitcode_file
))
def
_checkTakeover
(
self
):
self
.
assertNotFound
(
self
.
getPartitionPath
(
'export'
,
self
.
old_flag_file
))
self
.
assertNotFound
(
self
.
getPartitionPath
(
'export'
,
self
.
old_exitcode_file
))
self
.
assertNotFound
(
self
.
getPartitionPath
(
'import'
,
self
.
old_flag_file
))
self
.
assertNotFound
(
self
.
getPartitionPath
(
'import'
,
self
.
old_exitcode_file
))
self
.
assertExists
(
self
.
getPartitionPath
(
'export'
,
self
.
flag_file
))
self
.
assertExists
(
self
.
getPartitionPath
(
'export'
,
self
.
exitcode_file
))
self
.
assertExists
(
self
.
getPartitionPath
(
'import'
,
self
.
flag_file
))
self
.
assertNotFound
(
self
.
getPartitionPath
(
'import'
,
self
.
exitcode_file
))
class
TestResilientTheiaUpgradeWithInitialInstanceAndSync
(
TestResilientTheiaUpgradeWithInitialInstance
):
@
classmethod
def
beforeUpgrade
(
cls
):
cls
().
_doSync
()
def
_prepareExport
(
self
):
# after upgrade
self
.
assertNotFound
(
self
.
getPartitionPath
(
'export'
,
self
.
old_flag_file
))
self
.
assertNotFound
(
self
.
getPartitionPath
(
'export'
,
self
.
old_exitcode_file
))
self
.
assertNotFound
(
self
.
getPartitionPath
(
'import'
,
self
.
old_flag_file
))
self
.
assertNotFound
(
self
.
getPartitionPath
(
'import'
,
self
.
old_exitcode_file
))
self
.
assertExists
(
self
.
getPartitionPath
(
'export'
,
self
.
flag_file
))
self
.
assertExists
(
self
.
getPartitionPath
(
'export'
,
self
.
exitcode_file
))
self
.
assertExists
(
self
.
getPartitionPath
(
'import'
,
self
.
flag_file
))
self
.
assertExists
(
self
.
getPartitionPath
(
'import'
,
self
.
exitcode_file
))
software/tsn-demo/software.cfg
View file @
db061c01
...
@@ -6,18 +6,15 @@ extends =
...
@@ -6,18 +6,15 @@ extends =
../../component/tsn-rt-measures/buildout.cfg
../../component/tsn-rt-measures/buildout.cfg
../../component/util-linux/buildout.cfg
../../component/util-linux/buildout.cfg
# Python2 versions for buildout (keep last)
../../stack/slapos-py2.cfg
parts =
parts =
slapos-cookbook
slapos-cookbook
eggs
eggs
util-linux
util-linux
template
template
[python]
part = python2.7
[openssl]
<= openssl-1.1
# eggs for instance-rsn-client.cfg
# eggs for instance-rsn-client.cfg
[eggs]
[eggs]
recipe = zc.recipe.egg
recipe = zc.recipe.egg
...
...
software/zabbix-agent/software.cfg
View file @
db061c01
...
@@ -6,16 +6,13 @@ extends =
...
@@ -6,16 +6,13 @@ extends =
../../component/zabbix/buildout.cfg
../../component/zabbix/buildout.cfg
../../stack/slapos.cfg
../../stack/slapos.cfg
# Python2 versions for buildout (keep last)
../../stack/slapos-py2.cfg
parts =
parts =
slapos-cookbook
slapos-cookbook
template
template
[python]
part = python2.7
[openssl]
<= openssl-1.1
[template]
[template]
# Default template for the instance.
# Default template for the instance.
recipe = slapos.recipe.template
recipe = slapos.recipe.template
...
...
stack/erp5/buildout.cfg
View file @
db061c01
...
@@ -68,6 +68,9 @@ extends =
...
@@ -68,6 +68,9 @@ extends =
../../software/neoppod/software-common.cfg
../../software/neoppod/software-common.cfg
# keep neoppod extends last
# keep neoppod extends last
# python2
../slapos-py2.cfg
parts +=
parts +=
erp5-util-develop
erp5-util-develop
slapos-cookbook
slapos-cookbook
...
@@ -490,8 +493,17 @@ egg = ${:_buildout_section_name_}
...
@@ -490,8 +493,17 @@ egg = ${:_buildout_section_name_}
setup-eggs +=
setup-eggs +=
${persistent:egg}
${persistent:egg}
[wstools]
# a SOAPpy dependency
recipe = zc.recipe.egg:custom
egg = wstools
setup-eggs =
pbr
pytest-runner
[eggs]
[eggs]
<= neoppod
<= neoppod
depends = ${wstools:recipe}
eggs = ${neoppod:eggs}
eggs = ${neoppod:eggs}
${caucase-eggs:eggs}
${caucase-eggs:eggs}
${wendelin.core:egg}
${wendelin.core:egg}
...
@@ -738,9 +750,6 @@ pylint = 1.4.4+SlapOSPatched002
...
@@ -738,9 +750,6 @@ pylint = 1.4.4+SlapOSPatched002
# astroid 1.4.1 breaks testDynamicClassGeneration
# astroid 1.4.1 breaks testDynamicClassGeneration
astroid = 1.3.8+SlapOSPatched001
astroid = 1.3.8+SlapOSPatched001
# modified version that works fine for buildout installation
SOAPpy = 0.12.0nxd001
# Pinned versions
# Pinned versions
alabaster = 0.7.12
alabaster = 0.7.12
...
@@ -823,6 +832,7 @@ rfc3987 = 1.3.8
...
@@ -823,6 +832,7 @@ rfc3987 = 1.3.8
rsa = 3.4.2
rsa = 3.4.2
scikit-image = 0.14.0
scikit-image = 0.14.0
scipy = 0.19.0
scipy = 0.19.0
SOAPpy = 0.12.22
spyne = 2.12.14
spyne = 2.12.14
strict-rfc3339 = 0.7
strict-rfc3339 = 0.7
StructuredText = 2.11.1
StructuredText = 2.11.1
...
@@ -839,6 +849,7 @@ WebOb = 1.8.5
...
@@ -839,6 +849,7 @@ WebOb = 1.8.5
WebTest = 2.0.33
WebTest = 2.0.33
WSGIProxy2 = 0.4.6
WSGIProxy2 = 0.4.6
WSGIUtils = 0.7
WSGIUtils = 0.7
wstools = 0.4.8
xfw = 0.10
xfw = 0.10
xupdate-processor = 0.5
xupdate-processor = 0.5
yapf = 0.28.0
yapf = 0.28.0
...
@@ -851,7 +862,7 @@ zope.app.dependable = 3.5.1
...
@@ -851,7 +862,7 @@ zope.app.dependable = 3.5.1
zope.app.form = 5.1.0
zope.app.form = 5.1.0
zope.app.publication = 4.5
zope.app.publication = 4.5
zope.app.testing = 4.0.0
zope.app.testing = 4.0.0
zope.authentication = 5.0
zope.authentication =
4.
5.0
zope.error = 4.6
zope.error = 4.6
zope.minmax = 2.3
zope.minmax = 2.3
zope.password = 4.4
zope.password = 4.4
...
...
stack/slapos-py2.cfg
0 → 100644
View file @
db061c01
[buildout]
extends = slapos.cfg
[python]
part = python2.7
[openssl]
<= openssl-1.1
# Use Python2-compatible versions of zc.buildout dependencies from the start.
# These versions must be pinned unconditionally because slapos.rebootstrap
# will necessarily keep the same versions of zc.buildout and dependencies
# with the new Python. This is an intrisic limitation of slapos.rebootstrap.
[versions]
setuptools = 44.1.1
pip = 20.3.4
# Avoid https://github.com/pypa/wheel/issues/331
wheel = 0.33.6
stack/slapos.cfg
View file @
db061c01
...
@@ -135,11 +135,13 @@ eggs =
...
@@ -135,11 +135,13 @@ eggs =
slapos.libnetworkcache
slapos.libnetworkcache
[versions]
[versions]
setuptools = 44.1.1
# The last version of setuptools compatible with Python 3.7
setuptools = 67.8.0
# Use SlapOS patched zc.buildout
# Use SlapOS patched zc.buildout
zc.buildout = 2.7.1+slapos020
zc.buildout = 3.0.1+slapos002
pip = 23.2.1
# Use SlapOS patched zc.recipe.egg (zc.recipe.egg 2.x is for Buildout 2)
# Use SlapOS patched zc.recipe.egg (zc.recipe.egg 2.x is for Buildout 2)
zc.recipe.egg = 2.0.
3+slapos003
zc.recipe.egg = 2.0.
8.dev0+slapos002
aiohttp = 3.8.5:whl
aiohttp = 3.8.5:whl
aiosignal = 1.3.1:whl
aiosignal = 1.3.1:whl
...
@@ -152,18 +154,18 @@ async-timeout = 4.0.3
...
@@ -152,18 +154,18 @@ async-timeout = 4.0.3
atomicwrites = 1.4.0
atomicwrites = 1.4.0
atomize = 0.2.0
atomize = 0.2.0
attrs = 23.1.0:whl
attrs = 23.1.0:whl
backcall = 0.2.0
backcall = 0.2.0
:whl
backports-abc = 0.5
backports-abc = 0.5
backports.functools-lru-cache = 1.6.1:whl
backports.functools-lru-cache = 1.6.1:whl
backports.lzma = 0.0.14
backports.lzma = 0.0.14
backports.shutil-get-terminal-size = 1.0.0
backports.shutil-get-terminal-size = 1.0.0
bcrypt = 3.1.4
bcrypt = 3.1.4
beautifulsoup4 = 4.
8.2
beautifulsoup4 = 4.
12.2:whl
bleach = 5.0.1
bleach = 5.0.1
blinker = 1.6.3:whl
blinker = 1.6.3:whl
CacheControl = 0.12.6:whl
CacheControl = 0.12.6:whl
cachetools = 5.3.1
cachetools = 5.3.1
cattrs = 22.2.0
cattrs = 22.2.0
:whl
certifi = 2023.7.22
certifi = 2023.7.22
cffi = 1.15.0
cffi = 1.15.0
chardet = 3.0.4
chardet = 3.0.4
...
@@ -172,7 +174,7 @@ click = 8.1.3
...
@@ -172,7 +174,7 @@ click = 8.1.3
cliff = 2.8.3:whl
cliff = 2.8.3:whl
cmd2 = 0.7.0
cmd2 = 0.7.0
collective.recipe.shelloutput = 0.1
collective.recipe.shelloutput = 0.1
collective.recipe.template = 2.
0
collective.recipe.template = 2.
2
configparser = 4.0.2:whl
configparser = 4.0.2:whl
contextlib2 = 0.6.0.post1
contextlib2 = 0.6.0.post1
croniter = 0.3.25
croniter = 0.3.25
...
@@ -183,7 +185,7 @@ decorator = 4.3.0
...
@@ -183,7 +185,7 @@ decorator = 4.3.0
defusedxml = 0.7.1
defusedxml = 0.7.1
distro = 1.7.0
distro = 1.7.0
dnspython = 1.16.0
dnspython = 1.16.0
entrypoints = 0.3
entrypoints = 0.3
:whl
enum34 = 1.1.10
enum34 = 1.1.10
erp5.util = 0.4.76
erp5.util = 0.4.76
et-xmlfile = 1.0.1
et-xmlfile = 1.0.1
...
@@ -261,8 +263,8 @@ pbr = 5.9.0
...
@@ -261,8 +263,8 @@ pbr = 5.9.0
pexpect = 4.8.0
pexpect = 4.8.0
pickleshare = 0.7.4
pickleshare = 0.7.4
pim-dm = 1.4.0nxd002
pim-dm = 1.4.0nxd002
pkgconfig = 1.5.1
pkgconfig = 1.5.1
:whl
pkgutil-resolve-name = 1.3.10
pkgutil-resolve-name = 1.3.10
:whl
plone.recipe.command = 1.1
plone.recipe.command = 1.1
pluggy = 0.13.1:whl
pluggy = 0.13.1:whl
ply = 3.11
ply = 3.11
...
@@ -312,7 +314,7 @@ slapos.cookbook = 1.0.360
...
@@ -312,7 +314,7 @@ slapos.cookbook = 1.0.360
slapos.core = 1.11.0
slapos.core = 1.11.0
slapos.extension.shared = 1.0
slapos.extension.shared = 1.0
slapos.libnetworkcache = 0.25
slapos.libnetworkcache = 0.25
slapos.rebootstrap = 4.
5
slapos.rebootstrap = 4.
7
slapos.recipe.build = 0.57
slapos.recipe.build = 0.57
slapos.recipe.cmmi = 0.20
slapos.recipe.cmmi = 0.20
slapos.recipe.template = 5.1
slapos.recipe.template = 5.1
...
@@ -378,6 +380,7 @@ Werkzeug = 2.0.2
...
@@ -378,6 +380,7 @@ Werkzeug = 2.0.2
[versions:python2]
[versions:python2]
attrs = 18.2.0
attrs = 18.2.0
beautifulsoup4 = 4.8.2
certifi = 2020.4.5.1
certifi = 2020.4.5.1
charset-normalizer = 2.0.12
charset-normalizer = 2.0.12
click = 6.7
click = 6.7
...
@@ -410,7 +413,6 @@ statsmodels = 0.11.1
...
@@ -410,7 +413,6 @@ statsmodels = 0.11.1
traitlets = 4.3.3
traitlets = 4.3.3
uritemplate = 3.0.0
uritemplate = 3.0.0
Werkzeug = 1.0.1
Werkzeug = 1.0.1
wheel = 0.35.1:whl
zipp = 1.2.0:whl
zipp = 1.2.0:whl
...
...
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