Uploaded image for project: 'Red Hat OpenStack Services on OpenShift'
  1. Red Hat OpenStack Services on OpenShift
  2. OSPRH-14407

Openstack AIO dosnt deploy: lxc cache create fails

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not a Bug
    • Icon: Undefined Undefined
    • None
    • None
    • None
    • False
    • Hide

      None

      Show
      None
    • False
    • ?
    • None
    • Critical

      This might be the wrong issuetracker but i couldnt seem to get launchpad to open one.

      To Reproduce Steps to reproduce the behavior:

      1. Create a VM
        Start a VM in Ubuntu 24.10 Server
        <details>

      ```
      services:
      controll0:
      container_name: controll0
      image: qemux/qemu-docker
      environment:
      DISK_SIZE: "128G"
      BOOT: "https://mirror.dogado.de/ubuntu-releases/24.04.2/ubuntu-24.04.2-live-server-amd64.iso"
      RAM_SIZE: "32G"
      CPU_CORES: "32"
      #BOOT1: "https://dl-cdn.alpinelinux.org/alpine/v3.19/releases/x86_64/alpine-virt-3.19.1-x86_64.iso"
      KVM: "N"
      #devices:

      1. - /dev/kvm
      2. - /dev/net/tun
        cap_add:
      • NET_ADMIN
        ports:
      • 8006:8006
        restart: always
        stop_grace_period: 2m
        volumes:
      • ./data/controll0:/storage
        ```

      </details>

      1. Clone the openstack-ansible repo
      1. Follow the aio guide
        Follow the current aio guide. [2024.02](https://docs.openstack.org/openstack-ansible/latest/user/aio/quickstart.html#)

      ```bash
      git clone --depth 1 --branch 'stable/2024.2' https://opendev.org/openstack/openstack-ansible /opt/openstack-ansible
      cd /opt/openstack-ansible

      curl https://get.docker.com | sh. # This was run

      scripts/bootstrap-ansible.sh
      scripts/bootstrap-aio.sh

      openstack-ansible openstack.osa.setup_hosts
      ```

      1. Wait until the play fails
      2. See error
        ````
        TASK [lxc_hosts : Ensure directories exist for lxc_container_cache_files] ******
        skipping: [aio1]

      TASK [lxc_hosts : Copy files from deployment host to the container cache] ******
      skipping: [aio1]

      TASK [lxc_hosts : Ensure opt directory exists in container] ********************
      ok: [aio1]

      TASK [lxc_hosts : Cached image preparation script] *****************************
      changed: [aio1]

      TASK [lxc_hosts : Prepare cached image setup commands] *************************
      ok: [aio1]

      TASK [lxc_hosts : Ensure that the LXC cache has been prepared] *****************
      FAILED - RETRYING: [aio1]: Ensure that the LXC cache has been prepared (120 retries left).
      fatal: [aio1]: FAILED! =>

      {"ansible_job_id": "j480357275910.97215", "attempts": 2, "changed": true, "cmd": "chroot /var/lib/machines/ubuntu-24-amd64 /opt/cache-prep-commands.sh > /var/log/lxc-cache-prep-commands.log 2>&1", "delta": "0:00:07.045965", "end": "2025-03-03 11:15:49.424410", "finished": 1, "msg": "non-zero return code", "rc": 100, "results_file": "/root/.ansible_async/j480357275910.97215", "start": "2025-03-03 11:15:42.378445", "started": 1, "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []}

      PLAY RECAP *********************************************************************
      aio1 : ok=110 changed=5 unreachable=0 failed=1 skipped=51 rescued=0 ignored=0
      localhost : ok=22 changed=0 unreachable=0 failed=0 skipped=25 rescued=0 ignored=0

      EXIT NOTICE [Playbook execution failure] **************************************
      ===============================================================================
      ```

      Expected behavior
      The stable openstack aio should produce a working aio instance

      Screenshots

      • Attached Image

      Device Info (please complete the following information):

      • Hardware Specs: [qemu as seen above]
      • OS Version: [Ubuntu 24.10 Server]
      • InstructLab Version: [output of \\\{{{}ilab --version{}}}]
      • Provide the output of these two commands:
        • sudo bootc status --format json | jq .status.booted.image.image.image to print the name and tag of the bootc image, should look like registry.stage.redhat.io/rhelai1/bootc-intel-rhel9:1.3-1732894187
        • ilab system info to print detailed information about InstructLab version, OS, and hardware – including GPU / AI accelerator hardware

      Bug impact
      The aio failes to deploy

      Known workaround
      Removing the file "/etc/apt/sources.list.d/docker.source"

      Additional context

      • <your text here>

              Unassigned Unassigned
              hu1buerger Hut Buerger (Inactive)
              rhos-dfg-df
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: