Project

General

Profile

Bug #578

Nicecity: local lxc-net service overrides the one provided by LXC package

Added by Pierre-Louis Bonicoli over 2 years ago. Updated about 2 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
-
Category:
Service :: Backup
Start date:
2017-07-24
Due date:
% Done:

100%

Estimated time:
Patch Available:
Confirmed:
Yes
Branch:
Entity:
DuckCorp
Security:
No
Help Needed:

Description

/etc/systemd/system/lxc-net.service overrides /lib/systemd/system/lxc-net.service which belongs to LXC package.

It seems both files provides same features (see), /etc/systemd/system/lxc-net.service should be removed and /etc/default/lxc-net should be added.

History

#1

Updated by Pierre-Louis Bonicoli about 2 years ago

  • File test.txt added
#2

Updated by Pierre-Louis Bonicoli about 2 years ago

  • File deleted (test.txt)
#3

Updated by Pierre-Louis Bonicoli about 2 years ago

  • Description updated (diff)

/lib/systemd/system/lxc-net.service is calling /usr/lib/x86_64-linux-gnu/lxc/lxc-net which calls iptables. Firewall rules are handled explicitly, /lib/systemd/system/lxc-net.service will be disabled and /etc/systemd/system/lxc-net.service will be renamed.

#4

Updated by Pierre-Louis Bonicoli about 2 years ago

  • Status changed from New to In Progress
  • % Done changed from 0 to 90
  • Security set to No
  • lxc-net masked using systemctl mask lxc-net
  • /etc/systemd/system/lxc-net.service renamed /etc/systemd/system/lxc-bridge.service
  • /lib/systemd/system/lxc.service overridden with /etc/systemd/system/lxc.service (in order to replace lxc-net.service dependency with lxc-dhcp.service). Dependency removal can not use drop-in, the whole unit file needs to be overridden.
  • /etc/systemd/system/lxc-dhcp.service updated with s/lxc-net/lxc-bridge/
  • systemctl daemon-reload called
#5

Updated by Pierre-Louis Bonicoli about 2 years ago

  • Status changed from In Progress to Resolved
  • % Done changed from 90 to 100

lxc-bridge and lxc-dhcp are disabled, lxc.service is enabled and requires lxc-dhcp which requires lxc-bridge.

Successfully tested.

Also available in: Atom PDF