Do not permit IPA standalone to be enabled by conf

IPA standalone mode is a developer-only option, and if enabled
accidentally on a production agent could cause undesired behavior.
Developers who need this behavior should build a purpose-built agent,
with standalone hardcoded to True in cmd/agent.py.
Change-Id: Icc67dbe15acbbf6fee886f274d2169a0769a5053
This commit is contained in:
Jay Faulkner
2021年03月24日 14:28:36 -07:00
committed by Dmitry Tantsur
parent 2a64413bb6
commit de726d4acf

View File

@@ -57,7 +57,7 @@ def run():
CONF.network_interface,
CONF.lookup_timeout,
CONF.lookup_interval,
CONF.standalone,
False,
CONF.agent_token,
CONF.hardware_initialization_delay,
CONF.advertise_protocol).run()

View File

@@ -151,12 +151,6 @@ cli_opts = [
'Can be supplied as "ipa-collect-lldp"'
'kernel parameter.'),
cfg.BoolOpt('standalone',
default=APARAMS.get('ipa-standalone', False),
help='Start the Agent but suppress any calls to Ironic API, '
'the agent runs on this mode for poll mode deployment. '
'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 '
Reference in New Issue
openstack/ironic-python-agent
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.

The note is not visible to the blocked user.