Commit 7f3e6ba7 authored by Joanne Hugé's avatar Joanne Hugé

Update Release Candidate

parents d984cac1 bb5c70ad
...@@ -12,8 +12,8 @@ parts = ...@@ -12,8 +12,8 @@ parts =
[fluentbit-plugin-wendelin] [fluentbit-plugin-wendelin]
recipe = slapos.recipe.cmmi recipe = slapos.recipe.cmmi
share = true share = true
url = https://lab.nexedi.com/nexedi/fluentbit-plugin-wendelin/-/archive/v0.1j-dev_buildout/fluentbit-plugin-wendelin-v0.1j-dev_buildout.tar.gz url = https://lab.nexedi.com/nexedi/fluentbit-plugin-wendelin/-/archive/v0.2/fluentbit-plugin-wendelin-v0.2.tar.gz
md5sum = 98cd6c892ff92cdeaffa0310840a476a md5sum = 4985017f5575528240bf5cd5b148396b
configure-command = echo "No configure command." configure-command = echo "No configure command."
environment = environment =
PATH=${golang1.17:location}/bin:%(PATH)s PATH=${golang1.17:location}/bin:%(PATH)s
......
...@@ -12,8 +12,8 @@ parts = ...@@ -12,8 +12,8 @@ parts =
[mca] [mca]
recipe = slapos.recipe.cmmi recipe = slapos.recipe.cmmi
url = https://lab.nexedi.com/nexedi/metadata-collect-agent/-/archive/v0.3.0/metadata-collect-agent-v0.3.0.tar.gz url = https://lab.nexedi.com/nexedi/metadata-collect-agent/-/archive/v0.3.1/metadata-collect-agent-v0.3.1.tar.gz
md5sum = 9c1f6582848be94e99af10d31dd5e0ba md5sum = cbd6cf10f83c760cebc19bb9c1455f8e
configure-command = : configure-command = :
make-targets = make-targets =
no-dracut no-dracut
......
...@@ -47,4 +47,4 @@ environment = ...@@ -47,4 +47,4 @@ environment =
patch-options = -p1 patch-options = -p1
patches = patches =
# PR #3402 (mariadb_client: backport patch to fix syntax error in cmake 3.20) # PR #3402 (mariadb_client: backport patch to fix syntax error in cmake 3.20)
https://github.com/sysown/proxysql/commit/a3cfa56d257219f7610cd5711045bb5d84485a91.patch#bb034744fd9b676484d34a269ab2ed07 https://github.com/sysown/proxysql/commit/a3cfa56d257219f7610cd5711045bb5d84485a91.patch#34fd6366d4a75fde821cee93d25eee10
[instance-profile] [instance-profile]
filename = instance.cfg.in filename = instance.cfg.in
md5sum = b2845159dd53f942f32c4d4348934ce2 md5sum = b548a209f2846921c3dd969c9059f28c
...@@ -50,6 +50,6 @@ install = ...@@ -50,6 +50,6 @@ install =
[fluent-bit-service] [fluent-bit-service]
recipe = slapos.cookbook:wrapper recipe = slapos.cookbook:wrapper
command-line = {{ fluent_bit_location }}/bin/fluent-bit -c ${fluent-bit-config-file:location} command-line = {{ fluent_bit_location }}/bin/fluent-bit -e {{ fluentbit_plugin_wendelin_location }}/lib/libfluentbit_wendelin.so -c ${fluent-bit-config-file:location}
wrapper-path = ${directory:service}/fluentbit-service wrapper-path = ${directory:service}/fluentbit-service
output = $${:wrapper-path} output = $${:wrapper-path}
...@@ -3,12 +3,17 @@ extends = ...@@ -3,12 +3,17 @@ extends =
buildout.hash.cfg buildout.hash.cfg
../../stack/slapos.cfg ../../stack/slapos.cfg
../../stack/monitor/buildout.cfg ../../stack/monitor/buildout.cfg
../../component/fluent-bit/buildout.cfg ../../component/fluent-bit/buildout.cfg
../../component/fluentbit-plugin-wendelin/buildout.cfg
parts = parts =
slapos-cookbook slapos-cookbook
instance-profile instance-profile
[fluentbit-plugin-wendelin]
url = https://lab.nexedi.com/nexedi/fluentbit-plugin-wendelin/-/archive/v0.1%D0%B0-wendelin/fluentbit-plugin-wendelin-v0.1%D0%B0-wendelin.tar.gz
md5sum = 9ae13adf8406b368e4acb029c73ce8b8
[instance-profile] [instance-profile]
recipe = slapos.recipe.template:jinja2 recipe = slapos.recipe.template:jinja2
template = ${:_profile_base_location_}/instance.cfg.in template = ${:_profile_base_location_}/instance.cfg.in
...@@ -16,3 +21,4 @@ rendered = ${buildout:directory}/instance.cfg ...@@ -16,3 +21,4 @@ rendered = ${buildout:directory}/instance.cfg
context = context =
section buildout buildout section buildout buildout
key fluent_bit_location fluent-bit:location key fluent_bit_location fluent-bit:location
key fluentbit_plugin_wendelin_location fluentbit-plugin-wendelin:location
...@@ -20,7 +20,7 @@ md5sum = 6e5c63c35b13f8920ea13e24c27d7b50 ...@@ -20,7 +20,7 @@ md5sum = 6e5c63c35b13f8920ea13e24c27d7b50
[template-lte-enb-epc] [template-lte-enb-epc]
_update_hash_filename_ = instance-enb-epc.jinja2.cfg _update_hash_filename_ = instance-enb-epc.jinja2.cfg
md5sum = 80a239305950ed76b5279647f422478f md5sum = 42959a0525d2e06e61310836656d5de6
[template-lte-enb] [template-lte-enb]
_update_hash_filename_ = instance-enb.jinja2.cfg _update_hash_filename_ = instance-enb.jinja2.cfg
...@@ -28,7 +28,7 @@ md5sum = 04dbc8396cb112e86d5d1564df033b82 ...@@ -28,7 +28,7 @@ md5sum = 04dbc8396cb112e86d5d1564df033b82
[template-lte-gnb-epc] [template-lte-gnb-epc]
_update_hash_filename_ = instance-gnb-epc.jinja2.cfg _update_hash_filename_ = instance-gnb-epc.jinja2.cfg
md5sum = dadb76e747faeea18c387109c3319dfd md5sum = 2b589e23486661c52f379c4d9b35e7a9
[template-lte-epc] [template-lte-epc]
_update_hash_filename_ = instance-epc.jinja2.cfg _update_hash_filename_ = instance-epc.jinja2.cfg
......
...@@ -78,7 +78,7 @@ software-type = enb ...@@ -78,7 +78,7 @@ software-type = enb
config-name = enb config-name = enb
{%- for key, value in slapparameter_dict.items() %} {%- for key, value in slapparameter_dict.items() %}
config-{{ key }} = {{ dumps(value) }} config-{{ key }} = {{ dumps(value) }}
{% endfor -%} {% endfor %}
return = monitor-base-url return = monitor-base-url
[monitor-base-url-dict] [monitor-base-url-dict]
......
...@@ -67,7 +67,7 @@ software-type = mme ...@@ -67,7 +67,7 @@ software-type = mme
config-name = mme config-name = mme
{%- for key, value in slapparameter_dict.items() %} {%- for key, value in slapparameter_dict.items() %}
config-{{ key }} = {{ dumps(value) }} config-{{ key }} = {{ dumps(value) }}
{% endfor -%} {% endfor %}
config-slave-list = {{ dumps(slave_instance_list) }} config-slave-list = {{ dumps(slave_instance_list) }}
return = monitor-base-url epc-ipv6 return = monitor-base-url epc-ipv6
......
...@@ -220,6 +220,7 @@ class TestEPCParameters(ORSTestCase): ...@@ -220,6 +220,7 @@ class TestEPCParameters(ORSTestCase):
def getInstanceSoftwareType(cls): def getInstanceSoftwareType(cls):
return "epc" return "epc"
def test_mme_conf(self): def test_mme_conf(self):
self.slap.waitForInstance() # Wait until publish is done
test_mme_conf(self) test_mme_conf(self)
class TestENBEPCParameters(ORSTestCase): class TestENBEPCParameters(ORSTestCase):
...@@ -230,8 +231,10 @@ class TestENBEPCParameters(ORSTestCase): ...@@ -230,8 +231,10 @@ class TestENBEPCParameters(ORSTestCase):
def getInstanceSoftwareType(cls): def getInstanceSoftwareType(cls):
return "enb-epc" return "enb-epc"
def test_enb_conf(self): def test_enb_conf(self):
self.slap.waitForInstance() # Wait until publish is done
test_enb_conf(self) test_enb_conf(self)
def test_mme_conf(self): def test_mme_conf(self):
self.slap.waitForInstance() # Wait until publish is done
test_mme_conf(self) test_mme_conf(self)
class TestGNBEPCParameters(ORSTestCase): class TestGNBEPCParameters(ORSTestCase):
...@@ -242,8 +245,10 @@ class TestGNBEPCParameters(ORSTestCase): ...@@ -242,8 +245,10 @@ class TestGNBEPCParameters(ORSTestCase):
def getInstanceSoftwareType(cls): def getInstanceSoftwareType(cls):
return "gnb-epc" return "gnb-epc"
def test_gnb_conf(self): def test_gnb_conf(self):
self.slap.waitForInstance() # Wait until publish is done
test_gnb_conf1(self) test_gnb_conf1(self)
def test_mme_conf(self): def test_mme_conf(self):
self.slap.waitForInstance() # Wait until publish is done
test_mme_conf(self) test_mme_conf(self)
def requestSlaveInstance(cls, software_type): def requestSlaveInstance(cls, software_type):
......
...@@ -220,6 +220,7 @@ class TestEPCParameters(ORSTestCase): ...@@ -220,6 +220,7 @@ class TestEPCParameters(ORSTestCase):
def getInstanceSoftwareType(cls): def getInstanceSoftwareType(cls):
return "epc" return "epc"
def test_mme_conf(self): def test_mme_conf(self):
self.slap.waitForInstance() # Wait until publish is done
test_mme_conf(self) test_mme_conf(self)
class TestENBEPCParameters(ORSTestCase): class TestENBEPCParameters(ORSTestCase):
...@@ -230,8 +231,10 @@ class TestENBEPCParameters(ORSTestCase): ...@@ -230,8 +231,10 @@ class TestENBEPCParameters(ORSTestCase):
def getInstanceSoftwareType(cls): def getInstanceSoftwareType(cls):
return "enb-epc" return "enb-epc"
def test_enb_conf(self): def test_enb_conf(self):
self.slap.waitForInstance() # Wait until publish is done
test_enb_conf(self) test_enb_conf(self)
def test_mme_conf(self): def test_mme_conf(self):
self.slap.waitForInstance() # Wait until publish is done
test_mme_conf(self) test_mme_conf(self)
class TestGNBEPCParameters(ORSTestCase): class TestGNBEPCParameters(ORSTestCase):
...@@ -242,8 +245,10 @@ class TestGNBEPCParameters(ORSTestCase): ...@@ -242,8 +245,10 @@ class TestGNBEPCParameters(ORSTestCase):
def getInstanceSoftwareType(cls): def getInstanceSoftwareType(cls):
return "gnb-epc" return "gnb-epc"
def test_gnb_conf(self): def test_gnb_conf(self):
self.slap.waitForInstance() # Wait until publish is done
test_gnb_conf1(self) test_gnb_conf1(self)
def test_mme_conf(self): def test_mme_conf(self):
self.slap.waitForInstance() # Wait until publish is done
test_mme_conf(self) test_mme_conf(self)
def requestSlaveInstance(cls, software_type): def requestSlaveInstance(cls, software_type):
......
...@@ -220,6 +220,7 @@ class TestEPCParameters(ORSTestCase): ...@@ -220,6 +220,7 @@ class TestEPCParameters(ORSTestCase):
def getInstanceSoftwareType(cls): def getInstanceSoftwareType(cls):
return "epc" return "epc"
def test_mme_conf(self): def test_mme_conf(self):
self.slap.waitForInstance() # Wait until publish is done
test_mme_conf(self) test_mme_conf(self)
class TestENBEPCParameters(ORSTestCase): class TestENBEPCParameters(ORSTestCase):
...@@ -230,8 +231,10 @@ class TestENBEPCParameters(ORSTestCase): ...@@ -230,8 +231,10 @@ class TestENBEPCParameters(ORSTestCase):
def getInstanceSoftwareType(cls): def getInstanceSoftwareType(cls):
return "enb-epc" return "enb-epc"
def test_enb_conf(self): def test_enb_conf(self):
self.slap.waitForInstance() # Wait until publish is done
test_enb_conf(self) test_enb_conf(self)
def test_mme_conf(self): def test_mme_conf(self):
self.slap.waitForInstance() # Wait until publish is done
test_mme_conf(self) test_mme_conf(self)
class TestGNBEPCParameters(ORSTestCase): class TestGNBEPCParameters(ORSTestCase):
...@@ -242,8 +245,10 @@ class TestGNBEPCParameters(ORSTestCase): ...@@ -242,8 +245,10 @@ class TestGNBEPCParameters(ORSTestCase):
def getInstanceSoftwareType(cls): def getInstanceSoftwareType(cls):
return "gnb-epc" return "gnb-epc"
def test_gnb_conf(self): def test_gnb_conf(self):
self.slap.waitForInstance() # Wait until publish is done
test_gnb_conf1(self) test_gnb_conf1(self)
def test_mme_conf(self): def test_mme_conf(self):
self.slap.waitForInstance() # Wait until publish is done
test_mme_conf(self) test_mme_conf(self)
def requestSlaveInstance(cls, software_type): def requestSlaveInstance(cls, software_type):
......
...@@ -220,6 +220,7 @@ class TestEPCParameters(ORSTestCase): ...@@ -220,6 +220,7 @@ class TestEPCParameters(ORSTestCase):
def getInstanceSoftwareType(cls): def getInstanceSoftwareType(cls):
return "epc" return "epc"
def test_mme_conf(self): def test_mme_conf(self):
self.slap.waitForInstance() # Wait until publish is done
test_mme_conf(self) test_mme_conf(self)
class TestENBEPCParameters(ORSTestCase): class TestENBEPCParameters(ORSTestCase):
...@@ -230,8 +231,10 @@ class TestENBEPCParameters(ORSTestCase): ...@@ -230,8 +231,10 @@ class TestENBEPCParameters(ORSTestCase):
def getInstanceSoftwareType(cls): def getInstanceSoftwareType(cls):
return "enb-epc" return "enb-epc"
def test_enb_conf(self): def test_enb_conf(self):
self.slap.waitForInstance() # Wait until publish is done
test_enb_conf(self) test_enb_conf(self)
def test_mme_conf(self): def test_mme_conf(self):
self.slap.waitForInstance() # Wait until publish is done
test_mme_conf(self) test_mme_conf(self)
class TestGNBEPCParameters(ORSTestCase): class TestGNBEPCParameters(ORSTestCase):
...@@ -242,8 +245,10 @@ class TestGNBEPCParameters(ORSTestCase): ...@@ -242,8 +245,10 @@ class TestGNBEPCParameters(ORSTestCase):
def getInstanceSoftwareType(cls): def getInstanceSoftwareType(cls):
return "gnb-epc" return "gnb-epc"
def test_gnb_conf(self): def test_gnb_conf(self):
self.slap.waitForInstance() # Wait until publish is done
test_gnb_conf1(self) test_gnb_conf1(self)
def test_mme_conf(self): def test_mme_conf(self):
self.slap.waitForInstance() # Wait until publish is done
test_mme_conf(self) test_mme_conf(self)
def requestSlaveInstance(cls, software_type): def requestSlaveInstance(cls, software_type):
......
...@@ -220,6 +220,7 @@ class TestEPCParameters(ORSTestCase): ...@@ -220,6 +220,7 @@ class TestEPCParameters(ORSTestCase):
def getInstanceSoftwareType(cls): def getInstanceSoftwareType(cls):
return "epc" return "epc"
def test_mme_conf(self): def test_mme_conf(self):
self.slap.waitForInstance() # Wait until publish is done
test_mme_conf(self) test_mme_conf(self)
class TestENBEPCParameters(ORSTestCase): class TestENBEPCParameters(ORSTestCase):
...@@ -230,8 +231,10 @@ class TestENBEPCParameters(ORSTestCase): ...@@ -230,8 +231,10 @@ class TestENBEPCParameters(ORSTestCase):
def getInstanceSoftwareType(cls): def getInstanceSoftwareType(cls):
return "enb-epc" return "enb-epc"
def test_enb_conf(self): def test_enb_conf(self):
self.slap.waitForInstance() # Wait until publish is done
test_enb_conf(self) test_enb_conf(self)
def test_mme_conf(self): def test_mme_conf(self):
self.slap.waitForInstance() # Wait until publish is done
test_mme_conf(self) test_mme_conf(self)
class TestGNBEPCParameters(ORSTestCase): class TestGNBEPCParameters(ORSTestCase):
...@@ -242,8 +245,10 @@ class TestGNBEPCParameters(ORSTestCase): ...@@ -242,8 +245,10 @@ class TestGNBEPCParameters(ORSTestCase):
def getInstanceSoftwareType(cls): def getInstanceSoftwareType(cls):
return "gnb-epc" return "gnb-epc"
def test_gnb_conf(self): def test_gnb_conf(self):
self.slap.waitForInstance() # Wait until publish is done
test_gnb_conf1(self) test_gnb_conf1(self)
def test_mme_conf(self): def test_mme_conf(self):
self.slap.waitForInstance() # Wait until publish is done
test_mme_conf(self) test_mme_conf(self)
def requestSlaveInstance(cls, software_type): def requestSlaveInstance(cls, software_type):
......
...@@ -311,10 +311,12 @@ class TestTheiaWithEmbeddedInstance(TheiaTestCase): ...@@ -311,10 +311,12 @@ class TestTheiaWithEmbeddedInstance(TheiaTestCase):
self.assertSupplied(sr_url, info=proxy_info) self.assertSupplied(sr_url, info=proxy_info)
name = 'embedded_instance' name = 'embedded_instance'
self.assertIn(name, self.captureSlapos('service', 'list', text=True)) self.assertIn(name, self.captureSlapos('service', 'list', text=True))
info = self.captureSlapos('service', 'info', name, text=True) info = json.loads(self.captureSlapos('service', 'info', name, text=True))
self.assertIn(sr_url, info) self.assertEqual(info['software-url'], sr_url)
# XXX: slapos service info does not show the software type, so we check in
# slapos proxy show output
self.assertIn(sr_type, proxy_info) self.assertIn(sr_type, proxy_info)
self.assertIn(repr(config).replace("u'", "'"), info) self.assertEqual(info['instance-parameters'], config)
def assertNotEmbedded(self, sr_url, sr_type, config): def assertNotEmbedded(self, sr_url, sr_type, config):
sr_url = self.expandUrl(sr_url) sr_url = self.expandUrl(sr_url)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment