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/queens 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/748962 /git.openstack. org/cgit/ openstack/ neutron/ commit/ ?id=da7e9c54080 11bc863b114e356 6c18ba203ae959
Committed: https:/
Submitter: Zuul
Branch: stable/queens
commit da7e9c5408011bc 863b114e3566c18 ba203ae959
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/queens 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