Don't raise FileNotFoundError during disabling keepalived
In case when keepalived's config is not existing already, there is no
need to raise any exception while L3 agent is trying to clean this
config.
In stable/rocky branch, where we are using Python 2.7 it requires to
catch EnvironmentError and check errno instead of catching
FileNotFoundError which isn't available in Python 2.7.
Change-Id: I9ec81ad0c10379294d3145c5902e8b81b65c0221
Closes-Bug: #1892866
(cherry picked from commit a08893368a9f323d41f490ee043ef7bd50c4f1fa)
Reviewed: https:/ /review. opendev. org/748961 /git.openstack. org/cgit/ openstack/ neutron/ commit/ ?id=bf73cd98aae 1b702b00f6dca4c 3e6e1ceeb5ae48
Committed: https:/
Submitter: Zuul
Branch: stable/rocky
commit bf73cd98aae1b70 2b00f6dca4c3e6e 1ceeb5ae48
Author: Slawek Kaplonski <email address hidden>
Date: Tue Aug 25 15:06:04 2020 +0200
Don't raise FileNotFoundError during disabling keepalived
In case when keepalived's config is not existing already, there is no
need to raise any exception while L3 agent is trying to clean this
config.
In stable/rocky branch, where we are using Python 2.7 it requires to dError which isn't available in Python 2.7.
catch EnvironmentError and check errno instead of catching
FileNotFoun
Change-Id: I9ec81ad0c10379 294d3145c5902e8 b81b65c0221 d41f490ee043ef7 bd50c4f1fa)
Closes-Bug: #1892866
(cherry picked from commit a08893368a9f323