Skip to content

Pre-F35 and U2110 updates#98

Merged
cevich merged 12 commits intocontainers:mainfrom
cevich:pre-f35-updates
Oct 14, 2021
Merged

Pre-F35 and U2110 updates#98
cevich merged 12 commits intocontainers:mainfrom
cevich:pre-f35-updates

Conversation

@cevich
Copy link
Member

@cevich cevich commented Oct 14, 2021

This set of changes prepares the repo. and scripts for both F35 and Ubuntu 21.10 images. It's being done separately from #93 to allow for isolation of the version-change update influence on testing results.

cevich added 12 commits October 8, 2021 15:10
Searching for and obtaining the latest GCP maintained Ubuntu image
name is an unnecessary maintenance burden.  Since the latest is always
available under a common/known family name, switch to using that.

Signed-off-by: Chris Evich <cevich@redhat.com>
Since images are duplicated when starting up a new VM, any pre-existing
keys present on the system represent a security vulnerability.  Attempt
to clear keys deposited by packer during build.

Also use stronger key-type to access Ubuntu VMs during build.  This
change has long-since been made in Fedora-land.  Newer Ubuntu images
provided by GCP now require this.

Signed-off-by: Chris Evich <cevich@redhat.com>
There's no need for every task to have access to the `$GAC_JSON`
variable contents.  Move/duplicate the value to only the tasks which
call `set_gac_filepath`.

Signed-off-by: Chris Evich <cevich@redhat.com>
The default service unit file is modified at build time to ensure the
Cirrus-CI Agent (runs as a startup script) isn't needlessly restricted
by SELinux policy.  The addition of a comment in a recent version of
the google package broke this build-time modification.  Fix this by
correcting an overly broad regex.

Signed-off-by: Chris Evich <cevich@redhat.com>
Signed-off-by: Chris Evich <cevich@redhat.com>
Also, when building the Fedora cache image, only prune systemd services
for VMs, not containers.  This limitation is already in place for
Ubuntu.

Signed-off-by: Chris Evich <cevich@redhat.com>
This was originally needed for testing containers/conmon but has long
since been dropped.  Remove it from the image build process along with
the kube version lookup function.

Signed-off-by: Chris Evich <cevich@redhat.com>
Several tests requre additional packages be installed at runtime.
None of them make use of container images.  Remove this support
to help reduce their size.

Also, when finalizing container images, remove any remaining golang
and package metadata cache.

Signed-off-by: Chris Evich <cevich@redhat.com>
Signed-off-by: Chris Evich <cevich@redhat.com>
For a two-stage image (base + cache) workflow, it makes sense to do as
little as possible in the first stage.  However, when it comes to
cloud-init, somethings are more difficult to undo later.  For example,
default user creation.  For Ubuntu, doing this in the second-stage
(cache) was causing the resulting VM's cloud-init to fail in creating
an 'ubuntu' user.  Since this is undesirable behavior anyway, disable
it universally and relocate the custom override file copy to the first
stage (base).

Also (minor) remove redundant package update command that lists names -
not supported.

Signed-off-by: Chris Evich <cevich@redhat.com>
After spending days debugging, it was determined that upgrading
cloud-init results in a failure to add/update OSLogin users
(and ssh keys) upon reboot (after resetting the system).
The exact cause is unknown and further/deeper debugging
isn't worth the effort.  Workaround the problem by
blocking the update for now
@cevich cevich mentioned this pull request Oct 14, 2021
@github-actions
Copy link

Cirrus CI build successful. Image ID c4979650947448832 ready for use.

@cevich cevich merged commit 9bbc9aa into containers:main Oct 14, 2021
@cevich cevich deleted the pre-f35-updates branch July 19, 2022 14:45
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.

1 participant

Comments