tech:network:cml:2.2:in-place-upgrade-cml-p-2.2.1-to-2.2.2-on-ubuntu-20.04-and-vmware-workstation-16-1-pro:in-place-upgrade-cml-p-2.2.1-to-2.2.2-on-ubuntu-20.04-and-vmware-workstation-16-1-pro

In-Place Upgrade CML-P 2.2.2 to 2.2.1 on Linux(Ubuntu 20.04 LTS Desktop) and VMware Workstation 16.1 Pro

Tasks

  1. Read Release Note: [[https://developer.cisco.com/docs/modeling-labs/#!cml-release-notes|CML Release Notes - Cisco Modeling Labs - Document - Cisco DevNet]]
  2. Upgrade: [[https://developer.cisco.com/docs/modeling-labs/#!in-place-upgrade|In-Place Upgrade - Cisco Modeling Labs - Document - Cisco DevNet]]
    1. CML Upgrade
    2. Upgrade Breakout Tool
    3. Base OS Upgrade

Download

Verified
cml2_p_controller-2.2.2-52.el8.52.x86_64-159.ova
a856855afb13f0c9514461a54b7d7c400f56f7b59f1f8d42072e06d34ec0d830a8197c14f94bd12efbb903a29054f93ecfd556aa24332acede99c6f1a97189f3

Verified
cml2_p_controller-2.2.2-52.el8.52.x86_64-39.iso
a3285d04505c1de04b49a6876341c8bdc7539a8b93ea0824a3a98f1e9d6f05131c98397ff6c5df0a25dd7d74a6dfc1b574b74d1988979f2bc1e13c96b824300b

Verified
cml2_p_controller-2.2.2-52.el8.52.x86_64.rpm
1e24696dfa67edfd65319d82a8411e254e118393d3310111d57a0f4d175d66b7cc8a8f64e250296d299ccd1b0e417c6572e1501362ec763e2710a37c7dcee879


wnoguchi@lasthope:~/Nextcloud/Softwares/cisco/cml/personal/2/2.2/2.2.2$ sha512sum cml2_p_controller-2.2.2-52.el8.52.x86_64*
a856855afb13f0c9514461a54b7d7c400f56f7b59f1f8d42072e06d34ec0d830a8197c14f94bd12efbb903a29054f93ecfd556aa24332acede99c6f1a97189f3  cml2_p_controller-2.2.2-52.el8.52.x86_64-159.ova
a3285d04505c1de04b49a6876341c8bdc7539a8b93ea0824a3a98f1e9d6f05131c98397ff6c5df0a25dd7d74a6dfc1b574b74d1988979f2bc1e13c96b824300b  cml2_p_controller-2.2.2-52.el8.52.x86_64-39.iso
1e24696dfa67edfd65319d82a8411e254e118393d3310111d57a0f4d175d66b7cc8a8f64e250296d299ccd1b0e417c6572e1501362ec763e2710a37c7dcee879  cml2_p_controller-2.2.2-52.el8.52.x86_64.rpm

CML Controller Upgrade - System Administration Cockpit steps

Step 8: In the System Administration Cockpit, click the Upgrade Controller button.

Starting CML2 Software Upgrade...
*** Searching latest RPM file...
*** Selected: cml2_p_controller-2.2.2-52.el8.52.x86_64.rpm
*** Checking RPM integrity...
/var/local/virl2/dropfolder/cml2_p_controller-2.2.2-52.el8.52.x86_64.rpm: digests OK
*** stopping target
*** waiting for controller to become inactive
*** Installing new RPM...
Dependencies resolved.
================================================================================
Package              Arch        Version               Repository         Size
================================================================================
Upgrading:
cml2_controller      x86_64      2.2.2-52.el8.52       @commandline      152 M
Transaction Summary
================================================================================
Upgrade  1 Package
Total size: 152 M
Downloading Packages:
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
Preparing        :                                                        1/1
Running scriptlet: cml2_controller-2.2.2-52.el8.52.x86_64                 1/1
Running scriptlet: cml2_controller-2.2.2-52.el8.52.x86_64                 1/2
Upgrading        : cml2_controller-2.2.2-52.el8.52.x86_64                 1/2
INFO  [alembic] Database connection string: sqlite:////var/local/virl2/config/controller.db
INFO  [alembic.runtime.migration] Context impl SQLiteImpl.
INFO  [alembic.runtime.migration] Will assume non-transactional DDL.
Running scriptlet: cml2_controller-2.2.2-52.el8.52.x86_64                 1/2
Setting system policy to DEFAULT:NOCBC
Note: System-wide crypto policies are applied on application start-up.
It is recommended to restart the system for the change of policies
to fully take place.
~/db_migrations /
/
Running scriptlet: cml2_controller-2.2.1-36.el8.36.x86_64                 2/2
Cleanup          : cml2_controller-2.2.1-36.el8.36.x86_64                 2/2
Running scriptlet: cml2_controller-2.2.1-36.el8.36.x86_64                 2/2
Running scriptlet: cml2_controller-2.2.2-52.el8.52.x86_64                 2/2
Running scriptlet: cml2_controller-2.2.1-36.el8.36.x86_64                 2/2
Verifying        : cml2_controller-2.2.2-52.el8.52.x86_64                 1/2
Verifying        : cml2_controller-2.2.1-36.el8.36.x86_64                 2/2
Upgraded:
cml2_controller-2.2.2-52.el8.52.x86_64
Complete!
*** Cleaning up drop dir...
*** restarting target
*** Upgrade process done.
virl2-software-upgrade.service: Succeeded.

Step9

Refresh the page in your web browser and expand the Controller Software Upgrade item again.

  • Result: The Controller Software Upgrade area will now have a new message indicating that additional packages need to be installed to complete the upgrade.
  • Actual Result: Simple CML 2 System Maintenance Controls displayed without “Finish Upgrade” button.

It's OK …?

I believe finally cokpit up to date works fine.
Proceed anyway.

Cockpit Disconnected
Reconnect

Up To Date

Ensure Operational, Reboot the System

Verify Operation

CML 2 System Maintenance Controls

UI back to normal.

Simulation by OSPF

Everything fine!

tech/network/cml/2.2/in-place-upgrade-cml-p-2.2.1-to-2.2.2-on-ubuntu-20.04-and-vmware-workstation-16-1-pro/in-place-upgrade-cml-p-2.2.1-to-2.2.2-on-ubuntu-20.04-and-vmware-workstation-16-1-pro.txt · Last modified: 2021/06/20 12:18 by wnoguchi