diff options
| author | Jenkins <jenkins@review.openstack.org> | 2012-11-13 16:13:57 +0000 |
|---|---|---|
| committer | Gerrit Code Review <review@openstack.org> | 2012-11-13 16:13:57 +0000 |
| commit | c9a2ae6bc9efa4dc64d0720e371bdb8f3c20554b (patch) | |
| tree | 8f519927218c8277b9197f5023344ca66c1d9120 /nova/virt | |
| parent | 3c9e48d1119b77428346680c2a009c44ff9bf2ce (diff) | |
| parent | c4de05e7c755870cb8447cc3005c67b59fe9f6b2 (diff) | |
Merge "Remove volume.driver and volume.iscsi"
Diffstat (limited to 'nova/virt')
| -rw-r--r-- | nova/virt/libvirt/volume.py | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/nova/virt/libvirt/volume.py b/nova/virt/libvirt/volume.py index 03c335fa0..66ffc2efa 100644 --- a/nova/virt/libvirt/volume.py +++ b/nova/virt/libvirt/volume.py @@ -23,6 +23,7 @@ import time from nova import config from nova import exception from nova import flags +from nova.openstack.common import cfg from nova.openstack.common import lockutils from nova.openstack.common import log as logging from nova import utils @@ -30,8 +31,22 @@ from nova.virt.libvirt import config as vconfig from nova.virt.libvirt import utils as virtutils LOG = logging.getLogger(__name__) + +volume_opts = [ + cfg.IntOpt('num_iscsi_scan_tries', + default=3, + help='number of times to rescan iSCSI target to find volume'), + cfg.StrOpt('rbd_user', + default=None, + help='the RADOS client name for accessing rbd volumes'), + cfg.StrOpt('rbd_secret_uuid', + default=None, + help='the libvirt uuid of the secret for the rbd_user' + 'volumes') + ] + CONF = config.CONF -CONF.import_opt('num_iscsi_scan_tries', 'nova.volume.driver') +CONF.register_opts(volume_opts) class LibvirtVolumeDriver(object): |
