-
Notifications
You must be signed in to change notification settings - Fork 99
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
Upgrade action should mount the previous bundle #296
Comments
It would be incredibly helpful to have the entire claim available to the bundle on subsequent actions (not just upgrade). That would give the bundle, previous outputs and parameters used. |
The currrent version of the spec says:
So what we want is something like |
My initial opinion/reaction was that mounting just the one claim in its current form to On the other hand, I wonder if mounting a claim for each action in the appropriate sub-folder may be a preferable option. As opposed to above, each claim would be an immutable record of state tied to an action. I could see them being mounted to locations such as |
@vdice I like your idea of splitting into multiple directories, but what would be the claims mounted? The last claim of that action? Or the last successfully applied action claim? |
@silvin-lubecki oh right, I see I missed that fundamental point of the original issue... good question. Hmmm... what do others think? |
I should have been clearer in my last message. The design of the claims system originally was that if there was a previous version of a claim, it would be accessible. Then the action would occur. Then a new version of the claim would be stored. So on install, no claim exists (because there is no previous claim). At the end of the install action, a new claim is created. But say we upgrade that installation. The upgrade then has access to the claim generated by the install action. That way, it can retrieve the state that install stored. As I understand it, what @carolynvs is asking for is that the new (not-yet-saved) claim also be accessible. I'm trying to gauge whether this is generally useful and how we might do it. On top of all of that, @silvin-lubecki 's original request I guess had nothing really to do with claims, so maybe this whole thing is veering off-topic. So to get all the way back on topic... @silvin-lubecki, the current draft of the Claims spec now has |
I was asking that the previous claim be mounted, i.e. if we just did an install and are now doing an upgrade, mount the claim from the install. At the time of my comment, this was not in the spec or implemented in any runtime. I wanted to be able to access outputs generated from the install action, or see parameters used during install. |
@technosophos yes that would satisfy my initial requirements, but if I understand the specs correctly, we will always mount the last claim, resulting from the last action, whatever it was successful or not. |
The current bundle is mounted in the invocation image, as stated in #196 . So during
upgrade
we only have access to the new bundle, not the previous.But I think some invocation images would need the previous bundle to compute a diff (ex: are there new services? Did the port changed? Should we delete a service ? etc..) and apply specific actions.
As the previous bundle is stored with the
Claim
, we should be able to mount it next to the current bundle.The text was updated successfully, but these errors were encountered: