Upgrade vRLSCM 8.8.2.3 to 8.10


 

What's new in vRSLCM 8.10 (Key Features)


VCF Enhancements


  • vRealize Suite Lifecycle Manager now provides integration between vRealize Suite products. With vRealize Log Insight, you can now perform log forwarding configuration from other vRealize Suite products to vRealize Log Insight. Similarly, with vRealize Operations Manager, you can now perform management pack configuration of other vRealize products in vRealize Operations Manager.

Usability Enhancements

  • You can enable or disable health checks for vRealize Suite products in vRealize Suite Lifecycle Manager.


vRealize Automation Enhancements

  • If vRealize Automation upgrade fails, an auto-revert feature is introduced to revert back the appliance to its previous working state.

  • Participation in the Customer Experience Improvement Program for vRealize Automation is now available using the Pendo Customer Experience Program (Pendo CEIP).


PSPR Enhancements

  • If you have five failed login attempts in vRealize Suite Lifecycle Manager, your account will be locked with an error message.


vRealize Operations Manager Enhancements

  • Remote collectors are now renamed as Cloud Proxy nodes in vRealize Operations Manager version 8.10.


 

  • Take Snapshot of vRSLCM

  • Under "System Upgrade" , Check Online to identify the 8.10 manifest and then start uprgade

  • Packages would be downloaded

  • Once packages are downloaded, installation will begin


  • Even though the installation completed, after the reboot and during the startup procedure , encountered an exception


Reference: postupdate.log 

++ date '+%Y-%m-%d %H:%M:%S'
+ echo '2022-10-11 18:22:48 /etc/bootstrap/postupdate.d/25-start-services starting...'
+ /etc/bootstrap/postupdate.d/25-start-services 8.8.2.3 8.10.0.6 0
+ log '/etc/bootstrap/postupdate.d/25-start-services done, succeeded.'
++ date '+%Y-%m-%d %H:%M:%S'
+ echo '2022-10-11 18:29:30 /etc/bootstrap/postupdate.d/25-start-services done, succeeded.'
+ for script in "${bootstrap_dir}"/*
+ echo
+ '[' '!' -e /etc/bootstrap/postupdate.d/60-update-upgrade-status ']'
+ '[' '!' -x /etc/bootstrap/postupdate.d/60-update-upgrade-status ']'
+ log '/etc/bootstrap/postupdate.d/60-update-upgrade-status starting...'
++ date '+%Y-%m-%d %H:%M:%S'
+ echo '2022-10-11 18:29:30 /etc/bootstrap/postupdate.d/60-update-upgrade-status starting...'
+ /etc/bootstrap/postupdate.d/60-update-upgrade-status 8.8.2.3 8.10.0.6 0
+ log '/etc/bootstrap/postupdate.d/60-update-upgrade-status done, succeeded.'
++ date '+%Y-%m-%d %H:%M:%S'
+ echo '2022-10-11 18:29:30 /etc/bootstrap/postupdate.d/60-update-upgrade-status done, succeeded.'


Reference: updatecli.log 


root@lcm [ ~ ]# tail -f /opt/vmware/var/log/vami/updatecli.log
11/10/2022 18:29:31 [INFO] Update status: Running VMware tools reconfiguration
11/10/2022 18:29:31 [INFO] Running /opt/vmware/share/vami/vami_reconfigure_tools
vmware-toolbox-cmd is /bin/vmware-toolbox-cmd
vmtoolsd wrapper not required on this VM with systemd.
11/10/2022 18:29:31 [INFO] Update status: Done VMware tools reconfiguration
11/10/2022 18:29:31 [INFO] Update status: Running finalizing installation
11/10/2022 18:29:31 [INFO] Running /opt/vmware/var/lib/vami/update/data/job/4/manifest_update
11/10/2022 18:29:31 [INFO] Update status: Done finalizing installation
11/10/2022 18:29:31 [INFO] Update status: Update completed successfully
11/10/2022 18:29:31 [INFO] Install Finished


When i click on download log , it downloads bootstrap.log



2022-10-11 18:25:30,142 __main__ - INFO:Adding file to Zip dlfRepo/vra/8.10.0/dlf/license-vac-80-e9-suite-vrealizeflex-c3-201907.dlf
2022-10-11 18:25:30,143 __main__ - INFO:Adding file to Zip dlfRepo/vra/8.10.0/dlf/license-vac-80-e11-suite-vrealizeflex-c4-202007.dlf
2022-10-11 18:25:30,143 __main__ - INFO:Adding file to Zip dlfRepo/vra/8.10.0/dlf/license-vac-80-e5-suite-vrealize-c2-201807.dlf
2022-10-11 18:25:30,144 __main__ - INFO:Adding file to Zip dlfRepo/vra/8.10.0/dlf/license-vac-80-e15-suite-vrealize-c3-202207.dlf
2022-10-11 18:25:30,145 __main__ - INFO:Adding file to Zip dlfRepo/vra/8.10.0/dlf/license-vac-80-e1-bt-c1-201903.dlf
2022-10-11 18:25:30,145 __main__ - INFO:Adding file to Zip dlfRepo/vra/8.10.0/dlf/license-vac-80-e10-suite-vrealizeflex-c4-202007.dlf
2022-10-11 18:25:30,146 __main__ - INFO:Adding file to Zip dlfRepo/vra/8.10.0/dlf/license-vac-80-e14-suite-vrealizeflex-c3-202109.dlf
2022-10-11 18:25:30,163 __main__ - INFO:zip created successfully
2022-10-11 18:25:30,169 __main__ - ERROR:Exception while getting serviceadmin password
Traceback (most recent call last):
  File "/var/lib/vrlcm/insert.py", line 76, in getPassword
    response = requests.get("http://localhost:8080/lcm/local/getpassword/serviceadmin@local",headers=headers)
  File "/usr/lib/python2.7/site-packages/requests/api.py", line 76, in get
    return request('get', url, params=params, **kwargs)
  File "/usr/lib/python2.7/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python2.7/site-packages/requests/sessions.py", line 530, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python2.7/site-packages/requests/sessions.py", line 643, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python2.7/site-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
ConnectionError: HTTPConnectionPool(host='localhost', port=8080): Max retries exceeded with url: /lcm/local/getpassword/serviceadmin@local (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fc4ea620410>: Failed to establish a new connection: [Errno 111] Connection refused',))

  • Reverted and then tried upgrade again. This time ensured no password expired. Just thought this might help but let's see how the uprgade goes this time

Before



root@lcm [ ~ ]# chage -l root
Last password change                                    : Dec 02, 2021
Password expires                                        : Dec 02, 2022
Password inactive                                       : never
Account expires                                         : never
Minimum number of days between password change          : 0
Maximum number of days between password change          : 365
Number of days of warning before password expires       : 7

root@lcm [ ~ ]# chage -l postgres
Last password change                                    : Oct 08, 2021
Password expires                                        : Dec 07, 2021
Password inactive                                       : never
Account expires                                         : never
Minimum number of days between password change          : 0
Maximum number of days between password change          : 60
Number of days of warning before password expires       : 7



After


root@lcm [ ~ ]# chage -m 0 -M 99999 -I -1 -E -1 postgres
root@lcm [ ~ ]# chage -l postgres
Last password change                                    : Oct 08, 2021
Password expires                                        : never
Password inactive                                       : never
Account expires                                         : never
Minimum number of days between password change          : 0
Maximum number of days between password change          : 99999
Number of days of warning before password expires       : 7

root@lcm [ ~ ]# chage -m 0 -M 99999 -I -1 -E -1 root
root@lcm [ ~ ]# chage -l root
Last password change                                    : Dec 02, 2021
Password expires                                        : never
Password inactive                                       : never
Account expires                                         : never
Minimum number of days between password change          : 0
Maximum number of days between password change          : 99999
Number of days of warning before password expires       : 7



  • Started again , installation begins after all packages are downloaded






2022-10-11 19:26:07.310 INFO  [http-nio-8080-exec-9] c.v.v.l.u.ShellExecutor -  -- Executing shell command: /opt/vmware/bin/vamicli update --progress --detail
2022-10-11 19:26:07.312 INFO  [http-nio-8080-exec-9] c.v.v.l.u.ProcessUtil -  -- Execute /opt/vmware/bin/vamicli
2022-10-11 19:26:07.425 INFO  [http-nio-8080-exec-9] c.v.v.l.u.ShellExecutor -  -- Result: [56 packages have been downloaded.
Installing...].


  • Services coming up now



  • Postupdate phase is now complete



root@lcm [ /opt/vmware/var/log/vami ]# tail -f /var/log/bootstrap/postupdate.log


+ [[ -f /var/log/vrlcm/status.txt ]]
+ /var/lib/vrlcm/populate.sh
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
curl: (7) Failed to connect to localhost port 8080 after 0 ms: Connection refused
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
curl: (7) Failed to connect to localhost port 8080 after 0 ms: Connection refused
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
curl: (7) Failed to connect to localhost port 8080 after 7 ms: Connection refused
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
Traceback (most recent call last):
  File "/usr/lib/python2.7/logging/__init__.py", line 868, in emit
    msg = self.format(record)
  File "/usr/lib/python2.7/logging/__init__.py", line 741, in format
    return fmt.format(record)
  File "/usr/lib/python2.7/logging/__init__.py", line 465, in format
    record.message = record.getMessage()
  File "/usr/lib/python2.7/logging/__init__.py", line 329, in getMessage
    msg = msg % self.args
TypeError: not all arguments converted during string formatting
Logged from file insert.py, line 302
+ [[ -f /var/lib/vrlcm/SUCCESS ]]
+ echo 'Creating INPROGRESS to block UI from loading...'
Creating INPROGRESS to block UI from loading...
+ rm -rf /var/lib/vrlcm/SUCCESS
+ touch /var/lib/vrlcm/INPROGRESS
+ exit 0
2022-10-11 19:34:48 /etc/bootstrap/postupdate.d/25-start-services done, succeeded.

2022-10-11 19:34:48 /etc/bootstrap/postupdate.d/60-update-upgrade-status starting...
2022-10-11 19:34:48 /etc/bootstrap/postupdate.d/60-update-upgrade-status done, succeeded.

2022-10-11 19:34:48 /etc/bootstrap/postupdate.d/70-blackstone-upgrade.sh starting...
NOTICE:  column "pipeline_name" of relation "cms_pipeline_execution" already exists, skipping
2022-10-11 19:34:48 /etc/bootstrap/postupdate.d/70-blackstone-upgrade.sh done, succeeded.

2022-10-11 19:34:48 /etc/bootstrap/postupdate.d/80-cleanup-patch-history starting...
vami upgrade is successful
2022-10-11 19:34:48 /etc/bootstrap/postupdate.d/80-cleanup-patch-history done, succeeded.

2022-10-11 19:34:48 /etc/bootstrap/postupdate.d/81-postgres-autovacuum starting...
auto vacuum setting for request table
ALTER TABLE
ALTER TABLE
2022-10-11 19:34:49 /etc/bootstrap/postupdate.d/81-postgres-autovacuum done, succeeded.

2022-10-11 19:34:49 /etc/bootstrap/postupdate.d/90-enable-fips-mode starting...
2022-10-11 19:34:49 /etc/bootstrap/postupdate.d/90-enable-fips-mode done, succeeded.

2022-10-11 19:34:49 /etc/bootstrap/postupdate.d/99-reboot-va starting...
Creating SUCCESS before rebooting VA...
Rebooting the VA..


  • vRSLCM appliance is rebooted

  • After reboot , what i notice is root password expiration is now back to Dec 02,2022 where it was before the change



root@lcm [ ~ ]# chage -l root
Last password change                                    : Dec 02, 2021
Password expires                                        : Dec 02, 2022
Password inactive                                       : never
Account expires                                         : never
Minimum number of days between password change          : 0
Maximum number of days between password change          : 365
Number of days of warning before password expires       : 7



root@lcm [ ~ ]# chage -l postgres
Last password change                                    : Oct 08, 2021
Password expires                                        : never
Password inactive                                       : never
Account expires                                         : never
Minimum number of days between password change          : 0
Maximum number of days between password change          : 99999
Number of days of warning before password expires       : 7

  • The login page is now up



  • Logged in


  • System details has the new version




Version: 8.10.0.6
Build Number: 20594451
Policy : 8.10.0

  • Details of the PSPACK 8.10.0.0



  • Finally this concludes the upgrade



Regarding the issue i faced during the first attemp it has nothing to do with the root / postgres password for sure. I don't believe anyone would face same issue. Will try to get deep into it and see if i can find the cause




 


gif


 

138 views0 comments