Skip to content
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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

noah8713
Copy link
Contributor

@noah8713 noah8713 commented Mar 4, 2018

  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.

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
Copy link
Collaborator

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?

Copy link
Contributor Author

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
Copy link
Collaborator

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.

Copy link
Contributor Author

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
Copy link
Collaborator

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)
Copy link
Collaborator

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)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sure

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants