Merge "remove debug info"
This commit is contained in:
commit
97c649a022
@ -29,4 +29,3 @@ def get_cache():
|
||||
|
||||
def set_cache(discover_host_result):
|
||||
cache.set("discover_host_cache", discover_host_result)
|
||||
LOG.info("UUUUUUUUUUUUUUU %s" % get_cache())
|
||||
|
@ -33,7 +33,6 @@ def conf_ipmi(request, cluster_id):
|
||||
hosts = api.daisy.host_list(request)
|
||||
i = 1
|
||||
for host in hosts:
|
||||
LOG.info("wmh dbg: host= %s" % host)
|
||||
api.daisy.host_update(request,
|
||||
host.id,
|
||||
# name=host_name,
|
||||
@ -66,7 +65,6 @@ def list_discover_host(request, cluster_id):
|
||||
LOG.info("host_list = %s" % host_list)
|
||||
except Exception as e:
|
||||
messages.error(request, e)
|
||||
LOG.error('wmh dbg: e=%s' % e)
|
||||
response.status_code = 500
|
||||
return response
|
||||
|
||||
@ -83,7 +81,6 @@ def get_discover_result(request, cluster_id):
|
||||
LOG.info("cache_discover_hosts = %s" % cache_discover_hosts)
|
||||
except Exception as e:
|
||||
messages.error(request, e)
|
||||
LOG.error('wmh dbg2: e=%s' % e)
|
||||
response.status_code = 500
|
||||
return response
|
||||
|
||||
|
@ -248,8 +248,6 @@ class HostsView(generic.TemplateView):
|
||||
context["cluster_name"] = c.name
|
||||
|
||||
pre_url = self.request.META.get('HTTP_REFERER', "/")
|
||||
LOG.warning("################### pre_url = "
|
||||
"%s ###########################" % pre_url)
|
||||
if "network" in pre_url:
|
||||
context["pre_url"] =\
|
||||
"/dashboard/environment/network/" + cluster_id + "/routes"
|
||||
@ -330,7 +328,6 @@ def update_host_nics(request, cluster_id, host_id):
|
||||
if nic['assigned_networks'] == []:
|
||||
del nic['assigned_networks']'''
|
||||
# clean_none_attr(host_dict)
|
||||
LOG.info("$$$$$$$$$$$$$$ host_interfaces: %s" % host_interfaces)
|
||||
|
||||
# api.daisy.host_update(request, host_id, **host_dict)
|
||||
api.daisy.host_update(request,
|
||||
@ -360,10 +357,8 @@ def update_host_ipmis(request, cluster_id, host_id):
|
||||
try:
|
||||
host = get_host_by_id(request, host_id)
|
||||
host_dict = host.to_dict()
|
||||
LOG.info("!!!!!!!!!!!! Before clean host_dict: " % host_dict)
|
||||
|
||||
clean_none_attr(host_dict)
|
||||
LOG.info("$$$$$$$$$$$$$$ After clean host_dict: %s" % host_dict)
|
||||
|
||||
api.daisy.host_update(request, host_id,
|
||||
cluster=cluster_id,
|
||||
@ -431,8 +426,6 @@ class HostNicsView(generic.TemplateView):
|
||||
nics = []
|
||||
|
||||
netplanes = self.get_netplane_data(cluster_id)
|
||||
LOG.info("!!!!!!!!!!!!!!!!!!!!``````` nics: %s" % nics)
|
||||
LOG.info("~~~~~~~~~~~~~~~~~~~~``````` netplanes: %s" % netplanes)
|
||||
|
||||
ether_nics = []
|
||||
bond_nics = []
|
||||
|
Loading…
x
Reference in New Issue
Block a user