Using OpenStack CLI With MFA

Problem

  • OpenStack CLI fails with the following after enabling multi-factor authentication (MFA) for a local user.
Bash
Copy
  • OpenStack CLI needs to work for local users with MFA enabled.

Environment

  • Platform9 Managed OpenStack - All Versions
  • Keystone
  • OpenStack CLI

Procedure

  1. Create the following OpenRC file – substituting the variables with your user information (i.e. enter your username and password, along with the applicable region and project).
Bash
Copy
  1. Source the OpenRC file, and use the OpenStack CLI as you would normally.
Bash
Copy

Additional Information

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