Skip to content

Conversation

@zhang-shengping
Copy link
Contributor

@zhang-shengping zhang-shengping commented Jun 10, 2019

refresh ESD,
restore ESD file and log the error, if an error happens

Set esd_auto_refresh = False and use command neutron lbaas-l7policy-update esd_demo_3 --action REJECT to trigger ESD file refresh manually.

1. add ESD refresh periodic_task
2. fix ESD and l7policy Regex irule configuration conflicts
Copy link
Contributor

@zongzw zongzw left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm.

@zhang-shengping zhang-shengping force-pushed the refresh-ESD-9.8-v2 branch 3 times, most recently from e05162e to 5a47e1e Compare June 10, 2019 09:21
Set 'esd_auto_refresh = False' and use command
"neutron lbaas-l7policy-update esd_demo_3 --action REJECT"
to trigger ESD file refresh manually.
# init esd object in service_adapter
esd_dir = os.path.join(self.get_config_dir(), 'esd')
esd = EsdTagProcessor(esd_dir)
# EsdTagProcessor is a singleton, so nothing new
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

are you sure this is a singleton?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sure

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

see line #2412, >1 init_esd() could lead here.

def update_l7policy(self, old_l7policy, l7policy, service):
"""Update lb l7policy."""
if not self.conf.esd_auto_refresh:
self.init_esd()
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

let's discuss the necessity and validity of this part

@Niklaus-xie
Copy link
Contributor

should we drop this PR and only review the following one: #1423

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants