Skip to content

Commit

Permalink
Autoinstall ovs setup for local dev
Browse files Browse the repository at this point in the history
  • Loading branch information
grimpy committed Jul 4, 2018
1 parent c2f50bd commit 95b5b75
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/dev/localnode/nodecreatenet
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ ip=172.17.1.10/16
gateway=172.17.0.1

ifdown eth0 || true
ip a d $(ip a s dev eth0 | grep inet | awk '{print $2}') dev eth0
ip a d $(ip a s dev eth0 | grep 'inet ' | awk '{print $2}') dev eth0
ovs-vsctl --may-exist add-br backplane1
ovs-vsctl --may-exist add-port backplane1 eth0
ip l s dev eth0 up
Expand Down
27 changes: 27 additions & 0 deletions scripts/dev/localnode/nodeinstallovs
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,30 @@ echo 'PrivateDevices=no' >> $red/redis.override.conf

apt-get install -y volumedriver-no-dedup-server
apt-get install -y openvstorage-hc

cat << EOF > /opt/asd-manager/config/preconfig.json
{
"asdmanager": {
"api_ip": "172.17.1.10",
"asd_start_port": 8600,
"asd_ips": [
"172.17.1.10"
],
"api_port": 8500
}
}
EOF
cat << EOF > /opt/OpenvStorage/config/preconfig.json
{"setup": {
"cluster_ip": "172.17.1.10",
"enable_heartbeats": true,
"external_config": null,
"logging_target": null,
"master_ip": "172.17.1.10",
"master_password": null,
"node_type": "master",
"rdma": false,
"rollback": null
}}
EOF
ovs setup

0 comments on commit 95b5b75

Please sign in to comment.