SolaceProducts / pubsubplus-kubernetes-helm-quickstart

Quickstart to launch a Solace PubSub+ Software Event Broker in Kubernetes using Helm
Apache License 2.0
32 stars 44 forks source link

[Bug]: Issue while upgrading the solace with readonlyfilesystem=true #145

Open shukla2009 opened 3 months ago

shukla2009 commented 3 months ago

Bug Description

upgrading solace from 10.4.1.69 to 10.8.1.126

with

securityContext:
      allowPrivilegeEscalation: false
      capabilities:
        drop:
        - ALL
      privileged: false
      readOnlyRootFilesystem: true
ends up in error
Setting umask to 022
SolOS Version: soltr_10.8.1.126
vmr-update-db encountered ERROR
INFO: Found upgrade db /usr/sw/var/db.upgrade
Traceback (most recent call last):
  File "/usr/sw/loads/soltr_10.8.1.126/scripts/upgradeHooks/up/db/commonTransform.py", line 404, in upgradeHookMain
    rc = main(infile, outfile)
  File "/usr/sw/loads/soltr_10.8.1.126/scripts/upgradeHooks/up/db/149-RemoveUnsupportCiphers", line 125, in main
    return callback(platforms, infile, outfile, regex_chain_list)
  File "/usr/sw/loads/soltr_10.8.1.126/scripts/upgradeHooks/up/db/commonTransform.py", line 467, in callback
    performTopLevelCallback(inPath, tempPath, outPath, regexes)
  File "/usr/sw/loads/soltr_10.8.1.126/scripts/upgradeHooks/up/db/commonTransform.py", line 484, in performTopLevelCallback
    copyfile(inPath, tempPath)
  File "/usr/lib64/python3.9/shutil.py", line 266, in copyfile
    with open(dst, 'wb') as fdst:
OSError: [Errno 30] Read-only file system: 'tempDbBaseline'
INFO: Determining solbase...
INFO: solbase=VMR_SolBase-4.0.106.5
INFO: Determining dbVersion...
INFO: dbVersion=148
INFO: oldSolosVersion=10.4.1.69
INFO: oldSolosVersion=10.4.1.69
INFO: allowConvert => OK
INFO: Copying configuration database (var/soltr_10.8.1.126/db/dbBaseline)...
INFO: done
INFO: Scanning for database transforms (/usr/sw/loads/soltr_10.8.1.126/scripts/upgradeHooks/up/db)...
INFO: Found 13 database transforms.
INFO: Running transform: "/usr/sw/loads/soltr_10.8.1.126/scripts/upgradeHooks/up/db/142-BridgesValidateServerName -p /usr/sw/var/soltr_10.8.1.126/db/dbBaseline"
INFO: Transform /usr/sw/loads/soltr_10.8.1.126/scripts/upgradeHooks/up/db/142-BridgesValidateServerName completed, (21:NOTHING_TO_DO).
INFO: Running transform: "/usr/sw/loads/soltr_10.8.1.126/scripts/upgradeHooks/up/db/143-AddSystemMaxQueueMessages -p /usr/sw/var/soltr_10.8.1.126/db/dbBaseline"
INFO: Transform /usr/sw/loads/soltr_10.8.1.126/scripts/upgradeHooks/up/db/143-AddSystemMaxQueueMessages completed, (21:NOTHING_TO_DO).
INFO: Running transform: "/usr/sw/loads/soltr_10.8.1.126/scripts/upgradeHooks/up/db/144-RestAuthzHdrHandling -p /usr/sw/var/soltr_10.8.1.126/db/dbBaseline"
INFO: Transform /usr/sw/loads/soltr_10.8.1.126/scripts/upgradeHooks/up/db/144-RestAuthzHdrHandling completed, (21:NOTHING_TO_DO).
INFO: Running transform: "/usr/sw/loads/soltr_10.8.1.126/scripts/upgradeHooks/up/db/145-CspfValidateServerName -p /usr/sw/var/soltr_10.8.1.126/db/dbBaseline"
INFO: Transform /usr/sw/loads/soltr_10.8.1.126/scripts/upgradeHooks/up/db/145-CspfValidateServerName completed, (21:NOTHING_TO_DO).
INFO: Running transform: "/usr/sw/loads/soltr_10.8.1.126/scripts/upgradeHooks/up/db/146-RemoveUnsupportCiphers -p /usr/sw/var/soltr_10.8.1.126/db/dbBaseline"
INFO: Transform /usr/sw/loads/soltr_10.8.1.126/scripts/upgradeHooks/up/db/146-RemoveUnsupportCiphers completed, (21:NOTHING_TO_DO).
INFO: Running transform: "/usr/sw/loads/soltr_10.8.1.126/scripts/upgradeHooks/up/db/147-MakeNoScheduleActionsExplicit -p /usr/sw/var/soltr_10.8.1.126/db/dbBaseline"
INFO: Transform /usr/sw/loads/soltr_10.8.1.126/scripts/upgradeHooks/up/db/147-MakeNoScheduleActionsExplicit completed, (21:NOTHING_TO_DO).
INFO: Running transform: "/usr/sw/loads/soltr_10.8.1.126/scripts/upgradeHooks/up/db/148-DistributedCachesAssignVirtualRouter -p /usr/sw/var/soltr_10.8.1.126/db/dbBaseline"
INFO: Transform /usr/sw/loads/soltr_10.8.1.126/scripts/upgradeHooks/up/db/148-DistributedCachesAssignVirtualRouter completed, (21:NOTHING_TO_DO).
INFO: Running transform: "/usr/sw/loads/soltr_10.8.1.126/scripts/upgradeHooks/up/db/149-RemoveUnsupportCiphers -p /usr/sw/var/soltr_10.8.1.126/db/dbBaseline"
INFO: Transform /usr/sw/loads/soltr_10.8.1.126/scripts/upgradeHooks/up/db/149-RemoveUnsupportCiphers completed, (2:FAIL).
ERROR: Transform /usr/sw/loads/soltr_10.8.1.126/scripts/upgradeHooks/up/db/149-RemoveUnsupportCiphers failed, (2:FAIL).
INFO: Upgrading configuration using /usr/sw/var/db.upgrade => /var/lib/solace/var/soltr_10.4.1.69, tarball /usr/sw/var/db.upgrade/ex.conf
INFO: Validating configuration database /usr/sw/var/db.upgrade
INFO: Restoring configuration from backup archive /usr/sw/var/db.upgrade/ex.conf
INFO: Validating backup archive /usr/sw/var/db.upgrade/ex.conf
INFO: Starting convertdb for /var/lib/solace/var/soltr_10.4.1.69/db/dbBaseline 
ERROR: Configuration database conversion failed (rc = 2)
FATAL: Upgrade /usr/sw/var/db.upgrade directory data corruption, rc = 52
Upgrade failed
Stream closed EOF for platform/solace-2-test-0 (pubsubplus)

Expected Behavior

it should work fine

Steps to Reproduce

Install version 10.4.1.69 with readOnlyFileSystem upgrade to c

Solace Broker version

10.8.1.126

Solace API

No response

Solace API version

No response