A comprehensive guide and toolset for migrating TM Forum API entities from v0.31.2 to v1.3.13 format using the FIWARE data-migrator.
┌─────────────────────────────────┐ ┌─────────────────────────────────┐
│ SOURCE Environment │ │ TARGET Environment │
│ (tmforum-source) │ │ (tmforum-target) │
│ │ │ │
│ ┌─────────────────────────────┐ │ │ ┌─────────────────────────────┐ │
│ │ TM Forum API v0.31.2 │ │ │ │ TM Forum API v1.3.13 │ │
│ │ (Active - Legacy Format) │ │ │ │ (Disabled during migration) │ │
│ └─────────────────────────────┘ │ │ └─────────────────────────────┘ │
│ ┌─────────────────────────────┐ │ │ ┌─────────────────────────────┐ │
│ │ Scorpio v4.1.10 │ │ │ │ Scorpio v4.1.10 │ │
│ │ (Contains v0.31.2 entities) │ │ │ │ (Receives v1.3.13 entities) │ │
│ └─────────────────────────────┘ │ │ └─────────────────────────────┘ │
│ ┌─────────────────────────────┐ │ │ ┌─────────────────────────────┐ │
│ │ PostgreSQL 13.18.0 │ │ │ │ PostgreSQL 13.18.0 │ │
│ │ (Legacy entity storage) │ │ │ │ (New entity storage) │ │
│ └─────────────────────────────┘ │ │ └─────────────────────────────┘ │
└─────────────────────────────────┘ └─────────────────────────────────┘
│ │
└────────────────────────────────────────┘
│
┌─────────────────────┐
│ FIWARE Data Migrator│
│ │
│ │
│ • Reads v0.31.2 │
│ • Transforms format │
│ • Writes v1.3.13 │
└─────────────────────┘
Source Environment (v0.31.2):
kubectl port-forward -n tmforum-source svc/scorpio-source 9090:9090- Scorpio: http://localhost:9090
Target Environment (v1.3.13):
kubectl port-forward -n tmforum-target svc/scorpio-target 9092:9090- Scorpio: http://localhost:9092
# Run FIWARE data migration
java --add-opens java.base/java.lang=ALL-UNNAMED -jar ./migrator-jar/migrator-0.1.jar -rB http://localhost:9090 -wB http://localhost:9092 -ll ./migrator-jar/legacy-loader-0.1.jar -uw ./migrator-jar/update-writer-0.1.jar 2>&1 | tee ./migration.log# Validate Migration
./script/validation/entity_compare.sh