Project

General

Profile

Actions

Bug #578

closed

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

Added by Pierre-Louis Bonicoli almost 7 years ago. Updated over 6 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.

Actions #1

Updated by Pierre-Louis Bonicoli almost 7 years ago

  • File test.txt added
Actions #2

Updated by Pierre-Louis Bonicoli almost 7 years ago

  • File deleted (test.txt)
Actions #3

Updated by Pierre-Louis Bonicoli over 6 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.

Actions #4

Updated by Pierre-Louis Bonicoli over 6 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
Actions #5

Updated by Pierre-Louis Bonicoli over 6 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.

Actions

Also available in: Atom PDF