Skip to content

droslbl/migration-tools

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

TM Forum Migration

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.

Architecture

┌─────────────────────────────────┐    ┌─────────────────────────────────┐
│        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    │
                    └─────────────────────┘

Quick Start

1. Access Environments

Source Environment (v0.31.2):

kubectl port-forward -n tmforum-source svc/scorpio-source 9090:9090

Target Environment (v1.3.13):

kubectl port-forward -n tmforum-target svc/scorpio-target 9092:9090

2. Run Migration

# 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

3. Perform validation

# Validate Migration
./script/validation/entity_compare.sh

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages