Modify existing CRAM test for tr181-upnp that sets and gets
`UPnP.X_PRPLWARE-COM_IGDConfig.WANAccessProvider` parameter
References: PCF-1998
Signed-off-by: Mykola Hlukhenkyi <m.hlukhenkyi@inango-systems.com>
In task PCF-1998 a new filed 'WANAccessProvider' was added to the
tr181-upnp model, so the current test fails due to an unexpected filed
in the obuspa model
Add new expected parameter 'Device.UPnP.X_PRPLWARE-COM_IGDConfig.WANAccessProvider'
for tr181-upnp plugin
References: PCF-1998
Signed-off-by: Mykola Hlukhenkyi <m.hlukhenkyi@inango-systems.com>
References: PPW-611
Integrates following changes:
- set protected access to get template names for GPN (e306d202)
Signed-off-by: default avatarprplbot <bot@prplfoundation.org>
Problem:
opennds service not starting when wan goes down
Cause:
openwrt24 has updated microhttpd version, version check in opennds 10.2.0
was wrongly implemented results in exiting opennds.
Solution:
Already a fix is available in opennds latest version (commit id 38c18def)
which solves the version check issue. Ported the fix to opennds version 10.2.0.
Build and verified opennds to be working as expected.
References: PCF-2069
Signed-off-by: Matthias Franck <matthias.franck@softathome.com>
Problem:
Captive portal UI was not located at the correct web server
root dir.
Cause:
Due to wrong root directory opennds was not able to fetch captive
portal UI.
Solution:
After updating the root directory for captive portal UI, opennds is now
able to get captive portal UI as expected.
Build and verified opennds to be working.
References: PCF-2069
Signed-off-by: Matthias Franck <matthias.franck@softathome.com>
Integrates:
- libamxo: Update documentation, add instruction how to use FD type with
RPC and event
Implements: PCF-2034
Signed-off-by: Anton Chigrin <a.chigrin@inango-systems.com>
Implementation of CRAM tests for transfer of file descriptors in output args
in synchronous, asynchronous RPC and event notifications.
Implements: PCF-2034
Signed-off-by: Vitalii Popov <v.popov@inango-systems.com>
Implementation for transfer of file descriptors in output args
in synchronous, asynchronous RPC and event notifications.
Implements: PCF-2034
Signed-off-by: Vitalii Popov <v.popov@inango-systems.com>
Integrates following changes:
- ci: enable crosscompilations and unit tests (40e7392e)
- tr181-dhcpv4: dhcpv4 server pool Order modification is not correct (4b66ce89)
References: PPW-671
Signed-off-by: prplbot <bot@prplfoundation.org>
Introduce a generic network management component to support dynamic instantiation
of Linux Netdev interfaces (e.g. tun, tap, USB, GRE, WireGuard) under Device.Bridging.Bridge
and Device.IP. This enables prplOS to manage interfaces not previously modelled.
Automatically reflects netdev state (e.g. up, lower_up) in the data model
Provides stop-gap until dedicated managers or TR-181 extensions are available
Proposes TR-181 extension for generic network interface, targeting BBF adoption
This component bridges the gap between Linux network reality and TR-181 modelling,
enhancing flexibility and provisioning capabilities in prplOS.
Implements: PCF-2007, FEAT-93
Signed-off-by: Ashik Ahmed A <ashik-ahmed.a@capgemini.com>
Add two profiles to build Extender firmware:
* extender_minimal.yml: minimal version of the Extender firmware;
* extender_full.yml: full version of the Extender firmware.
The same as minimal + support LCM and TR-069/369 management.
Add new CI goals for these new profiles.
References: PCF-1849, FEAT-84
Signed-off-by: Roman Shcherbakov <r.shcherbakov@inango-systems.com>
Based on new include section spliting the prpl profile for a few new one:
* prpl_core.yml: minimum packages and configs to get working prpl firmware;
* lcm.yml: all packages and configs to support lcm;
* mgmt.yml: all packages and configs to support management via TR-069/369.
Based on these files transform the original prpl.yml profile.
References: PCF-1849, FEAT-84
Signed-off-by: Roman Shcherbakov <r.shcherbakov@inango-systems.com>
Add processing two new sections in gen_config.py:
* include: add the possibility to include one profile into another;
* packages_remove: add separate section to remove some packages.
References: PCF-1849, FEAT-84
Signed-off-by: Roman Shcherbakov <r.shcherbakov@inango-systems.com>
ci: cram: Adding Cram tests for Resource Monitoring feature
The current system lacks any mechanism to monitor Memory and CPU usage, which
limits visibility into system performance and prevents
proactive handling of Memory and CPU overload scenarios.
To address this, a Resource monitoring feature has been implemented.
It tracks Memory Usage and CPU usage at user-configured polling intervals and raises
a critical event if usage exceeds a user-defined threshold.
The Memory and CPU usage data is exposed via the TR-181 v 2.19 BBF compliant DataModel, enabling external
systems to query and act upon it.
This change lays the foundation for improved system observability and
performance management.
Implements:PCF-1991, PCF-2001, PCF-2010
https://prplfoundationcloud.atlassian.net/browse/PCF-1991https://prplfoundationcloud.atlassian.net/browse/PCF-2001https://prplfoundationcloud.atlassian.net/browse/PCF-2010
Signed-off-by: Jayamathi E <e.jayamathi@capgemini.com>
Signed-off-by: Hari Sriram <hari.s@capgemini.com>
The test 055-ssh-server.t is currently unstable and fails frequently,
leading to repeated CI job re-runs just to achieve a CI green status.
This unnecessarily consumes CI resources.
In commit 1b75a99538 ("PROVISORY: ci: 055-ssh-server.t: disable
unstable Session DM test") the relevant failing part was removed, but it
turned out, that it sometimes currently fails in subsequent test as well:
--- .gitlab/tests/cram/generic/acceleration-plan-components/055-ssh-server.t
+++ .gitlab/tests/cram/generic/acceleration-plan-components/055-ssh-server.t.err
@@ -68,6 +68,9 @@
Wait a bit and check that the Session datamodel is empty:
$ sleep 4 ; R "ubus call SSH.Server.3.Session _get | jsonfilter -e @[*].IPAddress -e @[*].User -e @[*].Alias" | sort
+ 192.168.1.2
+ cpe-Session-3
+ root
So temporarily disable that test until the underlying issues are resolved.
References: PPW-600
Fixes: 1b75a99538 ("PROVISORY: ci: 055-ssh-server.t: disable unstable Session DM test")
Link: https://gitlab.com/prpl-foundation/prplos/prplos/-/jobs/11605567496#L115
Reported-by: Nikolai Merinov <n.merinov@inango-systems.com>
Signed-off-by: Petr Štetiar <petr.stetiar@prplfoundation.org>
MxL currently uses a downstream fork of the ebtables package that does not
match the OpenWrt 24.10 package hash, leading to CI integrity check errors such as:
Feed feeds/opensource_apps_prpl packages integrity issues:
diff --git a/ebtables/Makefile b/ebtables/Makefile
index f35b768..15640fe 100644
--- a/ebtables/Makefile
+++ b/ebtables/Makefile
@@ -14,7 +14,7 @@ PKG_RELEASE:=1
PKG_SOURCE_URL:=https://git.netfilter.org/ebtables
PKG_SOURCE_PROTO:=git
PKG_SOURCE_VERSION:=48cff25dfea5b37e16ba5dc6601e98ab140f5f99
-PKG_MIRROR_HASH:=1327cdc3402e5e3056819e4e9b6f9d4a5bfd401f2c4f58447afb2c3c73fc8aac
+PKG_MIRROR_HASH:=3039d73b167c41025b1b401b647743b9c6d786613c693eef34de325b30de6d47
These issues were not previously detected because the integrator team runs
builds with the `skip_integrity_check` label, which disables package hash
verification. This hides regressions and allows mismatched package hashes
to go unnoticed.
To unblock ongoing builds and prevent widespread CI failures, this change
temporarily whitelists the new ebtables hash
(3039d73b167c41025b1b401b647743b9c6d786613c693eef34de325b30de6d47)
in the `opensource_apps_prpl` feed.
References: PPW-981
Link: https://gitlab.com/prpl-foundation/prplos/prplos/-/jobs/11587594893
Signed-off-by: Petr Štetiar <petr.stetiar@prplfoundation.org>
There is a bug when on the container start the RootfsIsMounted parameter
is set to false even though the container rootfs is actually mounted.
The bug is unstable. For this crma test in some cases it will show as
changed, in others it won't.
We add the parameter to the list of runtime parameters so we track its
changes (if any). In this way, the test won't fail if the parameter was
changed due to the bug and we didn't take it into account.
Implements: LCM-843
References: PPW-985
Signed-off-by: Gleb Kasimov <h.kasimov@inango-systems.com>
This commit introduces the cram test that performs the simulated
firmware upgrade to validate the correct integration of Persistent
Configuration Manager with LCM Agent so LCM services are restored after
such "fake" firmware upgrade and are functional.
Implements: LCM-843
Signed-off-by: Gleb Kasimov <h.kasimov@inango-systems.com>
Integrates following changes:
- capabilities: integrate the Persistent Configuration Manager (a9ad8058)
- timingila-rlyeh: maintain consistent DeploymentUnit data model (b71c6fae)
- timingila-cthulhu: on cthulhu:ctr:updated change the update order of EU and DU (86886d68)
- cthulhu: pcm: integrate cthulhu capabilities into restore mechanism (52c5753c)
- cthulhu: pcm: introduce separate function to create devices for a sandbox (585084c7)
- doc: improve documentation (1e1deb49)
- test: add unit test for PCM integration (4a10cb6e)
- cthulhu: integrate Persistent Configuration Manager (421cc040)
- cthulhu: prevent backup of EnvVariableOCI and make them read-only (b434ac70)
- test: add unit test for container import (1b3cab1)
- PROVISORY: cthulhu-networking: increase the amxb_get request timeouts (5b6601e)
- cthulhu-networking: adjust the object search paths when removing lingering stuff (0b78ace)
- cthulhu-networking: introduce CTHULHU_PLUGIN_CTR_IMPORT plugin callback implementation (07384b0)
- libcthulhu: expand prestartup_config and add new defines (95a9c5c)
Implements: LCM-843
Signed-off-by: Gleb Kasimov <h.kasimov@inango-systems.com>
Integrates following changes:
- ci: enable crosscompilations and unit tests (2d739bf6)
- amx-cli: Pseudo terminal not properly closed on exit: O_NONBLOCK flag is kept on stdout (62a2c537)
References: PPW-759
Signed-off-by: prplbot <bot@prplfoundation.org>
Integrates following changes:
- amx-cli: Pseudo terminal not properly closed on exit: O_NONBLOCK flag is kept on stdout (PPW-759) (6720fe10)
- amx-cli: Non root user has full data model access (no ACL checking) (PPW-697) (a1006eb9)
- test: Non root user has full data model access (no ACL checking) (PPW-697) (0c02c4a9)
- amx_cli_read_line: show prompt when requested (PPW-782) (34c79133)
References: PPW-697, PPW-759, PPW-782, HOP-10263
Signed-off-by: prplbot <bot@prplfoundation.org>
The test 112-wifi-scheduler.t is currently unstable and fails frequently,
leading to repeated CI job re-runs just to achieve a CI green status. This
unnecessarily consumes CI resources.
Temporarily disable the test until the underlying issues are resolved.
References: PPM-3523, PPM-3508
Signed-off-by: Petr Štetiar <petr.stetiar@prplfoundation.org>
The test 055-ssh-server.t is currently unstable and fails frequently,
leading to repeated CI job re-runs just to achieve a CI green status.
This unnecessarily consumes CI resources.
Temporarily disable the test until the underlying issues are resolved.
References: PPW-600
Signed-off-by: Petr Štetiar <petr.stetiar@prplfoundation.org>
Align LCM tests with the current implementation.
This update includes:
* Providing all Linux capabilities to the container
running network tests, as some of them are used.
* Updating capabilities tests to reflect the latest
implementation and BBF proposal by:
** Renaming the AvailableCapabilities parameter
to AvailableUserRoleCapabilities.
** Removing the use of Users.Role to prevent
breaking existing containers.
* Update Cthulhu internal data model verification
to reflect the recent updates with the introduction
of the capabilities feature.
References: PCF-2066
Signed-off-by: Nabil BIZID <nabil.bizid@softathome.com>
A plugin has been introduced to Cthulhu to manage
Linux capabilities for containers.
This commit ensures that the requested container
role is passed to the capabilities plugin.
Closes: PCF-2066
Signed-off-by: Matthias Franck <matthias.franck@softathome.com>
We now have proper TLS support, configuration and certificates in the
system and tr069-manager, so lets switch all CDRouter tests to TR-609
over TLS v1.3.
References: PCF-2021
Signed-off-by: Sergio Panseri <sergio.panseri@consult.red>
Signed-off-by: Petr Štetiar <petr.stetiar@prplfoundation.org> [tls1.3, certs, all configs]
Adding softHSM and pkcs11 funtionality changes the build artifacts and
data model exposed by the device. Reflect that in existing tests.
Above all add tests for pkcs11 and softHSM functionality through:
- command line tests: 001-hsm-setup.t
- components using it:
- mqtt broker: 002-hsm-mqtt-broker.t
- http server: 003-hsm-http-server.t
- mqtt client and bulk data: 004-hsm-mqtt-client.t
Additionally improve 020-security.t so that it cleans up after itself
and hence doesn't modify the state of the system.
References: PCF-2021
Signed-off-by: Piotr Nakraszewicz <piotr.nakraszewicz@consult.red>
Signed-off-by: Sergio Panseri <sergio.panseri@consult.red>
Signed-off-by: Tomasz Kilarski <tomasz.kilarski@consult.red>
Signed-off-by: Krzysztof Buczak <krzysztof.buczak@consult.red>
In 0152592bd9 tr181-device is bumped to v0.30.2.
In this upstep, the config option CONFIG_SAH_AMX_TR181_DEVICE_RESET_HARD_ENABLE was removed from the plugin.
So let's align the tests accordingly and remove this config options, since it does not longer exists.
References: PPW-206
Signed-off-by: Matthias Franck <matthias.franck@softathome.com>
Integrates following changes:
-PPW-662: tr181-firewall: config: Remove static rule that opens port 5353 on any interface (322ee1fe)
References: PPW-662
Signed-off-by: Ward Lindekens <ward.lindekens_ext@softathome.com>
Integrates following changes:
-PPW-662: tr181-firewall: config: Remove static rule that opens port 5353 on any interface (322ee1fe)
References: PPW-662
Signed-off-by: Hela Saadani <hela.saadani_ext@softathome.com>
PPW-847 adds a new default chain at index 1. This means these tests
should now use the chain at index 2.
Ideally we update these tests to be independant of the default
configuration.
References: PPW-847
Signed-off-by: Boris Vanhoof <boris.vanhoof@softathome.com>
Integrates following changes:
- ci: enable crosscompilations and unit tests (338a6c91)
- The odl print method is stripping all remaining escape chars "\" (PPW-707) (98078670)
- amxo_save: Possible NULL pointer dereference when saving date-time values (PPW-742) (444322f7)
- unit-test: Saving instances with unique values must save the unique values in the instance header. (PPW-724) (a9ad4235)
- unique-values: Unique value parameters must be saved in the instance header. (PPW-724) (f72ab7a5)
- Documentation: Fix typos in the documentation (PPW-725) (314ed027)
- odl-parser: While parsing odl file the next chunk read could overwrite not processed data (PPW-743) (89c096f2)
- unit-test: While parsing odl file the next chunk read could overwrite not processed data (PPW-743) (bfbe007a)
- odl-save: Incorrect values are saved by generic odl save methods (PPW-744) (b17c8558)
- unit-test: Incorrect values are saved by generic odl save methods (PPW-744) (d237f191)
- doc: Clarify save functionality (PPW-744) (252b104d)
- odl read: odl parser reads incorrect content in large odl files (PPW-745) (921dd747)
- unit-test: odl parser reads incorrect content in large odl files (PPW-745) (496f75bd)
References: PPW-707, PPW-724, PPW-744, PPW-745, PPW-742, PPW-725, PPW-743
Signed-off-by: prplbot <bot@prplfoundation.org>