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 #33192 - prefer in progress running reports #9518
Conversation
Issues: #33192 |
Some of this is (i think) the random order which pulp returns the progress reports. I wasn't able to reproduce in my tests, so this may be more of a thought exercise than anything. The reported progress reporting looked like this:
notice that the first item in the list ' "Migrating content to Pulp 3",' shows as running but done == total. I presume there is a report further down that was running as well. But regardless, the current logic would have preferred this first report over anything past it since its marked as 'running' |
for migration progress reporting
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.
After applying this change, the progress reporting seems to be a lot better - the same message isn't "stuck" and the user can observe the different stages of the migration.
[vagrant@centos7-katello-3-18 katello-3.18.4]$ sudo foreman-maintain content prepare
Running Prepare content for Pulp 3
================================================================================
Prepare content for Pulp 3:
Checking for valid Katello configuraton.
Starting task.
2021-08-04 14:02:43 +0000: Importing migrated content type rpm: 7605/7605
Content Migration completed successfully
Script started on Wed 04 Aug 2021 01:51:05 PM UTC
Checking for valid Katello configuraton.
Starting task.
2021-08-04 14:02:43 +0000: Importing migrated content type rpm: 7605/7605
Content Migration completed successfully
[OK]
--------------------------------------------------------------------------------
for migration progress reporting