prep LXC script searches /cdrom as apt repo

Bug #2048659 reported by Nicolas Formichella
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack-Ansible
Triaged
High
Unassigned

Bug Description

Running `openstack-ansible setup-hosts.yml` (git rev c3142a91a397d039b44fc02fbae3d364075cdc47) on (both dev and target are) Ubuntu 22.04 Jammy fails at `Ensure that the LXC cache has been prepared`

```
fatal: [infra1]: FAILED! => {"ansible_job_id": "j433753969570.43784", "attempts": 1, "changed": true, "cmd": "chroot /var/lib/machines/ubuntu-22-amd64 /opt/cache-prep-commands.sh > /var/log/lxc-cache-prep-commands.log 2>&1", "delta": "0:00:00.059611", "end": "2024-01-08 15:07:38.717758", "finished": 1, "msg": "non-zero return code", "rc": 100, "results_file": "/root/.ansible_async/j433753969570.43784", "start": "2024-01-08 15:07:38.658147", "started": 1, "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []}
```

Revision history for this message
Nicolas Formichella (signed) wrote :
description: updated
Revision history for this message
Dmitriy Rabotyagov (noonedeadpunk) wrote (last edit ):

Hi Nicolas,

Thanks for reporting that.

Can you kindly also supply a content of /etc/apt/sources.list from the infra1 node? Since LXC containers just inherit node repositories settings by default: https://opendev.org/openstack/openstack-ansible-lxc_hosts/src/branch/master/vars/debian.yml#L23-L31

Revision history for this message
Nicolas Formichella (signed) wrote :

It used to do, and removing the offending line fixed the issue, thanks for the lead

Changed in openstack-ansible:
status: New → Invalid
Revision history for this message
Dmitriy Rabotyagov (noonedeadpunk) wrote (last edit ):

I'm actually not sure if this bug is invalid. I feel like it might be wise to filter out cdrom from potential sources on container, or maybe even from hosts.

Changed in openstack-ansible:
status: Invalid → Triaged
Changed in openstack-ansible:
importance: Undecided → High
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.