-
Notifications
You must be signed in to change notification settings - Fork 22
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
fix: handle error so that it is shown in both page and task manager #247
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
But seems this PR is breaking the following workflow:
|
what do you mean by breaking? The initialize do nothing? |
Ok, got it. I didn't update the initialize command |
When initializing, should the older crc machine gets removed? Should we ask the user? |
I would say yes but could be a follow up PR as it's not related to this PR |
a490ca0
to
b256c1f
Compare
I think i fixed the initialize but there is an old issue about the spinner |
I still have an issue as it never ends (opposed to main) and I am never asked to logon to SSO (if I do crc cleanup before) |
@jeffmaury updated. The SSO will be asked when starting the VM. The initialize + start action is broken because of podman-desktop/podman-desktop#8514 so i think it never worked. You can use the initialize and then go to the resources page. |
@jeffmaury @lstocchi podman-desktop/podman-desktop#8514 should be fixed, because even if we fix everything on Openshift Local side initial experience is still going to be broken. |
@jeffmaury The initialize + start action is broken because of podman-desktop/podman-desktop#8514 so i think it never worked. Edit: or if it worked it was using a broken logic bc the start should happen during the starting phase, so most probably it was started during the configurephase which is not correct, bc otherwise there is no difference between initialize and initialize + start |
@jeffmaury @dgolovin i wonder if we can release without this PR. After all it just improves the error handling using the logger/taskManager but it was not there in previous releases, so there will be no regression. So we can merge the missing logic in desktop and then merge this PR and have a working solution next time |
Why does it work in main? |
Bc in main the code is this the initialize function calls the If you choose the initialize + start action what happens in podman desktop is that it calls the initialize method of the extension and then the start function in the registered provider lifecycle. But in crc this never happens. If you execute the initialize or initialize + start, the crc workflow will be the same. Maybe it works but with an incorrect logic. |
I think this PR addresses 2 different concerns: refactoring the initialize and start and handle errors during start. So I think either we delay this PR after the release or we split it in 2 different PRs |
@jeffmaury @dgolovin rebased. With the new desktop, the initialize and start does not fail anymore. Please give it a look. |
Signed-off-by: lstocchi <[email protected]>
Signed-off-by: lstocchi <[email protected]>
Signed-off-by: lstocchi <[email protected]>
Signed-off-by: lstocchi <[email protected]>
Signed-off-by: lstocchi <[email protected]>
Signed-off-by: lstocchi <[email protected]>
Signed-off-by: lstocchi <[email protected]>
This PR refactors a bit the start action so that the error, if any, is propagated properly in the logger and caller.
Starting from the resources page
Create and start the VM