-
Notifications
You must be signed in to change notification settings - Fork 38
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
base: 9.8-stable
Are you sure you want to change the base?
Refresh esd 9.8 v2 #1422
Conversation
1. add ESD refresh periodic_task 2. fix ESD and l7policy Regex irule configuration conflicts
c5bf9a8
to
b75510a
Compare
with unit tests
b75510a
to
81995bd
Compare
22d40b7
to
63fdc37
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm.
e05162e
to
5a47e1e
Compare
Set 'esd_auto_refresh = False' and use command "neutron lbaas-l7policy-update esd_demo_3 --action REJECT" to trigger ESD file refresh manually.
5a47e1e
to
07b6de2
Compare
esd_dir = os.path.join(self.get_config_dir(), 'esd') | ||
esd = EsdTagProcessor(esd_dir) | ||
# EsdTagProcessor is a singleton, so nothing new |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sure
There was a problem hiding this comment.
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() |
There was a problem hiding this comment.
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
should we drop this PR and only review the following one: #1423 |
refresh ESD,
restore ESD file and log the error, if an error happens
Set
esd_auto_refresh = False
and use commandneutron lbaas-l7policy-update esd_demo_3 --action REJECT
to trigger ESD file refresh manually.