rally deployment check retrun :AuthenticationFailed: Failed to authenticate to http://192.168.19.2:5000/v3/ for user 'admin' in project 'admin': [Forbidden] Forbidden (HTTP 403)

Asked by mariahfeng on 2020-07-16

version
rally 2.1.0
rally-openstack 1.7.0
openstack 3.12.2
Keystone -- V3

os:centos

my existing.json(message in this file is right)
{
    "openstack": {
        "auth_url": "http://192.168.19.2:5000/v3/",
        "region_name": "regionname",
        "endpoint_type": "public",
        "admin": {
            "username": "admin",
            "password": "test",
            "user_domain_name": "default",
            "project_domain_name": "default",
            "project_name": "admin"
        },
        "https_insecure": true,
        "https_cacert": ""
    }
}
1、rally deployment create --filename existing.json --name deployment exe succeed
[root@edb3eba6659f ~]# rally deployment create --filename existing.json --name deployment
/usr/lib/python2.7/site-packages/kubernetes/client/apis/__init__.py:12: DeprecationWarning: The package kubernetes.client.apis is renamed and deprecated, use kubernetes.client.api instead (please note that the trailing s was removed).
  DeprecationWarning
2020-07-16 08:09:33.739 342 WARNING rally.task.scenario [-] Old fashion plugin configuration detected in `NeutronNetworks.create_and_bind_ports@openstack' scenario. Use full name for `networking_agents' context like networking_agents@platform where 'platform' is a name of context platform (openstack, k8s, etc).
2020-07-16 08:09:33.739 342 WARNING rally.task.scenario [-] Old fashion plugin configuration detected in `NeutronNetworks.create_and_bind_ports@openstack' scenario. Use full name for `network' context like network@platform where 'platform' is a name of context platform (openstack, k8s, etc).
+--------------------------------------+----------------------------+------------+------------------+--------+
| uuid | created_at | name | status | active |
+--------------------------------------+----------------------------+------------+------------------+--------+
| c3b59f06-f93d-4911-a192-e9e0e8f94db9 | 2020-07-16T08:09:33.921598 | deployment | deploy->finished | |
+--------------------------------------+----------------------------+------------+------------------+--------+
Using deployment: c3b59f06-f93d-4911-a192-e9e0e8f94db9
~/.rally/openrc was updated

HINTS:

* To use standard OpenStack clients, set up your env by running:
        source ~/.rally/openrc
  OpenStack clients are now configured, e.g run:
        openstack image list

2、rally deployment check retrun AuthenticationFailed: Failed to authenticate to http://192.168.19.2:5000/v3/ for user 'admin' in project 'admin': [Forbidden] Forbidden (HTTP 403)

[root@edb3eba6659f ~]# rally deployment check
/usr/lib/python2.7/site-packages/kubernetes/client/apis/__init__.py:12: DeprecationWarning: The package kubernetes.client.apis is renamed and deprecated, use kubernetes.client.api instead (please note that the trailing s was removed).
  DeprecationWarning
2020-07-16 08:21:31.463 382 WARNING rally.task.scenario [-] Old fashion plugin configuration detected in `NeutronNetworks.create_and_bind_ports@openstack' scenario. Use full name for `networking_agents' context like networking_agents@platform where 'platform' is a name of context platform (openstack, k8s, etc).
2020-07-16 08:21:31.464 382 WARNING rally.task.scenario [-] Old fashion plugin configuration detected in `NeutronNetworks.create_and_bind_ports@openstack' scenario. Use full name for `network' context like network@platform where 'platform' is a name of context platform (openstack, k8s, etc).
--------------------------------------------------------------------------------
Platform openstack:
--------------------------------------------------------------------------------

Error while checking admin credentials:
        AuthenticationFailed: Failed to authenticate to http://192.168.19.2:5000/v3/ for user 'admin' in project 'admin': [Forbidden] Forbidden (HTTP 403)

~/.rally/openrc
export OS_AUTH_URL='http://192.168.19.2:5000/v3/'
export OS_USERNAME='admin'
export OS_PASSWORD='test'
export OS_TENANT_NAME='admin'
export OS_PROJECT_NAME='admin'
export OS_REGION_NAME='regionname'
export OS_ENDPOINT_TYPE='publicURL'
export OS_INTERFACE='public'
export OS_IDENTITY_API_VERSION=3
export OS_USER_DOMAIN_NAME='default'
export OS_PROJECT_DOMAIN_NAME='default'

Please help to see how to solve it,thanks!

Question information

Language:
English Edit question
Status:
Solved
For:
Rally Edit question
Assignee:
No assignee Edit question
Solved by:
mariahfeng
Solved:
2020-07-20
Last query:
2020-07-20
Last reply:
mariahfeng (mariahfeng) said : #1

I solved it