Object Storage Extension upgrade from version 2.2.3 to version 3.0 failed
search cancel

Object Storage Extension upgrade from version 2.2.3 to version 3.0 failed

book

Article ID: 371812

calendar_today

Updated On:

Products

VMware Cloud Director

Issue/Introduction

  • Upgrading Object Storage Extension (OSE) from  version 2.2.3 to version 3.0 failed
  • In /opt/vmware/voss/log/ose-default.log you have entry similar the below:

    2024-07-08 14:00:36 [main] ERROR o.s.boot.SpringApplication - Application run failed
    org.springframework.context.ApplicationContextException: Unable to start web server
            at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.onRefresh(ServletWebServerApplicationContext.java:165)
            at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:618)
            at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:146)
            at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:754)
            at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:456)
            at org.springframework.boot.SpringApplication.run(SpringApplication.java:334)
            at org.springframework.boot.SpringApplication.run(SpringApplication.java:1354)
            at org.springframework.boot.SpringApplication.run(SpringApplication.java:1343)
            at com.vmware.voss.Application.main(Application.java:38)
            at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
            at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
            at java.base/java.lang.reflect.Method.invoke(Method.java:568)
            at org.springframework.boot.loader.launch.Launcher.launch(Launcher.java:91)
            at org.springframework.boot.loader.launch.Launcher.launch(Launcher.java:53)
            at org.springframework.boot.loader.launch.JarLauncher.main(JarLauncher.java:58)
    ......

    Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'flywayInitializer' defined in class path resource [org/springframework/boot/autoconfigure/flyway/FlywayAutoConfiguration$FlywayConfiguration.class]: Validate failed: Migrations have failed validation
    Detected applied migration not resolved locally: 2.3.1.
    If you removed this migration intentionally, run repair to mark the migration as deleted.
    Detected applied migration not resolved locally: 3.0.8.
    If you removed this migration intentionally, run repair to mark the migration as deleted.
    Detected applied migration not resolved locally: 3.0.9.


  • The Java has been upgraded to the version 17 and can be checked by running the commands below:

    cd /opt/vmware/voss
    sh -c java -Dlog4j2.formatMsgNoLookups=true -jar /opt/vmware/voss/voss.jar --spring.profiles.active=prod


Environment

VMware Cloud Director 10.5.x
Object Storage Extension 2.2.3

Resolution

This is a known issue observed in Object Storage Extension 2.2.3.

Currently, there is no resolution.

Workaround:

  1. Run the command below:
    ose args set -k spring.flyway.ignore-migration-patterns -v *:missing
  2. Restart the OSE services
    ose service restart
  3. Try the upgrade again