6. Upgrade

While not glamorous, existing code can be overwritten by a new install and restart. That is about it. Here are a few more details.

We recommend that you backup your existing install as a safey measure.

6.1. Backup

It’s always a good policy to backup any important data, configuration, and content information that may be related to an application before an upgrade. We strongly encourage you to backup your content prior to doing any upgrade activity.

6.1.1. Isolated Install

For “isolated” install modes (eg. install.sh | bash -s -- install --isolated), perform the following tasks

  1. log in to your Provision server as the user you performed the original install as

  2. copy the drp-data directory to a backup location:

    D=`date +%Y%m%d-%H%M%S`
    cp -r drp-data drp-data.backup.$D

6.1.2. Production Install

For “production” install modes (no --isolated flag provided to install.sh), perform the following tasks

  1. log in to your Digital Rebar Provision server

  2. for DRP version 3.0.5 or older:

    D=`date +%Y%m%d-%H%M%S`
    mkdir backups
    sudo cp -r /var/lib/dr-provision backups/dr-provision.backup.$D
    sudo cp -r /var/lib/tftpboot backups/dr-provision.backup.$D
  3. for DRP version 3.1.0 or newer:

    D=`date +%Y%m%d-%H%M%S`
    mkdir backups
    sudo cp -r /var/lib/dr-provision backups/dr-provision.backup.$D

6.2. Steps

The basic steps are the same for both Isolated and Production install modes:

  1. stop the existing service
  2. run the installer with the “upgrade” flag
  3. restart the service

6.2.1. Isolated Install

For isolated Install, update this way:

  1. Stop dr-provision:

    killall dr-provision
  2. Return to the install directory

  3. Run the install again

    # Remember to use --drp-version to set a version other than stable if desired
    # Curl/Bash from quickstart if desired, or this:
    tools/install.sh --isolated --upgrade install
  4. Restart dr-provision, as stated by the tools/install.sh output.

6.2.2. Production Install

For non-isolated (aka “production mode”) Install, update this way:

  1. Stop dr-provision, using the system method of choice

    systemctl stop dr-provision


    service dr-provision stop
  2. Install new code - Use the same install technique as the first install, adding the --upgrade option. Install

    tools/install.sh --isolated --upgrade install
  3. Start up dr-provision

systemctl start dr-provision


service dr-provision start

6.3. Version to Version Notes

In this section, notes about migrating from one release to another will be added.

6.3.1. v3.0.0 to v3.0.1

If parameters were added to machines or global, these will need to be manually re-added to the machine or global profile, respectively. The machine’s parameter setting cli is unchanged. The global parameters will need to be changed to a profiles call.

drpcli parameters set fred greg


drpcli profiles set global fred greg

6.3.2. v3.0.1 to v3.0.2

There are changes to templates and bootenvs. Upgrade will not update these automatically, because they may be in use and working properly. it is necessary to restart by removing the bootenvs and templates directory in the data store directory (usually drp-data/digitalrebar or /var/lib/dr-provision/digitalrebar) and re-uploading the bootenvs and templates (tools/discovery-load.sh). Additionally, templates and bootenvs can be manually added and updated, with drpcli.

6.3.3. v3.0.2 to v3.0.3

This is a quick turn release to address the issue with updating bootenvs. This is a CLI code and docs only change.

6.3.4. v3.0.3 to v3.0.4

Nothing needs to be done.

6.3.5. v3.0.4 to v3.0.5

Nothing needs to be done.

6.3.6. v3.0.5 to v3.1.0

The v3.1.0 install.sh script now supports an --upgrade flag. Depending on your installation method (eg isolated or production mode), the behavior of the flag will alter the installation process slightly. Please insure you Backup your content and configurations first just in case.

For isolated mode:

install.sh --upgrade --isolated install


You must be in the same directory path that you performed the initial install from for the upgrade to be successful.

For production mode:

The production mode update process will move around several directories and consolidate them to a single location. In previous versions (v3.0.5 and older), the following two default directories were used in production mode:

/var/lib/dr-provision - Digital Rebar Provision configurations and information
/var/lib/tftpboot - TFTP boot root directory for serving content when TFTPD service enabled

In DRP v3.1.0 and newer, the content will be moved by the --upgrade function as follows:

/var/lib/dr-provision/digitalrebar - old "dr-provision" directory
/var/lib/dr-provision/tftpboot - old "tftpboot" directory


Digital Rebar Provision version 3.1.0 introduced a new behavior to the subnets definitions. subnets may now be enabled or disableed to selectively turn on/off provisioning for a given subnet. By default, a subnet witll be disabled. After an upgrade, you MUST enable the subnet for it to function again. See Subnet Enabled for additional details.

6.3.7. v3.1.0 to v3.2.0

There are fairly significant updates to the DRP Contents structure and layout in v3.2.0. If you are upgrading to v3.2.0 you must remove any Digital Rebar and RackN content that you have installed in your Provisioning endpoint. The following outline will help you understand the necessary steps. If you have any issues with the upgrade process, please drop by the Slack #community channel for additional help.

Please read the steps through carefully, and make note of the current contents/plugins you currently have installed. You will have to re-add these elements again. You absolutely should backup your existing install prior to this upgrade.

  1. Overview

Overiew of the update steps necessary, you should do in the following order.

  1. Update DRP to “stable” (v3.2.0)
  2. Remove Old Content
  3. Add Content back that was removed
  4. Update plugins
  5. Fix up things
  1. Updating DRP Endpoint

If you are running isolated, do this (remove --isolated if you are not using isolated mode):

curl -fsSL get.rebar.digital/stable | bash -s -- install --isolated --upgrade=true

This will force the update of the local binaries to v3.2.0 stable. Make sure you stop DRP process (sudo killall dr-provision, or sudo systemctl stop dr-provision.service).

Verify that your /etc/systemd/services/dr-provision start up file is still correct for your environment, if running a production install type.

Restart DRP (follow --isolated mode start steps if in isolated mode; or sudo systemctl start dr-provision.service)

If in --isolated mode, don’t forget to copy drpcli and/or dr-provision binaries to where you prefer to keep them (eg $HOME/bin or /usr/local/bin, etc... .

  1. Remove old content

With the rework of content, you need to remove the following content packages if they were previously installed.

drp-community-content (if you are really behind, Digital Rebar Community Content).
  1. Put the content back

Install the new v3.2.0 content packs. Note that the names have changed, and the mix of “ce-” and non-Community Content names has gone away. For example; what originally was drp-community-content which included things like ce-sledgehammer is now moved to just sledgehammer. The RackN registered content of os-linux and os-discovery have now been folded in to the below content packs.

drp-community-content - it is a must just get it.
task-library - New RackN library of services for doing interesting things.
drp-community-contrib - this is old or experimental things like centos6 or SL6.
  1. Update the plugins

If you have any plugins installed, update them now.

To facilitate version tracking, plugins provide their own content as a injected content from the plugin. When the plugin is added, it will also add a content layer that will show up in the content packages section.

Previously, a plugin-provider was installed separately from a Content of the same name.

  1. Fix things up

This is mainly if you were using the Community Content version of things (drp-community-content, and BootEnvs with a prefix of ce-). The BootEnvs names change, by removing the prefix of “ce-” from the name.

Make sure all the bootenvs are up to date and available. This is a task you should always do after updating content. If the BootEnv is marked with an “X” in the UX, or "Available": false from the CLI/API, you’ll need to reload the ISO for the BootEnv.

Then go to Info & Preferences and make sure your default stage and bootenvs are still valid.

  • This is where ce-sledgehammer becomes sledgehammer and ce-discovery becomes discovery
  • The same with ce-ubuntu-16.04-install becomes ubuntu-16.04-install.
  • The same with ce-centos-7.4.1708-install becomes centos-7-install.

Example pseudo-script to make changes:

Please carefully read through this script and make sure it correlates to your installed content. It is provided only as an example, and will absolutely require (possibly just minor) modifications for your environment.

YOU MUST MODIFY THE RACK_AUTH variable appropriately for the download authentication to work correctly.

# see all contents
drpcli contents list

# list JUST the names of the contents - note what you have installed,
# you may need to re-install it below
drpcli contents list | jq -r '.[].meta.Name' | egrep -v "BackingStore|BasicStore"

# list which plugins you have installed - note it, you may need to install
# it below
drpcli plugin_providers list | jq '.[].Name'

# go to RackN UX - log in, go to Hamburger menu (upper left, 3 horizontal lines)
# go to Organization - User Profile - copy your UUID for Unique User Identity
export RACKN_AUTH="?username=<UUID_Unique_User_Identity>"
export CATALOG="https://qww9e4paf1.execute-api.us-west-2.amazonaws.com/main/catalog"

# get raw output of just the content packs
for CONTENT in `drpcli contents list | jq -r '.[].meta.Name' | egrep -v "BackingStore|BasicStore"`
  echo "remove content:   $CONTENT"
  drpcli contents destroy $CONTENT

# install content
for CONTENT in drp-community-content task-library drp-community-contrib
  echo "install content:  $CONTENT"
  curl -s $CATALOG/content/${CONTENT}${RACKN_AUTH} -o $CONTENT.json
  drpcli contents create -< $CONTENT.json

# change "plug1", "plug2", etc... to the plugin provider names you need
# examples:  "slack", "packet-ipmi", "ipmi"
for PLUGIN in plug1 plug2 plug3
  echo "install plugin:  $PLUGIN"
  curl -s $CATALOG/plugin/${PLUGIN}${RACKN_AUTH} -o $PLUGIN.json
  drpcli contents create -< $PLUGIN.json

# insure the Stage, Default, and Unknown BootEnv are set to valid values
# adjust these as appropriate
drpcli prefs set defaultStage discover defaultBootEnv sledgehammer unknownBootEnv discovery

Again - make sure you modify things appropriately in the above scriptlet. YOU MUST MODIFY THE RACK_AUTH variable appropriately for the download authentication to work correctly.

7. Subnet Enabled

Starting in v3.1.0, subnet objects have an enabled flag that allows for subnets to be turned off without deleting them. This value defaults to false (off). To enable existing subnets, you will need to do the following for each subnet in your system:

drpcli subnets update subnet1 '{ "Enabled": true }'

Replace subnet1 with the name of your subnet. You may obtain a list of configured subnets with:

drpcli subnets list | jq -r '.[].Name'

8. Local UI Removed

The old UI has been removed and a redirect to the RackN Portal UI is present instead. The UI loads into the browswer and then uses the API to access the Endpoint. The DRP endpoint does not talk to the internet. The browser acts as a bridge for content transfers. The only requirement is that the browser has access to the Endpoint and HTTPS-based access to the internet. The HTTPS-based access can be through a web proxy.

9. Install Script Changed

There are minor changes to the install script for isolated mode. Production mode installs are still done and updated the same way. For isolated, there are some new flags and options. Please see the commands output for more details or check the updated Quick Start.

For current install.sh script usage information, please run:

install.sh --help

For complete details.