Skip to content

Instantly share code, notes, and snippets.

@4383
Last active January 23, 2019 18:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save 4383/5984834db9952553af3003b0ac968dc1 to your computer and use it in GitHub Desktop.
Save 4383/5984834db9952553af3003b0ac968dc1 to your computer and use it in GitHub Desktop.
patch openstack stein with podman
#!/bin/bash
# remove old fix container
podman rm -f fix
# patch container with debug changes
podman run --name=fix -u root --net=host -it 192.168.122.1:5000/fedora-binary-nova-api:ospsprint bash -c "curl http://file.cdg.redhat.com/hberaud/context.py -o /tmp/context.py && mv /tmp/context.py /usr/lib/python3.6/site-packages/nova && cat /usr/lib/python3.6/site-packages/nova/context.py"
# commit changes to apply debug changes
podman commit --change CMD='kolla_start' fix 192.168.122.1:5000/fedora-binary-nova-api:ospsprint
# remove fix container generated
podman rm -f fix
# redeploy and catch debug traces
su - stack -c /home/stack/nuke.sh && /home/stack/deploy.sh && grep "pretty debug" /var/log/containers/nova/nova-
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment