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

Refresh esd 9.8 v2 #1422

Open
wants to merge 3 commits into
base: 9.8-stable
Choose a base branch
from

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
Collaborator

@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.
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.

@@ -2399,6 +2408,8 @@ def create_l7policy(self, l7policy, service):
@is_operational
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