OpenStack Commands Fail With "Expecting to Find Domain in User

Problem

  • While attempting to execute OpenStack commands from a self-service user using the OpenStack CLI, some of the commands fail with the following error.
Copy

Environment

  • Platform9 Managed OpenStack - All Versions
  • Python-OpenstackClient - 4.0.0

Cause

  • The .rc downloaded for the self-service user from the Management Plane does not have the OS_USER_DOMAIN_NAME parameter defined.
Copy

Resolution

  1. Check for the user Domain using the following command.
Copy
  1. Add the parameter export OS_USER_DOMAIN_NAME=[Domain name] to the RC file. It is mostly default in most of the cases. The entry looks as shown below.
Copy
  1. Verify commands which were previously failing now function as expected.
Type to search, ESC to discard
Type to search, ESC to discard
Type to search, ESC to discard