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

Fixes #20641 - clean the upgrade storage on upgrade finish #88

Merged
merged 1 commit into from Aug 24, 2017

Conversation

iNecas
Copy link
Member

@iNecas iNecas commented Aug 18, 2017

No description provided.

@iNecas
Copy link
Member Author

iNecas commented Aug 18, 2017

Tests updated

@iNecas
Copy link
Member Author

iNecas commented Aug 24, 2017

@swapab mind review?

@@ -67,6 +67,9 @@ def run
run_phase(phase)
end
end
unless quit?
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a silly question. Any reason to prefer block check over an inline check?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

just a personal preference. Sometimes the modifier statement can get overlooked. Probably not this case though

@swapab
Copy link
Member

swapab commented Aug 24, 2017

Upgrade run works like a charm.!!! @iNecas 🏆
Tested with following command:

./bin/foreman-maintain upgrade run --target-version 6.2.z --whitelist="check-old-foreman-tasks,disk-io,packages-update"

https://paste.fedoraproject.org/paste/mDfXzdtFeaXgD4qNs-3iRw (Ignore the errors. Those are system specific)


Cleaning also works as expected.

Command:

./bin/foreman-maintain upgrade run --target-version 6.2.z --whitelist="check-old-foreman-tasks,disk-io,packages-update,installer-upgrade"

Stripped result:

Running procedures after migrating to Satellite 6.2.z
================================================================================
turn off maintenance mode:                                            [OK]
--------------------------------------------------------------------------------
re-enable sync plans: 
/ Total 0 sync plans are now enabled.                                 [OK]      
--------------------------------------------------------------------------------


Running checks after upgrading to Satellite 6.2.z
================================================================================
check for paused tasks:                                               [OK]
--------------------------------------------------------------------------------
Check whether system is self-registered or not: 
System is not self registered                                         [OK]
--------------------------------------------------------------------------------


--------------------------------------------------------------------------------
Upgrade finished.

Ready to merge. ✅

@iNecas iNecas merged commit e5fdf18 into theforeman:master Aug 24, 2017
@iNecas
Copy link
Member Author

iNecas commented Aug 24, 2017

Thanks @swapab

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants