Hide Forgot
Description of problem: I'm not sure if it's just the issue in the 'cds list' command of pulp-admin or its really disassociating the repo from one of CDS server in the following scenario. Scenario is like: I synced few repos on rhua and later registered two CDS nodes. All the added repos automatically get associated with both CDS nodes. Later I un-register one of the cds node (cds2), and when I check the cds list from pulp-admin, it was showing 'none' association under CDS1 as well. Version-Release number of selected component (if applicable): How reproducible: always on this build Steps to Reproduce: 1. sync repos 2. register 2 cds nodes using rhui-manager 3. check 'cds list' from pulp-admin 4. unregister one cds node using rhui-manager 5. again check 'cds list' from pulp-admin Actual results: pulp-admin should show the list of associated repos for cds1, even after un-registering cds2. Expected results: Removing a cds node shouldn't remove the repos association with other cds node. Additional info: Added following repos: ======================= ------------------------------------------------------------------------------ rhui (repo) => l Custom Repositories pulp Red Hat Repositories Red Hat Update Infrastructure 2.0 (Source RPMs) (6Server-i386) Red Hat Update Infrastructure 1.2 (RPMs) (5Server-x86_64) Red Hat Update Infrastructure 2.0 (Source RPMs) (6Server-x86_64) Red Hat Update Infrastructure 1.2 (RPMs) (5Server-i386) Red Hat Enterprise Linux 6 Server (RPMs) from RHUI (6Server-i386) Red Hat Enterprise Linux 6 Server (RPMs) from RHUI (6Server-x86_64) Red Hat Enterprise Linux 5 Server from RHUI (RPMs) (5Server-i386) Red Hat Enterprise Linux 5 Server from RHUI (RPMs) (5Server-x86_64) Then registered two cds nodes, all the repo's are associated with both cds nodes: =============================================================================== [root@ip-10-123-39-120 ~]# pulp-admin -u admin -p admin cds list +------------------------------------------+ CDS Instances +------------------------------------------+ Name cds1 Hostname ip-10-123-43-173.ec2.internal Description RHUI CDS Cluster rhui-cds-cluster Sync Schedule 2012-02-23T16:21:26-05:00/PT6H Repos rhel-x86_64-6-rhui-2-source-rpms-6Server-i386, rhel-x86_64-5-rhui-1-rpms-5Server-x86_64, rhel-x86_64-6-rhui-2-source-rpms-6Server-x86_64, rhel-x86_64-5-rhui-1-rpms-5Server-i386, rhel-6-rhui-server-rpms-6Server-i386, rhel-6-rhui-server-rpms-6Server-x86_64, rhel-5-server-rhui-rpms-5Server-i386, rhel-5-server-rhui-rpms-5Server-x86_64, custom_001 Last Sync Never Status: Responding Yes Last Heartbeat 2012-02-23 15:22:22.259408+00:00 Name cds2 Hostname ip-10-122-77-231.ec2.internal Description RHUI CDS Cluster rhui-cds-cluster Sync Schedule 2012-02-23T16:21:53-05:00/PT6H Repos rhel-x86_64-6-rhui-2-source-rpms-6Server-i386, rhel-x86_64-5-rhui-1-rpms-5Server-x86_64, rhel-x86_64-6-rhui-2-source-rpms-6Server-x86_64, rhel-x86_64-5-rhui-1-rpms-5Server-i386, rhel-6-rhui-server-rpms-6Server-i386, rhel-6-rhui-server-rpms-6Server-x86_64, rhel-5-server-rhui-rpms-5Server-i386, rhel-5-server-rhui-rpms-5Server-x86_64, custom_001 Last Sync Never Status: Responding Yes Last Heartbeat 2012-02-23 15:22:22.976496+00:00 unregister one cds node ( cds2 ): =============================== ------------------------------------------------------------------------------ rhui (cds) => d Select the CDS instances to be removed from the RHUI: - 1 : cds1 - 2 : cds2 Enter value (1-2) to toggle selection, 'c' to confirm selections, or '?' for more commands: 2 Select the CDS instances to be removed from the RHUI: - 1 : cds1 x 2 : cds2 Enter value (1-2) to toggle selection, 'c' to confirm selections, or '?' for more commands: c All previously deployed repositories will be deleted when a CDS is unregistered. The following CDS instances will be unregistered: cds2 Proceed? (y/n) y Unregistering cds2... ------------------------------------------------------------------------------ rhui (cds) => ^ cds list shows 'none for cds1: ========================== [root@ip-10-123-39-120 ~]# pulp-admin -u admin -p admin cds list +------------------------------------------+ CDS Instances +------------------------------------------+ Name cds1 Hostname ip-10-123-43-173.ec2.internal Description RHUI CDS Cluster rhui-cds-cluster Sync Schedule 2012-02-23T16:21:26-05:00/PT6H Repos None Last Sync Never Status: Responding Yes Last Heartbeat 2012-02-23 15:24:52.510747+00:00
Found with latest RHUI2.0.2 iso (RHEL-6.2-RHUI-2.0.2-20120222.0-Server-x86_64-DVD1.iso)
I went ahead and re-register the CDS2 node again. Still repo association was displayed as none both cds1 and 2 nodes. +------------------------------------------+ CDS Instances +------------------------------------------+ Name cds1 Hostname ip-10-123-43-173.ec2.internal Description RHUI CDS Cluster rhui-cds-cluster Sync Schedule 2012-02-23T16:21:26-05:00/PT6H Repos None Last Sync Never Status: Responding Yes Last Heartbeat 2012-02-23 15:30:03.026844+00:00 Name cds2 Hostname ip-10-122-77-231.ec2.internal Description RHUI CDS Cluster rhui-cds-cluster Sync Schedule 2012-02-23T16:29:56-05:00/PT6H Repos None Last Sync Never Status: Responding Yes Last Heartbeat 2012-02-23 15:30:03.598722+00:00
Another observation, if we removed both nodes or all nodes in one cds cluster and re-register them again then 'cds list' shows correct repo's ------------------------------------------------------------------------------ -= Red Hat Update Infrastructure Management Tool =- -= Content Delivery Server (CDS) Management =- l list all CDS instances registered to the RHUI a register (add) a new CDS instance d unregister (delete) a CDS instance from the RHUI Connected: ip-10-123-39-120.ec2.internal ------------------------------------------------------------------------------ rhui (cds) => d Select the CDS instances to be removed from the RHUI: - 1 : cds1 - 2 : cds2 Enter value (1-2) to toggle selection, 'c' to confirm selections, or '?' for more commands: 1-2 Select the CDS instances to be removed from the RHUI: x 1 : cds1 x 2 : cds2 Enter value (1-2) to toggle selection, 'c' to confirm selections, or '?' for more commands: c All previously deployed repositories will be deleted when a CDS is unregistered. The following CDS instances will be unregistered: cds1 cds2 Proceed? (y/n) y Unregistering cds1... Unregistering cds2... ------------------------------------------------------------------------------ rhui (cds) => a Prior to registering a CDS, the CDS must be configured and running. Hostname of the CDS to register: ip-10-123-43-173.ec2.internal Display name for the CDS [ip-10-123-43-173.ec2.internal]: cds1 The following CDS instance will be registered: Hostname: ip-10-123-43-173.ec2.internal Name: cds1 Proceed? (y/n) y Successfully registered cds1 ------------------------------------------------------------------------------ rhui (cds) => a Prior to registering a CDS, the CDS must be configured and running. Hostname of the CDS to register: ip-10-122-77-231.ec2.internal Display name for the CDS [ip-10-122-77-231.ec2.internal]: cds2 The following CDS instance will be registered: Hostname: ip-10-122-77-231.ec2.internal Name: cds2 Proceed? (y/n) y Successfully registered cds2 ------------------------------------------------------------------------------ rhui (cds) => exit [root@ip-10-123-39-120 ~]# pulp-admin -u admin -p admin cds list +------------------------------------------+ CDS Instances +------------------------------------------+ Name cds1 Hostname ip-10-123-43-173.ec2.internal Description RHUI CDS Cluster rhui-cds-cluster Sync Schedule 2012-02-23T17:04:38-05:00/PT6H Repos rhel-x86_64-6-rhui-2-source-rpms-6Server-i386, rhel-x86_64-5-rhui-1-rpms-5Server-x86_64, rhel-x86_64-6-rhui-2-source-rpms-6Server-x86_64, rhel-x86_64-5-rhui-1-rpms-5Server-i386, rhel-6-rhui-server-rpms-6Server-i386, rhel-6-rhui-server-rpms-6Server-x86_64, rhel-5-server-rhui-rpms-5Server-i386, rhel-5-server-rhui-rpms-5Server-x86_64, custom_001 Last Sync Never Status: Responding Yes Last Heartbeat 2012-02-23 16:05:16.656943+00:00 Name cds2 Hostname ip-10-122-77-231.ec2.internal Description RHUI CDS Cluster rhui-cds-cluster Sync Schedule 2012-02-23T17:05:09-05:00/PT6H Repos rhel-x86_64-6-rhui-2-source-rpms-6Server-i386, rhel-x86_64-5-rhui-1-rpms-5Server-x86_64, rhel-x86_64-6-rhui-2-source-rpms-6Server-x86_64, rhel-x86_64-5-rhui-1-rpms-5Server-i386, rhel-6-rhui-server-rpms-6Server-i386, rhel-6-rhui-server-rpms-6Server-x86_64, rhel-5-server-rhui-rpms-5Server-i386, rhel-5-server-rhui-rpms-5Server-x86_64, custom_001 Last Sync Never Status: Responding Yes Last Heartbeat 2012-02-23 16:05:17.509209+00:00 [root@ip-10-123-39-120 ~]#
Strange, it does show None even for me, but has no effect on the rhui end. I was able to pull in packages from the CDS node for clients which is still running, but difficult to foresee what side effects this could cause in future. 1) I re-synced the CDS which was still connected and it works 2) I added another repo on rhua and synced to cds. ( Now new repos get displayed under cds list) I guess , as all the repos get synced from RHUA to CDS, this is not causing any effect at the rhui end.
I was able to reproduce this bug. The problem is that any CDS you add to RHUI gets put into a cluster. When you unregister a CDS in pulp in unassociates it from all repos, which affects all other CDS's in the cluster. The fix is to first remove the CDS from the cluster before doing the unassociation in pulp.
committed to pulp rhui branch c07abadac04b5ecc72a0330653af2b0f542a4425
Built into new pulp 0.263-10: https://brewweb.devel.redhat.com/buildinfo?buildID=200388
Built into: http://download.lab.bos.redhat.com/devel/candidates/RHEL-6.2-RHUI-2.0.2-20120224.0/2.0.2/Server/x86_64/iso/RHEL-6.2-RHUI-2.0.2-20120224.0-Server-x86_64-DVD1.iso
Verified with latest RHUI 2.0.2 iso (RHUI-2.0.2-20120224.0-Server-x86_64-DVD1.iso). I registered two cds nodes: ========================== [root@ip-10-123-15-49 ~]# pulp-admin -u admin -p admin cds list +------------------------------------------+ CDS Instances +------------------------------------------+ Name cds1 Hostname ip-10-90-202-254.ec2.internal Description RHUI CDS Cluster rhui-cds-cluster Sync Schedule 2012-02-27T11:44:14-05:00/PT6H Repos rhel-6-server-rhui-rpms-6Server-x86_64, rhel-6-server-rhui-rpms-6Server-i386, rhel-6-server-rhui-beta-debug-rpms-6Server-i386, rhel-6-server-rhui-beta-debug-rpms-6Server-x86_64 Last Sync Never Status: Responding Yes Last Heartbeat 2012-02-27 11:03:17.829616+00:00 Name cds2 Hostname ip-10-91-17-162.ec2.internal Description RHUI CDS Cluster rhui-cds-cluster Sync Schedule 2012-02-27T12:03:09-05:00/PT6H Repos rhel-6-server-rhui-rpms-6Server-x86_64, rhel-6-server-rhui-rpms-6Server-i386, rhel-6-server-rhui-beta-debug-rpms-6Server-i386, rhel-6-server-rhui-beta-debug-rpms-6Server-x86_64 Last Sync Never Status: Responding Yes Last Heartbeat 2012-02-27 11:03:21.124460+00:00 Then I un-register cds2 node however repos were still associated with cds1. ------------------------------------------------------------------------------ rhui (cds) => d Select the CDS instances to be removed from the RHUI: - 1 : cds1 - 2 : cds2 Enter value (1-2) to toggle selection, 'c' to confirm selections, or '?' for more commands: 2 Select the CDS instances to be removed from the RHUI: - 1 : cds1 x 2 : cds2 Enter value (1-2) to toggle selection, 'c' to confirm selections, or '?' for more commands: c All previously deployed repositories will be deleted when a CDS is unregistered. The following CDS instances will be unregistered: cds2 Proceed? (y/n) y Unregistering cds2... ------------------------------------------------------------------------------ rhui (cds) => l -= RHUI Content Delivery Servers =- cds1 ------------------------------------------------------------------------------ rhui (cds) => exit [root@ip-10-123-15-49 ~]# pulp-admin -u admin -p admin cds list +------------------------------------------+ CDS Instances +------------------------------------------+ Name cds1 Hostname ip-10-90-202-254.ec2.internal Description RHUI CDS Cluster rhui-cds-cluster Sync Schedule 2012-02-27T11:44:14-05:00/PT6H Repos rhel-6-server-rhui-rpms-6Server-x86_64, rhel-6-server-rhui-rpms-6Server-i386, rhel-6-server-rhui-beta-debug-rpms-6Server-i386, rhel-6-server-rhui-beta-debug-rpms-6Server-x86_64 Last Sync Never Status: Responding Yes Last Heartbeat 2012-02-27 11:03:57.898336+00:00 [root@ip-10-123-15-49 ~]#
Re-register the cds2 and check the repo association and it was fine: -rhui (cds) => a Prior to registering a CDS, the CDS must be configured and running. Hostname of the CDS to register: ip-10-91-17-162.ec2.internal Display name for the CDS [ip-10-91-17-162.ec2.internal]: cds2 The following CDS instance will be registered: Hostname: ip-10-91-17-162.ec2.internal Name: cds2 Proceed? (y/n) y Successfully registered cds2 ------------------------------------------------------------------------------ rhui (cds) => exit [root@ip-10-123-15-49 ~]# pulp-admin -u admin -p admin cds list +------------------------------------------+ CDS Instances +------------------------------------------+ Name cds1 Hostname ip-10-90-202-254.ec2.internal Description RHUI CDS Cluster rhui-cds-cluster Sync Schedule 2012-02-27T11:44:14-05:00/PT6H Repos rhel-6-server-rhui-rpms-6Server-x86_64, rhel-6-server-rhui-rpms-6Server-i386, rhel-6-server-rhui-beta-debug-rpms-6Server-i386, rhel-6-server-rhui-beta-debug-rpms-6Server-x86_64 Last Sync Never Status: Responding Yes Last Heartbeat 2012-02-27 11:08:28.364911+00:00 Name cds2 Hostname ip-10-91-17-162.ec2.internal Description RHUI CDS Cluster rhui-cds-cluster Sync Schedule 2012-02-27T12:08:29-05:00/PT6H Repos rhel-6-server-rhui-rpms-6Server-x86_64, rhel-6-server-rhui-rpms-6Server-i386, rhel-6-server-rhui-beta-debug-rpms-6Server-i386, rhel-6-server-rhui-beta-debug-rpms-6Server-x86_64 Last Sync Never Status: Responding Yes Last Heartbeat 2012-02-27 11:08:31.497871+00:00 [root@ip-10-123-15-49 ~]#
Released in RHUI 2.0.2