Description of problem: I added two new repos using rhui-manager RHUI 1.2 (SRPMS) (5Server-x86_64) RHUI 1.2 (SRPMS) (5Server-i386) and triggered a individual repo sync for them. But When I enter "c" to confirm, I got different repo in the list. See here the first entry. The following repositories will be scheduled for synchronization: Red Hat Update Infrastructure 1.2 (RPMs) (5Server-x86_64) <<<< (wrong selection; ) Red Hat Update Infrastructure 1.2 (SRPMS) (5Server-i386) Proceed? (y/n) y Newly added repos: ================== Red Hat Update Infrastructure 1.2 (SRPMS) x 22: Red Hat Update Infrastructure 1.2 (SRPMS) (5Server-x86_64) x 23: Red Hat Update Infrastructure 1.2 (SRPMS) (5Server-i386) Enter value (1-23) to toggle selection, 'c' to confirm selections, or '?' for more commands: c Trigered individual repo sync: ============================== ------------------------------------------------------------------------------ rhui (sync) => sr Select one or more repositories to schedule to be synchronized before its scheduled time. The sync will happen as soon as possible depending on other tasks that may be executing in the RHUI. Only repositories that are not currently synchronizing are displayed. Last Result Next Sync Repository ------------------------------------------ - 1 : finished 05-31-2011 15:30 Red Hat Update Infrastructure 1.2 (RPMs) (5Server-i386) - 2 : finished 05-31-2011 15:30 Red Hat Update Infrastructure 1.2 (RPMs) (5Server-x86_64) - 3 : scheduled 05-31-2011 21:04 Red Hat Update Infrastructure 1.2 (SRPMS) (5Server-i386) - 4 : scheduled 05-31-2011 21:04 Red Hat Update Infrastructure 1.2 (SRPMS) (5Server-x86_64) Enter value (1-4) to toggle selection, 'c' to confirm selections, or '?' for more commands: 3-4 Select one or more repositories to schedule to be synchronized before its scheduled time. The sync will happen as soon as possible depending on other tasks that may be executing in the RHUI. Only repositories that are not currently synchronizing are displayed. Last Result Next Sync Repository ------------------------------------------ - 1 : finished 05-31-2011 15:30 Red Hat Update Infrastructure 1.2 (RPMs) (5Server-i386) - 2 : finished 05-31-2011 15:30 Red Hat Update Infrastructure 1.2 (RPMs) (5Server-x86_64) x 3 : scheduled 05-31-2011 21:04 Red Hat Update Infrastructure 1.2 (SRPMS) (5Server-i386) x 4 : scheduled 05-31-2011 21:04 Red Hat Update Infrastructure 1.2 (SRPMS) (5Server-x86_64) Enter value (1-4) to toggle selection, 'c' to confirm selections, or '?' for more commands: c The following repositories will be scheduled for synchronization: Red Hat Update Infrastructure 1.2 (RPMs) (5Server-x86_64) Red Hat Update Infrastructure 1.2 (SRPMS) (5Server-i386) Proceed? (y/n) y Scheduling sync for Red Hat Update Infrastructure 1.2 (RPMs) (5Server-x86_64)... ... successfully scheduled for the next available timeslot. Scheduling sync for Red Hat Update Infrastructure 1.2 (SRPMS) (5Server-i386)... ... successfully scheduled for the next available timeslot. ------------------------------------------------------------------------------ rhui (sync) => < Version-Release number of selected component (if applicable): pulp 0.181 rh-rhui-tools 2.0.25 How reproducible: Always Steps to Reproduce: 1. Add following two repos: RHUI 1.2 (SRPMS) (5Server-x86_64) RHUI 1.2 (SRPMS) (5Server-i386) 2. Trigger individual repo sync for these repo using 'sr' Actual results: The following repositories will be scheduled for synchronization: Red Hat Update Infrastructure 1.2 (RPMs) (5Server-x86_64) <<<wrong selection Red Hat Update Infrastructure 1.2 (SRPMS) (5Server-i386) Proceed? (y/n) y Expected results: Sync should run only for selected triggered repos. In this case it should run for: Red Hat Update Infrastructure 1.2 (SRPMs) (5Server-x86_64) Red Hat Update Infrastructure 1.2 (SRPMS) (5Server-i386) Additional info:
I found the same behaviour with following two repos as well. Here I triggered the individual sync for "Red Hat Enterprise Linux Server 6 Updates (RPMs) (6Server-x86_64)". However sync is running for "Red Hat Enterprise Linux Server 6 Releases (RPMs) (6Server-x86_64)". ------------------------------------------------------------------------- Select one or more repositories to schedule to be synchronized before its scheduled time. The sync will happen as soon as possible depending on other tasks that may be executing in the RHUI. Only repositories that are not currently synchronizing are displayed. Last Result Next Sync Repository ------------------------------------------ x 1 : scheduled 05-31-2011 21:56 Red Hat Enterprise Linux Server 6 Updates (RPMs) (6Server-x86_64) - 2 : finished 05-31-2011 16:30 Red Hat Update Infrastructure 1.2 (RPMs) (5Server-i386) - 3 : finished 05-31-2011 16:30 Red Hat Update Infrastructure 1.2 (RPMs) (5Server-x86_64) - 4 : finished 05-31-2011 21:04 Red Hat Update Infrastructure 1.2 (SRPMS) (5Server-i386) - 5 : scheduled 05-31-2011 21:04 Red Hat Update Infrastructure 1.2 (SRPMS) (5Server-x86_64) Enter value (1-5) to toggle selection, 'c' to confirm selections, or '?' for more commands: c The following repositories will be scheduled for synchronization: Red Hat Enterprise Linux Server 6 Releases (RPMs) (6Server-x86_64) Proceed? (y/n) y ------------------------------------------------------------------------------ I think the following bug is related to this issue. https://bugzilla.redhat.com/show_bug.cgi?id=708279
added to rhui-20 tracker
I found the similar issue in pulp 0.186 and rhui-tools 2.0.26 build. I selected RHUI 1.2 repos to sync however, the sync scheduled for rhel repos. -------------------------------------------------------------------- Select one or more repositories to schedule to be synchronized before its scheduled time. The sync will happen as soon as possible depending on other tasks that may be executing in the RHUI. Only repositories that are not currently synchronizing are displayed. Last Result Next Sync Repository ------------------------------------------ x 1 : scheduled 06-13-2011 16:29 Red Hat Update Infrastructure 1.2 (RPMs) (5Server-i386) x 2 : scheduled 06-13-2011 16:28 Red Hat Update Infrastructure 1.2 (RPMs) (5Server-x86_64) Enter value (1-2) to toggle selection, 'c' to confirm selections, or '?' for more commands: c The following repositories will be scheduled for synchronization: Red Hat Enterprise Linux Server 6 Optional Releases (RPMs) (6Server-x86_64) Red Hat Enterprise Linux Server 6 Releases (RPMs) (6Server-x86_64) Proceed? (y/n) y
Bulk moving a bunch of sync related bugs to ON_QA to test with version 2.0.32.
Build : rhel6, pulp 194, rhui 2.0.32 One observation : Not sure whether this is true in all the cases , but may be the wsgi:pulp issue faced with 5Server-x86_64 is causing this "Wrong repo selection while running individual sync scheduling using 'sr'" [Wed Jun 22 10:14:42 2011] [error] 2011-06-22 10:14:42,620 pulp.server.api.repo_sync:INFO: Sync of rhel-server-5Server-x86_64 starting, skip_dict = {} [Wed Jun 22 10:14:42 2011] [error] 2011-06-22 10:14:42,622 pulp.server.api.synchronizers:INFO: cacert = </etc/pki/content/rhel-server-5Server-x86_64/feed-rhel-server-5Server-x86_64.ca>, cert = </etc/pki/content/rhel-server-5Server-x86_64/feed-rhel-server-5Server-x86_64.cert> *** glibc detected *** (wsgi:pulp) : corrupted double-linked list: 0x00007f61b0061e50 *** ======= Backtrace: ========= /lib64/libc.so.6(+0x36a5275676)[0x7f62057cb676] /lib64/libc.so.6(+0x36a52781a4)[0x7f62057ce1a4] /usr/lib64/libnsspem.so(+0x18e72)[0x7f61e81dbe72] ------------------------------------------------------------------------------ -= Red Hat Update Infrastructure Management Tool =- -= Repository Synchronization Status =- Last Refreshed: 10:50:04 (updated every 5 seconds, ctrl+c to exit) Next Sync Last Sync Last Result ------------------------------------------------------------------------------ Red Hat Enterprise Linux Server (RPMs) (5Server-x86_64) In Progress Never Never Red Hat Enterprise Linux Server 6 Releases (RPMs) (6Server-x86_64) 06-22-2011 16:07 Never Never Red Hat Update Infrastructure 1.2 (RPMs) (5Server-x86_64) 06-22-2011 16:07 06-22-2011 10:10 Success Connected: ip-10-122-70-115.ec2.internal ------------------------------------------------------------------------------ -= Synchronization Status =- dr display repo sync summary vr view the details of the last repository sync sr sync an individual repository immediately dc display CDS sync summary vc view the details of the last CDS sync sc sync an individual CDS immediately Connected: ip-10-122-70-115.ec2.internal ------------------------------------------------------------------------------ rhui (sync) => sr Select one or more repositories to schedule to be synchronized before its scheduled time. The sync will happen as soon as possible depending on other tasks that may be executing in the RHUI. Only repositories that are not currently synchronizing are displayed. Last Result Next Sync Repository ------------------------------------------ - 1 : Never 06-22-2011 16:07 Red Hat Enterprise Linux Server 6 Releases (RPMs) (6Server-x86_64) - 2 : Success 06-22-2011 16:07 Red Hat Update Infrastructure 1.2 (RPMs) (5Server-x86_64) Enter value (1-2) to toggle selection, 'c' to confirm selections, or '?' for more commands: 1 Select one or more repositories to schedule to be synchronized before its scheduled time. The sync will happen as soon as possible depending on other tasks that may be executing in the RHUI. Only repositories that are not currently synchronizing are displayed. Last Result Next Sync Repository ------------------------------------------ x 1 : Never 06-22-2011 16:07 Red Hat Enterprise Linux Server 6 Releases (RPMs) (6Server-x86_64) - 2 : Success 06-22-2011 16:07 Red Hat Update Infrastructure 1.2 (RPMs) (5Server-x86_64) Enter value (1-2) to toggle selection, 'c' to confirm selections, or '?' for more commands: c The following repositories will be scheduled for synchronization: Red Hat Enterprise Linux Server (RPMs) (5Server-x86_64) Proceed? (y/n) y Scheduling sync for Red Hat Enterprise Linux Server (RPMs) (5Server-x86_64)... ... sync already in progress, new schedule was not added. ------------------------------------------------------------------------------
Also this issue is now faced with the 'sc' command as well. During execution of 'sc command', the "In Progress" CDS node is not displayed and on selection of the current CDS node, the previous CDS node gets selected. ------------------------------------------------------------------------------ -= Red Hat Update Infrastructure Management Tool =- -= CDS Synchronization Status =- Last Refreshed: 06:22:30 (updated every 5 seconds, ctrl+c to exit) cds1-250_248 ................................................ [ UP ] cds2-238_127 ................................................ [ UP ] Next Sync Last Sync Last Result ------------------------------------------------------------------------------ cds1-250_248 In Progress 06-24-2011 02:12 Error cds2-238_127 06-24-2011 07:26 06-24-2011 01:26 Error Connected: ip-10-122-70-115.ec2.internal ------------------------------------------------------------------------------ ^Crhui (sync) => sc Select one or more CDS instances to schedule to be synchronized before its scheduled time. The sync will happen as soon as possible depending on other tasks that may be executing in the RHUI. Only CDS instances that are not currently synchronizing are displayed. Last Result Next Sync CDS ------------------------------------------ - 1 : Error 06-24-2011 07:26 cds2-238_127 Enter value (1-1) to toggle selection, 'c' to confirm selections, or '?' for more commands: 1 Select one or more CDS instances to schedule to be synchronized before its scheduled time. The sync will happen as soon as possible depending on other tasks that may be executing in the RHUI. Only CDS instances that are not currently synchronizing are displayed. Last Result Next Sync CDS ------------------------------------------ x 1 : Error 06-24-2011 07:26 cds2-238_127 Enter value (1-1) to toggle selection, 'c' to confirm selections, or '?' for more commands: c The following CDS instances will be scheduled for synchronization: cds1-250_248 Proceed? (y/n) n ------------------------------------------------------------------------------ rhui (sync) => dc ------------------------------------------------------------------------------ -= Red Hat Update Infrastructure Management Tool =- -= CDS Synchronization Status =- Last Refreshed: 06:24:38 (updated every 5 seconds, ctrl+c to exit) cds1-250_248 ................................................ [ UP ] cds2-238_127 ................................................ [ UP ] Next Sync Last Sync Last Result ------------------------------------------------------------------------------ cds1-250_248 In Progress 06-24-2011 02:12 Error cds2-238_127 06-24-2011 07:26 06-24-2011 01:26 Error Connected: ip-10-122-70-115.ec2.internal ------------------------------------------------------------------------------
These are two separate areas of the code, please file the sc bug as a separate bug.
On second thought, leave it as one bug. It's the same issue in both cases, so I'll fix them both at once.
commit e541fc6cc5969cbe8bc16b2775e8ec7e07629798 Author: Jay Dobies <jason.dobies> Date: Fri Jun 24 13:30:01 2011 -0400 709291 - Filter before generating the menu, that way the menu items directly correlate back to the filtered list. rhui-2.0/tools/src/rhui/tools/screens/sync.py
Not sure what the expected behaviour has to be when something is broken and still we go ahead with adding another RH content repo's on RHUA. I guess the right way would be to drop the task_snapshots collection from mongod, before we go ahead after a crash. Wondering if something else can be done to get the repo selection right, even if some repo syncs are stuck or hung. I ran two syncs, rhel5 -64 and rhel6- 64 and after a while I could'nt login to rhui-manager(which is in hung state). Now, after re-booting and adding another repo, I face this wrong selection of repo issue again. ( re-boot required as, I restarted pulp-server and httpd process went defunct and under pid 1) Also, we need to check the same for the 'sc command'. Will check and update the same. ------------------------------------------------------------------------------ -= Red Hat Update Infrastructure Management Tool =- -= Repository Synchronization Status =- Last Refreshed: 14:51:28 (updated every 5 seconds, ctrl+c to exit) Next Sync Last Sync Last Result ------------------------------------------------------------------------------ Red Hat Enterprise Linux Server (RPMs) (5Server-x86_64) In Progress Never Never Red Hat Enterprise Linux Server 6 Releases (RPMs) (6Server-i386) In Progress Never Never Red Hat Enterprise Linux Server 6 Releases (RPMs) (6Server-x86_64) 06-29-2011 15:55 Never Never Connected: ip-10-86-179-228.ec2.internal ------------------------------------------------------------------------------ ^Crhui (sync) => sr Select one or more repositories to schedule to be synchronized before its scheduled time. The sync will happen as soon as possible depending on other tasks that may be executing in the RHUI. Only repositories that are not currently synchronizing are displayed. Last Result Next Sync Repository ------------------------------------------ - 1 : Never 06-29-2011 15:55 Red Hat Enterprise Linux Server 6 Releases (RPMs) (6Server-x86_64) Enter value (1-1) to toggle selection, 'c' to confirm selections, or '?' for more commands: 1 Select one or more repositories to schedule to be synchronized before its scheduled time. The sync will happen as soon as possible depending on other tasks that may be executing in the RHUI. Only repositories that are not currently synchronizing are displayed. Last Result Next Sync Repository ------------------------------------------ x 1 : Never 06-29-2011 15:55 Red Hat Enterprise Linux Server 6 Releases (RPMs) (6Server-x86_64) Enter value (1-1) to toggle selection, 'c' to confirm selections, or '?' for more commands: b ------------------------------------------------------------------------------ rhui (sync) => sr Select one or more repositories to schedule to be synchronized before its scheduled time. The sync will happen as soon as possible depending on other tasks that may be executing in the RHUI. Only repositories that are not currently synchronizing are displayed. Last Result Next Sync Repository ------------------------------------------ - 1 : Never 06-29-2011 15:55 Red Hat Enterprise Linux Server 6 Releases (RPMs) (6Server-x86_64) Enter value (1-1) to toggle selection, 'c' to confirm selections, or '?' for more commands: 1 Select one or more repositories to schedule to be synchronized before its scheduled time. The sync will happen as soon as possible depending on other tasks that may be executing in the RHUI. Only repositories that are not currently synchronizing are displayed. Last Result Next Sync Repository ------------------------------------------ x 1 : Never 06-29-2011 15:55 Red Hat Enterprise Linux Server 6 Releases (RPMs) (6Server-x86_64) Enter value (1-1) to toggle selection, 'c' to confirm selections, or '?' for more commands: c The following repositories will be scheduled for synchronization: Red Hat Enterprise Linux Server (RPMs) (5Server-x86_64) Proceed? (y/n) n ------------------------------------------------------------------------------
Initially thought, that it has to be verified against rhui 2.0.33, just checked and the fix appears post this release. Would need the new build to verify this. Also, I hope the above comments might be of some help.
Not sure what happened here. I might have accidentally marked it as ON_QA previously when it wasn't fixed in any build I gave you. But in the latest build (2.0.34), it showed up in the changelog, so I'm guessing this is the first time I'm actually delivering you the fix. So let's call it fixed in 2.0.34 and please verify it on that build.
Correct repos are being selected when the other repos are in "In Progress" state. The behaviour is as expected for sr and sc commands. rhui (sync) => dr ------------------------------------------------------------------------------ -= Red Hat Update Infrastructure Management Tool =- -= Repository Synchronization Status =- Last Refreshed: 22:00:29 (updated every 5 seconds, ctrl+c to exit) Next Sync Last Sync Last Result ------------------------------------------------------------------------------ Red Hat Enterprise Linux Server 6 Releases (RPMs) (6Server-x86_64) In Progress 07-11-2011 20:50 Success Red Hat Update Infrastructure 1.2 (RPMs) (5Server-x86_64) 07-12-2011 00:12 07-11-2011 18:14 Success Connected: dhcp201-137.englab.pnq.redhat.com ------------------------------------------------------------------------------ ^Crhui (sync) => sr Select one or more repositories to schedule to be synchronized before its scheduled time. The sync will happen as soon as possible depending on other tasks that may be executing in the RHUI. Only repositories that are not currently synchronizing are displayed. Last Result Next Sync Repository ------------------------------------------ - 1 : Success 07-12-2011 00:12 Red Hat Update Infrastructure 1.2 (RPMs) (5Server-x86_64) Enter value (1-1) to toggle selection, 'c' to confirm selections, or '?' for more commands: 1 Select one or more repositories to schedule to be synchronized before its scheduled time. The sync will happen as soon as possible depending on other tasks that may be executing in the RHUI. Only repositories that are not currently synchronizing are displayed. Last Result Next Sync Repository ------------------------------------------ x 1 : Success 07-12-2011 00:12 Red Hat Update Infrastructure 1.2 (RPMs) (5Server-x86_64) Enter value (1-1) to toggle selection, 'c' to confirm selections, or '?' for more commands: c The following repositories will be scheduled for synchronization: Red Hat Update Infrastructure 1.2 (RPMs) (5Server-x86_64) Proceed? (y/n) y Scheduling sync for Red Hat Update Infrastructure 1.2 (RPMs) (5Server-x86_64)... ... successfully scheduled for the next available timeslot. ------------------------------------------------------------------------------
rhui (sync) => dc ------------------------------------------------------------------------------ -= Red Hat Update Infrastructure Management Tool =- -= CDS Synchronization Status =- Last Refreshed: 22:02:24 (updated every 5 seconds, ctrl+c to exit) CDS1-201_136 ................................................ [ UP ] CDS2-201_131 ................................................ [ UP ] Next Sync Last Sync Last Result ------------------------------------------------------------------------------ CDS1-201_136 In Progress 07-11-2011 21:34 Success CDS2-201_131 07-12-2011 00:04 07-11-2011 21:35 Success Connected: dhcp201-137.englab.pnq.redhat.com ------------------------------------------------------------------------------ ^Crhui (sync) => sc Select one or more CDS instances to schedule to be synchronized before its scheduled time. The sync will happen as soon as possible depending on other tasks that may be executing in the RHUI. Only CDS instances that are not currently synchronizing are displayed. Last Result Next Sync CDS ------------------------------------------ - 1 : Success 07-12-2011 00:04 CDS2-201_131 Enter value (1-1) to toggle selection, 'c' to confirm selections, or '?' for more commands: 1 Select one or more CDS instances to schedule to be synchronized before its scheduled time. The sync will happen as soon as possible depending on other tasks that may be executing in the RHUI. Only CDS instances that are not currently synchronizing are displayed. Last Result Next Sync CDS ------------------------------------------ x 1 : Success 07-12-2011 00:04 CDS2-201_131 Enter value (1-1) to toggle selection, 'c' to confirm selections, or '?' for more commands: y Select one or more CDS instances to schedule to be synchronized before its scheduled time. The sync will happen as soon as possible depending on other tasks that may be executing in the RHUI. Only CDS instances that are not currently synchronizing are displayed. Last Result Next Sync CDS ------------------------------------------ x 1 : Success 07-12-2011 00:04 CDS2-201_131 Enter value (1-1) to toggle selection, 'c' to confirm selections, or '?' for more commands: c The following CDS instances will be scheduled for synchronization: CDS2-201_131 Proceed? (y/n) y Scheduling sync for CDS2-201_131... ... successfully scheduled for the next available timeslot. ------------------------------------------------------------------------------ rhui (sync) => dc ------------------------------------------------------------------------------ -= Red Hat Update Infrastructure Management Tool =- -= CDS Synchronization Status =- Last Refreshed: 22:02:53 (updated every 5 seconds, ctrl+c to exit) CDS1-201_136 ................................................ [ UP ] CDS2-201_131 ................................................ [ UP ] Next Sync Last Sync Last Result ------------------------------------------------------------------------------ CDS1-201_136 In Progress 07-11-2011 21:34 Success CDS2-201_131 In Progress 07-11-2011 21:35 Success Connected: dhcp201-137.englab.pnq.redhat.com ------------------------------------------------------------------------------ ^Crhui (sync) =>
moving to release pending
closing out, product released