在创建vm的时候在controller node报错:
2017-01-17 18:36:26.942 17143 INFO neutron.wsgi [req-a815cde4-f49c-4d23-b9c3-030bfc2a75d4 ] 10.68.124.5 - - [17/Jan/2017 18:36:26] "GET /v2.0/security-groups.json?tenant_id=f57b892b5c50426bb90414d31f0e77f3 HTTP/1.1" 200 2746 0.023965 2017-01-17 18:36:26.964 17143 WARNING keystonemiddleware.auth_token [req-a815cde4-f49c-4d23-b9c3-030bfc2a75d4 ] Authorization failed for token 2017-01-17 18:36:26.964 17143 WARNING keystonemiddleware.auth_token [req-a815cde4-f49c-4d23-b9c3-030bfc2a75d4 ] Identity response: {"error": {"message": "Could not find token: 0ce97969662946be861fb02ce4381be4", "code": 404, "title": "Not Found"}} 2017-01-17 18:36:26.965 17143 WARNING keystonemiddleware.auth_token [req-a815cde4-f49c-4d23-b9c3-030bfc2a75d4 ] Authorization failed for token 2017-01-17 18:36:26.965 17143 INFO neutron.wsgi [req-a815cde4-f49c-4d23-b9c3-030bfc2a75d4 ] 10.68.124.5 - - [17/Jan/2017 18:36:26] "POST /v2.0/ports.json HTTP/1.1" 401 282 0.020042 2017-01-17 18:36:30.964 17143 INFO neutron.wsgi [req-2ccbadfc-ba0c-46c9-9334-d0b08f719ca0 ] 10.68.124.5 - - [17/Jan/2017 18:36:30] "GET /v2.0/ports.json?device_id=fe82e41c-b566-4f40-885c-39d970b83395 HTTP/1.1" 200 226 0.023853 2017-01-17 18:36:30.969 17143 WARNING keystonemiddleware.auth_token [req-2ccbadfc-ba0c-46c9-9334-d0b08f719ca0 ] Authorization failed for token 2017-01-17 18:36:30.969 17143 INFO neutron.wsgi [req-2ccbadfc-ba0c-46c9-9334-d0b08f719ca0 ] 10.68.124.5 - - [17/Jan/2017 18:36:30] "PUT /v2.0/ports/None.json HTTP/1.1" 401 282 0.001208 2017-01-17 18:36:31.054 17143 INFO neutron.wsgi [req-f5942e6a-35b8-4711-a3a9-b999076b51f0 ] 10.68.124.5 - - [17/Jan/2017 18:36:31] "GET /v2.0/ports.json?device_id=fe82e41c-b566-4f40-885c-39d970b83395 HTTP/1.1" 200 226 0.023567 2017-01-17 18:36:31.058 17143 WARNING keystonemiddleware.auth_token [req-f5942e6a-35b8-4711-a3a9-b999076b51f0 ] Authorization failed for token 2017-01-17 18:36:31.059 17143 INFO neutron.wsgi [req-f5942e6a-35b8-4711-a3a9-b999076b51f0 ] 10.68.124.5 - - [17/Jan/2017 18:36:31] "PUT /v2.0/ports/None.json HTTP/1.1" 401 282 0.001111 2017-01-17 18:36:47.052 17143 WARNING keystonemiddleware.auth_token [req-f5942e6a-35b8-4711-a3a9-b999076b51f0 ] Authorization failed for token 2017-01-17 18:36:47.053 17143 INFO neutron.wsgi [req-f5942e6a-35b8-4711-a3a9-b999076b51f0 ] 10.68.124.5 - - [17/Jan/2017 18:36:47] "GET /v2.0/ports.json?tenant_id=f57b892b5c50426bb90414d31f0e77f3&device_id=fe82e41c-b566-4f40-885c-39d970b83395 HTTP/1.1" 401 282 0.001328 2017-01-17 18:37:47.049 17143 WARNING keystonemiddleware.auth_token [req-f5942e6a-35b8-4711-a3a9-b999076b51f0 ] Authorization failed for token 2017-01-17 18:37:47.050 17143 INFO neutron.wsgi [req-f5942e6a-35b8-4711-a3a9-b999076b51f0 ] 10.68.124.5 - - [17/Jan/2017 18:37:47] "GET /v2.0/ports.json?tenant_id=f57b892b5c50426bb90414d31f0e77f3&device_id=fe82e41c-b566-4f40-885c-39d970b83395 HTTP/1.1" 401 282 0.001886 2017-01-17 18:38:48.054 17143 WARNING keystonemiddleware.auth_token [req-f5942e6a-35b8-4711-a3a9-b999076b51f0 ] Authorization failed for token 2017-01-17 18:38:48.056 17143 INFO neutron.wsgi [req-f5942e6a-35b8-4711-a3a9-b999076b51f0 ] 10.68.124.5 - - [17/Jan/2017 18:38:48] "GET /v2.0/ports.json?tenant_id=f57b892b5c50426bb90414d31f0e77f3&device_id=fe82e41c-b566-4f40-885c-39d970b83395 HTTP/1.1" 401 282 0.001782 2017-01-17 18:39:48.055 17143 WARNING keystonemiddleware.auth_token [req-f5942e6a-35b8-4711-a3a9-b999076b51f0 ] Authorization failed for token 2017-01-17 18:39:48.056 17143 INFO neutron.wsgi [req-f5942e6a-35b8-4711-a3a9-b999076b51f0 ] 10.68.124.5 - - [17/Jan/2017 18:39:48] "GET /v2.0/ports.json?tenant_id=f57b892b5c50426bb90414d31f0e77f3&device_id=fe82e41c-b566-4f40-885c-39d970b83395 HTTP/1.1" 401 282 0.001976 2017-01-17 18:40:49.053 17143 WARNING keystonemiddleware.auth_token [req-f5942e6a-35b8-4711-a3a9-b999076b51f0 ] Authorization failed for token 2017-01-17 18:40:49.054 17143 INFO neutron.wsgi [req-f5942e6a-35b8-4711-a3a9-b999076b51f0 ] 10.68.124.5 - - [17/Jan/2017 18:40:49] "GET /v2.0/ports.json?tenant_id=f57b892b5c50426bb90414d31f0e77f3&device_id=fe82e41c-b566-4f40-885c-39d970b83395 HTTP/1.1" 401 282 0.001853
google了一下,居然没有找到我想找的那种解决方案:
回头再看看官方文档,如果token过期了需要重新取得一个token
[root@controller ~]# openstack token issue +------------+----------------------------------+ | Field | Value | +------------+----------------------------------+ | expires | 2017-01-17T12:23:07.968593Z | | id | fb65e088c00b4ca8ab69364ef6f5a7ac | | project_id | f57b892b5c50426bb90414d31f0e77f3 | | user_id | 60c0bf61f8f847e88d5562d419d8c367 | +------------+----------------------------------+
重启neutron 所有的agent
恢复正常:)