The 'openstacksdk' Version 0.39.0 is Required to Run Pf9-express To Onboard Host.

Problem

PF9-Express will exit with an error unauthorized request while onboarding a node.

Copy

Environment

  • Platform9 Managed OpenStack - v4.0 and Higher
  • Platform9 Express

Cause

The older version of pf9-express imports and uses a python module "shade" which is no longer supported.

Resolution

There are 2 options available to resolve this issue as highlighted in point no 2 and point no 3 below.

  1. Login to the machine you use to run the express code.
  2. Complete rebuild of the Express codebase by following the below two steps.
    1. The master branch of the pf9-express repository has the fix available.
    2. Do a complete rebuild with a 'git clone' of the current pf9-express repo

OR

  1. Edit the Express code on the machine where it's installed by following below steps.

1. Edit the pf9-express code to replace 'shade' with 'openstacksdk==0.39.0'. Note the single quotes around this package. That will be needed as part of the bash script syntax. Also,

note that there will be two instances of this step within the code (one for Ubuntu and one

for Centos). Ensure you make the same change in both places.

Copy

2. Uninstall all previous versions of openstacksdk using the command pip uninstall openstack. It is important to note that there might be multiple versions of this in the system. The command needs to be repeated to ensure all remnants are gone.

3. Run pf9-express without bypassing the prereqs to pick the new changes. i.e without using the '-b' switch in your commands.

Type to search, ESC to discard
Type to search, ESC to discard
Type to search, ESC to discard