SUSE / suse-migration-services

GNU General Public License v3.0
7 stars 10 forks source link

Automatically retry after an error during the upgrade #259

Closed casierjean closed 1 year ago

casierjean commented 1 year ago

Hello Team,

When performing the upgrade, we had some issues happened during the packages upgrade like this one :

image

Do you know if there is a possibility to choose to automaticaaly retry instead of aborting the upgrade ?

Thanks !

KeithMnemonic commented 1 year ago

The upgrade is being performed by the zypper-migration plugin/command. This would need to be something that command would offer as an option. I do not think that currently exists though unfortunately. You could post a question here https://github.com/SUSE/zypper-migration and see what response you get . I wish I had a better answer. I do not think it would make sense for suse-migration-services to "blindly" call zypper migration again (#n retries) if it detected a failure as that could lead to a very corrupted system. Ideally a retry mechanism built into zypper/zypper-migration could evaluate the error and determine if a retry makes sense.

casierjean commented 1 year ago

Yes i'm sorry you are right.

Thanks for your answer and sorry to have disturbed you