The OS_PROJECT_NAME (or OS_TENANT_NAME) environment variable needs to be defined. Use the OS_PROJECT_NAME, since it is recommended in the documentation instead of the older OS_TENANT_NAME.