问题现象:验证网络状态一直处于验证中,重启电脑问题依旧存在
解决办法:
1.执行fuel task -l
发现verify_networks任务处于running状态
2.执行fuel task --delete -f --tid 349
强制删除该任务
3.查看verify_networks任务状态,已恢复
4.UI验证网络,测试通过
备注:
开始的是调试代码及其postgres数据未能定位问题
A、代码调查记录:
/usr/lib/python2.7/site-packages/fuelclient/cli/actions
response = env.verify_network()
def verify_network(self):
return self.connection.put_request(
self.network_verification_url, self.get_network_data()
from fuelclient.objects.base import BaseObject
connection = APIClient
from fuelclient.client import APIClient
def put_request(self, api, data, **params):
"""Make PUT request to specific API with some data.
:param api: API endpoint (path)
:param data: Data send in request, will be serialized to JSON
:param params: Params of query string
"""
url = self.api_root + api
data_json = json.dumps(data)
resp = self.session.put(url, data=data_json, params=params)
self.print_debug('PUT {0} data={1}'.format(resp.url, data_json))
self._raise_for_status_with_info(resp)
return resp.json()
def _raise_for_status_with_info(self, response):
try:
response.raise_for_status()
except requests.exceptions.HTTPError as e:
raise error.HTTPError(error.get_full_error_message(e))
B、postgres数据库调查记录:
#su postgres
#psql