Skip to content
Snippets Groups Projects
Commit 19fa049f authored by Josh Brooks's avatar Josh Brooks
Browse files

Create testing package for channels

parent 69347e23
Branches
No related tags found
2 merge requests!68Master merge,!46Xx 4478/templatize
Showing
with 883 additions and 0 deletions
# ==================================
# Client Registrar Configuration
# ==================================
# Log message level (0 = info, 1 = debug, >1 = trace)
logLevel: 0
# Path to log file
logPath: "results/client-registrar.log"
# Public address, used in NDF it gives to client
publicAddress: "0.0.0.0:20061"
# The listening port of this server
port: 20061
# === REQUIRED FOR ENABLING TLS ===
# Path to the registration server private key file
keyPath: "../keys/cmix.rip.key"
# Path to the registration server certificate file
certPath: "../keys/cmix.rip.crt"
# Maximum number of connections per period
userRegCapacity: 1000
# How often the number of connections is reset
userRegLeakPeriod: "24h"
# Database connection information
dbUsername: "cmix"
dbPassword: ""
dbName: "cmix_server"
dbAddress: ""
# List of client codes to be added to the database (for testing)
clientRegCodes:
- "AAAA"
- "BBBB"
- "CCCC"
New channel generated
Received 0/0 messages
Received 0/0 messages
Received 3/3 messages
Received from ChannelName this message: Hello, channel, this is 500
Received from ChannelName this message: Hello, channel, this is 501
Received from ChannelName this message: Hello, channel, this is 502
Successfully joined channel ChannelName
Successfully left channel ChannelName
Received 0/0 messages
Received 3/3 messages
Received from ChannelName this message: Hello, channel, this is 500
Received from ChannelName this message: Hello, channel, this is 501
Received from ChannelName this message: Hello, channel, this is 502
Successfully joined channel ChannelName
Successfully left channel ChannelName
Received 0/0 messages
Received 3/3 messages
Received from ChannelName this message: Hello, channel, this is 500
Received from ChannelName this message: Hello, channel, this is 501
Received from ChannelName this message: Hello, channel, this is 502
Successfully joined channel ChannelName
Successfully left channel ChannelName
# START YAML ===
################################################################################
## Copyright © 2018 Privategrity Corporation #
## #
## All rights reserved. #
################################################################################
##
# Gateway Configuration File
##
# Used for debugging
loglevel: 2
# Output log file
log: "results/gateways/gateway-1.log"
# The public IP address and port of the node associated with this gateway
cmixAddress: "0.0.0.0:10060"
# The listening port of this gateway
Port: 1060
# The public IPv4 address of the Gateway, as reported to the network, to use
# instead of dynamically looking up Gateway's own IP address. If a port is not
# included, then the port flag is used instead.
overridePublicIP: "0.0.0.0"
# Period in which the message cleanup function executes. Recommended period is on the order of a minute.
messageTimeout: "1800s"
# Path to where the IDF is saved. This is used by the wrapper management script.
idfPath: "results/gateways/gatewayIDF-0.json"
# === REQUIRED FOR ENABLING TLS ===
# Path to the private key file
keyPath: "../keys/cmix.rip.key"
# Path to the certificate file
certPath: "../keys/cmix.rip.crt"
# Path to the permissioning certificate
schedulingCertPath: "../keys/cmix.rip.crt"
# Path to the certificate file
cmixCertPath: "../keys/cmix.rip.crt"
devMode: true
minRegisteredNodes: 0
# === END YAML
# START YAML ===
################################################################################
## Copyright © 2018 Privategrity Corporation #
## #
## All rights reserved. #
################################################################################
##
# Gateway Configuration File
##
# Used for debugging
loglevel: 2
# Output log file
log: "results/gateways/gateway-2.log"
# The public IP address and port of the node associated with this gateway
cmixAddress: "0.0.0.0:10061"
# The listening port of this gateway
Port: 1061
# The public IPv4 address of the Gateway, as reported to the network, to use
# instead of dynamically looking up Gateway's own IP address. If a port is not
# included, then the port flag is used instead.
overridePublicIP: "0.0.0.0"
# Period in which the message cleanup function executes. Recommended period is on the order of a minute.
messageTimeout: "1800s"
# Path to where the IDF is saved. This is used by the wrapper management script.
idfPath: "results/gateways/gatewayIDF-1.json"
# === REQUIRED FOR ENABLING TLS ===
# Path to the private key file
keyPath: "../keys/cmix.rip.key"
# Path to the certificate file
certPath: "../keys/cmix.rip.crt"
# Path to the permissioning certificate
schedulingCertPath: "../keys/cmix.rip.crt"
# Path to the certificate file
cmixCertPath: "../keys/cmix.rip.crt"
devMode: true
minRegisteredNodes: 0
# === END YAML
# START YAML ===
################################################################################
## Copyright © 2018 Privategrity Corporation #
## #
## All rights reserved. #
################################################################################
##
# Gateway Configuration File
##
# Used for debugging
loglevel: 2
# Output log file
log: "results/gateways/gateway-3.log"
# The public IP address and port of the node associated with this gateway
cmixAddress: "0.0.0.0:10062"
# The listening port of this gateway
Port: 1062
# The public IPv4 address of the Gateway, as reported to the network, to use
# instead of dynamically looking up Gateway's own IP address. If a port is not
# included, then the port flag is used instead.
overridePublicIP: "0.0.0.0"
# Period in which the message cleanup function executes. Recommended period is on the order of a minute.
messageTimeout: "1800s"
# Path to where the IDF is saved. This is used by the wrapper management script.
idfPath: "results/gateways/gatewayIDF-2.json"
# === REQUIRED FOR ENABLING TLS ===
# Path to the private key file
keyPath: "../keys/cmix.rip.key"
# Path to the certificate file
certPath: "../keys/cmix.rip.crt"
# Path to the permissioning certificate
schedulingCertPath: "../keys/cmix.rip.crt"
# Path to the certificate file
cmixCertPath: "../keys/cmix.rip.crt"
devMode: true
minRegisteredNodes: 0
# === END YAML
# START YAML ===
################################################################################
## Copyright © 2018 Privategrity Corporation #
## #
## All rights reserved. #
################################################################################
##
# Gateway Configuration File
##
# Used for debugging
loglevel: 2
# Output log file
log: "results/gateways/gateway-4.log"
# The public IP address and port of the node associated with this gateway
cmixAddress: "0.0.0.0:10063"
# The listening port of this gateway
Port: 1063
# The public IPv4 address of the Gateway, as reported to the network, to use
# instead of dynamically looking up Gateway's own IP address. If a port is not
# included, then the port flag is used instead.
overridePublicIP: "0.0.0.0"
# Period in which the message cleanup function executes. Recommended period is on the order of a minute.
messageTimeout: "1800s"
# Path to where the IDF is saved. This is used by the wrapper management script.
idfPath: "results/gateways/gatewayIDF-3.json"
# === REQUIRED FOR ENABLING TLS ===
# Path to the private key file
keyPath: "../keys/cmix.rip.key"
# Path to the certificate file
certPath: "../keys/cmix.rip.crt"
# Path to the permissioning certificate
schedulingCertPath: "../keys/cmix.rip.crt"
# Path to the certificate file
cmixCertPath: "../keys/cmix.rip.crt"
devMode: true
minRegisteredNodes: 0
# === END YAML
# START YAML ===
################################################################################
## Copyright © 2018 Privategrity Corporation #
## #
## All rights reserved. #
################################################################################
##
# Gateway Configuration File
##
# Used for debugging
loglevel: 2
# Output log file
log: "results/gateways/gateway-5.log"
# The public IP address and port of the node associated with this gateway
cmixAddress: "0.0.0.0:10064"
# The listening port of this gateway
Port: 1064
# The public IPv4 address of the Gateway, as reported to the network, to use
# instead of dynamically looking up Gateway's own IP address. If a port is not
# included, then the port flag is used instead.
overridePublicIP: "0.0.0.0"
# Period in which the message cleanup function executes. Recommended period is on the order of a minute.
messageTimeout: "1800s"
# Path to where the IDF is saved. This is used by the wrapper management script.
idfPath: "results/gateways/gatewayIDF-4.json"
# === REQUIRED FOR ENABLING TLS ===
# Path to the private key file
keyPath: "../keys/cmix.rip.key"
# Path to the certificate file
certPath: "../keys/cmix.rip.crt"
# Path to the permissioning certificate
schedulingCertPath: "../keys/cmix.rip.crt"
# Path to the certificate file
cmixCertPath: "../keys/cmix.rip.crt"
devMode: true
minRegisteredNodes: 0
# === END YAML
localhost:1060
# This is the network configuration file. The top line of this file,
# when not set via command line, is used to determine to which network
# the integration test will be run against.
# Note you can also specify "release", "betanet", or "protonet" on run.sh
# Betanet gateways
109.169.15.30:22840
5.12.137.118:22840
92.246.20.92:22840
178.16.39.203:22840
86.135.17.18:22840
# Release (messenger test) network gateways
34.221.74.216:11420
52.25.9.28:11420
54.149.122.115:11420
# protonet
185.152.3.247:11420
93.151.207.39:11420
93.107.154.131:11420
173.208.225.75:11421
92.246.20.92:11420
# ==================================
# Permissioning Server Configuration
# ==================================
# Log message level
loglevel: 2
# Path to log file
logPath: "results/permissioning.log"
# The listening port of this server
port: 20060
# Database connection information
dbUsername: ""
dbPassword: ""
dbName: ""
dbAddress: "0.0.0.0:6969"
minimumNodes: 5
minGatewayVersion: "3.0.0"
minServerVersion: "3.0.0"
minClientVersion: "4.0.0"
nodeMetricInterval: 3
# For testing, use the sequence as the country code. Do not use the geobinning database
disableGeoBinning: true
# For testing, do not exclude node or gateway IPs which are local to the machine
allowLocalIPs: true
# Disable pruning of NDF for offline nodes
# if set to false, network will sleep for five minutes on start
disableNDFPruning: true
permissiveIPChecking: true
# How long rounds will be tracked by gateways. Rounds (and messages as an extension)
# prior to this period are not guaranteed to be delivered to clients.
# Expects duration in"h". (Defaults to 1 weeks (168 hours)
messageRetentionLimit: "168h"
# Path to the file containing the round ID
roundIdPath: "results/roundId.txt"
# Path to the file containing the update ID
updateIdPath: "results/updateId.txt"
# Public address used in NDF to give to client
registrationAddress: "0.0.0.0:20061"
# Path to whitelisted IPs for client ratelimiting
whitelistedIpAddressesPath: "whitelist.txt"
# Path to the node topology permissioning info
ndfOutputPath: "ndf.json"
# === REQUIRED FOR ENABLING TLS ===
# Path to the registration server private key file
keyPath: "../keys/cmix.rip.key"
# Path to the registration server certificate file
certPath: "../keys/cmix.rip.crt"
fullNdfOutputPath: "results/permissions-ndfoutput.json"
signedPartialNDFOutputPath: "results/permissions-ndfoutput-partial.json"
# === REQUIRED FOR ENABLING TLS ===
# Path to the UDB certificate file
udbCertPath: "../keys/cmix.rip.crt"
# "Location of the user discovery contact file.
udContactPath: "results/udbContact.bin"
udbAddress: "127.0.0.1:30060"
# Time interval (in minutes) in which the database is
# checked for banned nodes
BanTrackerInterval: "3"
groups:
cmix:
prime: "FFFFFFFFFFFFFFFFC90FDAA22168C234C4C6628B80DC1CD129024E088A67CC74020BBEA63B139B22514A08798E3404DDEF9519B3CD3A431B302B0A6DF25F14374FE1356D6D51C245E485B576625E7EC6F44C42E9A637ED6B0BFF5CB6F406B7EDEE386BFB5A899FA5AE9F24117C4B1FE649286651ECE45B3DC2007CB8A163BF0598DA48361C55D39A69163FA8FD24CF5F83655D23DCA3AD961C62F356208552BB9ED529077096966D670C354E4ABC9804F1746C08CA18217C32905E462E36CE3BE39E772C180E86039B2783A2EC07A28FB5C55DF06F4C52C9DE2BCBF6955817183995497CEA956AE515D2261898FA051015728E5A8AAAC42DAD33170D04507A33A85521ABDF1CBA64ECFB850458DBEF0A8AEA71575D060C7DB3970F85A6E1E4C7ABF5AE8CDB0933D71E8C94E04A25619DCEE3D2261AD2EE6BF12FFA06D98A0864D87602733EC86A64521F2B18177B200CBBE117577A615D6C770988C0BAD946E208E24FA074E5AB3143DB5BFCE0FD108E4B82D120A92108011A723C12A787E6D788719A10BDBA5B2699C327186AF4E23C1A946834B6150BDA2583E9CA2AD44CE8DBBBC2DB04DE8EF92E8EFC141FBECAA6287C59474E6BC05D99B2964FA090C3A2233BA186515BE7ED1F612970CEE2D7AFB81BDD762170481CD0069127D5B05AA993B4EA988D8FDDC186FFB7DC90A6C08F4DF435C934063199FFFFFFFFFFFFFFFF"
generator: "2"
e2e:
prime: "E2EE983D031DC1DB6F1A7A67DF0E9A8E5561DB8E8D49413394C049B7A8ACCEDC298708F121951D9CF920EC5D146727AA4AE535B0922C688B55B3DD2AEDF6C01C94764DAB937935AA83BE36E67760713AB44A6337C20E7861575E745D31F8B9E9AD8412118C62A3E2E29DF46B0864D0C951C394A5CBBDC6ADC718DD2A3E041023DBB5AB23EBB4742DE9C1687B5B34FA48C3521632C4A530E8FFB1BC51DADDF453B0B2717C2BC6669ED76B4BDD5C9FF558E88F26E5785302BEDBCA23EAC5ACE92096EE8A60642FB61E8F3D24990B8CB12EE448EEF78E184C7242DD161C7738F32BF29A841698978825B4111B4BC3E1E198455095958333D776D8B2BEEED3A1A1A221A6E37E664A64B83981C46FFDDC1A45E3D5211AAF8BFBC072768C4F50D7D7803D2D4F278DE8014A47323631D7E064DE81C0C6BFA43EF0E6998860F1390B5D3FEACAF1696015CB79C3F9C2D93D961120CD0E5F12CBB687EAB045241F96789C38E89D796138E6319BE62E35D87B1048CA28BE389B575E994DCA755471584A09EC723742DC35873847AEF49F66E43873"
generator: "2"
# Path to file with config for scheduling algorithm within the user directory
schedulingConfigPath: "registration.json"
# Path to JSON file with list of Node registration codes (in order of network
# placement)
RegCodesFilePath: "regCodes.json"
# Set address space size for ephemeral IDs
addressSpace: 32
[{"RegCode": "ihne", "Order": "CR"},{"RegCode": "rlqh", "Order": "CR"},{"RegCode": "nujo", "Order": "CR"},{"RegCode": "owdc", "Order": "CR"},{"RegCode": "rvwz", "Order": "CR"}]
\ No newline at end of file
{
"TeamSize": 5,
"PrecomputationTimeout": 30000,
"RealtimeTimeout": 15000,
"DebugTrackRounds": true,
"BatchSize": 32,
"MinimumDelay": 1000,
"RealtimeDelay": 2000,
"Threshold": 0.3,
"NodeCleanUpInterval": 180000,
"ResourceQueueTimeout": 300000
}
\ No newline at end of file
cp ../network/network.sh temp_network.sh
# NOTE: This is verbose on purpose.
################################################################################
## Initial Set Up & Clean Up of Past Runs
################################################################################
set -e
rm -fr results.bak || true
mv results results.bak || rm -fr results || true
rm -fr blob* || true
rm *-contact.json || true
rm server-5.qdstrm || true
rm server-5.qdrep || true
mkdir -p .elixxir
if [ $# -gt 1 ]
then
echo "usage: $0 [gatewayip:port]"
exit
fi
NETWORKENTRYPOINT=$1
DEBUGLEVEL=${DEBUGLEVEL-1}
SERVERLOGS=results/servers
GATEWAYLOGS=results/gateways
CLIENTOUT=results/clients
UDBOUT=results/udb-console.txt
CLIENTCLEAN=results/clients-cleaned
mkdir -p $SERVERLOGS
mkdir -p $GATEWAYLOGS
mkdir -p $CLIENTOUT
mkdir -p $CLIENTCLEAN
mkdir -p $SERVERLOGS
mkdir -p $GATEWAYLOGS
mkdir -p $CLIENTOUT
mkdir -p $CLIENTCLEAN
################################################################################
## Network Set Up
################################################################################
if [ "$NETWORKENTRYPOINT" == "betanet" ]
then
NETWORKENTRYPOINT=$(sort -R betanet.txt | head -1)
elif [ "$NETWORKENTRYPOINT" == "mainnet" ]
then
NETWORKENTRYPOINT=$(sort -R mainnet.txt | head -1)
elif [ "$NETWORKENTRYPOINT" == "release" ]
then
NETWORKENTRYPOINT=$(sort -R release.txt | head -1)
elif [ "$NETWORKENTRYPOINT" == "devnet" ]
then
NETWORKENTRYPOINT=$(sort -R devnet.txt | head -1)
elif [ "$NETWORKENTRYPOINT" == "" ]
then
NETWORKENTRYPOINT=$(head -1 network.config)
fi
echo "NETWORK: $NETWORKENTRYPOINT"
if [ "$NETWORKENTRYPOINT" == "localhost:1060" ]
then
source temp_network.sh
else
echo "Connecting to network defined at $NETWORKENTRYPOINT"
echo $NETWORKENTRYPOINT > results/startgwserver.txt
fi
echo "localhost:1060" > results/startgwserver.txt
echo "DONE LETS DO STUFF"
echo "DOWNLOADING TLS Cert..."
# -alpn h2 added to mimic grpc headers
CMD="openssl s_client -alpn h2 -showcerts -connect $(tr -d '[:space:]' < results/startgwserver.txt)"
echo $CMD
eval $CMD < /dev/null 2>&1 > "results/startgwcert.bin"
CMD="cat results/startgwcert.bin | openssl x509 -outform PEM"
echo $CMD
eval $CMD > "results/startgwcert.pem"
head "results/startgwcert.pem"
echo "DOWNLOADING NDF..."
CLIENTCMD="../bin/client getndf --gwhost $(tr -d '[:space:]' < results/startgwserver.txt) --cert results/startgwcert.pem"
eval $CLIENTCMD >> results/ndf.json 2>&1 &
PIDVAL=$!
echo "$CLIENTCMD -- $PIDVAL"
wait $PIDVAL
cat results/ndf.json | jq . | head -5
file results/ndf.json
if [ ! -s results/ndf.json ]
then
echo "results/ndf.json is empty, cannot proceed"
exit -1
fi
###############################################################################
# Test Channels
###############################################################################
echo "TESTING CHANNELS..."
CLIENTOPTS="--password hello --ndf results/ndf.json --verify-sends --sendDelay 100 --waitTimeout 360 -v $DEBUGLEVEL"
# Initialize creator of channel (will use default channel file path in CLI)
CLIENTCMD="timeout 300s ../bin/client channels -s blob500 $CLIENTOPTS -l $CLIENTOUT/client500.log --receiveCount 0 --channelPath $CLIENTOUT/channel500.chan --channelIdentityPath $CLIENTOUT/channel500.id --newChannel"
eval $CLIENTCMD > $CLIENTOUT/client500.txt 2>&1 &
PIDVAL=$!
echo "$CLIENTCMD -- $PIDVAL"
wait $PIDVAL
# Have client which created channel send message to channel
CLIENTCMD="timeout 300s ../bin/client channels -s blob500 -l $CLIENTOUT/client500.log $CLIENTOPTS --receiveCount 3 --channelPath $CLIENTOUT/channel500.chan --channelIdentityPath $CLIENTOUT/channel500.id --sendToChannel --message \"Hello, channel, this is 500\""
eval $CLIENTCMD >> $CLIENTOUT/client500.txt 2>&1 &
PIDVAL1=$!
echo "$CLIENTCMD -- $PIDVAL1"
# Initialize client which will join channel (will use default channel file path in CLI)
CLIENTCMD="timeout 300s ../bin/client channels -s blob501 -l $CLIENTOUT/client501.log $CLIENTOPTS --receiveCount 3 --channelPath $CLIENTOUT/channel500.chan --channelIdentityPath $CLIENTOUT/channel501.id --joinChannel --sendToChannel --message \"Hello, channel, this is 501\""
eval $CLIENTCMD > $CLIENTOUT/client501.txt 2>&1 &
PIDVAL2=$!
echo "$CLIENTCMD -- $PIDVAL2"
# Initialize another client which will join channel (will use default channel file path in CLI)
CLIENTCMD="timeout 420s ../bin/client channels -s blob502 -l $CLIENTOUT/client502.log $CLIENTOPTS --receiveCount 3 --channelPath $CLIENTOUT/channel500.chan --channelIdentityPath $CLIENTOUT/channel502.id --joinChannel --sendToChannel --message \"Hello, channel, this is 502\""
eval $CLIENTCMD > $CLIENTOUT/client502.txt 2>&1 &
PIDVAL3=$!
echo "$CLIENTCMD -- $PIDVAL3"
wait $PIDVAL1
wait $PIDVAL2
wait $PIDVAL3
# All clients will leave the channel
CLIENTCMD="timeout 300s ../bin/client channels -s blob500 -l $CLIENTOUT/client500.log $CLIENTOPTS --receiveCount 0 --channelPath $CLIENTOUT/channel500.chan --channelIdentityPath $CLIENTOUT/channel500.id --leaveChannel"
eval $CLIENTCMD >> $CLIENTOUT/client500.txt 2>&1 &
PIDVAL1=$!
echo "$CLIENTCMD -- $PIDVAL1"
CLIENTCMD="timeout 300s ../bin/client channels -s blob501 -l $CLIENTOUT/client501.log $CLIENTOPTS --receiveCount 0 --channelPath $CLIENTOUT/channel500.chan --channelIdentityPath $CLIENTOUT/channel501.id --leaveChannel"
eval $CLIENTCMD >> $CLIENTOUT/client501.txt 2>&1 &
PIDVAL2=$!
echo "$CLIENTCMD -- $PIDVAL2"
# Initialize another client which will join channel (will use default channel file path in CLI)
CLIENTCMD="timeout 300s ../bin/client channels -s blob502 -l $CLIENTOUT/client502.log $CLIENTOPTS --receiveCount 0 --channelPath $CLIENTOUT/channel500.chan --channelIdentityPath $CLIENTOUT/channel502.id --leaveChannel"
eval $CLIENTCMD >> $CLIENTOUT/client502.txt 2>&1 &
PIDVAL3=$!
echo "$CLIENTCMD -- $PIDVAL3"
sleep 20
wait $PIDVAL3
wait $PIDVAL2
wait $PIDVAL1
echo "TESTS EXITED SUCCESSFULLY, CHECKING OUTPUT..."
cp $CLIENTOUT/*.txt $CLIENTCLEAN/
sed -i.bak 's/Sending\ to\ .*\:/Sent:/g' $CLIENTCLEAN/client*.txt
sed -i.bak 's/Message\ from\ .*, .* Received:/Received:/g' $CLIENTCLEAN/client*.txt
sed -i.bak 's/ERROR.*Signature/Signature/g' $CLIENTCLEAN/client*.txt
sed -i.bak 's/[Aa]uthenticat.*$//g' $CLIENTCLEAN/client*.txt
rm $CLIENTCLEAN/client*.txt.bak
for C in $(ls -1 $CLIENTCLEAN | grep -v client11[01]); do
sort -o tmp $CLIENTCLEAN/$C || true
cp tmp $CLIENTCLEAN/$C
# uniq tmp $CLIENTCLEAN/$C || true
done
GOLDOUTPUT=clients.goldoutput
if [ "$NETWORKENTRYPOINT" != "localhost:1060" ]
then
rm -fr clients.net_goldoutput || true
GOLDOUTPUT=clients.net_goldoutput
cp -r clients.goldoutput clients.net_goldoutput
# Delete the localhost only files
rm $GOLDOUTPUT/client13* || true
rm $GOLDOUTPUT/client18* || true
rm $GOLDOUTPUT/client19* || true
rm $GOLDOUTPUT/client2[01]* || true
rm $GOLDOUTPUT/client31* || true
rm $GOLDOUTPUT/client3[56]* || true
rm $GOLDOUTPUT/client45* || true
rm $GOLDOUTPUT/client56* || true
rm $GOLDOUTPUT/client67* || true
rm $GOLDOUTPUT/client74* || true
rm $GOLDOUTPUT/client9* || true
fi
set +x
diff -aru $GOLDOUTPUT $CLIENTCLEAN
if [ "$NETWORKENTRYPOINT" == "localhost:1060" ]
then
#cat $CLIENTOUT/* | strings | grep -ae "ERROR" -e "FATAL" > results/client-errors || true
#diff -ruN results/client-errors.txt noerrors.txt
cat $SERVERLOGS/server-*.log | grep -a "ERROR" | grep -a -v "context" | grep -av "metrics" | grep -av "database" | grep -av RequestClientKey > results/server-errors.txt || true
cat $SERVERLOGS/server-*.log | grep -a "FATAL" | grep -a -v "context" | grep -av "transport is closing" | grep -av "database" >> results/server-errors.txt || true
diff -aruN results/server-errors.txt noerrors.txt
IGNOREMSG="GetRoundBufferInfo: Error received: rpc error: code = Unknown desc = round buffer is empty"
IGNORESERVE="Failed to serve "
IGNORESTART="Failed to start "
cat $GATEWAYLOGS/*.log | grep -a "ERROR" | grep -av "context" | grep -av "certificate" | grep -av "Failed to read key" | grep -av "$IGNOREMSG" | grep -av "$IGNORESERVE" | grep -av "$IGNORESTART" > results/gateway-errors.txt || true
cat $GATEWAYLOGS/*.log | grep -a "FATAL" | grep -av "context" | grep -av "transport is closing" >> results/gateway-errors.txt || true
diff -aruN results/gateway-errors.txt noerrors.txt
echo "Checking backup files for equality..."
# diff -aruN $CLIENTOUT/client120A.backup.json $CLIENTOUT/client120B.backup.json > client120BackupDiff.txt
#diff -aruN $CLIENTOUT/client121A.backup.json $CLIENTOUT/client121B.backup.json > client121BackupDiff.txt || true
# diff -aruN client120BackupDiff.txt noerrors.txt
#echo "NOTE: BACKUP CHECK DISABLED, this should be uncommented when turned back on!"
#diff -aruN client121BackupDiff.txt noerrors.txt
fi
rm temp_network.sh
\ No newline at end of file
# START YAML ===
registrationCode: "ihne"
useGPU: false
devMode: true
rawPermAddr: true
logLevel: 2
cmix:
paths:
# Path where the ID will be stored after the ID is created on first run
# used by the wrapper script
idf: "nodeID-0.json"
# Path to the self signed TLS cert that the node uses for identification
cert: "../keys/cmix.rip.crt"
# Path to the private key for the self signed TLS cert
key: "../keys/cmix.rip.key"
# Path to where the log will be stored
log: "results/servers/server-1.log"
errOutput: "results/servers/server-1.err"
ipListOutput: "results/servers/iplist-1.txt"
port: "10060"
overridePublicIP: "127.0.0.1"
database:
name: "cmix_server"
username: "cmix"
password: ""
addresses: ""
gateway:
paths:
# Path to the self signed TLS cert used by the gateway
cert: "../keys/cmix.rip.crt"
scheduling:
paths:
# Path to the self signed TLS cert used by the permissioning. Provided by xx network
cert: "../keys/cmix.rip.crt"
# IP Address of the permissioning server, provided by xx network
address: "0.0.0.0:20060"
metrics:
# location of stored metrics data. Modification to set to permissioning
# server instead of saving will be made at a later date
log: "metrics-server-1.log"
# === END YAML
# START YAML ===
registrationCode: "rlqh"
useGPU: false
devMode: true
rawPermAddr: true
logLevel: 2
cmix:
paths:
# Path where the ID will be stored after the ID is created on first run
# used by the wrapper script
idf: "nodeID-1.json"
# Path to the self signed TLS cert that the node uses for identification
cert: "../keys/cmix.rip.crt"
# Path to the private key for the self signed TLS cert
key: "../keys/cmix.rip.key"
# Path to where the log will be stored
log: "results/servers/server-2.log"
errOutput: "results/servers/server-2.err"
ipListOutput: "results/servers/iplist-1.txt"
port: "10061"
overridePublicIP: "127.0.0.1"
database:
name: "cmix_server"
username: "cmix"
password: ""
addresses: ""
gateway:
paths:
# Path to the self signed TLS cert used by the gateway
cert: "../keys/cmix.rip.crt"
scheduling:
paths:
# Path to the self signed TLS cert used by the permissioning. Provided by xx network
cert: "../keys/cmix.rip.crt"
# IP Address of the permissioning server, provided by xx network
address: "0.0.0.0:20060"
metrics:
# location of stored metrics data. Modification to set to permissioning
# server instead of saving will be made at a later date
log: "metrics-server-2.log"
# === END YAML
# START YAML ===
registrationCode: "nujo"
useGPU: false
devMode: true
rawPermAddr: true
logLevel: 2
cmix:
paths:
# Path where the ID will be stored after the ID is created on first run
# used by the wrapper script
idf: "nodeID-2.json"
# Path to the self signed TLS cert that the node uses for identification
cert: "../keys/cmix.rip.crt"
# Path to the private key for the self signed TLS cert
key: "../keys/cmix.rip.key"
# Path to where the log will be stored
log: "results/servers/server-3.log"
errOutput: "results/servers/server-3.err"
ipListOutput: "results/servers/iplist-1.txt"
port: "10062"
overridePublicIP: "127.0.0.1"
database:
name: "cmix_server"
username: "cmix"
password: ""
addresses: ""
gateway:
paths:
# Path to the self signed TLS cert used by the gateway
cert: "../keys/cmix.rip.crt"
scheduling:
paths:
# Path to the self signed TLS cert used by the permissioning. Provided by xx network
cert: "../keys/cmix.rip.crt"
# IP Address of the permissioning server, provided by xx network
address: "0.0.0.0:20060"
metrics:
# location of stored metrics data. Modification to set to permissioning
# server instead of saving will be made at a later date
log: "metrics-server-3.log"
# === END YAML
# START YAML ===
registrationCode: "owdc"
useGPU: false
devMode: true
rawPermAddr: true
logLevel: 2
cmix:
paths:
# Path where the ID will be stored after the ID is created on first run
# used by the wrapper script
idf: "nodeID-3.json"
# Path to the self signed TLS cert that the node uses for identification
cert: "../keys/cmix.rip.crt"
# Path to the private key for the self signed TLS cert
key: "../keys/cmix.rip.key"
# Path to where the log will be stored
log: "results/servers/server-4.log"
errOutput: "results/servers/server-4.err"
ipListOutput: "results/servers/iplist-1.txt"
port: "10063"
overridePublicIP: "127.0.0.1"
database:
name: "cmix_server"
username: "cmix"
password: ""
addresses: ""
gateway:
paths:
# Path to the self signed TLS cert used by the gateway
cert: "../keys/cmix.rip.crt"
scheduling:
paths:
# Path to the self signed TLS cert used by the permissioning. Provided by xx network
cert: "../keys/cmix.rip.crt"
# IP Address of the permissioning server, provided by xx network
address: "0.0.0.0:20060"
metrics:
# location of stored metrics data. Modification to set to permissioning
# server instead of saving will be made at a later date
log: "metrics-server-4.log"
# === END YAML
# START YAML ===
registrationCode: "rvwz"
useGPU: false
devMode: true
rawPermAddr: true
logLevel: 2
cmix:
paths:
# Path where the ID will be stored after the ID is created on first run
# used by the wrapper script
idf: "nodeID-4.json"
# Path to the self signed TLS cert that the node uses for identification
cert: "../keys/cmix.rip.crt"
# Path to the private key for the self signed TLS cert
key: "../keys/cmix.rip.key"
# Path to where the log will be stored
log: "results/servers/server-5.log"
errOutput: "results/servers/server-5.err"
ipListOutput: "results/servers/iplist-1.txt"
port: "10064"
overridePublicIP: "127.0.0.1"
database:
name: "cmix_server"
username: "cmix"
password: ""
addresses: ""
gateway:
paths:
# Path to the self signed TLS cert used by the gateway
cert: "../keys/cmix.rip.crt"
scheduling:
paths:
# Path to the self signed TLS cert used by the permissioning. Provided by xx network
cert: "../keys/cmix.rip.crt"
# IP Address of the permissioning server, provided by xx network
address: "0.0.0.0:20060"
metrics:
# location of stored metrics data. Modification to set to permissioning
# server instead of saving will be made at a later date
log: "metrics-server-5.log"
# === END YAML
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment