Andy Bavier | e443214 | 2019-02-07 15:11:25 -0700 | [diff] [blame] | 1 | #!/bin/bash |
| 2 | |
| 3 | # Copyright 2018-present Open Networking Foundation |
| 4 | # |
| 5 | # Licensed under the Apache License, Version 2.0 (the "License"); you may not |
| 6 | # use this file except in compliance with the License. You may obtain a copy |
| 7 | # of the License at: |
| 8 | # |
| 9 | # http://www.apache.org/licenses/LICENSE-2.0 |
| 10 | # |
| 11 | # Unless required by applicable law or agreed to in writing, software |
| 12 | # distributed under the License is distributed on an "AS IS" BASIS, WITHOUT |
| 13 | # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the |
| 14 | # License for the specific language governing permissions and limitations under |
| 15 | # the License. |
| 16 | |
| 17 | # copy-ssh-keys.sh - Adds ssh keys to nodes given as parameters to the script, |
| 18 | # after removing them from the ~/.ssh/known_hosts file on the local system. |
| 19 | # |
| 20 | # This script should be run interactively as it will prompt for input, and only |
| 21 | # invoked once, so as not to add multiple copies of the SSH key to the remote |
| 22 | # system. |
| 23 | |
| 24 | AGGLOGS=/tmp/logs.out |
| 25 | |
| 26 | kubectl logs -l release=att-workflow > $AGGLOGS |
| 27 | kubectl logs -l release=seba-services --all-containers >> $AGGLOGS |
| 28 | grep "save()" $AGGLOGS | ./logparse.py |