Login
Log in using an SSO provider:
Fedora Account System
Red Hat Associate
Red Hat Customer
Login using a Red Hat Bugzilla account
Forgot Password
Create an Account
Red Hat Bugzilla – Attachment 1395747 Details for
Bug 1544903
Push image still failed, no route to host
Home
New
Search
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh92 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
[?]
This site requires JavaScript to be enabled to function correctly, please enable it.
flush-infra.sh
file_1544903.txt (text/plain), 1.81 KB, created by
Eric Paris
on 2018-02-14 02:33:00 UTC
(
hide
)
Description:
flush-infra.sh
Filename:
MIME Type:
Creator:
Eric Paris
Created:
2018-02-14 02:33:00 UTC
Size:
1.81 KB
patch
obsolete
>#!/bin/bash > >echo "This script is designed to be run from one of the cluster masters; make sure you are there!" >read -p "Press enter to continue" > >set -o xtrace >set -e >nodes=$(oc get nodes -l type=infra -o=name | sort) > >if [ "$nodes" == "" ]; then > echo "No nodes found" >fi > >for node in $nodes; do > node=$(echo $node | cut -d / -f 2) # node/xyz to "xyz" > > echo "Processing node: $node" > oc adm drain --delete-local-data --force --ignore-daemonsets "$node" > ssh -o StrictHostKeyChecking=no "root@$node" "systemctl stop atomic-openshift-node" > cont=($(ssh -o StrictHostKeyChecking=no "root@$node" 'docker ps -q')) > ssh -o StrictHostKeyChecking=no "root@$node" "docker stop ${cont[@]}" || true > cont=($(ssh -o StrictHostKeyChecking=no "root@$node" 'docker ps -a -q')) > ssh -o StrictHostKeyChecking=no "root@$node" "docker rm ${cont[@]}" || true > ssh -o StrictHostKeyChecking=no "root@$node" "systemctl stop docker" > sleep 5 # Wait for docker to truly stop > > ssh -o StrictHostKeyChecking=no "root@$node" "mount | grep /var/lib/origin/openshift.local.volumes | cut -d ' ' -f 3 | xargs --no-run-if-empty umount" > ssh -o StrictHostKeyChecking=no "root@$node" "rm -rf /var/lib/origin/openshift.local.volumes/pods/*" > ssh -o StrictHostKeyChecking=no "root@$node" "rm -f /var/lib/dockershim/sandbox/*" > ssh -o StrictHostKeyChecking=no "root@$node" "rm -f /var/lib/cni/networks/openshift-sdn/*" # https://bugzilla.redhat.com/show_bug.cgi?id=1518912 > > ssh -o StrictHostKeyChecking=no "root@$node" "ovs-vsctl del-br br0" # eparis recommended > > ssh -o StrictHostKeyChecking=no "root@$node" "systemctl start docker" > ssh -o StrictHostKeyChecking=no "root@$node" "systemctl start atomic-openshift-node" > > oc adm uncordon "$node" >done
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 1544903
:
1395746
| 1395747