Uploaded image for project: 'Service Orchestrator'
  1. Service Orchestrator
  2. SO-3676

Catalog-db container carshing due to flyway migration failed

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Medium Medium
    • Istanbul Release
    • Istanbul Release
    • None

      CSIT tests are failing due to change in Json property named "tenant_metadata" in catalog db adapter which is causing migration failed .

      Property name changes has been made as part of https://gerrit.onap.org/r/c/so/+/119604/.

       

      Error Logs:

      2021-06-15T10:33:45.314Z||main|||||WARN|500||Error Loading override.yaml
      com.fasterxml.jackson.databind.exc.UnrecognizedPropertyException: Unrecognized field "tenant_metadata" (class org.onap.so.db.catalog.beans.CloudIdentity), not marked as ignorable (15 known properties: "project_domain_name", "last_updated_by", "mso_pass", "identity_url", "tenant_meta_data", "admin_project_domain_name", "mso_id", "user_domain_name", "identity_server_type", "creation_timestamp", "admin_tenant", "id", "identity_authentication_type", "member_role", "update_timestamp"])
      at [Source: (FileInputStream); line: 60, column: 28] (through reference chain: db.migration.R__CloudConfigMigration["cloud_config"]>db.migration.CloudConfig["identity_services"]>java.util.LinkedHashMap["RAX_KEYSTONE"]->org.onap.so.db.catalog.beans.CloudIdentity["tenant_metadata"])
      at com.fasterxml.jackson.databind.exc.UnrecognizedPropertyException.from(UnrecognizedPropertyException.java:61)
      at com.fasterxml.jackson.databind.DeserializationContext.handleUnknownProperty(DeserializationContext.java:855)
      at com.fasterxml.jackson.databind.deser.std.StdDeserializer.handleUnknownProperty(StdDeserializer.java:1212)
      at com.fasterxml.jackson.databind.deser.BeanDeserializerBase.handleUnknownProperty(BeanDeserializerBase.java:1604)
      at com.fasterxml.jackson.databind.deser.BeanDeserializerBase.handleUnknownVanilla(BeanDeserializerBase.java:1582)
      at com.fasterxml.jackson.databind.deser.BeanDeserializer.vanillaDeserialize(BeanDeserializer.java:299)
      at com.fasterxml.jackson.databind.deser.BeanDeserializer.deserialize(BeanDeserializer.java:156)
      at com.fasterxml.jackson.databind.deser.std.MapDeserializer._readAndBindStringKeyMap(MapDeserializer.java:540)
      at com.fasterxml.jackson.databind.deser.std.MapDeserializer.deserialize(MapDeserializer.java:377)
      at com.fasterxml.jackson.databind.deser.std.MapDeserializer.deserialize(MapDeserializer.java:29)
      at com.fasterxml.jackson.databind.deser.impl.MethodProperty.deserializeAndSet(MethodProperty.java:129)

       

       

       

      Caused by: org.flywaydb.core.api.FlywayException: Migration failed !
      at org.flywaydb.core.internal.resolver.java.JavaMigrationExecutor.executeOnce(JavaMigrationExecutor.java:78)
      at org.flywaydb.core.internal.resolver.java.JavaMigrationExecutor.access$000(JavaMigrationExecutor.java:35)
      at org.flywaydb.core.internal.resolver.java.JavaMigrationExecutor$1.call(JavaMigrationExecutor.java:56)
      at org.flywaydb.core.internal.resolver.java.JavaMigrationExecutor$1.call(JavaMigrationExecutor.java:53)
      at org.flywaydb.core.internal.database.DefaultExecutionStrategy.execute(DefaultExecutionStrategy.java:28)
      at org.flywaydb.core.internal.resolver.java.JavaMigrationExecutor.execute(JavaMigrationExecutor.java:53)
      at org.flywaydb.core.internal.command.DbMigrate.doMigrateGroup(DbMigrate.java:366)
      ... 47 common frames omitted
      Caused by: com.fasterxml.jackson.databind.exc.MismatchedInputException: No content to map due to end-of-input
      at [Source: (org.springframework.boot.loader.jar.ZipInflaterInputStream); line: 1, column: 1]
      at com.fasterxml.jackson.databind.exc.MismatchedInputException.from(MismatchedInputException.java:59)
      at com.fasterxml.jackson.databind.ObjectMapper._initForReading(ObjectMapper.java:4668)
      at com.fasterxml.jackson.databind.ObjectMapper._readMapAndClose(ObjectMapper.java:4513)
      at com.fasterxml.jackson.databind.ObjectMapper.readValue(ObjectMapper.java:3505)
      at db.migration.R_CloudConfigMigration.loadCloudConfig(R_CloudConfigMigration.java:109)
      at db.migration.R_CloudConfigMigration.migrate(R_CloudConfigMigration.java:84)
      at db.migration.R_CloudConfigMigration.migrate(R_CloudConfigMigration.java:241)
      at org.flywaydb.core.internal.resolver.java.JavaMigrationExecutor.executeOnce(JavaMigrationExecutor.java:64)
      ... 53 common frames omitted
      Application exiting with status code 1

       

       

      Potential Fix:

       

      Will revert back the property name changes as discussed with Seshu in order to make CSIT test cases work.

       

            mukeshkumar mukeshkumar
            mukeshkumar mukeshkumar
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: