Run bootc install failed with `STORAGE_OPTS=additionalimagestore=/run/host-container-storage` on FCOS

Aperta
#174 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 2 giorni

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
35/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
linux, rust

Direzione di ricerca

The report gives reproduction commands but names no source files or tests. Start by running the documented bcvk VM and bootc install steps with --bind-storage-ro, then compare the failing run with the workaround that mounts /run/host-container-storage into the container. Done means the failure is resolved without needing that extra bind mount; the issue provides no test entry point.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Use bcvk to start quay.io/fedora/fedora-coreos:testing-devel libvirt VM with --bind-storage-ro, then run bootc install failed.

  • Start VM with --bind-storage-ro
sudo bcvk libvirt run --name test --filesystem xfs --disk-size 20G --bind-storage-ro --firmware uefi-secure quay.io/fedora/fedora-coreos:testing-devel
sudo bcvk libvirt ssh test
  • Run bootc install with env STORAGE_OPTS=additionalimagestore=/run/host-container-storage
podman run --rm --privileged -v /dev:/dev -v /var/lib/containers:/var/lib/containers -v /:/target \
--pid=host --security-opt label=type:unconfined_t \
localhost/bootc-integration:latest \
env BOOTC_BOOTLOADER_DEBUG=1 RUST_LOG=trace STORAGE_OPTS=additionalimagestore=/run/host-container-storage bootc install to-existing-root --skip-fetch-check --acknowledge-destructive --root-ssh-authorized-keys /target/root/.ssh/bcvk-id_rsa.pub --karg=console=ttyS0,115200n8

....
DEBUG open_image: opening image self=ImageProxy imgref="containers-storage:quay.io/curl/curl-base:latest"
TRACE open_image:impl_request_with_fds: sending request OpenImage self=ImageProxy imgref="containers-storage:quay.io/curl/curl-base:latest" self=ImageProxy method="OpenImage"
error: Installing to filesystem: resolving bound image quay.io/curl/curl-base:latest: failed to invoke method OpenImage: overlay: can't stat imageStore dir /run/host-container-storage: stat /run/host-container-storage: no such file or directory

Additionally, from the error logs can not find /run/host-container-storage, the workaround is when running podman, add -v /run/host-container-storage:/run/host-container-storage.

Lingua principale
Rust
Stelle
142
Fork
40
Merge medio
2g 22h
PR unite (30g)
10

Preparare l'ambiente

Apri in Codespaces

Avvia il container di sviluppo del progetto nel browser, con il tuo account GitHub.

  • Nessun Dockerfile né file Docker Compose
  • Nessun modello di pull request
  • Nessuna guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di bootc-dev/bcvk

Tutte le issue di bootc-dev/bcvk

Issue simili

Altre issue su Rust

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.