summaryrefslogtreecommitdiff
path: root/cinder/privsep
diff options
context:
space:
mode:
authorEric Harney <eharney@redhat.com>2022-04-06 12:02:29 -0400
committerEric Harney <eharney@redhat.com>2022-04-06 12:04:05 -0400
commita37daf96c1766daeb84cf328af9172163975ab4f (patch)
tree2d9d31d247faacfdb255cc55077220a405eae167 /cinder/privsep
parent85387cae8b3641d6d193c6550edbfb0de1d8384e (diff)
downloadcinder-a37daf96c1766daeb84cf328af9172163975ab4f.tar.gz
Remove privsep/hscli
This was for a driver that is no longer in the tree. It is also broken -- it refers to an exception class that doesn't exist (exception.UnableToExecuteHyperScaleCmd). Change-Id: I856376aa29e076d501ee19cbb386329017363dad
Diffstat (limited to 'cinder/privsep')
-rw-r--r--cinder/privsep/hscli.py44
1 files changed, 0 insertions, 44 deletions
diff --git a/cinder/privsep/hscli.py b/cinder/privsep/hscli.py
deleted file mode 100644
index fcbfd35be..000000000
--- a/cinder/privsep/hscli.py
+++ /dev/null
@@ -1,44 +0,0 @@
-# Copyright 2018 Red Hat, Inc
-# Copyright (c) 2017 Veritas Technologies LLC. All rights reserved.
-# Copyright 2017 Rackspace Australia
-# 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.
-
-"""
-Helpers for hscli related routines
-"""
-from oslo_concurrency import processutils as putils
-from oslo_log import log as logging
-
-from cinder import exception
-import cinder.privsep
-
-LOG = logging.getLogger(__name__)
-
-
-@cinder.privsep.sys_admin_pctxt.entrypoint
-def hsexecute(cmdarg_json):
-
- cmd_out = None
- cmd_err = None
- try:
- # call hyperscale cli
- (cmd_out, cmd_err) = putils.execute("hscli", cmdarg_json)
- except (putils.UnknownArgumentError, putils.ProcessExecutionError,
- OSError):
- LOG.exception("Exception in running the command for %s",
- cmdarg_json)
- raise exception.UnableToExecuteHyperScaleCmd(command=cmdarg_json)
-
- return (cmd_out, cmd_err)