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

containers that require networking during startup fail #18440

Closed
groxxda opened this issue Sep 8, 2016 · 3 comments · Fixed by #91121
Closed

containers that require networking during startup fail #18440

groxxda opened this issue Sep 8, 2016 · 3 comments · Fixed by #91121
Assignees
Labels
0.kind: bug Something is broken
Milestone

Comments

@groxxda
Copy link
Contributor

groxxda commented Sep 8, 2016

Issue description

Currently the host side of the networking is setup during ExecStartPost. That means that networking is only available after the container finished startup.
If the container has a service that requires routable networking configured to be part of it's default.target, the startup will wait for the routes to be created and the routes will wait for the startup to finish, resulting in a deadlock and eventually container startup timeout.

Use case

A container that uses the acme client

Steps to reproduce

  • Add to configuration.nix:
containers.test = {
  privateNetwork=true;
  hostAddress = '10.1.1.1';
  localAddress = '10.1.1.2';
  autoStart = true;
  config = {config,pkgs,...}: {
    security.acme.certs."example.com" = { };
  };
};
  • nixos-rebuild switch

Technical details

  • System: Gorilla
  • Nix version: 1.11.4
  • Nixpkgs version: master
@fpletz fpletz added the 0.kind: bug Something is broken label Sep 9, 2016
@fpletz fpletz added this to the 16.09 milestone Sep 9, 2016
@Jookia
Copy link
Contributor

Jookia commented Sep 13, 2016

This happens on my system too, reverting to container code used a few months ago 'fixes' it

@fpletz fpletz modified the milestones: 17.03, 16.09 Jan 20, 2017
@fpletz fpletz modified the milestones: 17.09, 17.03 Jul 25, 2017
@fpletz fpletz modified the milestones: 17.09, 18.03 Mar 4, 2018
@matthewbauer matthewbauer modified the milestones: 18.03, 18.09 Apr 17, 2018
@matthewbauer matthewbauer modified the milestones: 18.09, 19.03 Nov 5, 2018
@matthewbauer matthewbauer modified the milestones: 19.03, 19.09 May 27, 2019
@bqv
Copy link
Contributor

bqv commented Apr 12, 2020

no longer an issue?

@m1cr0man
Copy link
Contributor

m1cr0man commented Jun 6, 2020

I don't believe so, but I will test it

@m1cr0man m1cr0man self-assigned this Jun 6, 2020
@m1cr0man m1cr0man mentioned this issue Jun 19, 2020
10 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0.kind: bug Something is broken
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants