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

[Feature request] Make cockpit compatible with systemd-networkd besides NetworkManager #7987

Closed
q2dg opened this issue Oct 29, 2017 · 6 comments
Labels
blocked Don't land until something else happens first (see task list) enhancement

Comments

@q2dg
Copy link

q2dg commented Oct 29, 2017

Hello

Here (http://cockpit-project.org/guide/latest/feature-networkmanager.html) it is said Cockpit uses D-Bus API offered by NetworkManager to interact with system's network configuration.

Could it be possible that Cockpit had the same behavior but running on systemd-networkd service (that is to say: could it recognize and manage .netdev/.network/.link files?)

Thanks!

PD: I don't know if systemd-networkd offers a D-Bus API like NetworkManager does. Sorry if this issue is a silliness, then.

@ghost
Copy link

ghost commented Nov 24, 2017

This would be nice, originally I removed NetworkManager from all my servers and I only had to add it again as of cockpit, but my network is still managed by systemd-networkd.

@q2dg
Copy link
Author

q2dg commented Dec 8, 2017

I've put a Feature Request on Systemd GitHub: systemd/systemd#7593

@martinpitt martinpitt added blocked Don't land until something else happens first (see task list) enhancement and removed review-2019-01 labels Mar 28, 2019
@martinpitt
Copy link
Member

Marking as blocked, until networkd gets an API (D-Bus or varlink or similar).

@enaut
Copy link

enaut commented Aug 19, 2019

some network functionality has been exposed to D-Bus see:
https://github.com/systemd/systemd/blob/v243-rc1/src/network/org.freedesktop.network1.policy

The implemented features are mostly dns settings:

  • org.freedesktop.network1.set-ntp-servers
  • org.freedesktop.network1.set-dns-servers
  • org.freedesktop.network1.set-domains
  • org.freedesktop.network1.set-default-route
  • org.freedesktop.network1.set-llmnr
  • org.freedesktop.network1.set-mdns
  • org.freedesktop.network1.set-dns-over-tls
  • org.freedesktop.network1.set-dnssec
  • org.freedesktop.network1.set-dnssec-negative-trust-anchors
  • org.freedesktop.network1.revert-ntp
  • org.freedesktop.network1.revert-dns

@q2dg
Copy link
Author

q2dg commented Oct 20, 2020

Regarding to this...do you think this list of currently implemented systemd-networkd's items is enough for using it as a viable Cockpit's backend: systemd/systemd#7593 (comment) ?
Thanks a lot

@martinpitt
Copy link
Member

The currently available network1 API is for timedated, timesyncd (both of which already have Cockpit UI), and resolved. None of that is related to actually managing network interfaces, and the upstream bug said that they will not add a configuration D-Bus API.

So this is still an option if the cockpit UI parses and handles networkd's configuration files. Either way, this is a humongous piece of work, much too big for an issue -- it is safe to say that Red Hat's core cockpit team will never do this without a business demand/funding.

If someone else wants to develop such a page, please have a look at https://cockpit-project.org/blog/creating-plugins-for-the-cockpit-user-interface.html and https://cockpit-project.org/blog/cockpit-starter-kit.html . We are happy to assist you with developing such a page, CI, etc., but we don't have the capacity/priority to do that ourselves.

Thus I close this issue, to clean up our bug tracker.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
blocked Don't land until something else happens first (see task list) enhancement
Projects
None yet
Development

No branches or pull requests

4 participants