Exemplo n.º 1
0
from oslo_log import log as logging
import oslo_messaging as messaging

from octavia.common import constants
from octavia.common import utils
from octavia.i18n import _
from octavia import version

LOG = logging.getLogger(__name__)

# TODO(rm_work) Remove in or after "R" release
API_SETTINGS_DEPRECATION_MESSAGE = _(
    'This setting has moved to the [api_settings] section.')

core_opts = [
    cfg.HostnameOpt('host', default=utils.get_hostname(),
                    help=_("The hostname Octavia is running on")),
    cfg.StrOpt('octavia_plugins', default='hot_plug_plugin',
               help=_("Name of the controller plugin to use")),

    # TODO(johnsom) Remove in or after "R" release
    cfg.IPOpt('bind_host', help=_("The host IP to bind to"),
              deprecated_for_removal=True,
              deprecated_reason=API_SETTINGS_DEPRECATION_MESSAGE),
    # TODO(johnsom) Remove in or after "R" release
    cfg.PortOpt('bind_port', help=_("The port to bind to"),
                deprecated_for_removal=True,
                deprecated_reason=API_SETTINGS_DEPRECATION_MESSAGE),
    # TODO(johnsom) Remove in or after "R" release
    cfg.StrOpt('auth_strategy',
               choices=[constants.NOAUTH,
Exemplo n.º 2
0
import oslo_messaging as messaging

from octavia.common import constants
from octavia.common import utils
from octavia.i18n import _
from octavia import version

LOG = logging.getLogger(__name__)

# TODO(rm_work) Remove in or after "R" release
API_SETTINGS_DEPRECATION_MESSAGE = _(
    'This setting has moved to the [api_settings] section.')

core_opts = [
    cfg.HostnameOpt('host',
                    default=utils.get_hostname(),
                    help=_("The hostname Octavia is running on")),
    cfg.StrOpt('octavia_plugins',
               default='hot_plug_plugin',
               help=_("Name of the controller plugin to use")),

    # TODO(johnsom) Remove in or after "R" release
    cfg.IPOpt('bind_host',
              help=_("The host IP to bind to"),
              deprecated_for_removal=True,
              deprecated_reason=API_SETTINGS_DEPRECATION_MESSAGE),
    # TODO(johnsom) Remove in or after "R" release
    cfg.PortOpt('bind_port',
                help=_("The port to bind to"),
                deprecated_for_removal=True,
                deprecated_reason=API_SETTINGS_DEPRECATION_MESSAGE),
Exemplo n.º 3
0
 def test_get_hostname(self):
     self.assertNotEqual(utils.get_hostname(), '')
Exemplo n.º 4
0
            help=_("The API paste config file to use")),
 cfg.StrOpt('api_extensions_path', default="",
            help=_("The path for API extensions")),
 cfg.StrOpt('auth_strategy', default='keystone',
            help=_("The type of authentication to use")),
 cfg.BoolOpt('allow_bulk', default=True,
             help=_("Allow the usage of the bulk API")),
 cfg.BoolOpt('allow_pagination', default=False,
             help=_("Allow the usage of the pagination")),
 cfg.BoolOpt('allow_sorting', default=False,
             help=_("Allow the usage of the sorting")),
 cfg.StrOpt('pagination_max_limit', default="-1",
            help=_("The maximum number of items returned in a single "
                   "response, value was 'infinite' or negative integer "
                   "means no limit")),
 cfg.StrOpt('host', default=utils.get_hostname(),
            help=_("The hostname Octavia is running on")),
 cfg.StrOpt('nova_url',
            default='http://127.0.0.1:8774/v2',
            help=_('URL for connection to nova')),
 cfg.StrOpt('nova_admin_username',
            help=_('Username for connecting to nova in admin context')),
 cfg.StrOpt('nova_admin_password',
            help=_('Password for connection to nova in admin context'),
            secret=True),
 cfg.StrOpt('nova_admin_tenant_id',
            help=_('The uuid of the admin nova tenant')),
 cfg.StrOpt('nova_admin_auth_url',
            default='http://localhost:5000/v2.0',
            help=_('Authorization URL for connecting to nova in admin '
                   'context')),
Exemplo n.º 5
0
 def test_get_hostname(self):
     self.assertNotEqual(utils.get_hostname(), '')
Exemplo n.º 6
0
from oslo_config import cfg
from oslo_db import options as db_options
from oslo_log import log as logging
import oslo_messaging as messaging

from octavia.certificates.common import local
from octavia.common import constants
from octavia.common import utils
from octavia.i18n import _
from octavia import version

LOG = logging.getLogger(__name__)


core_opts = [
    cfg.HostnameOpt('host', default=utils.get_hostname(),
                    help=_("The hostname Octavia is running on")),
    cfg.StrOpt('octavia_plugins', default='hot_plug_plugin',
               help=_("Name of the controller plugin to use")),
]

api_opts = [
    cfg.IPOpt('bind_host', default='127.0.0.1',
              help=_("The host IP to bind to")),
    cfg.PortOpt('bind_port', default=9876,
                help=_("The port to bind to")),
    cfg.StrOpt('auth_strategy', default=constants.KEYSTONE,
               choices=[constants.NOAUTH,
                        constants.KEYSTONE,
                        constants.TESTING],
               help=_("The auth strategy for API requests.")),