-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Enable ssl for scale test which includes: #154
base: master
Are you sure you want to change the base?
Conversation
7910079
to
78c9767
Compare
1. HVs ovn-controller talk to southbound db via ssl on port 6642 2. Starting and setting of southbound and northbound dbs with pssl on ports 6642 and 6641 respectively. 3. Set inactivity_probe=0 on southbound db to avoid HVs ovn-controller throwing ssl connection errors and exiting the cluster.
conf-sb.db ovnsb.db | ||
pid=`cat $sandbox_name/$prog_name.pid` | ||
mv $sandbox_name/$prog_name.ctl $sandbox_name/$prog_name.$pid.ctl | ||
fi |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you abstract the different part only, instead of a big if-else block?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sure
abs_path=`pwd`/certs | ||
ovn-nbctl set-ssl $abs_path/ovnnb-privkey.pem $abs_path/ovnnb-cert.pem \ | ||
$abs_path/cacert.pem | ||
ovn-nbctl set-connection pssl:6641:127.0.0.1 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why 127.0.0.1? Rally may need to access NB remotely.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So by default it will be localhost where we are setting up controller sandbox. We are not using cluster here. Hence when we run all the nbctl commands too , we source sandbox rc and do it. Once we introduce to spin up clustered db, we can leverage the actual IPs. Not needed now.
@@ -694,19 +735,35 @@ EOF | |||
|
|||
# Initialize database. | |||
if $controller ; then | |||
init_ovsdb_server "ovsdb-server-nb" $OVN_NB_DB | |||
init_ovsdb_server "ovsdb-server-sb" $OVN_SB_DB |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why init_ovsdb_server is not needed?
cmd = "./ovs-sandbox.sh --ovn --controller-ip %s \ | ||
--host-ip %s/%d --device %s" % \ | ||
(controller_ip, host_ip, sandbox_cidr.prefixlen, | ||
net_dev) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please abstract out the different part only (--ssl)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sure
6642 and 6641 respectively.