Skip to content

Upgrading the App

Here you will find any steps necessary to upgrade the App in your Nautobot environment.

Upgrade Guide

When a new release comes out it may be necessary to run a migration of the database to account for any changes in the data models used by this app. Execute the command nautobot-server post-upgrade within the runtime environment of your Nautobot installation after updating the nautobot-device-lifecycle-mgmt package via pip.

pip3 install --upgrade nautobot-device-lifecycle-mgmt

Note

To ensure Nautobot Device Life Cycle Management app is automatically re-installed during future upgrades, check for a file named local_requirements.txt in the Nautobot root directory (alongside requirements.txt). The nautobot-device-lifecycle-mgmt package should be listed in it.

Run Post Upgrade Steps

Once the configuration has been updated, run the post migration script as the Nautobot user

nautobot-server post_upgrade

This should run migrations for the app to be ready for use.

Restart Nautobot Services

As a user account that has privileges to restart services, restart the Nautobot services

sudo systemctl restart nautobot nautobot-worker

If you are on Nautobot >= 1.1.0 and have the RQ worker continuing on, also restart the RQ worker service.

sudo systemctl restart nautobot-rq-worker

Note

If you have multiple workers defined, you will need to restart each worker process. For example systemctl restart nautobot nautobot-worker@1 nautobot-worker@2 etc.

Version-Specific Steps

Migrating to DLM App Version 4.3.0

DLM App version 4.3.0 requires Python 3.11 or later.

The NIST CVE Search Job now records each CVE's CVSS Vector and, by default, sets its CVSS Base Score and Severity from NIST's own score for the highest CVSS version that NIST has scored. The CVSS_SCORE_SOURCE setting can select the vendor's score or the highest score instead, as described in CVSS Score Priorities and Logic. The Job only updates an existing CVE when NIST has modified the CVE record, so existing CVEs keep their previous values and an empty CVSS Vector after upgrading.

To update existing CVEs after upgrading and restarting the Nautobot services:

  1. If you want a score source other than NIST's own score, set CVSS_SCORE_SOURCE first, in the Admin UI under Configuration > Config or in PLUGINS_CONFIG.
  2. Run the NIST - Software CVE Search Job once with Force CVE Updates checked and Software Versions left empty, so that the Job updates every CVE that NIST returns for all of your Software Versions.

Later runs can leave Force CVE Updates unchecked.

Note

A forced run makes the same NIST API calls as a normal run, but it also saves every returned CVE, so it can take longer to complete.

Warning

A forced run overwrites manual edits to each CVE's description, link, CVSS Base Score, Severity, CVSS Vector, CVSSv2 Score, CVSSv3 Score and Last Modified Date, and adds the automated update comment to every CVE it updates.