Attention is currently required from: dexter.
laforge has posted comments on this change. ( https://gerrit.osmocom.org/c/pysim/+/37499?usp=email )
Change subject: contrib/es9p_client: Add support for reporting notifications to SM-DP+
......................................................................
Set Ready For Review
--
To view, visit https://gerrit.osmocom.org/c/pysim/+/37499?usp=email
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings
Gerrit-Project: pysim
Gerrit-Branch: master
Gerrit-Change-Id: Iefba7fa0471b34eae30700ed43531a515af0eb93
Gerrit-Change-Number: 37499
Gerrit-PatchSet: 2
Gerrit-Owner: laforge <laforge(a)osmocom.org>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: dexter <pmaier(a)sysmocom.de>
Gerrit-Attention: dexter <pmaier(a)sysmocom.de>
Gerrit-Comment-Date: Tue, 16 Jul 2024 14:55:50 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: No
Gerrit-MessageType: comment
laforge has uploaded this change for review. ( https://gerrit.osmocom.org/c/pysim/+/37511?usp=email )
Change subject: osmo-smdpp + es9p_client: HTTP status 204 is used for handleNotification
......................................................................
osmo-smdpp + es9p_client: HTTP status 204 is used for handleNotification
As SGP.22 states, the handleNotification endpoint uses HTTP status 204,
not 200 (due to its empty body).
Change-Id: I890bdbd3e1c4578d2d5f0367958fdce26e338cac
---
M osmo-smdpp.py
M pySim/esim/es9p.py
2 files changed, 16 insertions(+), 0 deletions(-)
git pull ssh://gerrit.osmocom.org:29418/pysim refs/changes/11/37511/1
diff --git a/osmo-smdpp.py b/osmo-smdpp.py
index e9638aa..4420b1c 100755
--- a/osmo-smdpp.py
+++ b/osmo-smdpp.py
@@ -526,6 +526,9 @@
print("handleNotification: EID %s: %s of %s" % (eid, pmo, iccid))
else:
raise ValueError(pendingNotification)
+ # SGP.22 Section 6.3: "A normal notification function execution status (MEP Notification)
+ # SHALL be indicated by the HTTP status code '204' (No Content) with an empty HTTP response body"
+ request.setResponseCode(204)
#(a)app.route('/gsma/rsp3/es9plus/handleDeviceChangeRequest, methods=['POST']')
#@rsp_api_wrapper
diff --git a/pySim/esim/es9p.py b/pySim/esim/es9p.py
index 41f2eeb..2c4b10f 100644
--- a/pySim/esim/es9p.py
+++ b/pySim/esim/es9p.py
@@ -136,6 +136,7 @@
'pendingNotification': param.PendingNotification,
}
input_mandatory = ['pendingNotification']
+ expected_http_status = 204
# ES9+ CancelSession function (SGP.22 section 6.5.2.10)
class CancelSession(Es9PlusApiFunction):
--
To view, visit https://gerrit.osmocom.org/c/pysim/+/37511?usp=email
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings
Gerrit-Project: pysim
Gerrit-Branch: master
Gerrit-Change-Id: I890bdbd3e1c4578d2d5f0367958fdce26e338cac
Gerrit-Change-Number: 37511
Gerrit-PatchSet: 1
Gerrit-Owner: laforge <laforge(a)osmocom.org>
Gerrit-MessageType: newchange
laforge has uploaded this change for review. ( https://gerrit.osmocom.org/c/pysim/+/37509?usp=email )
Change subject: osmo-smdpp: Request enable/disable/delete notifications in metadata
......................................................................
osmo-smdpp: Request enable/disable/delete notifications in metadata
this way, the eUICC will send us notifications whenever our profiles are
enabled/disabled/deleted.
Change-Id: I2861290864522b691b30b079c7c2e1466904df2d
---
M osmo-smdpp.py
M pySim/esim/es8p.py
2 files changed, 27 insertions(+), 0 deletions(-)
git pull ssh://gerrit.osmocom.org:29418/pysim refs/changes/09/37509/1
diff --git a/osmo-smdpp.py b/osmo-smdpp.py
index cc4b121..e9638aa 100755
--- a/osmo-smdpp.py
+++ b/osmo-smdpp.py
@@ -376,6 +376,9 @@
# Put together profileMetadata + _bin
ss.profileMetadata = ProfileMetadata(iccid_bin=h2b(swap_nibbles(iccid_str)), spn="OsmocomSPN", profile_name=matchingId)
+ # enable notifications for all operations
+ for event in ['enable', 'disable', 'delete']:
+ ss.profileMetadata.add_notification(event, self.server_hostname)
profileMetadata_bin = ss.profileMetadata.gen_store_metadata_request()
# Put together smdpSigned2 + _bin
diff --git a/pySim/esim/es8p.py b/pySim/esim/es8p.py
index ff266ce..a5c88f0 100644
--- a/pySim/esim/es8p.py
+++ b/pySim/esim/es8p.py
@@ -25,6 +25,7 @@
import pySim.esim.rsp as rsp
from pySim.esim.bsp import BspInstance
+from pySim.esim import PMO
# Given that GSMA RSP uses ASN.1 in a very weird way, we actually cannot encode the full data type before
# signing, but we have to build parts of it separately first, then sign that, so we can put the signature
@@ -78,6 +79,11 @@
self.iccid_bin = iccid_bin
self.spn = spn
self.profile_name = profile_name
+ self.notifications = []
+
+ def add_notification(self, event: str, address: str):
+ """Add an 'other' notification to the notification configuration of the metadata"""
+ self.notifications.append((event, address))
def gen_store_metadata_request(self) -> bytes:
"""Generate encoded (but unsigned) StoreMetadataReqest DO (SGP.22 5.5.3)"""
@@ -86,6 +92,12 @@
'serviceProviderName': self.spn,
'profileName': self.profile_name,
}
+ nci = []
+ for n in self.notifications:
+ pmo = PMO(n[0])
+ nci.append({'profileManagementOperation': pmo.to_bitstring(), 'notificationAddress': n[1]})
+ if len(nci):
+ smr['notificationConfigurationInfo'] = nci
return rsp.asn1.encode('StoreMetadataRequest', smr)
--
To view, visit https://gerrit.osmocom.org/c/pysim/+/37509?usp=email
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings
Gerrit-Project: pysim
Gerrit-Branch: master
Gerrit-Change-Id: I2861290864522b691b30b079c7c2e1466904df2d
Gerrit-Change-Number: 37509
Gerrit-PatchSet: 1
Gerrit-Owner: laforge <laforge(a)osmocom.org>
Gerrit-MessageType: newchange
Attention is currently required from: pespin.
osmith has posted comments on this change. ( https://gerrit.osmocom.org/c/osmo-ci/+/37505?usp=email )
Change subject: gerrit-verifications-dahdi: set concurrent: false
......................................................................
Patch Set 2:
(1 comment)
File jobs/gerrit-verifications-dahdi.yml:
https://gerrit.osmocom.org/c/osmo-ci/+/37505/comment/8bde469e_9c754f8e
PS1, Line 26: concurrent: false
> I'd add a comment explaining that the sole rationale to have this as false is disk space, nothing re […]
Done
--
To view, visit https://gerrit.osmocom.org/c/osmo-ci/+/37505?usp=email
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings
Gerrit-Project: osmo-ci
Gerrit-Branch: master
Gerrit-Change-Id: I4fd4e85f0930b15b6c67e70fb2c140392c910bf5
Gerrit-Change-Number: 37505
Gerrit-PatchSet: 2
Gerrit-Owner: osmith <osmith(a)sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-CC: pespin <pespin(a)sysmocom.de>
Gerrit-Attention: pespin <pespin(a)sysmocom.de>
Gerrit-Comment-Date: Tue, 16 Jul 2024 12:46:19 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: pespin <pespin(a)sysmocom.de>
Gerrit-MessageType: comment
Attention is currently required from: osmith.
Hello Jenkins Builder,
I'd like you to reexamine a change. Please visit
https://gerrit.osmocom.org/c/osmo-ci/+/37505?usp=email
to look at the new patch set (#2).
The following approvals got outdated and were removed:
Verified+1 by Jenkins Builder
Change subject: gerrit-verifications-dahdi: set concurrent: false
......................................................................
gerrit-verifications-dahdi: set concurrent: false
Each of the gerrit-dahdi-linux-* jobs has a 3-4 GiB workspace directory
with a full linux tree. We keep them on disk so we don't need to clone
the linux tree with each build.
This makes sense, but set concurrent to false to not create more of
these than necessary. These directories stood out when investigating
why build4 was running out of space.
Change-Id: I4fd4e85f0930b15b6c67e70fb2c140392c910bf5
---
M jobs/gerrit-verifications-dahdi.yml
1 file changed, 23 insertions(+), 1 deletion(-)
git pull ssh://gerrit.osmocom.org:29418/osmo-ci refs/changes/05/37505/2
--
To view, visit https://gerrit.osmocom.org/c/osmo-ci/+/37505?usp=email
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings
Gerrit-Project: osmo-ci
Gerrit-Branch: master
Gerrit-Change-Id: I4fd4e85f0930b15b6c67e70fb2c140392c910bf5
Gerrit-Change-Number: 37505
Gerrit-PatchSet: 2
Gerrit-Owner: osmith <osmith(a)sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-CC: pespin <pespin(a)sysmocom.de>
Gerrit-Attention: osmith <osmith(a)sysmocom.de>
Gerrit-MessageType: newpatchset
Attention is currently required from: pespin.
osmith has posted comments on this change. ( https://gerrit.osmocom.org/c/osmo-ci/+/37506?usp=email )
Change subject: jobs/various: clean workspace on success
......................................................................
Patch Set 1:
(1 comment)
Patchset:
PS1:
> wipe-workspace: true
this only wipes it at the start of the job, but not at the end of the job. this means while the job is not running, we have some tens of gb of wasted space just waiting to be removed on the next job run.
--
To view, visit https://gerrit.osmocom.org/c/osmo-ci/+/37506?usp=email
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings
Gerrit-Project: osmo-ci
Gerrit-Branch: master
Gerrit-Change-Id: Ibedef518782ea9f68c6386f1ce7fba216e1886bc
Gerrit-Change-Number: 37506
Gerrit-PatchSet: 1
Gerrit-Owner: osmith <osmith(a)sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-CC: pespin <pespin(a)sysmocom.de>
Gerrit-Attention: pespin <pespin(a)sysmocom.de>
Gerrit-Comment-Date: Tue, 16 Jul 2024 12:45:36 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: pespin <pespin(a)sysmocom.de>
Gerrit-MessageType: comment