sat bootprep
image customization errorOn CSM 1.5 systems running version CSM 1.5.2 or higher, the following error may occur
when you try to customize an image using the sat bootprep
command directly from management nodes:
Traceback (most recent call last):
File "/sat/venv/bin/sat", line 8, in <module>
sys.exit(main())
File "/sat/venv/lib/python3.9/site-packages/sat/main.py", line 122, in main
subcommand(args)
File "/sat/venv/lib/python3.9/site-packages/sat/cli/bootprep/main.py", line 405, in do_bootprep
do_bootprep_run(schema_validator, args)
File "/sat/venv/lib/python3.9/site-packages/sat/cli/bootprep/main.py", line 287, in do_bootprep_run
created_images = create_images(instance, args, ims_client)
File "/sat/venv/lib/python3.9/site-packages/sat/cli/bootprep/image.py", line 520, in create_images
waiter.wait_for_completion()
File "/sat/venv/lib/python3.9/site-packages/sat/waiting.py", line 331, in wait_for_completion
super().wait_for_completion()
File "/sat/venv/lib/python3.9/site-packages/sat/waiting.py", line 169, in wait_for_completion
self._wait_polling_loop()
File "/sat/venv/lib/python3.9/site-packages/sat/waiting.py", line 549, in _wait_polling_loop
if self.member_has_completed(member):
File "/sat/venv/lib/python3.9/site-packages/sat/cli/bootprep/image.py", line 407, in member_has_completed
if member.has_completed:
File "/sat/venv/lib/python3.9/site-packages/sat/cli/bootprep/input/image.py", line 513, in has_completed
self.begin_image_configure()
File "/sat/venv/lib/python3.9/site-packages/sat/cli/bootprep/input/image.py", line 405, in begin_image_configure
self.image_configure_session = self.cfs_client.create_image_customization_session(
TypeError: create_image_customization_session() missing 1 required positional argument: 'image_name'
This affects versions 3.25.14 and 3.25.15 of the sat
CLI. The version of the sat
CLI can be
viewed with sat --version
. These versions of the sat
CLI were included in SAT product versions
2.6.18 and 2.6.19, respectively.
Set the environment variable SAT_IMAGE
to point at different version of cray-sat
that does not
have this problem. Do this only for sat bootprep
commands.
(ncn-mw#
) List and sort the available cray-sat
versions, omitting those with this error.
podman search --no-trunc --list-tags registry.local/artifactory.algol60.net/sat-docker/stable/cray-sat |
awk '{ print $NF }' |
grep -Ev '^3[.]25[.]1[45]$' |
grep -E '^[0-9]+[.][0-9]+[.][0-9]+' |
sort -V
Example output:
3.25.11
3.25.16
(ncn-mw#
) Run the sat bootprep
command with the SAT_IMAGE
environment variable set to the latest version
listed in the previous step.
For example:
SAT_IMAGE="registry.local/artifactory.algol60.net/sat-docker/stable/cray-sat:3.25.16" sat bootprep run