Primary Maintainer¶
- Primary Maintainer:
Steve Martinelli (stevemar)
blueprint: https://blueprints.launchpad.net/oslo-incubator/+spec/graduate-oslo-io
summary: move the fileutils code (and associated tests) into oslo.utils
oslo.utils and oslo.policy
openstack/common/fileutils.py
tests/unit/test_fileutils.py
keystone
fileutils.py has only 7 functions and 1 global. Their usage, and graduation plan will be broken down below.
ensure_tree()
used by nova/cinder/ironic
to be added to oslo.utils
delete_if_exists()
used extensively in nova and cinder and a bit in neutron
to be added to oslo.utils
remove_path_on_error()
used by nova/cinder/ironic
to be added to oslo.utils
write_to_tempfile()
used sparingly in keystone and ceilometer (tests only)
consider deprecation
file_open
used extensively in cinder
can be replaced with just an open() call
consider deprecation
read_cached_file()
used only by nova’s policy engine, and by oslo.policy
can push both of these into oslo.policy and when/if nova switches to oslo.policy, they will no longer require these functions.
delete_cached_file()
same as above.
DEFAULT_MODE
not being referred to, can be marked as private.
Steve Martinelli (stevemar)
Steve Martinelli (stevemar)
Doug Hellmann (doug-hellmann)
Liberty-1
Projects currently importing:
from openstack.common import fileutils
would have to switch to importing:
from oslo_utils import fileutils
if using:
fileutils.file_open()
switch to:
open()
if using:
fileutils.read_cached_file()
switch to:
oslo_policy
None
https://etherpad.openstack.org/p/kilo-oslo-library-proposals
WIP patch https://review.openstack.org/#/c/154975/
Note
This work is licensed under a Creative Commons Attribution 3.0 Unported License. http://creativecommons.org/licenses/by/3.0/legalcode
Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.