Skip to content

Conversation

@hallyn
Copy link
Contributor

@hallyn hallyn commented May 20, 2022

When stacker builds a container, it uses the s.TemporaryWritableSnapshot(name)
results. This can be > 63 chars, which lxc will balk at. For instance:

error: failed setting config lxc.uts.name to temp-snapshot-build-cluster-api-provider-sveltos-amd64-2544038502: setting config item for the container failed

We don't actually need a good name for the container, it just needs to run.
So just use "stacker".

If we care, we could instead do something only if len(name) > 63...

Signed-off-by: Serge Hallyn serge@hallyn.com

When stacker builds a container, it uses the s.TemporaryWritableSnapshot(name)
results.  This can be > 63 chars, which lxc will balk at.  For instance:

error: failed setting config lxc.uts.name to temp-snapshot-build-cluster-api-provider-sveltos-amd64-2544038502: setting config item for the container failed

We don't actually need a good name for the container, it just needs to run.
So just use "stacker".

If we care, we could instead do something only if len(name) > 63...

Signed-off-by: Serge Hallyn <serge@hallyn.com>
@hallyn hallyn requested review from a team and andaaron May 20, 2022 01:33
@andaaron andaaron requested a review from mikemccracken May 24, 2022 07:55
@andaaron
Copy link
Contributor

@mikemccracken shall we merge this as fix for #292?

@hallyn hallyn merged commit 520bac3 into project-stacker:master May 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants