coprhd_blockdevice.py 文件源码

python
阅读 21 收藏 0 点赞 0 评论 0

项目:flocker-driver 作者: CoprHD 项目源码 文件源码
def unexport_volume(self, vol):
        self.authenticate_user()
        try:
               self.exportgroup_obj.exportgroup_remove_volumes(
                True,
                self.hostexportgroup,
                self.tenant,
                self.project,
                [vol],
                None,
                None)
        except utils.SOSError as e:
         if(e.err_code == utils.SOSError.HTTP_ERR):
                raise utils.SOSError(
                    utils.SOSError.HTTP_ERR,
                    "coprhd unexport_volume http error" + e.err_text)
         elif(e.err_code == utils.SOSError.SOS_FAILURE_ERR):
                raise utils.SOSError(
                    utils.SOSError.SOS_FAILURE_ERR,
                    "coprhd unexport_volume failed" + e.err_text)
         else:
                Message.new(Debug="coprhd unexport volume failed").write(_logger)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号