<matrixBuild _class='hudson.matrix.MatrixBuild'><action _class='hudson.model.CauseAction'><cause _class='org.jenkinsci.plugins.workflow.support.steps.build.BuildUpstreamCause'><shortDescription>Started by upstream project "gerrit-osmo-s1gw" build number 634</shortDescription><upstreamBuild>634</upstreamBuild><upstreamProject>gerrit-osmo-s1gw</upstreamProject><upstreamUrl>job/gerrit-osmo-s1gw/</upstreamUrl></cause></action><action></action><action></action><action _class='hudson.model.ParametersAction'><parameter _class='hudson.model.StringParameterValue'><name>COMMENT_TYPE</name><value></value></parameter><parameter _class='hudson.model.StringParameterValue'><name>DISTRO</name><value></value></parameter><parameter _class='hudson.model.StringParameterValue'><name>GERRIT_BRANCH</name><value>master</value></parameter><parameter _class='hudson.model.StringParameterValue'><name>GERRIT_CHANGE_NUMBER</name><value>41624</value></parameter><parameter _class='hudson.model.StringParameterValue'><name>GERRIT_HOST</name><value>gerrit.osmocom.org</value></parameter><parameter _class='hudson.model.StringParameterValue'><name>GERRIT_PATCHSET_NUMBER</name><value>8</value></parameter><parameter _class='hudson.model.StringParameterValue'><name>GERRIT_PATCHSET_REVISION</name><value>bceb3d454d0c2af05759bc11f1ff8f64ba8a44f2</value></parameter><parameter _class='hudson.model.StringParameterValue'><name>GERRIT_PATCHSET_UPLOADER_NAME</name><value>fixeria</value></parameter><parameter _class='hudson.model.StringParameterValue'><name>GERRIT_PORT</name><value>29418</value></parameter><parameter _class='hudson.model.StringParameterValue'><name>GERRIT_PROJECT</name><value>erlang/osmo-s1gw</value></parameter><parameter _class='hudson.model.StringParameterValue'><name>GERRIT_REFSPEC</name><value>refs/changes/24/41624/8</value></parameter><parameter _class='hudson.model.StringParameterValue'><name>GERRIT_REPO_URL</name><value>ssh://jenkins@gerrit.osmocom.org:29418/erlang/osmo-s1gw</value></parameter><parameter _class='hudson.model.StringParameterValue'><name>PIPELINE_BUILD_URL</name><value>https://jenkins.osmocom.org/jenkins/job/gerrit-osmo-s1gw/634/</value></parameter><parameter _class='hudson.model.StringParameterValue'><name>PROJECT_NAME</name><value>osmo-s1gw</value></parameter><parameter _class='hudson.model.StringParameterValue'><name>BRANCH_CI</name><value>master</value></parameter></action><action _class='jenkins.metrics.impl.TimeInQueueAction'><blockedDurationMillis>0</blockedDurationMillis><blockedTimeMillis>0</blockedTimeMillis><buildableDurationMillis>0</buildableDurationMillis><buildableTimeMillis>0</buildableTimeMillis><buildingDurationMillis>92780</buildingDurationMillis><executingTimeMillis>92780</executingTimeMillis><executorUtilization>1.0</executorUtilization><subTaskCount>0</subTaskCount><waitingDurationMillis>6885</waitingDurationMillis><waitingTimeMillis>6885</waitingTimeMillis></action><action></action><action _class='hudson.plugins.git.util.BuildData'><buildsByBranchName><master _class='hudson.plugins.git.util.Build'><buildNumber>633</buildNumber><marked><SHA1>bceb3d454d0c2af05759bc11f1ff8f64ba8a44f2</SHA1><branch><SHA1>bceb3d454d0c2af05759bc11f1ff8f64ba8a44f2</SHA1><name>master</name></branch></marked><revision><SHA1>bceb3d454d0c2af05759bc11f1ff8f64ba8a44f2</SHA1><branch><SHA1>bceb3d454d0c2af05759bc11f1ff8f64ba8a44f2</SHA1><name>master</name></branch></revision></master></buildsByBranchName><lastBuiltRevision><SHA1>bceb3d454d0c2af05759bc11f1ff8f64ba8a44f2</SHA1><branch><SHA1>bceb3d454d0c2af05759bc11f1ff8f64ba8a44f2</SHA1><name>master</name></branch></lastBuiltRevision><remoteUrl>ssh://jenkins@gerrit.osmocom.org:29418/erlang/osmo-s1gw</remoteUrl><scmName></scmName></action><action></action><action></action><action _class='org.jenkinsci.plugins.displayurlapi.actions.RunDisplayAction'></action><building>false</building><displayName>#633</displayName><duration>92780</duration><estimatedDuration>116607</estimatedDuration><fullDisplayName>gerrit-osmo-s1gw-build #633</fullDisplayName><id>633</id><inProgress>false</inProgress><keepLog>false</keepLog><number>633</number><queueId>58444</queueId><result>SUCCESS</result><timestamp>1773411313653</timestamp><url>https://jenkins.osmocom.org/jenkins/view/gerrit/job/gerrit-osmo-s1gw-build/633/</url><builtOn></builtOn><changeSet _class='hudson.plugins.git.GitChangeSetList'><item _class='hudson.plugins.git.GitChangeSet'><affectedPath>src/s1gw_metrics.erl</affectedPath><affectedPath>include/s1gw_metrics.hrl</affectedPath><affectedPath>src/s1ap_utils.erl</affectedPath><affectedPath>src/enb_proxy.erl</affectedPath><commitId>bceb3d454d0c2af05759bc11f1ff8f64ba8a44f2</commitId><timestamp>1773409027000</timestamp><author><absoluteUrl>https://jenkins.osmocom.org/jenkins/user/fixeria</absoluteUrl><fullName>Vadim Yanitskiy</fullName></author><authorEmail>vyanitskiy@sysmocom.de</authorEmail><comment>enb_proxy: add initial MME pooling support

Rework the CONNECTING state to dynamically select an MME from the pool
via mme_registry:mme_select/1, passing the eNB's Tracking Area Codes
(from the ?'id-SupportedTAs' IE of the S1 SETUP REQUEST) and a list of
already-tried MMEs, so successive attempts pick a different candidate.

On connection failure (SCTP establishment timeout or error), or when the
selected MME rejects the S1 SETUP REQUEST or fails to respond in time,
the FSM re-enters the CONNECTING state rather than terminating.  This
triggers another mme_select/1 call with the failed MME added to the
tried_mmes list.  S1 SETUP FAILURE PDUs from the MME are intentionally
not forwarded to the eNB, so the retry is fully transparent.

Once mme_select/1 exhausts all candidates it returns 'error'; at that
point the FSM builds and sends an S1 SETUP FAILURE PDU to the eNB and
terminates.

Other changes:
* add close_sock/1, close_conn/1 helpers; simplify terminate/3
* add ?S1GW_CTR_ENB_PROXY_MME_SELECT_ERROR counter

Change-Id: I83dc4a78c78a7b87e87f5ca9a941a168d6c1dc36
Related: SYS#7052
</comment><date>2026-03-13 20:37:07 +0700</date><id>bceb3d454d0c2af05759bc11f1ff8f64ba8a44f2</id><msg>enb_proxy: add initial MME pooling support</msg><path><editType>edit</editType><file>src/enb_proxy.erl</file></path><path><editType>edit</editType><file>src/s1ap_utils.erl</file></path><path><editType>edit</editType><file>include/s1gw_metrics.hrl</file></path><path><editType>edit</editType><file>src/s1gw_metrics.erl</file></path></item><kind>git</kind></changeSet><culprit><absoluteUrl>https://jenkins.osmocom.org/jenkins/user/fixeria</absoluteUrl><fullName>Vadim Yanitskiy</fullName></culprit><run><number>633</number><url>https://jenkins.osmocom.org/jenkins/view/gerrit/job/gerrit-osmo-s1gw-build/a1=default,a2=default,a3=default,a4=default,label=osmocom-gerrit/633/</url></run></matrixBuild>