Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
shukla2009 opened this issue Jul 24, 2024 · 0 comments
Open
Labels

Comments

@shukla2009
Copy link

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

@shukla2009 shukla2009 added the bug label Jul 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant