libvirt/po
Daniel P. Berrangé 3fff8c91b0 network: introduce a "none" firewall backend type
There are two scenarios identified after the recent firewall backend
selection was introduced, which result in libvirtd failing to startup
due to an inability to find either iptables/nftables

 - On Linux if running unprivileged with $PATH lacking the dir
   containing iptables/nftables
 - On non-Linux where iptables/nftables never existed

In the former case, it is preferrable to restore the behaviour whereby
the driver starts successfully. Users will get an error reported when
attempting to start any virtual network, due to the lack of permissions
needed to create bridge devices. This makes the missing firewall backend
irrelevant.

In the latter case, the network driver calls the 'nop' platform
implementation which does not attempt to implement any firewall logic,
just allowing the network to start without firewall rules.

To solve this are number of changes are required

 * Introduce VIR_FIREWALL_BACKEND_NONE, which does nothing except
   report a fatal error from virFirewallApply(). This code path
   is unreachable, since we'll never create a virFirewall
   object with with VIR_FIREWALL_BACKEND_NONE, so the error reporting
   is just a sanity check.

 * Ignore the compile time backend defaults and assume use of
   the 'none' backend if running unprivileged.

   This fixes the first regression, avoiding the failure to start
   libvirtd on Linux in unprivileged context, instead allowing use
   of the driver and expecting a permission denied when creating a
   bridge.

 * Reject the use of compile time backend defaults no non-Linux
   and hardcode the 'none' backend. The non-Linux platforms have
   no firewall implementation at all currently, so there's no
   reason to permit the use of 'firewall_backend_priority'
   meson option.

   This fixes the second regression, avoiding the failure to start
   libvirtd on non-Linux hosts due to non-existant Linux binaries.

 * Change the Linux platform backend to raise an error if the
   firewall backend is 'none'. Again this code path is unreachable
   by default since we'll fail to create the bridge before getting
   here, but if someone modified network.conf to request the 'none'
   backend, this will stop further progress.

 * Change the nop platform backend to raise an error if the
   firewall backend is 'iptables' or 'nftables'. Again this code
   path is unreachable, since we should already have failed to
   find the iptables/nftables binaries on non-Linux hosts, so
   this is just a sanity check.

 * 'none' is not permited as a value in 'firewall_backend_priority'
   meson option, since it is conceptually meaningless to ask for
   that on Linux.

NB, 'firewall_backend_priority' allows repeated options temporarily,
which we don't want. Meson intends to turn this into a hard error

  DEPRECATION: Duplicated values in array option is deprecated. This will become a hard error in the future.

and we can live with the reduced error checking until that happens.

Reviewed-by: Andrea Bolognani <abologna@redhat.com>
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
2024-06-17 15:55:14 +01:00
..
as.po Update translation files 2024-05-30 16:11:59 +02:00
bg.po Update translation files 2024-05-30 16:11:59 +02:00
bn_IN.po Update translation files 2024-05-30 16:11:59 +02:00
bs.po Update translation files 2024-05-30 16:11:59 +02:00
ca.po Update translation files 2024-05-30 16:11:59 +02:00
cs.po Update translation files 2024-05-30 16:11:59 +02:00
da.po Update translation files 2024-05-30 16:11:59 +02:00
de.po Update translation files 2024-05-30 16:11:59 +02:00
el.po Update translation files 2024-05-30 16:11:59 +02:00
en_GB.po Update translation files 2024-05-30 16:11:59 +02:00
es.po Update translation files 2024-05-30 16:11:59 +02:00
fi.po Update translation files 2024-05-30 16:11:59 +02:00
fr.po Update translation files 2024-05-30 16:11:59 +02:00
gu.po Update translation files 2024-05-30 16:11:59 +02:00
hi.po Update translation files 2024-05-30 16:11:59 +02:00
hr.po Update translation files 2024-05-30 16:11:59 +02:00
hu.po Update translation files 2024-05-30 16:11:59 +02:00
id.po Update translation files 2024-05-30 16:11:59 +02:00
it.po Update translation files 2024-05-30 16:11:59 +02:00
ja.po Update translation files 2024-05-30 16:11:59 +02:00
ka.po Update translation files 2024-05-30 16:11:59 +02:00
kn.po Update translation files 2024-05-30 16:11:59 +02:00
ko.po Translated using Weblate (Korean) 2024-06-06 10:49:33 +00:00
libvirt.pot po: Refresh potfile for v10.4.0 2024-05-28 10:41:48 +02:00
LINGUAS Added translation using Weblate (Romanian) 2023-04-09 01:47:23 +02:00
meson.build build: Make daemons depend on generated *_protocol.[ch] 2024-01-25 10:36:05 +01:00
mk.po Update translation files 2024-05-30 16:11:59 +02:00
ml.po Update translation files 2024-05-30 16:11:59 +02:00
mr.po Update translation files 2024-05-30 16:11:59 +02:00
ms.po Update translation files 2024-05-30 16:11:59 +02:00
nb.po Update translation files 2024-05-30 16:11:59 +02:00
nl.po Update translation files 2024-05-30 16:11:59 +02:00
or.po Update translation files 2024-05-30 16:11:59 +02:00
pa.po Update translation files 2024-05-30 16:11:59 +02:00
pl.po Update translation files 2024-05-30 16:11:59 +02:00
POTFILES network: introduce a "none" firewall backend type 2024-06-17 15:55:14 +01:00
pt_BR.po Update translation files 2024-05-30 16:11:59 +02:00
pt.po Update translation files 2024-05-30 16:11:59 +02:00
README.rst po: update docs to refer to Weblate instead of Zanata 2020-06-08 16:38:47 +01:00
ro.po Update translation files 2024-05-30 16:11:59 +02:00
ru.po Translated using Weblate (Russian) 2024-06-02 17:36:03 +02:00
si.po Update translation files 2024-05-30 16:11:59 +02:00
sr.po Update translation files 2024-05-30 16:11:59 +02:00
sr@latin.po Update translation files 2024-05-30 16:11:59 +02:00
sv.po Translated using Weblate (Swedish) 2024-06-06 13:51:11 +02:00
ta.po Update translation files 2024-05-30 16:11:59 +02:00
te.po Update translation files 2024-05-30 16:11:59 +02:00
tr.po Update translation files 2024-05-30 16:11:59 +02:00
uk.po Translated using Weblate (Ukrainian) 2024-05-30 16:11:59 +02:00
vi.po Update translation files 2024-05-30 16:11:59 +02:00
zh_CN.po Update translation files 2024-05-30 16:11:59 +02:00
zh_TW.po Update translation files 2024-05-30 16:11:59 +02:00

Libvirt Message Translation

Translation status

Libvirt translatable messages are maintained using the GNU Gettext tools and file formats, in combination with the Fedora Weblate web service.

https://translate.fedoraproject.org/projects/libvirt/libvirt/

Source repository

The libvirt GIT repository stores the master "libvirt.pot" file, which is to be refreshed at time of feature freeze.

The "po" files stored in GIT have source locations removed in order to cut down on storage size, by eliminating information already present in the "pot" file. All files are stored with strings sorted in alphabetical order rather than source location order, to minimize movement of strings when source locations change.

The "po" files are to be EXCLUSIVELY UPDATED by merge requests sent from the Fedora Weblate service. Other contributors MUST NEVER send changes which touch the "po" file content, as that will create merge conflicts for Weblate. IOW any bug fixes to translations should be made via the Weblate application UI.

After the "pot" file in libvirt GIT, Weblate will automatically run "msgmerge" to update the "po" files itself and send back a merge request with the changes.

Translation updates made in the Weblate Web UI will be committed to its fork of the GIT repo once a day. These commits will be submitted back to the master GIT repo via merge requests. If a merge request from Weblate is already open, commits will be added to this existing merge request. Weblate will take care of rebasing whenever changes happen in Git master. In order to avoid having to do translations merges 30 times a month, merge requests from Weblate will usually be left open until feature freeze arrives. During the freeze period, they will be accepted more promptly to ensure they make it into the new release.