Skip to content

Instantly share code, notes, and snippets.

View ianballou's full-sized avatar

Ian Ballou ianballou

View GitHub Profile
Jan 8 21:30:26 centos9-katello-devel-stable pulpcore-api[3002]: File "/usr/lib/python3.11/site-packages/pulp_container/app/registry_api.py", line 680, in get
Jan 8 21:30:26 centos9-katello-devel-stable pulpcore-api[3002]: response = super().get(request)
Jan 8 21:30:26 centos9-katello-devel-stable pulpcore-api[3002]: ^^^^^^^^^^^^^^^^^^^^
Jan 8 21:30:26 centos9-katello-devel-stable pulpcore-api[3002]: File "/usr/lib/python3.11/site-packages/pulp_container/app/registry_api.py", line 639, in get
Jan 8 21:30:26 centos9-katello-devel-stable pulpcore-api[3002]: with storage.open(manifest.config_blob._artifacts.get().file.name) as file:
Jan 8 21:30:26 centos9-katello-devel-stable pulpcore-api[3002]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Jan 8 21:30:26 centos9-katello-devel-stable pulpcore-api[3002]: File "/usr/lib/python3.11/site-packages/django/db/models/manager.py", line 87, in manager_method
Jan 8 21:30:26 centos9-katello-devel-stable pulpcore-api[3002]: retur
{
"bootc.booted.image": " quay.io/centos-bootc/centos-bootc:stream10",
"bootc.booted.version": "stream10.20241202.0",
"bootc.booted.digest": "sha256:54256a998f0c62e16f3927c82b570f90bd8449a52e03daabd5fd16d6419fd572",
"bootc.staged.image": null,
"bootc.staged.version": null,
"bootc.staged.digest": null,
"bootc.rollback.image": "quay.io/centos-bootc/centos-bootc:stream10",
"bootc.rollback.version": "stream10.20241107.0",
"bootc.rollback.digest": "sha256:9ed49e9b189f5dae5a01ea9abdcef0884616300b565d32061aea619f2e916be3",
@ianballou
ianballou / gist:c888991038fa2d941abcd9ac9ff4e86f
Created October 30, 2024 15:31
"Clone" a Foreman host for testing
uuid=$(uuidgen)
short=$(hostname -s)
domain=YOUR.DOMAIN
echo "{\"dmi.system.uuid\": \"${uuid}\"}" > /etc/rhsm/facts/uuid.facts
hostnamectl set-hostname ${short}.${uuid%%-*}.${domain}
subscription-manager clean
subscription-manager register --activationkey YOUR_AK --org YOUR_ORG
@ianballou
ianballou / gist:3f96731a5280bbddb7033a47ab4ffea9
Last active May 16, 2024 16:50
Run acceptance test in puppet-foreman_proxy
BEAKER_SETFILE=centos8-64 BEAKER_HYPERVISOR=vagrant_libvirt BEAKER_PROVISION=yes BEAKER_DESTROY=no bundle exec rspec spec/acceptance/my_test_spec.rb
#BEAKER_DESTROY=no leaves the VM running
#BEAKER_PROVISION=no allows for VM reuse
@ianballou
ianballou / gist:c893e479842bd38f8cbeacd904a3d8c1
Created May 15, 2024 18:00
Container repo with schema v1 manifests
https://gcr.io
google-containers/busybox
@ianballou
ianballou / start_foreman_puma_server.txt
Created February 15, 2024 21:06
Start Foreman Puma server
cd /home/vagrant/foreman && source .env && BIND=0.0.0.0 bundle exec puma -w 3 -p $PORT --preload
@ianballou
ianballou / gist:47cf61b7eec202220f90457d052e6e50
Created February 7, 2023 18:49
Start Foreman rails without Foreman
source ~/foreman/.env
BIND=0.0.0.0 bundle exec puma -w 1 -t 1 -p $PORT --preload
@ianballou
ianballou / gist:334c06aa4acd5c4415f36b1c86ff94d6
Created January 26, 2023 20:04
Katello development tips
Dev env tips
- Start rails in one terminal: bundle exec foreman start rails
- Start webpack in another terminal: bundle exec foreman start webpack
- Debug a file:
1) Edit ~/foreman/.env to ensure puma is running with a single CPU
2) Restart your server
3) Insert `binding.pry` where you need to debug
@ianballou
ianballou / gist:c1be134401de8cd2cf526f765bbac84a
Created January 26, 2023 16:54
Libvirt-related services to check after vagrant errors
libvirtd
virtnetworkd
@ianballou
ianballou / http_proxy.rb
Created November 22, 2022 19:14
Ruby HTTP proxy
#!/usr/bin/ruby
require 'webrick'
require 'webrick/httpproxy'
proxy = WEBrick::HTTPProxyServer.new Port: 8777
trap 'INT' do proxy.shutdown end
trap 'TERM' do proxy.shutdown end
proxy.start