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

libioc should support iocage's template jails #578

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

sonicaj
Copy link

@sonicaj sonicaj commented Nov 18, 2018

Libiocage does not right now support iocage's template jails. This commit introduces the following changes:

  1. Make sure that libiocage is able to create jails from iocage's template jails
  2. Libiocage is able to list iocage's template jails
  3. A bug fix in JailConfig where we try to fetch the rc_conf file when the jail does not exist
  4. Bug fixes in special properties ( DefaultRouter, Resolver ) where a bug in libiocage did not anticipate that objects of these special properties could be sent as as set value

Libiocage does not right now support iocage's template jails. This commit introduces the following changes:
1) Make sure that libiocage is able to create jails from iocage's template jails
2) Libiocage is able to list iocage's template jails
3) A bug fix in JailConfig where we try to fetch the rc_conf file when the jail does not exist
4) Bug fixes in special properties ( DefaultRouter, Resolver ) where a bug in libiocage did not anticipate that objects of these special properties could be sent as as set value
@@ -81,7 +84,7 @@ def __iter__(
self
) -> typing.Generator['iocage.Resource.Resource', None, None]:
"""Return an iterator over the child datasets."""
if self.namespace is None:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perhaps we make this an OR with the below addition?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am not sure if I followed you correctly. Are you suggesting self.namespace is None or not self.namespace ?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yep! Stefan probably has a specific use for None.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh, I was not aware of that. not self.namespace should normally cover the general negation scenario but if we have a specific use case, then that needs to be followed through. Let's confirm this ? @gronke could you confirm this please ?

@gronke gronke changed the title Libiocage should support iocage's template jails libioc should support iocage's template jails Jan 14, 2019
@bsdci bsdci locked as too heated and limited conversation to collaborators Jan 16, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants