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
Add support to manage ovn-ic services with systemd #65
Conversation
Thanks for the PR. This is definitely acceptable. I will take a look hopefully soon. Thanks |
I've submitted this PR as patch series in the mailing list for further review - https://patchwork.ozlabs.org/project/ovn/list/?series=220521 |
Since ovn-ic needs to connect to OVN NB and SB DBs, user needs to define the connection parms to these DBs using the system file - /etc/systemd/system/ovn-ic.d/local.conf (OVN_IC_OPTS) if ovn-northd service is not runnng in the same machine right ? |
Yes, that's correct. Additionally user may supply |
@odivlad I've been thinking about the systemd service file you added to ovn-ic. Did you consider making ovn-ic a sub package ? I checked with some of the fedora maintainers. Would you mind reworking a bit to have a separate ovn-ic sub package ? Thanks |
@numansiddique, sure I can do this. |
And a second question, is it required to add firewalld xml for ovn ic? I can write config, by I don't use firewalld in my setup, so I can't test it in my env. |
e391281
to
cf6d6ba
Compare
@numansiddique, I've updated PR with requested changes. |
fdc0c9a
to
913d852
Compare
Submitted-at: #65 Signed-off-by: Vladislav Odintsov <odivlad@gmail.com> Signed-off-by: Numan Siddique <numans@ovn.org>
This commit adds new systemd-unit `ovn-ic.service` to manage OVN Interconnection daemons using systemd. Submitted-at: #65 Signed-off-by: Vladislav Odintsov <odivlad@gmail.com> Signed-off-by: Numan Siddique <numans@ovn.org>
bae6994
to
8da8799
Compare
@numansiddique, please note that
I see, that commit is already in tree, but just want to double-check before those changes are released. |
I think we decided on the sub package based on the comment on 17th Dec. |
This one. |
@numansiddique So do you think the ovsdb-server-ic (suggested to rename as ovn-ic-db) should be a submodule as well? It requires same components as regular ovsdb but just with IC-DB schemas. |
Before the commit 8abe98f ovn spec file was generating the below ovn packages
ovn is the main package and others are sub packages. And now with this commit, it generates ovn-ic was split from ovn-central. I think this is fine. |
I thought about it when I suggested the change and I also tried out your patch. I think it should be fine as I don't see many users. Are you ok with this ? |
I think having separate package for ic would be better. |
@numansiddique, @hzhou8, thanks for the review. If I correctly understood all comments, I'm doing next:
|
7e20ad5
to
8d62255
Compare
I've added fixup commit (with added requires to ovn-central). Let me know if it looks good, I'll squash it and reword with correct commit message. |
I agree with you that its not a small change. I was just wondering if there are any users who build their own packages. I looked into the instructions here - https://fedoraproject.org/wiki/Upgrade_paths_%E2%80%94_renaming_or_splitting_packages I think we need to create compact packages when splitting the packages. I totally missed it earlier. Sorry. I normally study about packaging and the guidelines as and when required. I'd suggest
I think we can revisit it later if we really need to split ovn-ic into its own package. What do you think ? Thanks |
Agree, I'll update PR. |
…ic." This reverts commit 8abe98f.
@numansiddique, PR is updated. |
051d7a5
to
8ce1253
Compare
Thanks. I'll take a look. Numan |
New ovn-ic.service and ovn-ic-db.service systemd units were added to manage ovn-ic and ovsdb-servers for OVN IC respectively. ovn-ic-db.service manages both OVN_IC_Northbound and OVN_IC_Southbound OVSDB server processes. Signed-off-by: Vladislav Odintsov <odivlad@gmail.com>
LGTM (but I didn't test it) @numansiddique what's our process for github PR review (v.s. mailing-list patches) |
I normally post the patches myself for review to the ML. I'm doing it now. |
@odivlad Can you please update the first commit with your signed-off-by tag ? Meanwhile I will add your tag myself and post it to the ovs-dev ML. I hope its fine. Thanks |
Patches posted here - https://patchwork.ozlabs.org/project/ovn/list/?series=227739 |
That's okay, thanks :) |
…ic." This reverts commit 8abe98f. Submitted-at: ovn-org#65 Signed-off-by: Vladislav Odintsov <odivlad@gmail.com> Signed-off-by: 0-day Robot <robot@bytheb.org>
New ovn-ic.service and ovn-ic-db.service systemd units were added to manage ovn-ic and ovsdb-servers for OVN IC respectively. ovn-ic-db.service manages both OVN_IC_Northbound and OVN_IC_Southbound OVSDB server processes. Submitted-at: ovn-org#65 Signed-off-by: Vladislav Odintsov <odivlad@gmail.com> Signed-off-by: 0-day Robot <robot@bytheb.org>
New ovn-ic.service and ovn-ic-db.service systemd units were added to manage ovn-ic and ovsdb-servers for OVN IC respectively. ovn-ic-db.service manages both OVN_IC_Northbound and OVN_IC_Southbound OVSDB server processes. Submitted-at: #65 Signed-off-by: Vladislav Odintsov <odivlad@gmail.com> Signed-off-by: Numan Siddique <numans@ovn.org>
Thanks for the PR. The patches are applied to the master branch. |
New ovn-ic.service and ovn-ic-db.service systemd units were added to manage ovn-ic and ovsdb-servers for OVN IC respectively. ovn-ic-db.service manages both OVN_IC_Northbound and OVN_IC_Southbound OVSDB server processes. Submitted-at: ovn-org#65 Signed-off-by: Vladislav Odintsov <odivlad@gmail.com> Signed-off-by: Numan Siddique <numans@ovn.org>
This PR adds support to manage ovn-ic daemons with systemd.
Two new .service units are added: ovn-ic.service and ovsdb-server-ic.service.
ovn-ic.service
systemd-unit manages ovn-ic daemonovn-ic-db.service
systemd-unit managesOVN_IC_Northbound
andOVN_IC_Southbound
OVSDB server processes.