added onos to pod logs being dumped
diff --git a/voltha b/voltha
index 53b5c2b..7a309fe 100755
--- a/voltha
+++ b/voltha
@@ -598,15 +598,17 @@
(set -x; kubectl get --all-namespaces events >> $DATA/all-events.txt 2>&1) >>$LOG 2>&1
espin - $VERIFIED
bspin - "Dumping VOLTHA POD details"
- PODS=$(kubectl get -n voltha pod -o name)
+ PODS="$(kubectl -n default get pod -o name | grep onos | sed -e 's/^/default:/g') $(kubectl get -n voltha pod -o name | sed -e 's/^/voltha:/g')"
for POD in $PODS; do
+ NS=$(echo $POD | cut -d: -f1)
+ POD=$(echo $POD | cut -d: -f2)
sspin - "Dumping VOLTHA POD details: $POD$CEOL"
mkdir -p $DATA/$POD
- (set -x; kubectl describe -n voltha $POD >> $DATA/$POD/describe.txt 2>&1) >>$LOG 2>&1
+ (set -x; kubectl describe -n $NS $POD >> $DATA/$POD/describe.txt 2>&1) >>$LOG 2>&1
sspin - "Dumping VOLTHA POD details: $POD"
- (set -x; kubectl logs -n voltha --all-containers --previous $LOG_ARGS $POD >> $DATA/$POD/logs-previous.txt 2>&1) >>$LOG 2>&1
+ (set -x; kubectl logs -n $NS --all-containers --previous $LOG_ARGS $POD >> $DATA/$POD/logs-previous.txt 2>&1) >>$LOG 2>&1
sspin - "Dumping VOLTHA POD details: $POD"
- (set -x; kubectl logs -n voltha --all-containers $LOG_ARGS $POD >> $DATA/$POD/logs-current.txt 2>&1) >>$LOG 2>&1
+ (set -x; kubectl logs -n $NS --all-containers $LOG_ARGS $POD >> $DATA/$POD/logs-current.txt 2>&1) >>$LOG 2>&1
sspin - "Dumping VOLTHA POD details: $POD"
done
espin - "$VERIFIED Dumping VOLTHA POD details$CEOL"