Skip to content

Commit

Permalink
Migrate from blox-ssv2 to ssv jato v2
Browse files Browse the repository at this point in the history
  • Loading branch information
yorickdowne committed Aug 8, 2023
1 parent a09adba commit f805814
Show file tree
Hide file tree
Showing 6 changed files with 1 addition and 82 deletions.
18 changes: 0 additions & 18 deletions blox-ssv-config-sample.yaml

This file was deleted.

33 changes: 0 additions & 33 deletions blox-ssv2.yml

This file was deleted.

12 changes: 1 addition & 11 deletions ethd
Original file line number Diff line number Diff line change
Expand Up @@ -151,10 +151,6 @@ prep_conffiles() {
if [ ! -f "./ssv-config.yaml" ]; then
${__as_owner} cp ./ssv-config-sample.yaml ./ssv-config.yaml
fi
# Create blox-ssv-config.yml if it doesn't exist
if [ ! -f "./blox-ssv-config.yaml" ]; then
${__as_owner} cp ./blox-ssv-config-sample.yaml ./blox-ssv-config.yaml
fi
}

handle_root() {
Expand Down Expand Up @@ -814,7 +810,7 @@ migrate_compose_file() {
# When this gets called $var is COMPOSE_FILE and $value is what is set in .env for it
# Some files have been renamed and others removed altogether
FROM_YML=( ec-shared.yml ec-traefik.yml cc-shared.yml grafana-insecure.yml prysm-web-insecure.yml lh-base-notz.yml lh-validator-notz.yml lh-slasher.yml teku-base-notz.yml teku-validator-notz.yml lh-consensus.yml lh-validator.yml lodestar-consensus.yml lodestar-validator.yml nimbus-consensus.yml prysm-consensus.yml prysm-consensus-rest.yml prysm-validator.yml teku-consensus.yml teku-validator.yml lh-base.yml lh-vc-only.yml lh-cl-only.yml nm.yml lighthouse-base.yml teku-base.yml nimbus-base.yml prysm-base.yml lodestar-base.yml traefik-cf-v6.yml blox-ssv2.yml prysm-web.yml blank-grafana.yml lh-grafana.yml lhcc-grafana.yml nimbus-grafana.yml prysm-grafana.yml teku-grafana.yml geth-grafana.yml erigon-grafana.yml oe.yml teku-stats.yml lh-stats.yml lh-stats-consensus.yml lh-stats-validator.yml traefik-shared.yml lighthouse-slasher.yml prysm-slasher.yml )
TO_YML=( el-shared.yml el-traefik.yml cl-shared.yml grafana-shared.yml prysm-web-shared.yml lighthouse-base.yml lighthouse-vc-only.yml lighthouse-slasher.yml teku-base.yml teku-vc-only.yml lighthouse-cl-only.yml lighthouse-vc-only.yml lodestar-cl-only.yml lodestar-vc-only.yml nimbus-cl-only.yml prysm-cl-only.yml prysm-cl-only.yml prysm-vc-only.yml teku-cl-only.yml teku-vc-only.yml lighthouse-base.yml lighthouse-vc-only.yml lighthouse-cl-only.yml nethermind.yml lighthouse.yml teku.yml nimbus.yml prysm.yml lodestar.yml traefik-cf.yml blox-ssv2.yml "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" )
TO_YML=( el-shared.yml el-traefik.yml cl-shared.yml grafana-shared.yml prysm-web-shared.yml lighthouse-base.yml lighthouse-vc-only.yml lighthouse-slasher.yml teku-base.yml teku-vc-only.yml lighthouse-cl-only.yml lighthouse-vc-only.yml lodestar-cl-only.yml lodestar-vc-only.yml nimbus-cl-only.yml prysm-cl-only.yml prysm-cl-only.yml prysm-vc-only.yml teku-cl-only.yml teku-vc-only.yml lighthouse-base.yml lighthouse-vc-only.yml lighthouse-cl-only.yml nethermind.yml lighthouse.yml teku.yml nimbus.yml prysm.yml lodestar.yml traefik-cf.yml ssv.yml "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" )

__old_grafana=0
__new_grafana=0
Expand Down Expand Up @@ -858,8 +854,6 @@ migrate_compose_file() {
}

ssv_switch() {
echo "Detected legacy SSV Node. Not migrating, yet."
return
echo "Detected legacy SSV Node. Migrating config to new testnet."
echo
echo "Stopping SSV Node container"
Expand Down Expand Up @@ -2332,10 +2326,6 @@ version() {
docompose exec ssv-node /go/bin/ssvnode --version
echo
;;&
*blox-ssv2.yml* )
docompose exec ssv2-node /go/bin/ssvnode --version
echo
;;&
*lighthouse.yml* | *lighthouse-cl-only* )
docompose exec consensus lighthouse --version
echo
Expand Down
9 changes: 0 additions & 9 deletions grafana/provision-dashboards.sh
Original file line number Diff line number Diff line change
Expand Up @@ -94,15 +94,6 @@ case "$CLIENT" in
__file='/etc/grafana/provisioning/dashboards/ssv_node_dashboard.json'
wget -t 3 -T 10 -qcO - "${__url}" | jq '.templating.list[0].current |= {selected: false, text: "ssv-node", value: "ssv-node"} | .templating.list[0].options = [ { "selected": true, "text": "ssv-node", "value": "ssv-node" } ] | .templating.list[0].query = "ssv-node"' >"${__file}"
;;&
*blox-ssv2.yml* )
# SSV Operator Dashboard
__url='https://raw.githubusercontent.com/bloxapp/ssv/main/monitoring/grafana/dashboard_ssv_operator_performance.json'
__file='/etc/grafana/provisioning/dashboards/ssv_operator_dashboard.json'
wget -t 3 -T 10 -qcO - "${__url}" | jq '.templating.list[0].current |= {selected: false, text: "ssv2-node", value: "ssv2-node"} | .templating.list[0].options = [ { "selected": true, "text": "ssv2-node", "value": "ssv2-node" } ] | .templating.list[0].query = "ssv2-node"' >"${__file}"
__url='https://raw.githubusercontent.com/bloxapp/ssv/main/monitoring/grafana/dashboard_ssv_node.json'
__file='/etc/grafana/provisioning/dashboards/ssv_node_dashboard.json'
wget -t 3 -T 10 -qcO - "${__url}" | jq '.templating.list[0].current |= {selected: false, text: "ssv2-node", value: "ssv2-node"} | .templating.list[0].options = [ { "selected": true, "text": "ssv2-node", "value": "ssv2-node" } ] | .templating.list[0].query = "ssv2-node"' >"${__file}"
;;&
* )
# Home staking dashboard
__revision=$(wget -t 3 -T 10 -qO - https://grafana.com/api/dashboards/17846 | jq .revision)
Expand Down
10 changes: 0 additions & 10 deletions prometheus/blox-ssv2-prom.yml

This file was deleted.

1 change: 0 additions & 1 deletion prometheus/choose-config.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ esac

case "$CLIENT" in
*ssv.yml* ) cat /etc/prometheus/ssv-prom.yml >> /etc/prometheus/prometheus.yml ;;
*blox-ssv2.yml* ) cat /etc/prometheus/blox-ssv2-prom.yml >> /etc/prometheus/prometheus.yml ;;
esac

case "$CLIENT" in
Expand Down

0 comments on commit f805814

Please sign in to comment.