Not able to entitle applications after routes migration.

Description

Based on request
and documentation

We are trying to perform kong route migration.

2 errors happened during this migration:

  1. error during deletion of module discovery information. Delete rest API call for /modules/<module_id> return 500. That is what was found in mgr-application logs:

However, service and routes were deleted in Kong. IT’s not a blocker for migration, but it consistently breaks automation and doesn’t look valid.

After that, module registration was performed, and a second issue happened during the entitlement process.

Sidecar logs

2 versions of the same service were found. but since we deleted all other services from Kong, there are no such services or routes in Kong.

After investigation with Kuzminov, we find out that module discovery information for mod-dcb contains information not only for the latest versions of mod-inventory but for other versions of mod-inventory as well.

Scope:

  • in ModuleBootstrapServicetake only the last version of the module with the provided discovery URL

  • Add tests

CSP Request Details

None

CSP Rejection Details

None

Potential Workaround

None

Attachments

1

Checklist

hide

Activity

Show:

DenisFebruary 14, 2025 at 1:01 PM

Version 2.0.3 was deployed on Feb-13 on Eureka Bugfest. Please proceed with testing.

cc

Mykola MakhinFebruary 12, 2025 at 10:40 AM

, fix released as mgr-applications v2.0.3

Mykola MakhinFebruary 10, 2025 at 2:54 PM

The issue is in how mgr-applications returns module dependencies - it is currently returning two different versions of mod-inventory as dependency for mod-dcb (28.0.7 and 28.0.8), but it was supposed to only return latest fitting version.

Mykola MakhinFebruary 10, 2025 at 1:51 PM

Which application (name and version) is being entitled, ?

Done

Details

Assignee

Reporter

Priority

Story Points

Sprint

Development Team

Eureka

Fix versions

Release

Ramsons (R2 2024) Service Patch #1

RCA Group

Implementation coding issue

TestRail: Cases

Open TestRail: Cases

TestRail: Runs

Open TestRail: Runs

Created February 10, 2025 at 1:32 PM
Updated March 10, 2025 at 12:29 PM
Resolved February 21, 2025 at 11:00 AM
TestRail: Cases
TestRail: Runs