How to use the nova.openstack.common.cfg.StrOpt function in nova

To help you get started, we’ve selected a few nova examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github openstack / nova / nova / virt / baremetal / driver.py View on Github external
cfg.StrOpt('vif_driver',
               default='nova.virt.baremetal.vif_driver.BareMetalVIFDriver',
               help='Baremetal VIF driver.'),
    cfg.StrOpt('volume_driver',
               default='nova.virt.baremetal.volume_driver.LibvirtVolumeDriver',
               help='Baremetal volume driver.'),
    cfg.ListOpt('instance_type_extra_specs',
               default=[],
               help='a list of additional capabilities corresponding to '
               'instance_type_extra_specs for this compute '
               'host to advertise. Valid entries are name=value, pairs '
               'For example, "key1:val1, key2:val2"'),
    cfg.StrOpt('driver',
               default='nova.virt.baremetal.pxe.PXE',
               help='Baremetal driver back-end (pxe or tilera)'),
    cfg.StrOpt('power_manager',
               default='nova.virt.baremetal.ipmi.IPMI',
               help='Baremetal power management method'),
    cfg.StrOpt('tftp_root',
               default='/tftpboot',
               help='Baremetal compute node\'s tftp root path'),
    ]


LOG = logging.getLogger(__name__)

baremetal_group = cfg.OptGroup(name='baremetal',
                               title='Baremetal Options')

CONF = cfg.CONF
CONF.register_group(baremetal_group)
CONF.register_opts(opts, baremetal_group)
github zyluo / dough / dough / billing / __init__.py View on Github external
#    License for the specific language governing permissions and limitations
#    under the License.

from nova import flags
from nova import utils
from nova.openstack.common import cfg


billing_opts = [
    cfg.StrOpt('farmer_listen',
               default='localhost',
               help='IP address for dough farmer to bind.'),
    cfg.IntOpt('farmer_listen_port',
               default=5558,
               help='Port for dough farmer to bind.'),
    cfg.StrOpt('keystone_username',
               default='someusername',
               help='Username for keystone client.'),
    cfg.StrOpt('keystone_password',
               default='somepassword',
               help='Password for keystone client.'),
    cfg.StrOpt('keystone_tenant_name',
               default='sometenantname',
               help='Tenant name for keystone client.'),
    cfg.StrOpt('keystone_auth_url',
               default='someurl',
               help='Auth URL for keystone client.'),
    cfg.StrOpt('demux_host',
               default='somehost',
               help='Host for demux client.'),
    cfg.IntOpt('demux_port',
               default=5559,
github openstack / nova / nova / volume / nexenta / volume.py View on Github external
.. moduleauthor:: Yuriy Taraday 
"""

from nova import exception
from nova import flags
from nova.openstack.common import cfg
from nova.openstack.common import log as logging
from nova.volume import driver
from nova.volume import nexenta
from nova.volume.nexenta import jsonrpc

LOG = logging.getLogger(__name__)
FLAGS = flags.FLAGS

nexenta_opts = [
    cfg.StrOpt('nexenta_host',
              default='',
              help='IP address of Nexenta SA'),
    cfg.IntOpt('nexenta_rest_port',
               default=2000,
               help='HTTP port to connect to Nexenta REST API server'),
    cfg.StrOpt('nexenta_rest_protocol',
               default='auto',
               help='Use http or https for REST connection (default auto)'),
    cfg.StrOpt('nexenta_user',
               default='admin',
               help='User name to connect to Nexenta SA'),
    cfg.StrOpt('nexenta_password',
               default='nexenta',
               help='Password to connect to Nexenta SA'),
    cfg.IntOpt('nexenta_iscsi_target_portal_port',
               default=3260,
github midokura / midonet-openstack / src / midolman / common / flags.py View on Github external
from nova.openstack.common import cfg

midonet_opts = [
    # Midonet related settings
    cfg.StrOpt('midonet_uri',
        default='http://localhost:8080/midolmanj-mgmt',
        help='Midonet API server URI'),
    cfg.StrOpt('midonet_provider_router_id',
        default='00112233-0011-0011-0011-001122334455',
        help='UUID of Midonet provider router'),
    cfg.StrOpt('midonet_provider_router_name',
        default='provider_router',
        help='Midonet provider router'),
    cfg.StrOpt('midonet_tenant_router_name',
        default = 'os_project_router',
        help='Name of tenant router'),
    cfg.StrOpt('midonet_tenant_router_in_chain_name',
        default = 'os_project_router_in',
        help='Name of the inbound chain in tenant router'),
    cfg.StrOpt('midonet_tenant_router_out_chain_name',
        default = 'os_project_router_out',
        help='Name of the outbound chain in tenant router'),

    # Keystone related settings

    cfg.StrOpt('midonet_keystone_uri',
        default = 'http://localhost:5000/v2.0/',
        help='Keystone API endpoinnt for generating token for admin.'),
    cfg.StrOpt('midonet_admin_user',
        default = 'admin',
github openstack / trove / reddwarf / api / database / instances.py View on Github external
from nova import log as logging
from nova.api.openstack import wsgi
from novaclient.v1_1.client import Client
from nova.openstack.common import cfg
from reddwarf.api.database.views import instances as views_instances

LOG = logging.getLogger('reddwarf.api.database.instances')

reddwarf_opts = [
    cfg.StrOpt('reddwarf_proxy_admin_user',
        default='admin',
        help='User by which you make proxy requests to the nova api with'),
    cfg.StrOpt('reddwarf_proxy_admin_pass',
        default='3de4922d8b6ac5a1aad9',
        help='Password for the admin user defined in reddwarf_proxy_admin_user'),
    cfg.StrOpt('reddwarf_proxy_admin_tenant_name',
        default='admin',
        help='Tenant name fro teh admin user defined in reddwarf_proxy_admin_user'),
    cfg.StrOpt('reddwarf_auth_url',
        default='http://0.0.0.0:5000/v2.0',
        help='Auth url for authing against reddwarf_proxy_admin_user'),
    ]

FLAGS = flags.FLAGS
FLAGS.register_opts(reddwarf_opts)


class Controller(wsgi.Controller):

    _view_builder_class = views_instances.ViewBuilder

    def __init__(self, **kwargs):
github openstack / nova / nova / volume / storwize_svc.py View on Github external
import time

from nova import exception
from nova import flags
from nova.openstack.common import cfg
from nova.openstack.common import excutils
from nova.openstack.common import log as logging
from nova.volume import san

LOG = logging.getLogger(__name__)

storwize_svc_opts = [
    cfg.StrOpt('storwize_svc_volpool_name',
               default='volpool',
               help='Storage system storage pool for volumes'),
    cfg.StrOpt('storwize_svc_vol_rsize',
               default='2%',
               help='Storage system space-efficiency parameter for volumes'),
    cfg.StrOpt('storwize_svc_vol_warning',
               default='0',
               help='Storage system threshold for volume capacity warnings'),
    cfg.BoolOpt('storwize_svc_vol_autoexpand',
               default=True,
               help='Storage system autoexpand parameter for volumes '
                    '(True/False)'),
    cfg.StrOpt('storwize_svc_vol_grainsize',
               default='256',
               help='Storage system grain size parameter for volumes '
                    '(32/64/128/256)'),
    cfg.BoolOpt('storwize_svc_vol_compression',
               default=False,
               help='Storage system compression option for volumes'),
github zyluo / dough / dough / billing / __init__.py View on Github external
cfg.IntOpt('farmer_listen_port',
               default=5558,
               help='Port for dough farmer to bind.'),
    cfg.StrOpt('keystone_username',
               default='someusername',
               help='Username for keystone client.'),
    cfg.StrOpt('keystone_password',
               default='somepassword',
               help='Password for keystone client.'),
    cfg.StrOpt('keystone_tenant_name',
               default='sometenantname',
               help='Tenant name for keystone client.'),
    cfg.StrOpt('keystone_auth_url',
               default='someurl',
               help='Auth URL for keystone client.'),
    cfg.StrOpt('demux_host',
               default='somehost',
               help='Host for demux client.'),
    cfg.IntOpt('demux_port',
               default=5559,
               help='Port number for demux client.'),
    cfg.StrOpt('kanyun_host',
               default='somehost',
               help='Host for kanyun client.'),
    cfg.IntOpt('kanyun_port',
               default=5560,
               help='Port for kanyun client.'),
    cfg.StrOpt('mysql_host',
               default='somehost',
               help='Host for mysql client.'),
    cfg.IntOpt('mysql_port',
               default=3306,
github openstack / nova / nova / volume / nexenta / volume.py View on Github external
cfg.IntOpt('nexenta_rest_port',
               default=2000,
               help='HTTP port to connect to Nexenta REST API server'),
    cfg.StrOpt('nexenta_rest_protocol',
               default='auto',
               help='Use http or https for REST connection (default auto)'),
    cfg.StrOpt('nexenta_user',
               default='admin',
               help='User name to connect to Nexenta SA'),
    cfg.StrOpt('nexenta_password',
               default='nexenta',
               help='Password to connect to Nexenta SA'),
    cfg.IntOpt('nexenta_iscsi_target_portal_port',
               default=3260,
               help='Nexenta target portal port'),
    cfg.StrOpt('nexenta_volume',
               default='nova',
               help='pool on SA that will hold all volumes'),
    cfg.StrOpt('nexenta_target_prefix',
               default='iqn.1986-03.com.sun:02:nova-',
               help='IQN prefix for iSCSI targets'),
    cfg.StrOpt('nexenta_target_group_prefix',
               default='nova/',
               help='prefix for iSCSI target groups on SA'),
    cfg.StrOpt('nexenta_blocksize',
               default='',
               help='block size for volumes (blank=default,8KB)'),
    cfg.BoolOpt('nexenta_sparse',
                default=False,
                help='flag to create sparse volumes'),
]
FLAGS.register_opts(nexenta_opts)
github crowbar / crowbar-openstack / chef / cookbooks / nova / files / default / san.py View on Github external
import nova.volume.driver


LOG = logging.getLogger(__name__)

san_opts = [
    cfg.BoolOpt('san_thin_provision',
                default='true',
                help='Use thin provisioning for SAN volumes?'),
    cfg.StrOpt('san_ip',
               default='',
               help='IP address of SAN controller'),
    cfg.StrOpt('san_login',
               default='admin',
               help='Username for SAN controller'),
    cfg.StrOpt('san_password',
               default='',
               help='Password for SAN controller'),
    cfg.StrOpt('san_private_key',
               default='',
               help='Filename of private key to use for SSH authentication'),
    cfg.StrOpt('san_clustername',
               default='',
               help='Cluster name to use for creating volumes'),
    cfg.IntOpt('san_ssh_port',
               default=22,
               help='SSH port to use with SAN'),
    cfg.BoolOpt('san_is_local',
                default=False,
                help='Execute commands locally instead of over SSH; '
                     'use if the volume service is running on the SAN device'),
    cfg.StrOpt('san_zfs_volume_base',