Red Hat Satellite engineering is moving the tracking of its product development work on Satellite to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "Satellite project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs will be migrated starting at the end of May. If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "Satellite project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/SAT-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1945650 - Pulp3 migration: Improve user experience while executing "satellite-maintain content prepare"
Summary: Pulp3 migration: Improve user experience while executing "satellite-maintain ...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Satellite Maintain
Version: 6.9.0
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: 6.9.7
Assignee: satellite6-bugs
QA Contact: Gaurav Talreja
URL:
Whiteboard:
Depends On: 2013712
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-04-01 14:28 UTC by Ashish Humbe
Modified: 2021-12-17 21:32 UTC (History)
7 users (show)

Fixed In Version: rubygem-foreman_maintain-0.7.14,tfm-rubygem-katello-3.18.1.46-1
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-11-10 16:20:48 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Foreman Issue Tracker 33202 0 High Closed Pulp3 migration: Improve user experience while executing "foreman-maintain content prepare" 2021-10-12 17:49:56 UTC
Foreman Issue Tracker 33207 0 Normal Closed The Pulp 3 migration rake task should warn the user that "Migrating content to Pulp 3 ..." may take a long time to compl... 2021-10-12 17:49:35 UTC
Red Hat Product Errata RHBA-2021:4611 0 None None None 2021-11-10 16:20:53 UTC

Description Ashish Humbe 2021-04-01 14:28:20 UTC
Description of problem:

While migrating Pulp 2 -> Pulp 3 on Sat6.9, we should improve user experience about below points

1. After below message we flash message about different stages of migration on the same line

Prepare content for Pulp 3: 
Starting task.


2021-03-31 23:26:58 +0530: Migrating content to Pulp 3 270/270
2021-04-01 00:15:46 +0530: Distribution creation  3/9
etc. 

We should use new line to display new task and its progress so a user / support engineer can easily identify which all steps are completed before failure if any.


2. Migrating content to Pulp 3 step needs lot of time to complete after we display 270/270 sub-tasks completed. 

For me it took almost 1 hour with limited data synced on test satellite. 

2021-03-31 22:54:26 +0530: Migrating content to Pulp 3 270/270 
.
.
2021-04-01 00:07:46 +0530: Migrating content to Pulp 3 270/270

It feels that this step is stuck or hung, we should proactively inform user about the time estimate or mention some thing like: This step will take a while to complete..

So users will press Ctrl + C or report a case for Hung state of "Migrating content to Pulp 3" step.

Comment 1 Ian Ballou 2021-08-02 20:41:30 UTC
Created redmine issue https://projects.theforeman.org/issues/33202 from this bug

Comment 2 Bryan Kearney 2021-08-03 00:05:03 UTC
Upstream bug assigned to iballou

Comment 3 Bryan Kearney 2021-09-01 20:04:44 UTC
Moving this bug to POST for triage into Satellite since the upstream issue https://projects.theforeman.org/issues/33202 has been resolved.

Comment 10 Gaurav Talreja 2021-11-02 14:22:09 UTC
Verified.

Tested on Satellite 6.9.7 Snap 3.0
Version: rubygem-foreman_maintain-0.7.14-1.el7sat.noarch

Steps:
1. satellite-maintain content prepare

Observation:
With improved user experience of the above command, it prints progress and new task details on a new line and seems to work as mentioned in the description.
Newline behaviour is the default for the above command and if someone wants to keep the previous behaviour of one-liner output, they can use `--quiet` or `-q` option. 

While testing this BZ found that content migration output is getting duplicated, which makes its output more larger, discussed this with Devel Ian Ballou, and he raised a BZ 2019390, which will be nice to have with this BZ.

Comment 13 errata-xmlrpc 2021-11-10 16:20:48 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (Satellite Maintenance 6.9.7 Async Bug Fix Update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2021:4611


Note You need to log in before you can comment on or make changes to this bug.