Last active
January 23, 2019 18:48
-
-
Save 4383/5984834db9952553af3003b0ac968dc1 to your computer and use it in GitHub Desktop.
patch openstack stein with podman
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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