-
-
Notifications
You must be signed in to change notification settings - Fork 796
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
Open to removing dependency on LXC cookbook? #32
Comments
Jay, first of all, awesome! Let's try to obviate the need for LXC cookbook dependency unless someone wants it. Docker I believe is moving towards considering pluggable virtualization back ends at some point anyways. I'd be curious to know if anyone is using the LXC customizations provided by that cookbook. I don't personally have this deployed at large scale, so I'm not sure the usefulness of that cookbook. In the meantime since I've abstracted out the lxc recipe in this cookbook so we can customize the behavior, maybe we should limit lxc cookbook usage to just <13.10? Could we help fix their cookbook more? I'd love to start introducing attributes for choosing your virtualization/filesystem/networking backends even if Docker isn't ready for that yet. |
+1 for getting rid of all the extras that the lxc cookbook brings. That being said, I just submitted hw-cookbooks/lxc#47 and sous-chefs/dpkg_autostart#6 that might make your life a bit easier on Saucy in the meantime. Now we only have to make aufs optional and I think we're ready for 13.10 support. |
As noted in #34, please note LXC installation/dependency is currently required for binary installs, although we might be able to get away with just installing LXC packages. Did see the lxc/dpkg_autostart changes were merged, did they help? How would you like to proceed here? |
I'd still rather not do all the stuff the LXC cookbook does if not necessary. I've updated the other guy's PR to reflect your suggested changes. Thanks! |
I'd love to fix their cookbook to separate recipes (such as package, service, etc.) so we can call on them as necessary and not get all the aforementioned cruft. We also need to submit back package support for non-Ubuntu OSes back to them. Maybe I'll submit a PR or two and see how that goes. I'm also getting an annoying error on lxc package installation from their cookbook:
I think once they separate out their recipes, it'll make life better for the above error and everyone. |
@bflad this looks suspiciously like the problem I fixed in sous-chefs/dpkg_autostart#6 . Are your dependencies up to date? lxc 1.1.6 requires dpkg_autostart ~> 0.1.10 which has the fix. Background: lxc uses dpkg_autostart to disable startup on boot for services lxc and lxc-net. This is done by creating a /usr/sbin/policy-rc.d file, which is then consulted by the system for every upstart service call. Unfortunately this file did not cater well enough for service with no /etc/init.d file. |
This is resolved for me; we only pull in the LXC cookbook when absolutely needed. Thanks! |
Hey Brian,
I've been testing out this cookbook on 13.10 (in anticipation of 14.04 release), and I'm finding the LXC cookbook, as well as the dpkg-autostart cookbook it depends on, it causing lots of headaches on newer ubuntu releases.
In addition, the cookbook does a lot of additional stuff that's simply not needed for docker (such as creating network interfaces and installing rubygems).
Would you be amenable to removing the dependency from the cookbook and installing the required LXC packages directly? If so I'll get a PR in tomorrow.
Thanks,
Jay
The text was updated successfully, but these errors were encountered: