admin role judge exception caused the policy to fail
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
trio2o |
New
|
Undecided
|
zhangxiaohan |
Bug Description
Do the following:
1. source openrc admin admin
2. openstack --os-region-
3. curl -X POST http://
-H "X-Auth-Token: $token" -d '{"pod": {"pod_name": "Pod2", "az_name": "az2"}}'
Error response following:
<html>
<head>
<title>401 Unauthorized<
</head>
<body>
<h1>401 Unauthorized</h1>
This server could not verify that you are authorized to access the document you requested. Either you supplied the wrong credentials (e.g., bad password), or your browser does not understand how to supply the credentials required.<br /><br />
Unauthorized to create pods
Log following:
Aug 21 10:26:23 localhost trio2o-api[1410]: 2018-08-21 10:26:23.155 ERROR trio2o.
Aug 21 10:26:23 localhost trio2o-api[1410]: 2018-08-21 10:26:23.155 TRACE trio2o.
Aug 21 10:26:23 localhost trio2o-api[1410]: 2018-08-21 10:26:23.155 TRACE trio2o.
Aug 21 10:26:23 localhost trio2o-
Aug 21 10:26:23 localhost trio2o-api[1410]: 2018-08-21 10:26:23.155 TRACE trio2o.
Aug 21 10:26:23 localhost trio2o-api[1410]: 2018-08-21 10:26:23.155 TRACE trio2o.
Aug 21 10:26:23 localhost trio2o-api[1410]: 2018-08-21 10:26:23.155 TRACE trio2o.
Changed in trio2o: | |
assignee: | nobody → zhangxiaohan (zhangxh502) |