1. 19 Oct, 2017 3 commits
  2. 18 Oct, 2017 1 commit
  3. 17 Oct, 2017 6 commits
  4. 11 Oct, 2017 1 commit
    • confile: make update warning opt-in · 25af2ac7
      Christian Brauner authored
      With the release LXC 2.1 we started warning users who use LXC through the API
      and users who use LXC through the tools equally about updating their config.
      This quickly got confusing and annoying to API users who e.g. generate configs
      on the fly (e.g. LXD). So instead of unconditionally warning users we make this
      opt-in. If LXC detects that the env variable LXC_UPDATE_CONFIG_FORMAT is set
      then it will warn the user if any legacy configuration keys are present. If it
      is not set however, it will not warn the user. This is ok, since the log will
      still log WARN()s for all legacy configuration keys.
      The tools will all set LXC_UPDATE_CONFIG_FORMAT since it is very much required
      that users update to the new configuration format pre-LXC 3.0.
      Signed-off-by: 's avatarChristian Brauner <christian.brauner@ubuntu.com>
  5. 06 Oct, 2017 1 commit
    • Don't force getty@ configuration · 085efe8f
      Alf Gaida authored
      ```
          # this only works if we have getty@.service to manipulate
          if [ -f "${rootfs}/lib/systemd/system/getty@.service" ]; then
             sed -e 's/^ConditionPathExists=/# ConditionPathExists=/' \
                 -e 's/After=dev-%i.device/After=/' \
                 < "${rootfs}/lib/systemd/system/getty@.service" \
                 > "${rootfs}/etc/systemd/system/getty@.service"
          fi
      ```
      we have only /dev/tty in a container - so this little cutie will spam the log all 10s with the following:
      
      ```
      Jul 28 22:33:00 mariadb systemd[1]: getty@tty4.service: Service has no hold-off time, scheduling restart.
      Jul 28 22:33:00 mariadb systemd[1]: getty@tty3.service: Service has no hold-off time, scheduling restart.
      Jul 28 22:33:00 mariadb systemd[1]: getty@tty1.service: Service has no hold-off time, scheduling restart.
      Jul 28 22:33:00 mariadb systemd[1]: getty@tty2.service: Service has no hold-off time, scheduling restart.
      Jul 28 22:33:00 mariadb systemd[1]: Stopped Getty on tty2.
      Jul 28 22:33:00 mariadb systemd[1]: getty@tty2.service: Failed to set invocation ID on control group /system.slice/system-getty.slice/getty@tty2.service, ignoring: Operation not permitted
      Jul 28 22:33:00 mariadb systemd[1]: Started Getty on tty2.
      Jul 28 22:33:00 mariadb systemd[1]: Stopped Getty on tty1.
      Jul 28 22:33:00 mariadb systemd[1]: getty@tty1.service: Failed to set invocation ID on control group /system.slice/system-getty.slice/getty@tty1.service, ignoring: Operation not permitted
      Jul 28 22:33:00 mariadb systemd[1]: Started Getty on tty1.
      Jul 28 22:33:00 mariadb systemd[1]: Stopped Getty on tty3.
      Jul 28 22:33:00 mariadb systemd[1]: getty@tty3.service: Failed to set invocation ID on control group /system.slice/system-getty.slice/getty@tty3.service, ignoring: Operation not permitted
      Jul 28 22:33:00 mariadb systemd[1]: Started Getty on tty3.
      Jul 28 22:33:00 mariadb systemd[1]: Stopped Getty on tty4.
      Jul 28 22:33:00 mariadb systemd[1]: getty@tty4.service: Failed to set invocation ID on control group /system.slice/system-getty.slice/getty@tty4.service, ignoring: Operation not permitted
      Jul 28 22:33:00 mariadb systemd[1]: Started Getty on tty4.
      Jul 28 22:33:00 mariadb agetty[242]: /dev/tty1: cannot open as standard input: No such file or directory
      Jul 28 22:33:00 mariadb agetty[241]: /dev/tty2: cannot open as standard input: No such file or directory
      Jul 28 22:33:00 mariadb agetty[244]: /dev/tty4: cannot open as standard input: No such file or directory
      Jul 28 22:33:00 mariadb agetty[243]: /dev/tty3: cannot open as standard input: No such file or directory
      Jul 28 22:33:10 mariadb systemd[1]: getty@tty4.service: Service has no hold-off time, scheduling restart.
      Jul 28 22:33:10 mariadb systemd[1]: getty@tty2.service: Service has no hold-off time, scheduling restart.
      Jul 28 22:33:10 mariadb systemd[1]: getty@tty1.service: Service has no hold-off time, scheduling restart.
      Jul 28 22:33:10 mariadb systemd[1]: getty@tty3.service: Service has no hold-off time, scheduling restart.
      Jul 28 22:33:10 mariadb systemd[1]: Stopped Getty on tty3.
      Jul 28 22:33:10 mariadb systemd[1]: getty@tty3.service: Failed to set invocation ID on control group /system.slice/system-getty.slice/getty@tty3.service, ignoring: Operation not permitted
      Jul 28 22:33:10 mariadb systemd[1]: Started Getty on tty3.
      Jul 28 22:33:10 mariadb systemd[1]: Stopped Getty on tty1.
      Jul 28 22:33:10 mariadb systemd[1]: getty@tty1.service: Failed to set invocation ID on control group /system.slice/system-getty.slice/getty@tty1.service, ignoring: Operation not permitted
      Jul 28 22:33:10 mariadb systemd[1]: Started Getty on tty1.
      Jul 28 22:33:10 mariadb systemd[1]: Stopped Getty on tty2.
      Jul 28 22:33:10 mariadb systemd[1]: getty@tty2.service: Failed to set invocation ID on control group /system.slice/system-getty.slice/getty@tty2.service, ignoring: Operation not permitted
      Jul 28 22:33:10 mariadb systemd[1]: Started Getty on tty2.
      Jul 28 22:33:10 mariadb systemd[1]: Stopped Getty on tty4.
      Jul 28 22:33:10 mariadb systemd[1]: getty@tty4.service: Failed to set invocation ID on control group /system.slice/system-getty.slice/getty@tty4.service, ignoring: Operation not permitted
      Jul 28 22:33:10 mariadb systemd[1]: Started Getty on tty4.
      Jul 28 22:33:10 mariadb agetty[245]: /dev/tty3: cannot open as standard input: No such file or directory
      Jul 28 22:33:10 mariadb agetty[247]: /dev/tty2: cannot open as standard input: No such file or directory
      Jul 28 22:33:10 mariadb agetty[246]: /dev/tty1: cannot open as standard input: No such file or directory
      Jul 28 22:33:10 mariadb agetty[248]: /dev/tty4: cannot open as standard input: No such file or directory
      ```
      if more reasons are whished i could attach the logs from 10 containers after one month runtime. (approx 30G)
      Signed-off-by: 's avatarAlf Gaida <agaida@siduction.org>
  6. 05 Oct, 2017 2 commits
  7. 04 Oct, 2017 7 commits
  8. 24 Sep, 2017 19 commits