rancher / elemental-toolkit

:snowflake: The toolkit to build, ship and maintain cloud-init driven Linux derivatives based on container images
https://rancher.github.io/elemental-toolkit/docs/
Apache License 2.0
291 stars 53 forks source link

suc-upgrade: no such file or directory #2024

Closed nnewc closed 7 months ago

nnewc commented 7 months ago

elemental-toolkit version:

main branch

CPU architecture, OS, and Version:

x86

Describe the bug

Using the example Dockerfile in /examples/orange I built an OSImage. When deploying the OS to existing cluster as an updateGroup via elemental-operator, the pod apply-os-upgrader-ubuntu-on-rancher fails to start with:

StartError (failed to create containerd task: failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: exec: "/usr/sbin/suc-upgrade": stat /usr/sbin/suc-upgrade: no such file or directory: unknown)

To Reproduce

Run

make && FLAVOR=orange build-os

Expected behavior

Elemental cluster to be upgrade to ubuntu

nnewc commented 7 months ago

just also tried with default "green" flavor and also seeing the same issue.

make build-os
frelon commented 7 months ago

Hi @nnewc!

Awesome to see some experimentation with the toolkit!

The toolkit is itself agnostic from rancher provisioning and will not add the needed binaries, scripts and services, it will only generate the install media from the given container image.

The suc-upgrade script we use can be found here and should be copied over to your image in the build step.

We also have a dev-image here which might serve as an example.

Let me know how it goes! :+1:

nnewc commented 7 months ago

I can't seem to build the dev-image using the makefile. I get an error because the image elemental-toolkit and elemental-register is not present:

ERROR: failed to solve: docker.io/local/elemental-toolkit:dev: pull access denied, repository does not exist or may require authorization: server message: insufficient_scope: authorization failed
make: *** [Makefile:11: build-dev-os] Error 1
frelon commented 7 months ago

There is some docs here: https://github.com/rancher/elemental/blob/main/doc/DEVELOPMENT.md, seems like the toolkit image should be built using make VERSION=dev build

frelon commented 7 months ago

Closing this, feel free to reopen if you still run into issues!