Skip to content

Commit

Permalink
fix: ensure no rpm tx during initial package installation on RHEL on AWS
Browse files Browse the repository at this point in the history
Previously it was using the packages module from cloud-init and randomly it was ending on errors due to rpm tx mess. Fix #205

Signed-off-by: Adrian Riobo Lorenzo <ariobolo@redhat.com>
  • Loading branch information
adrianriobo committed May 8, 2024
1 parent 0dcc29b commit 5bf972c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 9 deletions.
1 change: 1 addition & 0 deletions pkg/provider/aws/action/rhel/cloud-config-base
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,5 @@ rh_subscription:
password: {{.SubscriptionPassword}}
auto-attach: true
packages:
- while fuser /var/lib/rpm/.rpm.lock > /dev/null 2>&1 ; do sleep 1 ; done
- podman
11 changes: 2 additions & 9 deletions pkg/provider/aws/action/rhel/cloud-config-snc
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,9 @@ rh_subscription:
username: {{.SubscriptionUsername}}
password: {{.SubscriptionPassword}}
auto-attach: true
# package_upgrade: true
packages:
- podman
- qemu-kvm
- libvirt
- virt-install
- virt-viewer
- jq
- git
runcmd:
- while fuser /var/lib/rpm/.rpm.lock > /dev/null 2>&1 ; do sleep 1 ; done
- dnf install -y podman qemu-kvm libvirt virt-install virt-viewer jq git
# Debug libvirt
#- echo 'log_filters="1:libvirt 1:util 1:qemu"' | tee -a /etc/libvirt/libvirtd.conf
#- echo 'log_outputs="1:file:/var/log/libvirt/libvirtd.log"' | tee -a /etc/libvirt/libvirtd.conf
Expand Down

0 comments on commit 5bf972c

Please sign in to comment.