Use oslo-config-generator for sample config
The old generate_sample.sh is broken already as it refers to non-existing openstack/common path. Let's use oslo-config-generator as many other OpenStack projects do. Also, where applicable, option descriptions are updated with the corresponding kernel parameters to set those options durig pxe boot. Change-Id: Id4a0df30ea573d52f3b359f357fe8f4a29751939
This commit is contained in:
@ -25,90 +25,116 @@ cli_opts = [
|
||||
cfg.StrOpt('api_url',
|
||||
default=APARAMS.get('ipa-api-url', 'http://127.0.0.1:6385'),
|
||||
deprecated_name='api-url',
|
||||
help='URL of the Ironic API'),
|
||||
help='URL of the Ironic API. '
|
||||
'Can be supplied as "ipa-api-url" kernel parameter.'),
|
||||
|
||||
cfg.StrOpt('listen_host',
|
||||
default=APARAMS.get('ipa-listen-host', '0.0.0.0'),
|
||||
deprecated_name='listen-host',
|
||||
help='The IP address to listen on.'),
|
||||
help='The IP address to listen on. '
|
||||
'Can be supplied as "ipa-listen-host" kernel parameter.'),
|
||||
|
||||
cfg.IntOpt('listen_port',
|
||||
default=int(APARAMS.get('ipa-listen-port', 9999)),
|
||||
deprecated_name='listen-port',
|
||||
help='The port to listen on'),
|
||||
help='The port to listen on. '
|
||||
'Can be supplied as "ipa-listen-port" kernel parameter.'),
|
||||
|
||||
cfg.StrOpt('advertise_host',
|
||||
default=APARAMS.get('ipa-advertise-host', None),
|
||||
deprecated_name='advertise_host',
|
||||
help='The host to tell Ironic to reply and send '
|
||||
'commands to.'),
|
||||
'commands to. '
|
||||
'Can be supplied as "ipa-advertise-host" '
|
||||
'kernel parameter.'),
|
||||
|
||||
cfg.IntOpt('advertise_port',
|
||||
default=int(APARAMS.get('ipa-advertise-port', 9999)),
|
||||
deprecated_name='advertise-port',
|
||||
help='The port to tell Ironic to reply and send '
|
||||
'commands to.'),
|
||||
'commands to. '
|
||||
'Can be supplied as "ipa-advertise-port" '
|
||||
'kernel parameter.'),
|
||||
|
||||
cfg.IntOpt('ip_lookup_attempts',
|
||||
default=int(APARAMS.get('ipa-ip-lookup-attempts', 3)),
|
||||
deprecated_name='ip-lookup-attempts',
|
||||
help='The number of times to try and automatically'
|
||||
'determine the agent IPv4 address.'),
|
||||
help='The number of times to try and automatically '
|
||||
'determine the agent IPv4 address. '
|
||||
'Can be supplied as "ipa-ip-lookup-attempts" '
|
||||
'kernel parameter.'),
|
||||
|
||||
cfg.IntOpt('ip_lookup_sleep',
|
||||
default=int(APARAMS.get('ipa-ip-lookup-timeout', 10)),
|
||||
deprecated_name='ip-lookup-sleep',
|
||||
help='The amount of time to sleep between attempts'
|
||||
'to determine IP address.'),
|
||||
help='The amount of time to sleep between attempts '
|
||||
'to determine IP address. '
|
||||
'Can be supplied as "ipa-ip-lookup-timeout" '
|
||||
'kernel parameter.'),
|
||||
|
||||
cfg.StrOpt('network_interface',
|
||||
default=APARAMS.get('ipa-network-interface', None),
|
||||
deprecated_name='network-interface',
|
||||
help='The interface to use when looking for an IP'
|
||||
'address.'),
|
||||
help='The interface to use when looking for an IP address. '
|
||||
'Can be supplied as "ipa-network-interface" '
|
||||
'kernel parameter.'),
|
||||
|
||||
cfg.IntOpt('lookup_timeout',
|
||||
default=int(APARAMS.get('ipa-lookup-timeout', 300)),
|
||||
deprecated_name='lookup-timeout',
|
||||
help='The amount of time to retry the initial lookup '
|
||||
'call to Ironic. After the timeout, the agent '
|
||||
'will exit with a non-zero exit code.'),
|
||||
'will exit with a non-zero exit code. '
|
||||
'Can be supplied as "ipa-lookup-timeout" '
|
||||
'kernel parameter.'),
|
||||
|
||||
cfg.IntOpt('lookup_interval',
|
||||
default=int(APARAMS.get('ipa-lookup-timeout', 1)),
|
||||
default=int(APARAMS.get('ipa-lookup-interval', 1)),
|
||||
deprecated_name='lookup-interval',
|
||||
help='The initial interval for retries on the initial '
|
||||
'lookup call to Ironic. The interval will be '
|
||||
'doubled after each failure until timeout is '
|
||||
'exceeded.'),
|
||||
'exceeded. '
|
||||
'Can be supplied as "ipa-lookup-interval" '
|
||||
'kernel parameter.'),
|
||||
|
||||
cfg.FloatOpt('lldp_timeout',
|
||||
default=APARAMS.get('ipa-lldp-timeout',
|
||||
APARAMS.get('lldp-timeout', 30.0)),
|
||||
help='The amount of seconds to wait for LLDP packets.'),
|
||||
help='The amount of seconds to wait for LLDP packets. '
|
||||
'Can be supplied as "ipa-lldp-timeout" '
|
||||
'kernel parameter.'),
|
||||
|
||||
cfg.BoolOpt('collect_lldp',
|
||||
default=APARAMS.get('ipa-collect-lldp', False),
|
||||
help='Whether IPA should attempt to receive LLDP packets for '
|
||||
'each network interface it discovers in the inventory.'),
|
||||
'each network interface it discovers in the inventory. '
|
||||
'Can be supplied as "ipa-collect-lldp" '
|
||||
'kernel parameter.'),
|
||||
|
||||
cfg.BoolOpt('standalone',
|
||||
default=APARAMS.get('ipa-standalone', False),
|
||||
help='Note: for debugging only. Start the Agent but suppress '
|
||||
'any calls to Ironic API.'),
|
||||
'any calls to Ironic API. '
|
||||
'Can be supplied as "ipa-standalone" '
|
||||
'kernel parameter.'),
|
||||
|
||||
cfg.StrOpt('inspection_callback_url',
|
||||
default=APARAMS.get('ipa-inspection-callback-url'),
|
||||
help='Endpoint of ironic-inspector. If set, hardware inventory '
|
||||
'will be collected and sent to ironic-inspector '
|
||||
'on start up.'),
|
||||
'on start up. '
|
||||
'Can be supplied as "ipa-inspection-callback-url" '
|
||||
'kernel parameter.'),
|
||||
|
||||
cfg.StrOpt('inspection_collectors',
|
||||
default=APARAMS.get('ipa-inspection-collectors',
|
||||
inspector.DEFAULT_COLLECTOR),
|
||||
help='Comma-separated list of plugins providing additional '
|
||||
'hardware data for inspection, empty value gives '
|
||||
'a minimum required set of plugins.'),
|
||||
'a minimum required set of plugins. '
|
||||
'Can be supplied as "ipa-inspection-collectors" '
|
||||
'kernel parameter.'),
|
||||
|
||||
cfg.IntOpt('inspection_dhcp_wait_timeout',
|
||||
default=APARAMS.get('ipa-inspection-dhcp-wait-timeout',
|
||||
@ -116,31 +142,46 @@ cli_opts = [
|
||||
help='Maximum time (in seconds) to wait for the PXE NIC '
|
||||
'(or all NICs if inspection_dhcp_all_interfaces is True) '
|
||||
'to get its IP address via DHCP before inspection. '
|
||||
'Set to 0 to disable waiting completely.'),
|
||||
'Set to 0 to disable waiting completely. '
|
||||
'Can be supplied as "ipa-inspection-dhcp-wait-timeout" '
|
||||
'kernel parameter.'),
|
||||
|
||||
cfg.BoolOpt('inspection_dhcp_all_interfaces',
|
||||
default=APARAMS.get('ipa-inspection-dhcp-all-interfaces',
|
||||
False),
|
||||
help='Whether to wait for all interfaces to get their IP '
|
||||
'addresses before inspection. If set to false '
|
||||
'(the default), only waits for the PXE interface.'),
|
||||
'(the default), only waits for the PXE interface. '
|
||||
'Can be supplied as '
|
||||
'"ipa-inspection-dhcp-all-interfaces" '
|
||||
'kernel parameter.'),
|
||||
|
||||
cfg.IntOpt('hardware_initialization_delay',
|
||||
default=APARAMS.get('ipa-hardware-initialization-delay', 0),
|
||||
help='How much time (in seconds) to wait for hardware to '
|
||||
'initialize before proceeding with any actions.'),
|
||||
'initialize before proceeding with any actions. '
|
||||
'Can be supplied as "ipa-hardware-initialization-delay" '
|
||||
'kernel parameter.'),
|
||||
|
||||
cfg.IntOpt('disk_wait_attempts',
|
||||
default=APARAMS.get('ipa-disk-wait-attempts', 10),
|
||||
help='The number of times to try and check to see if '
|
||||
'at least one suitable disk has appeared in inventory '
|
||||
'before proceeding with any actions.'),
|
||||
'before proceeding with any actions. '
|
||||
'Can be supplied as "ipa-disk-wait-attempts" '
|
||||
'kernel parameter.'),
|
||||
|
||||
cfg.IntOpt('disk_wait_delay',
|
||||
default=APARAMS.get('ipa-disk-wait-delay', 3),
|
||||
help='How much time (in seconds) to wait between attempts '
|
||||
'to check if at least one suitable disk has appeared '
|
||||
'in inventory.'),
|
||||
'in inventory. '
|
||||
'Can be supplied as "ipa-disk-wait-delay" '
|
||||
'kernel parameter.'),
|
||||
]
|
||||
|
||||
CONF.register_cli_opts(cli_opts)
|
||||
|
||||
|
||||
def list_opts():
|
||||
return [('DEFAULT', cli_opts)]
|
||||
|
Reference in New Issue
Block a user