[Bug 2007582] [NEW] "json:reporting" parameter for reporting type passed incorrectly, curtin fails to parse
Harald Linden
2007582 at bugs.launchpad.net
Thu Feb 16 15:06:05 UTC 2023
Public bug reported:
"INFO root:39 start: subiquity/Install/install/configure_apt:
configuring apt"
...failed due to an error in the GPG-public-key passed in the
autoinstall-config.
Subiquity then starts the same task a lot more verbose:
"DEBUG subiquitycore.utils:112 astart_command called: ['systemd-run', '
--wait', '--same-dir', '--property',
'SyslogIdentifier=subiquity_log.2232', '--property',
'PrivateMounts=yes', '--setenv',
'PATH=/snap/subiquity/3698/bin:/snap/subiquity/3698/usr/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/snap/subiquity/3698/bin',
'--setenv', 'PYTHONPATH=:/snap/subiquity/3698/lib/python3.8/site-
packages', '--setenv', 'PYTHON=/snap/subiquity/3698/usr/bin/python3.8',
'--setenv', 'SNAP=/snap/subiquity/3698', '--',
'/snap/subiquity/3698/usr/bin/python3.8', '-m', 'curtin', '--showtrace',
'-vvv', '--set', 'json:reporting={"subiquity": {"type": "journald",
"identifier": "curtin_event.2232.1"}}', '-c',
'/var/log/installer/subiquity-curtin-apt.conf', 'apt-config', '-t',
'/tmp/tmp5qaoz6te/mount']"
curtin fails to parse the json for the reporting var correctly due to the whitespace inside and the lack of quotes outside, thus assuming '{"type' to be a subcmd.
"curtin: error: argument subcmd: invalid choice: '{type:' (choose from
'apply_net', 'apt-config', 'block-attach-iscsi', 'block-detach-[...]"
** Affects: subiquity (Ubuntu)
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to subiquity in Ubuntu.
https://bugs.launchpad.net/bugs/2007582
Title:
"json:reporting" parameter for reporting type passed incorrectly,
curtin fails to parse
Status in subiquity package in Ubuntu:
New
Bug description:
"INFO root:39 start: subiquity/Install/install/configure_apt:
configuring apt"
...failed due to an error in the GPG-public-key passed in the
autoinstall-config.
Subiquity then starts the same task a lot more verbose:
"DEBUG subiquitycore.utils:112 astart_command called: ['systemd-run',
'--wait', '--same-dir', '--property',
'SyslogIdentifier=subiquity_log.2232', '--property',
'PrivateMounts=yes', '--setenv',
'PATH=/snap/subiquity/3698/bin:/snap/subiquity/3698/usr/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/snap/subiquity/3698/bin',
'--setenv', 'PYTHONPATH=:/snap/subiquity/3698/lib/python3.8/site-
packages', '--setenv',
'PYTHON=/snap/subiquity/3698/usr/bin/python3.8', '--setenv',
'SNAP=/snap/subiquity/3698', '--',
'/snap/subiquity/3698/usr/bin/python3.8', '-m', 'curtin', '--
showtrace', '-vvv', '--set', 'json:reporting={"subiquity": {"type":
"journald", "identifier": "curtin_event.2232.1"}}', '-c',
'/var/log/installer/subiquity-curtin-apt.conf', 'apt-config', '-t',
'/tmp/tmp5qaoz6te/mount']"
curtin fails to parse the json for the reporting var correctly due to the whitespace inside and the lack of quotes outside, thus assuming '{"type' to be a subcmd.
"curtin: error: argument subcmd: invalid choice: '{type:' (choose from
'apply_net', 'apt-config', 'block-attach-iscsi', 'block-detach-[...]"
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/subiquity/+bug/2007582/+subscriptions
More information about the foundations-bugs
mailing list