-
Notifications
You must be signed in to change notification settings - Fork 40
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
Implement disk creation during instance creation #812
Comments
Would like to prioritize this so we can stop doing the workaround in console of making a separate request to create the disk before calling instance create. |
The reason we struggle to do this cleanly in Omicron right now is a lack of "sub-sagas". Basically:
Potential solutions:
@andrewjstone - you mentioned you were eyeing steno recently. Any interest in checking-in on the status of "sub-sagas"? |
I don't want to discourage the subsaga work because that'll be really valuable.
I wonder if we could abstract this further so that there's a common function that accepts a SagaTemplateBuilder and adds a sequence of actions to it. Then there's very little that would be duplicated. The hard part seems like the fact that the sagas probably have different SagaTypes. |
@smklein @davepacheco I am definitely interested in this problem. Steno could use some love and I'm fascinated by it. I didn't look too deeply into sub-sagas though, and was wondering about how dynamic they are. I was also wondering if there was a way to do what Dave suggests or #2 that Sean suggests where we can do something like |
Posted in chat to clarify the priority:
|
I looked into this and different SagaTypes is indeed the problem with the sharing of actions. However, all sagas in nexus share a SagaContext, and so the only difference is the I think If instead of accessing the params fields directly in the actions functions for If I'm reading things correctly, this doesn't seem too hard to do, but it does start coupling In summary, I believe I can probably get this working very short term by playing games with SagaTypes. And then I can go and retrofit it with subsagas later. I guess it depends how urgently we want this. |
I realized I never updated this. I'm currently working on making steno more dynamic and fully supporting subsagas. |
The Steno PR that enables subsagas is out for review: oxidecomputer/steno#29 |
The Steno PR is nearly ready to land! I'm updating Omicron to use it in #1532. |
To close this out we need to utilized a sub-saga in the |
#771 adds support for attaching an already created disk during the instance creation saga but leaves out support for creating a disk during instance creation. This issue tracks that work.
The text was updated successfully, but these errors were encountered: