Commit Graph

8403 Commits

Author SHA1 Message Date
Dongsu Park
8ef8df340a changelog: add changelog for Go 1.18.6 2022-09-13 18:01:16 +02:00
Flatcar Buildbot
de3d3715e8 dev-lang: Upgrade Go 1.18.5 to 1.18.6 2022-09-13 12:19:51 +00:00
Dongsu Park
7a141568a0 Merge pull request #2136 from flatcar-linux/dongsu/github-actions-sdk-container
.github: migrate to SDK container based Github Actions
2022-09-13 14:15:31 +02:00
Dongsu Park
cb02d963aa .github: make each apply script take parameters CHECKOUT_SCRIPTS
To make Github Actions of LTS-2021 work with SDK containers,
checkout_branches needs to take an additional parameter
CHECKOUT_SCRIPTS. That defaults to true, but false only for LTS-2021.
2022-09-13 13:51:55 +02:00
Dongsu Park
51912fd7be .github: pass additional env variables for apply patches
To be able to make each apply patch script run with SDK containers,
we need to pass additional env variables like PACKAGES_CONTAINER or
SDK_NAME.
Note, in case of LTS-2021, we need to also pass CHECKOUT_SCRIPTS=false,
to make LTS-2021 run with the script run_sdk_container.
2022-09-13 13:51:55 +02:00
Dongsu Park
70b15a8ffb .github: migrate to SDK container based Github Actions
Now that Flatcar SDK does not support cork of mantle any more,
we need to migrate the Github Actions of coreos-overlay to the
new container SDK based approach.

Simply download a container image of the latest Flatcar release,
run the container, generate patches from there.

Note, since the Flatcar scripts repo of LTS-2021 still does not
have necessary Container SDK scripts like run_sdk_container, we
need to skip checking out a specific base branch in case of
LTS-2021.
2022-09-13 13:51:51 +02:00
Sayan Chowdhury
a5050b9357 Merge pull request #2135 from flatcar-linux/sayan/bump-emerge-gitclone
emerge-gitclone: update workon_commit ref to latest commit
2022-09-13 11:05:19 +05:30
Sayan Chowdhury
f357c32d99 coreos-base/emerge-gitclone: Add the changelog entry
Signed-off-by: Sayan Chowdhury <schowdhury@microsoft.com>
2022-09-13 11:04:03 +05:30
Dongsu Park
f9299ed19b profiles: delete cpu_flags_x86_sse2 USE flag from rsync
Since rsync 3.2.4, IUSE_CPU_FLAGS_X86="sse2" does not exist any
more in upstream ebuilds. So it is not necessary to disable
`cpu_flags_x86_sse2` USE flag for avoiding cross toolchain build
failures.
2022-09-12 11:55:00 +02:00
Dongsu Park
742241952b profiles: update rsync version to 3.2.6
To address CVE-2022-29154, we need to accept keywords ~amd64 and
~arm64 for rsync 3.2.6.
2022-09-12 11:54:57 +02:00
Sayan Chowdhury
6a0d50e64b emerge-gitclone: update workon_commit ref to latest commit
Signed-off-by: Sayan Chowdhury <schowdhury@microsoft.com>
2022-09-08 11:35:14 +05:30
Krzesimir Nowak
5a93f08705 Merge pull request #2130 from flatcar-linux/krnowak/polkit
sys-auth/polkit: Update to 121
2022-09-07 15:06:53 +02:00
Krzesimir Nowak
1c36811c28 changelog: Add entries 2022-09-06 17:29:06 +02:00
Mathieu Tortuyaux
1a2cc3e309 sys-auth/polkit: Apply Flatcar modifications
- Fix config install paths, use systemd-tmpfiles (all configs should
be installed to /usr and tmpfiles should be used to create and fix
directory permissions instead of the ebuild's postinst.)

Signed-off-by: Mathieu Tortuyaux <mtortuyaux@microsoft.com>
2022-09-06 17:20:30 +02:00
Krzesimir Nowak
f57c8c8ecd profiles: Drop accept keywords for dev-lang/duktape
It's stable now for both amd64 and arm64.
2022-09-06 17:12:57 +02:00
Krzesimir Nowak
db1ddd19f8 sys-auth/polkit: Sync with Gentoo
It's from Gentoo commit 1c933cc8488a4af530d8a23e8f5b914c1d8e9aa6.
2022-09-06 17:11:58 +02:00
Flatcar Buildbot
2cfbe48ede app-emulation: Upgrade Runc 1.1.3 to 1.1.4 2022-09-06 16:54:16 +02:00
Kai Lueke
65dd84b4d1 coreos-base/oem-packet: Use i386 serial settings for x86_64 to fix m3
The m3.small.x86 instance type had no serial console output because
ttyS0 was used because the GRUB CPU check didn't trigger. It seems that
most instances had i386 reported but this new one not (maybe EFI is
used here?).
Extend the GRUB check to cover both i386 and x86_64 when setting up the
serial console. For arm64 this still shouldn't be needed and the
defaults worked so far.
2022-08-30 17:10:36 +02:00
Sayan Chowdhury
11e3f9fa72 Merge pull request #2119 from flatcar-linux/sayan/update-shadow-4.12.2
sys-apps/shadow: Sync with Gentoo upstream; updates to 4.12.3
2022-08-29 21:07:36 +05:30
Mathieu Tortuyaux
9bc6270a14 changelog: add entry
Signed-off-by: Mathieu Tortuyaux <mtortuyaux@microsoft.com>
2022-08-29 11:11:27 +02:00
Mathieu Tortuyaux
0de477a949 coreos-base/coreos-init: bump commit ID
this pulls the wireguard exclusion from systemd-networkd management on
VMWare.

Signed-off-by: Mathieu Tortuyaux <mtortuyaux@microsoft.com>
2022-08-29 11:08:58 +02:00
Sayan Chowdhury
25bf8d60c4 sys-apps/shadow: Add the CVE for shadow 4.12.3
Signed-off-by: Sayan Chowdhury <schowdhury@microsoft.com>
2022-08-26 20:17:29 +05:30
Sayan Chowdhury
a48628c1e3 sys-apps/shadow: Add the changelog for shadow 4.12.3
Signed-off-by: Sayan Chowdhury <schowdhury@microsoft.com>
2022-08-26 20:17:27 +05:30
Flatcar Buildbot
f05275612e sys-kernel: Upgrade Kernel 5.15.62 to 5.15.63 2022-08-26 07:28:33 +00:00
Dongsu Park
94b296e9a2 sys-apps/shadow: Apply Flatcar modifications
- Carry over our custom tmpfiles and securetty files
  - Remove /etc files and install them to /usr, use tmpfiles
  - Switch /etc/login.defs edits to /usr/share/shadow/login.defs
  - Drop moving passwd out of /usr since we don't have split-usr
  - Drop pkg_postinst
2022-08-26 02:38:56 +05:30
Sayan Chowdhury
ecf9249a70 sys-apps/shadow: Sync with Gentoo upstream; updates to 4.12.3
Signed-off-by: Sayan Chowdhury <schowdhury@microsoft.com>
2022-08-26 02:38:52 +05:30
Dongsu Park
e640b6c1a4 changelog: add security changelog for open-vm-tools 12.1.0 2022-08-25 08:42:11 +02:00
Flatcar Buildbot
c4f1d578b5 app-emulation: Upgrade open-vm-tools 12.0.5 to 12.1.0 2022-08-24 07:19:46 +00:00
Krzesimir Nowak
3e25e23ae4 sys-auth/sssd: Apply Flatcar modifications
- Make BDEPEND independent from DEPEND (The `BDEPEND` is a
    build-time requirement, so it should not be included in the whole
    `DEPEND` list. If it does, an installation of `sys-auth/sssd`
    causes other dependencies to be installed not only in the
    `/build`, but also under the SDK. That's not what we want, so we
    need to exclude `BDEPEND` from the list.)

  - Move runstatedir option from configure to make (Now that the
    upstream sssd 2.3.1 does not support `--runstatedir` option from
    its configure script, we need to remove the option, to unblock the
    configure issue like `unrecognized option --runstatedir`.  Instead
    we need to pass `runstatedir=` to emake commands.)

  - Disable realm check for nsupdate (At the moment bind-tools does
    not enable `gssapi`, so its `nsupdate` tool is also not able to
    run `realm` command. As a result, configure script of `sssd` fails
    when running `echo realm | nsupdate`, like `syntax error`.

    To avoid such issues, we need to disable the nsupdate check for
    now.  After we could enable `gssapi` for the SDK correctly, we can
    bring back the nsupdate check in the future.)

  - Add patch for CVE-2021-3621

  - Set the conf dir path explicitly (Without passing the
    --with-systemdconfdir flag, the configure script will query
    pkg-config for the directory itself. In the cross-compilation
    setup that we have, this will result in a path sysroot prepended
    to the path twice. systemd.eclass has a workaround for this issue,
    but it does not provide an elegant getter of the system
    configuration directory, thus we call `_systemd_get_dir`
    ourselves.)

  - Make it compatible with newer python versions.

  - Fix samba version detection by exporting the CPP variable. For
    some reason it was empty after the toolchain updates.
2022-08-23 16:01:46 +02:00
Krzesimir Nowak
a9747570bd sys-auth/sssd: Clean slate to reapply our changes 2022-08-23 16:01:46 +02:00
Krzesimir Nowak
c6683a158e sys-devel/make: Apply Flatcar modifications 2022-08-23 16:01:46 +02:00
Krzesimir Nowak
7dbd5615d1 sys-devel/make: Copy from portage-stable 2022-08-23 16:01:46 +02:00
Krzesimir Nowak
66b8c112f7 sys-libs/glibc: Apply Flatcar modifications
- take care of nscd.conf via tmpfiles, add files/nscd-conf.tmpfiles.
  - don't run sanity checks in pkg_pretend to prevent gcc checks when
    only the binary package is installed.
  - comment out 'dostrip -x' to force the OS image binaries to be stripped
  - remove everything glibc wants to put under /etc since we use
    baselayout to provide that
2022-08-23 16:01:22 +02:00
Krzesimir Nowak
26475e5ebf sys-libs/glibc: Sync with Gentoo
It's from Gentoo commit 77cec48da70c6d6424ed6dba4357dd8eacd262c2.
2022-08-23 15:59:08 +02:00
Krzesimir Nowak
5b7f8b1525 profiles: Add accept keywords for sys-devel/crossdev 2022-08-23 15:59:08 +02:00
Krzesimir Nowak
fd214759a9 app-torcx/docker: Bump dev-libs/libltdl dependency 2022-08-23 15:59:08 +02:00
Krzesimir Nowak
5089a6ee6e profiles: Drop accept_keywords for sys-libs/zlib
The updated package is stable for both amd64 and arm64.
2022-08-23 15:59:08 +02:00
Krzesimir Nowak
93e861952f coreos-config: Drop fixes for sys-devel/gettext
Let's see if they are still necessary.
2022-08-23 15:59:08 +02:00
Krzesimir Nowak
6fdfa61738 profiles: gcc sanitize should be working on arm64 too
Let's check if this is the case.
2022-08-23 15:59:08 +02:00
Krzesimir Nowak
60cfb42af6 coreos/config: Drop flex fixes
Let's see if there are still problems with bootstrapping.
2022-08-23 15:59:08 +02:00
Krzesimir Nowak
864ea5fd61 coreos/config: Drop libtool fixes
These seem to be quite old and most likely not needed any more. Let's
see if it's true, otherwise this commit will be reverted.
2022-08-23 15:59:08 +02:00
Krzesimir Nowak
d458f790fd coreos/config: Drop unnecessary fix for perl
We just updated dev-lang/perl to a version that contains the fix.
2022-08-23 15:59:08 +02:00
Krzesimir Nowak
4c8cd9ffe6 profiles: Drop sys-libs/binutils-libs from accept_keywords
The updated package is stable for both amd64 and arm64.
2022-08-23 15:59:08 +02:00
Krzesimir Nowak
3e0a85a6f0 profiles: Drop sys-devel/binutils from accept_keywords
The updated package is stable for both amd64 and arm64.
2022-08-23 15:59:08 +02:00
Mathieu Tortuyaux
87eaf07fb2 Merge pull request #2110 from EhsanLunar/patch-1
Flatcar support for EKS on versions above 1.21
2022-08-23 15:47:09 +02:00
Dongsu Park
94254df06c Merge pull request #2109 from flatcar-linux/cacerts-3.82-main
Upgrade ca-certificates in main from 3.81 to 3.82
2022-08-23 13:25:21 +02:00
Ehsan Assgari
050c0cf8e5 Update changelog/bugfixes/2022-08-22-eks-support-for-versions-above-1.21.md
Co-authored-by: Mathieu Tortuyaux <mathieu.tortuyaux@gmail.com>
2022-08-22 17:07:33 +02:00
Ehsan Assgari
d58ef937d9 Create 2022-08-22-eks-support-for-versions-above-1.21.md 2022-08-22 15:57:43 +02:00
Ehsan Assgari
3c3b111746 Update coreos-base/flatcar-eks/files/download-kubelet.sh
Co-authored-by: Mathieu Tortuyaux <mathieu.tortuyaux@gmail.com>
2022-08-22 14:36:48 +02:00
Ehsan Assgari
be29c3cc35 Flatcar support for EKS on versions above 1.21
## Description

When an EC2 instance boots up with a flatcar image (even the latest) the kubelet fails.
The userdata defines (and should do so) that the `/etc/eks/bootstrap.sh` should run, which it does.

This seems to add a ExecStartPre to the kubelet.service:
`ExecStartPre=/usr/share/oem/eks/download-kubelet.sh`

Both the `bootstrap.sh` and the `download-kubelet.sh` are consistent with:
https://github.com/flatcar-linux/coreos-overlay/blob/main/coreos-base/flatcar-eks/files/bootstrap.sh
https://github.com/flatcar-linux/coreos-overlay/blob/main/coreos-base/flatcar-eks/files/download-kubelet.sh

The `download-kubelet.sh` fails with `Unsupported Kubernetes version` because in the case statement on line 24->50 (https://github.com/flatcar-linux/coreos-overlay/blob/main/coreos-base/flatcar-eks/files/download-kubelet.sh#L25) only has values for kubernetes version 1.15 -> 1.21

If I manually alter the file and add 1.22 (when I test this on 1.22.9 kubernetes version deployment) and re-run the `bootsrap.sh` it works fine as far as I can see, the node than joins the cluster and shows up as `Ready` and pods starting running on the node.

The last PR I can see on this particular thing was done about a year ago f0da7f8c9e

## Impact

No EKS support for kubernetes versions higher than 1.21

## Environment and steps to reproduce

1. **Set-up**: Create an EKS cluster with the latest flatcar AMI in the worker nodes
2. **Task**: SSH into the node (probably through a Bastion)
3. **Action(s)**:  No actions needed
4. **Error**: kubelet.service fails because the download-kubelet.sh doesn't have download locations for kubernetes version above 1.21

## Expected behavior

Download locations for kubernetes versions 1.22 and 1.23 (EKS doesn't have support for 1.24 yet it seems) should be located inside the download-kubelet.sh

## Additional information

By running `aws s3 ls s3://amazon-eks/` you can list the available locations of the other versions, so for it should result in this:

``` sh
case $CLUSTER_VERSION in
  1.23)
    S3_PATH="1.23.9/2022-07-27/"
    ;;
  1.22)
    S3_PATH="1.22.12/2022-07-27/"
    ;;
  1.21)
    S3_PATH="1.21.2/2021-07-05"
    ;;
  1.20)
    S3_PATH="1.20.4/2021-04-12"
    ;;
  1.19)
    S3_PATH="1.19.6/2021-01-05"
    ;;
  1.18)
    S3_PATH="1.18.9/2020-11-02"
    ;;
  1.17)
    S3_PATH="1.17.12/2020-11-02"
    ;;
  1.16)
    S3_PATH="1.16.15/2020-11-02"
    ;;
  1.15)
    S3_PATH="1.15.12/2020-11-02"
    ;;
  *)
    echo "Unsupported Kubernetes version"
    exit 1
    ;;
esac
```
2022-08-22 13:27:25 +02:00