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

MCD: Actually handle directories and symlinks #125

Open
jlebon opened this issue Oct 11, 2018 · 16 comments
Open

MCD: Actually handle directories and symlinks #125

jlebon opened this issue Oct 11, 2018 · 16 comments
Labels
jira lifecycle/frozen Indicates that an issue or PR should not be auto-closed due to staleness.

Comments

@jlebon
Copy link
Member

jlebon commented Oct 11, 2018

Right now, we're only handling the files list of the storage section. We should support directories and links too.

@jlebon
Copy link
Member Author

jlebon commented Oct 12, 2018

I started on this, but honestly I'm wondering if maybe we should discuss coreos/ignition#599 some more first. There's already some duplication of Ignition code and there's opportunity for more sharing if we want to support directories and symlinks.

The main difference is that Ignition only has an "update" mode whereas the MCD has both a "check" and an "update" mode. Although a "check" mode might be of interest to Ignition as well to be used as a final pass to confirm file states match the config?

@ashcrow
Copy link
Member

ashcrow commented Oct 15, 2018

Having overlap is expected. Though I am all for the ability to share some functionality so we don't have to redevelop all required features as time goes on.

Did you find a use case that requires directories and links already? Or is this more so anticipating (correctly) that eventually we will need to support them?

@jlebon
Copy link
Member Author

jlebon commented Oct 15, 2018

Did you find a use case that requires directories and links already? Or is this more so anticipating (correctly) that eventually we will need to support them?

Yeah, more so anticipating the need!

@ashcrow
Copy link
Member

ashcrow commented Oct 15, 2018

In that case I agree, implementing (or updating) similar logic in ignition in a way that will let us import and reuse is a better use of time as we don't have a need ASAP.

@jlebon
Copy link
Member Author

jlebon commented Jan 18, 2019

Hmm, should we discuss whether we want this in 4.0? It's basic functionality that one would expect we'd support.

jlebon added a commit to jlebon/machine-config-operator that referenced this issue Jan 18, 2019
Otherwise we'll end up in a situation where someone thinks they're
supported and we won't error out and also not create them.

Related: openshift#125
@dustymabe
Copy link
Member

Hmm, should we discuss whether we want this in 4.0? It's basic functionality that one would expect we'd support.

I would like to be able to lay down symbolic links as part of the work I'm doing for kmods-via-containers. I agree that directories and symbolic links are items that users would expect to work.

@ashcrow ashcrow added the jira label Nov 20, 2019
@dustymabe
Copy link
Member

bump

@runcom
Copy link
Member

runcom commented May 7, 2020

does anybody remember why we didn't add support for directories and symlinks when the MCO was created? I vaguely remember some issues (esp around symlinks) but other than that I'm under the impression that we just didn't add a reconcile for dirs/symlinks just because there wasn't a need? Maybe it has something to do with how spec2 handles them (not sure)

@ashcrow
Copy link
Member

ashcrow commented May 7, 2020

I believe there wasn't a need and the previous work which the MCO was built upon didn't have dirs/links implemented either.

@aneagoe
Copy link

aneagoe commented Aug 22, 2020

I would also be interested in this feature, atm short of creating directories via systemd units, I'm a bit blocked in rolling out some customizations. What's needed to raise the priority on this? More people upvoting? It really seems like basic functionality to be able to create directories via MachineConfig.

@openshift-bot
Copy link
Contributor

Issues go stale after 90d of inactivity.

Mark the issue as fresh by commenting /remove-lifecycle stale.
Stale issues rot after an additional 30d of inactivity and eventually close.
Exclude this issue from closing by commenting /lifecycle frozen.

If this issue is safe to close now please do so with /close.

/lifecycle stale

@openshift-ci-robot openshift-ci-robot added the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Nov 20, 2020
@ashcrow
Copy link
Member

ashcrow commented Nov 20, 2020

/remove-lifecycle stale

@openshift-ci-robot openshift-ci-robot removed the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Nov 20, 2020
@openshift-bot
Copy link
Contributor

Issues go stale after 90d of inactivity.

Mark the issue as fresh by commenting /remove-lifecycle stale.
Stale issues rot after an additional 30d of inactivity and eventually close.
Exclude this issue from closing by commenting /lifecycle frozen.

If this issue is safe to close now please do so with /close.

/lifecycle stale

@openshift-ci-robot openshift-ci-robot added the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Feb 19, 2021
@jlebon
Copy link
Member Author

jlebon commented Feb 19, 2021

/lifecycle frozen

@openshift-ci-robot openshift-ci-robot added lifecycle/frozen Indicates that an issue or PR should not be auto-closed due to staleness. and removed lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. labels Feb 19, 2021
osherdp pushed a commit to osherdp/machine-config-operator that referenced this issue Apr 13, 2021
@larsks
Copy link

larsks commented Jun 24, 2022

@jlebon what's the status of this issue? I keep running into situations in which I just want to create a directory, but instead I have to find some weird workaround (e.g., right now I'm installing a bunch files into /etc/mco as a staging location, because I couldn't create a more appropriate directory).

@jlebon
Copy link
Member Author

jlebon commented Jun 24, 2022

@larsks It's still outstanding, but eventually will be fixed by openshift/enhancements#1032.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
jira lifecycle/frozen Indicates that an issue or PR should not be auto-closed due to staleness.
Projects
None yet
Development

No branches or pull requests

8 participants