Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Debug Logs #76

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions f5_ctlr_agent/bigipconfigdriver.py
Original file line number Diff line number Diff line change
Expand Up @@ -839,6 +839,7 @@ def handle_operation_create(self,gtm,partition,gtmConfig,opr_config,opr):
# Create GTM pool
self.create_gtm_pool(gtm, partition, config, all_monitors)
# Create Wideip
log.debug("GTM: MSCI def handle_operation_create::create_wideip newPools:{}".format(newPools))
self.create_wideip(gtm, partition, config, newPools)
except F5CcclError as e:
raise e
Expand Down Expand Up @@ -943,6 +944,7 @@ def create_gtm(self, partition, gtmConfig):
# Create GTM pool
self.create_gtm_pool(gtm, partition, config, all_monitors)
# Create Wideip
log.debug("GTM: MSCI create_gtm:create_wideip newPools:{}".format(newPools))
self.create_wideip(gtm, partition, config, newPools)
except F5CcclError as e:
raise e
Expand Down Expand Up @@ -975,9 +977,11 @@ def create_wideip(self, gtm, partition, config, newPools):
duplicatePools.append(p)

for poolName in duplicatePools:
log.info('GTM: MSCI duplicatePools: {}'.format(poolName))
del newPools[poolName]

if len(newPools) > 0:
log.info('GTM: MSCI More newPools: {}'.format(newPools))
self.attach_gtm_pool_to_wideip(
gtm,
config['name'],
Expand Down Expand Up @@ -1028,11 +1032,11 @@ def attach_gtm_pool_to_wideip(self, gtm, name, partition, poolObj):
wideip.lastResortPool = "none"
if hasattr(wideip, 'pools'):
wideip.pools.extend(poolObj)
log.info('GTM: Attaching Pool: {} to wideip {}'.format(poolObj, name))
log.info('GTM: MSCI if pools Attaching Pool: {} to wideip {}'.format(poolObj, name))
wideip.update()
else:
wideip.raw['pools'] = poolObj
log.info('GTM: Attaching Pool: {} to wideip {}'.format(poolObj, name))
log.info('GTM: MSCI else pools Attaching Pool: {} to wideip {}'.format(poolObj, name))
wideip.update()
except F5CcclError as e:
log.error("GTM: Error while attaching gtm pool to wideip: %s", e)
Expand Down