How to set conf values for MaaS with elements in list ?

Hi,

I want to set the default settings for the maas_auto_ipmi_workaround_flags config option but whatever value I try, I always end up with this error message :

{"maas_auto_ipmi_workaround_flags": ["Enter a list of values."]}

I tried many things like these and some variants :

maas $PROFILE maas set-config name=maas_auto_ipmi_workaround_flags values='["opensesspriv", "nochecksumchecks"]'

maas $PROFILE maas set-config name=maas_auto_ipmi_workaround_flags values="opensesspriv, nochecksumchecks"

None of these works.

Is there a bug ? If not, what is the proper way to set those values with MaaS CLI ?

Yes, this is a bug. Please take a look here: Bug #2112191 “Cannot set config option maas_auto_ipmi_workaround...” : Bugs : MAAS

Ho !
Thank you, I’ll try that !

Humm … nah … your proposal does not work …

The correct invocation is this one: maas admin maas set-config name=maas_auto_ipmi_workaround_flags value=authcap value=endianseq

I tried this :

maas admin maas set-config name=maas_auto_ipmi_workaround_flags value=opensesspriv value=nochecksumchecks
{"maas_auto_ipmi_workaround_flags": ["Enter a list of values."]}

Too bad :confused:

I shared with you the link for 1) ack that this is a bug 2) for your information, in case you want to know more about what is happening.

I am afraid that there is no CLI workaround. The only thing you can do is to manually insert in the database the setting options you like. This is how you could do it via the Python shell:

$ sudo snap run --shell maas -c 'maas-region shell'
>>> from maasserver.models import Config
>>> Config.objects.create(name="maas_auto_ipmi_workaround_flags", value=["authcap","endianseq"])
$ maas admin maas get-config name=maas_auto_ipmi_workaround_flags
Success.
Machine-readable output follows:
["authcap", "endianseq"]