Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable updating of OEM specific tools #60

Closed
10 tasks done
t-lo opened this issue Mar 25, 2020 · 17 comments
Closed
10 tasks done

Enable updating of OEM specific tools #60

t-lo opened this issue Mar 25, 2020 · 17 comments
Assignees
Labels
area/sysext sysext roadmap kind/roadmap A Roadmap item.

Comments

@t-lo
Copy link
Member

t-lo commented Mar 25, 2020

Description
Currently, Flatcar ships OEM specific tools (like VMWare's open-vm-tools or Azure's WAAgent) packaged in the OEM image in a separate partition.

Impact
The tight coupling of OEM tooling and Flatcar releases makes it hard to use more recent OEM tool release on older Flatcar images. More importantly, the OEM tools, once deployed, are never updated.

Implementation options
A more dynamic implementation providing OEM tools would e.g. use container images capable of installing and updating those tools on the OEM partition, or even shipping the tools altogether.
Another option are systemd-sysext images.

Additional information
Related issues: #21

Tasks for systemd-sysext OEM images

@t-lo t-lo added the kind/roadmap A Roadmap item. label Mar 25, 2020
@Lplazier
Copy link

Lplazier commented Nov 4, 2020

Hi t-lo, any indication as to when we can expect an update on this?
Especially regarding the vmtools issues.

Thanks in advance.

@doets001
Copy link

I also would be very happy if a standard solution comes up for this vmware-tools issue. We have 300+ flatcare VMs running and normally we upgrade right after a new release. We stopped with this at the last kernel-4 release. I know there are work arounds, but I prefer an out of the box solution :-).
I see the issues in the queued lane, is there any sight on when it will move to 'in progress" ?

@ahrkrak ahrkrak changed the title Improve shipping of OEM specific tools Enable updating of OEM specific tools Jan 15, 2021
@t-lo
Copy link
Member Author

t-lo commented Sep 15, 2021

Proof-of-concept PRs on the Flatcar side:

Next steps / open issues

  • distribution of OEM updates via update server
  • clean implementation of PoC

@Winnie81
Copy link

Winnie81 commented Sep 8, 2022

I'd like to confirm whether there is any update for this issue. Thanks a lot.

@t-lo
Copy link
Member Author

t-lo commented Oct 21, 2022

We're investigating this issue to be the first use case of #548 - and support OEM tools via sysexts. This will solve the update problem and also allow for significant more flexibility (see e.g. #781).

@bignay2000
Copy link

What file(s) would tell us the version of OEM stuff?

On my VMWare VM's I see I have this oem-release file, but maybe nice to have a Flatcar version and date?

cat /usr/share/oem/oem-release
ID=vmware VERSION_ID=11.3.5 NAME="VMware" HOME_URL="https://www.vmware.com/" BUG_REPORT_URL="https://issues.flatcar-linux.org"

@bignay2000
Copy link

bignay2000 commented Jul 10, 2023

Running on ESXi 8 host. vmWare tools still not updated despite having ran updates to latest stable.
Looks like no way to update to not be vulnerable to CVE-2022-31676.

image

@pothos
Copy link
Member

pothos commented Jul 11, 2023

The update path for OEM software is still in progress. The workaround up to now is this here:
#21 (comment)

@Winnie81
Copy link

Winnie81 commented Jan 2, 2024

Hi @pothos ,

I saw this issue was closed. I'd like to confirm whether OVT could be updated when performing in-place upgrade of Flatcar? Thanks a lot.

@pothos
Copy link
Member

pothos commented Jan 2, 2024

Yes, it's in Flatcar Beta/Alpha but not yet in Stable. Once it lands in Stable the migration will happen after two updates, only then the old contents get removed and the new ones activated.

@Winnie81
Copy link

Winnie81 commented Jan 3, 2024

Yes, it's in Flatcar Beta/Alpha but not yet in Stable. Once it lands in Stable the migration will happen after two updates, only then the old contents get removed and the new ones activated.

Thanks for your reply.

I installed flatcar 3732.0.0(alpha channel), and after power on, it was upgraded by default to 3815.0.0 and OVT was upgraded to 12.3.5.
Then I installed another VM with 3732.0.0, this time I executed "update_engine_client -check_for_update" manually, from /etc/os-release, I could see OS was upgraded to 3815.0.0, but OVT was still 12.3.0, and it was not upgraded. Could you please tell me what I missed? Thanks a lot.

@pothos
Copy link
Member

pothos commented Jan 3, 2024

Two upgrade cycles are needed so that both of the A/B partitions have a version where the OEM software is provided in a systemd-sysext image, only then the old contents get removed and the new ones activated.

@Winnie81
Copy link

Winnie81 commented Jan 4, 2024

Two upgrade cycles are needed so that both of the A/B partitions have a version where the OEM software is provided in a systemd-sysext image, only then the old contents get removed and the new ones activated.

After one cycle, it was upgraded from 3732.0.0 to 3815.0.0, do you mean the customer need to wait until next new build available?
core@localhost /usr/share/oem/bin $ update_engine_client -update
I0104 02:20:55.050163 1352 update_engine_client.cc:251] Initiating update check and install.
I0104 02:20:55.052597 1352 update_engine_client.cc:256] Waiting for update to complete.
LAST_CHECKED_TIME=1704334856
PROGRESS=0.000000
CURRENT_OP=UPDATE_STATUS_IDLE
NEW_VERSION=0.0.0
NEW_SIZE=0
I0104 02:21:00.487994 1352 update_engine_client.cc:194] No update available

And I'm wondering why auto update can upgrade OVT directly to the latest one.

I installed flatcar 3732.0.0(alpha channel), and after power on, it was upgraded by default to 3815.0.0 and OVT was upgraded to 12.3.5.

@pothos
Copy link
Member

pothos commented Jan 4, 2024

Yes, the old partition still relies on the old version living on the OEM partition as extracted binaries. If you want to force a migration you can run flatcar-update to install the latest version again in the second partition.

@Winnie81
Copy link

Winnie81 commented Jan 5, 2024

Yes, the old partition still relies on the old version living on the OEM partition as extracted binaries. If you want to force a migration you can run flatcar-update to install the latest version again in the second partition.

Could you please provide the whole command for flatcar-update so that I could upgrade OVT to 12.3.5 after OS was upgraded to latest alpha version 3815.0.0 from 3732.0.0. Thanks a lot for your great help.

@pothos
Copy link
Member

pothos commented Jan 5, 2024

Running sudo flatcar-update -V 3815.0.0 should give you the newest version on both partitions then.

@Winnie81
Copy link

Winnie81 commented Jan 8, 2024

Running sudo flatcar-update -V 3815.0.0 should give you the newest version on both partitions then.

Thanks for your update. It works.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/sysext sysext roadmap kind/roadmap A Roadmap item.
Projects
None yet
Development

No branches or pull requests

6 participants