CloudStack
  1. CloudStack
  2. CLOUDSTACK-2194

Upgrade from 2.2.14 to 4.1.0 failed due to encryption error

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Blocker Blocker
    • Resolution: Fixed
    • Affects Version/s: 4.1.0
    • Fix Version/s: 4.1.0
    • Component/s: None
    • Security Level: Public (Anyone can view this level - this is the default.)
    • Labels:
      None

      Description

      i'm trying to upgrade from 2.2.14 to 4.1.0.
      After setting encryption like that :

      $> cloud-setup-encryption -m cloudstackprp -k cloudstackprp
      Preparing /etc/cloud/management/db.properties [ OK ]
      Processing encryption ... [ OK ]
      Finalizing setup ... [ OK ]

      CloudStack has successfully setup Encryption

      I start Cloudstack. Output logs are here : http://pastebin.com/ZE99v90D

      db.properties content is :

      $> grep -v "#" /etc/cloudstack/management/db.properties|sort
      cluster.node.IP=127.0.0.1
      cluster.servlet.port=9090
      db.awsapi.host=cloud-sql01-prp.cloud
      db.awsapi.name=cloudbridge
      db.awsapi.password=cloudstackprp
      db.awsapi.port=3306
      db.awsapi.username=cloudstackprp
      db.cloud.autoReconnect=true
      db.cloud.encryption.type=file
      db.cloud.encrypt.secret=ENC(dKaV+o5+JqtVi2tfo9xVn6eyUatFXwfZ)
      db.cloud.host=cloud-sql01-prp.cloud
      db.cloud.keyStore=
      db.cloud.keyStorePassword=
      db.cloud.maxActive=250
      db.cloud.maxIdle=30
      db.cloud.maxWait=10000
      db.cloud.minEvictableIdleTimeMillis=240000
      db.cloud.name=cloud
      db.cloud.password=ENC(IhnVBWyQT2ES/YNjPleAz6GXHoGrVsvq)
      db.cloud.poolPreparedStatements=false
      db.cloud.port=3306
      db.cloud.testOnBorrow=true
      db.cloud.testWhileIdle=true
      db.cloud.timeBetweenEvictionRunsMillis=40000
      db.cloud.trustStore=
      db.cloud.trustStorePassword=
      db.cloud.url.params=prepStmtCacheSize=517&cachePrepStmts=true
      db.cloud.username=cloudstackprp
      db.cloud.useSSL=false
      db.cloud.validationQuery=SELECT 1
      db.simulator.autoReconnect=true
      db.simulator.host=cloud-sql01-prp.cloud
      db.simulator.maxActive=250
      db.simulator.maxIdle=30
      db.simulator.maxWait=10000
      db.simulator.name=simulator
      db.simulator.password=cloudstackprp
      db.simulator.port=3306
      db.simulator.username=cloudstackprp
      db.usage.autoReconnect=true
      db.usage.host=cloud-sql01-prp.cloud
      db.usage.maxActive=100
      db.usage.maxIdle=30
      db.usage.maxWait=10000
      db.usage.name=cloud_usage
      db.usage.password=ENC(K57vTmW5CYCKY5P0B4NoeUchMwBPb1Z3)
      db.usage.port=3306
      db.usage.username=cloudstackprp
      region.id=1

        Activity

        Nicolas Lamirault created issue -
        Nicolas Lamirault made changes -
        Field Original Value New Value
        Summary U Upgrade from 2.2.14 to 4.1.0 failed due to encryption error
        Affects Version/s 4.1.0 [ 12323253 ]
        Description i'm trying to upgrade from 2.2.14 to 4.1.0.
        After setting encryption like that :

        $> cloud-setup-encryption -m cloudstackprp -k cloudstackprp
        Preparing /etc/cloud/management/db.properties [ OK ]
        Processing encryption ... [ OK ]
        Finalizing setup ... [ OK ]

        CloudStack has successfully setup Encryption

        I start Cloudstack. Output logs are here : http://pastebin.com/ZE99v90D

        db.properties content is :

         $> grep -v "#" /etc/cloudstack/management/db.properties|sort
        cluster.node.IP=127.0.0.1
        cluster.servlet.port=9090
        db.awsapi.host=cloud-sql01-prp.cloud
        db.awsapi.name=cloudbridge
        db.awsapi.password=cloudstackprp
        db.awsapi.port=3306
        db.awsapi.username=cloudstackprp
        db.cloud.autoReconnect=true
        db.cloud.encryption.type=file
        db.cloud.encrypt.secret=ENC(dKaV+o5+JqtVi2tfo9xVn6eyUatFXwfZ)
        db.cloud.host=cloud-sql01-prp.cloud
        db.cloud.keyStore=
        db.cloud.keyStorePassword=
        db.cloud.maxActive=250
        db.cloud.maxIdle=30
        db.cloud.maxWait=10000
        db.cloud.minEvictableIdleTimeMillis=240000
        db.cloud.name=cloud
        db.cloud.password=ENC(IhnVBWyQT2ES/YNjPleAz6GXHoGrVsvq)
        db.cloud.poolPreparedStatements=false
        db.cloud.port=3306
        db.cloud.testOnBorrow=true
        db.cloud.testWhileIdle=true
        db.cloud.timeBetweenEvictionRunsMillis=40000
        db.cloud.trustStore=
        db.cloud.trustStorePassword=
        db.cloud.url.params=prepStmtCacheSize=517&cachePrepStmts=true
        db.cloud.username=cloudstackprp
        db.cloud.useSSL=false
        db.cloud.validationQuery=SELECT 1
        db.simulator.autoReconnect=true
        db.simulator.host=cloud-sql01-prp.cloud
        db.simulator.maxActive=250
        db.simulator.maxIdle=30
        db.simulator.maxWait=10000
        db.simulator.name=simulator
        db.simulator.password=cloudstackprp
        db.simulator.port=3306
        db.simulator.username=cloudstackprp
        db.usage.autoReconnect=true
        db.usage.host=cloud-sql01-prp.cloud
        db.usage.maxActive=100
        db.usage.maxIdle=30
        db.usage.maxWait=10000
        db.usage.name=cloud_usage
        db.usage.password=ENC(K57vTmW5CYCKY5P0B4NoeUchMwBPb1Z3)
        db.usage.port=3306
        db.usage.username=cloudstackprp
        region.id=1
        Fix Version/s 4.1.0 [ 12323253 ]
        Chip Childers made changes -
        Priority Major [ 3 ] Blocker [ 1 ]
        edison su made changes -
        Assignee edison su [ edison ]
        edison su made changes -
        Assignee edison su [ edison ] Kishan Kavala [ kishan ]
        Chip Childers made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Assignee Kishan Kavala [ kishan ] edison su [ edison ]
        Resolution Fixed [ 1 ]
        sebastien goasguen made changes -
        Assignee edison su [ edison ] sebastien goasguen [ sebgoa ]
        Nicolas Lamirault made changes -
        Resolution Fixed [ 1 ]
        Status Resolved [ 5 ] Reopened [ 4 ]
        edison su made changes -
        Assignee sebastien goasguen [ sebgoa ] Kelven Yang [ kelveny ]
        Kelven Yang made changes -
        Status Reopened [ 4 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Chip Childers made changes -
        Status Resolved [ 5 ] Closed [ 6 ]

          People

          • Assignee:
            Kelven Yang
            Reporter:
            Nicolas Lamirault
          • Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development