diff options
author | Stephen Finucane <stephenfin@redhat.com> | 2020-08-31 15:01:15 +0100 |
---|---|---|
committer | Stephen Finucane <stephenfin@redhat.com> | 2020-09-11 14:09:06 +0100 |
commit | adb28f503ca8c38bd7224ec0a335f730557d7ca9 (patch) | |
tree | 20c88356399a29be7966213bac857db1d8bf559d /nova/privsep | |
parent | 19cb983800e4555581ac817380c8697ec3cc793d (diff) | |
download | nova-adb28f503ca8c38bd7224ec0a335f730557d7ca9.tar.gz |
xenapi: Remove driver and tests
Change-Id: I42b302afbb1cfede7a0f7b16485a596cd70baf17
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
Diffstat (limited to 'nova/privsep')
-rw-r--r-- | nova/privsep/xenapi.py | 37 |
1 files changed, 0 insertions, 37 deletions
diff --git a/nova/privsep/xenapi.py b/nova/privsep/xenapi.py deleted file mode 100644 index d1e470dff5..0000000000 --- a/nova/privsep/xenapi.py +++ /dev/null @@ -1,37 +0,0 @@ -# Copyright 2018 Michael Still and Aptira -# -# Licensed under the Apache License, Version 2.0 (the "License"); you may -# not use this file except in compliance with the License. You may obtain -# a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -# License for the specific language governing permissions and limitations -# under the License. - -""" -xenapi specific routines. -""" - -from oslo_concurrency import processutils - -import nova.privsep - - -@nova.privsep.sys_admin_pctxt.entrypoint -def xenstore_read(path): - return processutils.execute('xenstore-read', path) - - -@nova.privsep.sys_admin_pctxt.entrypoint -def block_copy(src_path, dst_path, block_size, num_blocks): - processutils.execute('dd', - 'if=%s' % src_path, - 'of=%s' % dst_path, - 'bs=%d' % block_size, - 'count=%d' % num_blocks, - 'iflag=direct,sync', - 'oflag=direct,sync') |