Bug 810105 - Even though deleted in rhui-manager, custom repository content available for client
Summary: Even though deleted in rhui-manager, custom repository content available for ...
Keywords:
Status: CLOSED DUPLICATE of bug 802545
Alias: None
Product: Red Hat Update Infrastructure for Cloud Providers
Classification: Red Hat
Component: CDS
Version: 2.0.3
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: ---
Assignee: James Slagle
QA Contact: wes hayutin
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-04-05 07:36 UTC by mkovacik
Modified: 2012-04-05 18:53 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-04-05 13:10:24 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description mkovacik 2012-04-05 07:36:48 UTC
Description of problem:
Even though deleted in rhui-manager, custom repository content is available for client to download. Moreover, it seems the repository is removed from RHUA node
but present on CDS nodes even them having been synchronized.

Version-Release number of selected component (if applicable):
2.0.1 to 2.0.3 upgrade; RHEL-6.2-RHUI-2.0.3-20120322.0-Server-x86_64-DVD1.iso 

How reproducible:
Always

Steps to Reproduce:
1. create a custom repository and upload some content, protected with entitlement
2. synchronize CDSes
3. create client entitlement and configuration package for the custom repository
4. install the package on client and verify the content is accessible by client
5. remove the custom repository and synchronize CDSes
6. yum clean all on the client
7. verify client is still able to access the content of the custom repository
  
Actual results:
Even though deleted in rhui-manager, custom repository content available for client

Expected results:
Having removed a custom repository the content is no longer available for clients

Additional info:
### SCREEN LOG

------------------------------------------------------------------------------
             -= Red Hat Update Infrastructure Management Tool =-


-= Home =-

   r   manage repositories
   c   manage content delivery servers (CDS)
   s   synchronization status and scheduling
   e   create entitlement certificates and client configuration RPMs
   n   manage Red Hat entitlement certificates
   u   manage users
   i   manage identity certificate

                                         Connected: dhcp-31-127.brq.redhat.com
------------------------------------------------------------------------------
rhui (home) => r

------------------------------------------------------------------------------
             -= Red Hat Update Infrastructure Management Tool =-


-= Repository Management =-

   l   list repositories currently managed by the RHUI
   i   display detailed information on a repository
   a   add a new Red Hat content repository
   c   create a new custom repository
   d   delete a repository from the RHUI
   u   upload content to a custom repository
   p   list packages in a repository

                                         Connected: dhcp-31-127.brq.redhat.com
------------------------------------------------------------------------------
rhui (repo) => c

Unique ID for the custom repository (alphanumerics, _, and - only):
c_4

Display name for the custom repository [c_4]:


Path at which the repository will be served [c_4]:
c_4/x86_64

Algorithm to use when calculating the checksum values for repository metadata:
  1  - sha256
  2  - sha1
Enter value (1-2) or 'b' to abort: 1

Should the repository require an entitlement certificate to access? (y/n)
y

Based on the repository's relative path, the suggested entitlement path is:
  c_4/$basearch

Path that should be used when granting an entitlement for this repository. This
may use yum variable substitutions (e.g. $basearch) to group this together with
other repositories that share the entitlement [c_4/$basearch]:


The following repository will be created:
  ID:          c_4
  Name:        c_4
  Path:        c_4/x86_64
  Entitlement: c_4/$basearch
Proceed? (y/n) y

Successfully created repository c_4

------------------------------------------------------------------------------
rhui (repo) => u

Select the repositories to upload the package into:
  -  1 : c_4
Enter value (1-1) to toggle selection, 'c' to confirm selections, or '?' for more commands: 1

Select the repositories to upload the package into:
  x  1 : c_4
Enter value (1-1) to toggle selection, 'c' to confirm selections, or '?' for more commands: c


Enter the location of the packages to upload. If the location is an RPM,
the file will be uploaded. If the location is a directory, all RPMs in that
directory will be uploaded:
^Z
[1]+  Stopped                 rhui-manager
[root@dhcp-31-127 ~]# ls
anaconda-ks.cfg  gkrellm-daemon-2.3.5-3.el6.x86_64.rpm  install.log  install.log.syslog  iso  pem  RHEL6.1-20110510.1-Server-x86_64-DVD1.iso  RHEL-6.1-RHUI-2.0.1-20111027.1-Server-x86_64-DVD1.iso  rhui  rpm  rpmbuild  s_6
[root@dhcp-31-127 ~]# ls /root/gkrellm-daemon-2.3.5-3.el6.x86_64.rpm
/root/gkrellm-daemon-2.3.5-3.el6.x86_64.rpm
[root@dhcp-31-127 ~]# fg
rhui-manager
/root/gkrellm-daemon-2.3.5-3.el6.x86_64.rpm

The following RPMs will be uploaded:
  gkrellm-daemon-2.3.5-3.el6.x86_64.rpm
Proceed? (y/n) y


Uploading /root/gkrellm-daemon-2.3.5-3.el6.x86_64.rpm...

------------------------------------------------------------------------------
rhui (repo) => <

------------------------------------------------------------------------------
             -= Red Hat Update Infrastructure Management Tool =-


-= Home =-

   r   manage repositories
   c   manage content delivery servers (CDS)
   s   synchronization status and scheduling
   e   create entitlement certificates and client configuration RPMs
   n   manage Red Hat entitlement certificates
   u   manage users
   i   manage identity certificate

                                         Connected: dhcp-31-127.brq.redhat.com
------------------------------------------------------------------------------
rhui (home) => s

------------------------------------------------------------------------------
             -= Red Hat Update Infrastructure Management Tool =-


-= 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: dhcp-31-127.brq.redhat.com
------------------------------------------------------------------------------
rhui (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  04-05-2012 11:27  dhcp-31-128.brq.redhat.com
  -  2 : Success  04-05-2012 11:36  dhcp-31-129.brq.redhat.com
Enter value (1-2) to toggle selection, 'c' to confirm selections, or '?' for more commands: 1-2

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  04-05-2012 11:27  dhcp-31-128.brq.redhat.com
  x  2 : Success  04-05-2012 11:36  dhcp-31-129.brq.redhat.com
Enter value (1-2) to toggle selection, 'c' to confirm selections, or '?' for more commands: c


The following CDS instances will be scheduled for synchronization:
  dhcp-31-128.brq.redhat.com
  dhcp-31-129.brq.redhat.com
Proceed? (y/n) y


Scheduling sync for dhcp-31-128.brq.redhat.com...
... successfully scheduled for the next available timeslot.
Scheduling sync for dhcp-31-129.brq.redhat.com...
... successfully scheduled for the next available timeslot.

------------------------------------------------------------------------------
rhui (sync) => <

------------------------------------------------------------------------------
             -= Red Hat Update Infrastructure Management Tool =-


-= Home =-

   r   manage repositories
   c   manage content delivery servers (CDS)
   s   synchronization status and scheduling
   e   create entitlement certificates and client configuration RPMs
   n   manage Red Hat entitlement certificates
   u   manage users
   i   manage identity certificate

                                         Connected: dhcp-31-127.brq.redhat.com
------------------------------------------------------------------------------
rhui (home) => r

------------------------------------------------------------------------------
             -= Red Hat Update Infrastructure Management Tool =-


-= Repository Management =-

   l   list repositories currently managed by the RHUI
   i   display detailed information on a repository
   a   add a new Red Hat content repository
   c   create a new custom repository
   d   delete a repository from the RHUI
   u   upload content to a custom repository
   p   list packages in a repository

                                         Connected: dhcp-31-127.brq.redhat.com
------------------------------------------------------------------------------
rhui (repo) => <

------------------------------------------------------------------------------
             -= Red Hat Update Infrastructure Management Tool =-


-= Home =-

   r   manage repositories
   c   manage content delivery servers (CDS)
   s   synchronization status and scheduling
   e   create entitlement certificates and client configuration RPMs
   n   manage Red Hat entitlement certificates
   u   manage users
   i   manage identity certificate

                                         Connected: dhcp-31-127.brq.redhat.com
------------------------------------------------------------------------------
rhui (home) => e

------------------------------------------------------------------------------
             -= Red Hat Update Infrastructure Management Tool =-


-= Client Entitlement Management =-

   e   generate an entitlement certificate
   c   create a client configuration RPM from an entitlement certificate

                                         Connected: dhcp-31-127.brq.redhat.com
------------------------------------------------------------------------------
rhui (client) => e

Select one or more repositories to include in the entitlement certificate:
(an * next to a Red Hat repository indicates it is deployed in the RHUI)

  Custom Repositories
    -  1 : c_4/$basearch
             c_4


  Red Hat Repositories
    -  2 : Red Hat Enterprise Linux 5 Server - Optional Productivity Applications (Debug RPMs) from RHUI
    -  3 : Red Hat Enterprise Linux 5 Server - Optional Productivity Applications (RPMs) from RHUI
    -  4 : Red Hat Enterprise Linux 5 Server - Optional Productivity Applications (Source RPMs) from RHUI
    -  5 : Red Hat Enterprise Linux 5 Server - Supplementary (Debug RPMs) from RHUI
    -  6 : Red Hat Enterprise Linux 5 Server - Supplementary (RPMs) from RHUI
    -  7 : Red Hat Enterprise Linux 5 Server - Supplementary (Source RPMs) from RHUI
    -  8 : Red Hat Enterprise Linux 5 Server - Supplementary Beta (Debug RPMs) from RHUI
    -  9 : Red Hat Enterprise Linux 5 Server - Supplementary Beta (RPMs) from RHUI
    -  10: Red Hat Enterprise Linux 5 Server - Supplementary Beta (Source RPMs) from RHUI
    -  11: Red Hat Enterprise Linux 5 Server Beta from RHUI (Debug RPMs)
    -  12: Red Hat Enterprise Linux 5 Server Beta from RHUI (RPMs)
    -  13: Red Hat Enterprise Linux 5 Server Beta from RHUI (Source RPMs)
    -  14: Red Hat Enterprise Linux 5 Server from RHUI (Debug RPMs)
    -  15: Red Hat Enterprise Linux 5 Server from RHUI (RPMs) *
    -  16: Red Hat Enterprise Linux 5 Server from RHUI (Source RPMs)
    -  17: Red Hat Enterprise Linux 6 Server - Optional Beta from RHUI (RPMs)
    -  18: Red Hat Enterprise Linux 6 Server - Optional Beta from RHUI (Source RPMs)
    -  19: Red Hat Enterprise Linux 6 Server - Optional Beta from RHUI(Debug RPMs)
    -  20: Red Hat Enterprise Linux 6 Server - Optional from RHUI (Debug RPMs)
    -  21: Red Hat Enterprise Linux 6 Server - Optional from RHUI (RPMs)
    -  22: Red Hat Enterprise Linux 6 Server - Optional from RHUI (Source RPMs)
    -  23: Red Hat Enterprise Linux 6 Server - Supplementary (Debug RPMs) from RHUI
    -  24: Red Hat Enterprise Linux 6 Server - Supplementary (RPMs) from RHUI *
    -  25: Red Hat Enterprise Linux 6 Server - Supplementary (Source RPMs) from RHUI
    -  26: Red Hat Enterprise Linux 6 Server - Supplementary Beta (Debug RPMs) from RHUI
    -  27: Red Hat Enterprise Linux 6 Server - Supplementary Beta (RPMs) from RHUI
    -  28: Red Hat Enterprise Linux 6 Server - Supplementary Beta (Source RPMs) from RHUI
    -  29: Red Hat Enterprise Linux 6 Server Beta from RHUI (Debug RPMs)
    -  30: Red Hat Enterprise Linux 6 Server Beta from RHUI (RPMs)
    -  31: Red Hat Enterprise Linux 6 Server Beta from RHUI (Source RPMs)
    -  32: Red Hat Enterprise Linux 6 Server from RHUI (Debug RPMs)
    -  33: Red Hat Enterprise Linux 6 Server from RHUI (RPMs)
    -  34: Red Hat Enterprise Linux 6 Server from RHUI (Source RPMs)
    -  35: Red Hat Update Infrastructure 1.2 (Debug RPMs)
    -  36: Red Hat Update Infrastructure 1.2 (RPMs)
    -  37: Red Hat Update Infrastructure 1.2 (Source RPMs)
    -  38: Red Hat Update Infrastructure 2.0 (Debug RPMs)
    -  39: Red Hat Update Infrastructure 2.0 (RPMs) *
    -  40: Red Hat Update Infrastructure 2.0 (Source RPMs)

Enter value (1-40) to toggle selection, 'c' to confirm selections, or '?' for more commands: 1

Select one or more repositories to include in the entitlement certificate:
(an * next to a Red Hat repository indicates it is deployed in the RHUI)

  Custom Repositories
    x  1 : c_4/$basearch
             c_4


  Red Hat Repositories
    -  2 : Red Hat Enterprise Linux 5 Server - Optional Productivity Applications (Debug RPMs) from RHUI
    -  3 : Red Hat Enterprise Linux 5 Server - Optional Productivity Applications (RPMs) from RHUI
    -  4 : Red Hat Enterprise Linux 5 Server - Optional Productivity Applications (Source RPMs) from RHUI
    -  5 : Red Hat Enterprise Linux 5 Server - Supplementary (Debug RPMs) from RHUI
    -  6 : Red Hat Enterprise Linux 5 Server - Supplementary (RPMs) from RHUI
    -  7 : Red Hat Enterprise Linux 5 Server - Supplementary (Source RPMs) from RHUI
    -  8 : Red Hat Enterprise Linux 5 Server - Supplementary Beta (Debug RPMs) from RHUI
    -  9 : Red Hat Enterprise Linux 5 Server - Supplementary Beta (RPMs) from RHUI
    -  10: Red Hat Enterprise Linux 5 Server - Supplementary Beta (Source RPMs) from RHUI
    -  11: Red Hat Enterprise Linux 5 Server Beta from RHUI (Debug RPMs)
    -  12: Red Hat Enterprise Linux 5 Server Beta from RHUI (RPMs)
    -  13: Red Hat Enterprise Linux 5 Server Beta from RHUI (Source RPMs)
    -  14: Red Hat Enterprise Linux 5 Server from RHUI (Debug RPMs)
    -  15: Red Hat Enterprise Linux 5 Server from RHUI (RPMs) *
    -  16: Red Hat Enterprise Linux 5 Server from RHUI (Source RPMs)
    -  17: Red Hat Enterprise Linux 6 Server - Optional Beta from RHUI (RPMs)
    -  18: Red Hat Enterprise Linux 6 Server - Optional Beta from RHUI (Source RPMs)
    -  19: Red Hat Enterprise Linux 6 Server - Optional Beta from RHUI(Debug RPMs)
    -  20: Red Hat Enterprise Linux 6 Server - Optional from RHUI (Debug RPMs)
    -  21: Red Hat Enterprise Linux 6 Server - Optional from RHUI (RPMs)
    -  22: Red Hat Enterprise Linux 6 Server - Optional from RHUI (Source RPMs)
    -  23: Red Hat Enterprise Linux 6 Server - Supplementary (Debug RPMs) from RHUI
    -  24: Red Hat Enterprise Linux 6 Server - Supplementary (RPMs) from RHUI *
    -  25: Red Hat Enterprise Linux 6 Server - Supplementary (Source RPMs) from RHUI
    -  26: Red Hat Enterprise Linux 6 Server - Supplementary Beta (Debug RPMs) from RHUI
    -  27: Red Hat Enterprise Linux 6 Server - Supplementary Beta (RPMs) from RHUI
    -  28: Red Hat Enterprise Linux 6 Server - Supplementary Beta (Source RPMs) from RHUI
    -  29: Red Hat Enterprise Linux 6 Server Beta from RHUI (Debug RPMs)
    -  30: Red Hat Enterprise Linux 6 Server Beta from RHUI (RPMs)
    -  31: Red Hat Enterprise Linux 6 Server Beta from RHUI (Source RPMs)
    -  32: Red Hat Enterprise Linux 6 Server from RHUI (Debug RPMs)
    -  33: Red Hat Enterprise Linux 6 Server from RHUI (RPMs)
    -  34: Red Hat Enterprise Linux 6 Server from RHUI (Source RPMs)
    -  35: Red Hat Update Infrastructure 1.2 (Debug RPMs)
    -  36: Red Hat Update Infrastructure 1.2 (RPMs)
    -  37: Red Hat Update Infrastructure 1.2 (Source RPMs)
    -  38: Red Hat Update Infrastructure 2.0 (Debug RPMs)
    -  39: Red Hat Update Infrastructure 2.0 (RPMs) *
    -  40: Red Hat Update Infrastructure 2.0 (Source RPMs)

Enter value (1-40) to toggle selection, 'c' to confirm selections, or '?' for more commands: c


Name of the certificate. This will be used as the name of the certificate file
(name.crt) and its associated private key (name.key). Choose something that will
help identify the products contained with it:
c_4

Local directory in which to save the generated certificate [current directory]:
/root/c_4

Number of days the certificate should be valid [365]:


Repositories to be included in the entitlement certificate:

  Custom Entitlements
    c_4/$basearch

Proceed? (y/n) y

..........+++
....................................................................................+++
Enter pass phrase for /etc/pki/rhui/entitlement-ca-key.pem:
Entitlement certificate created at /root/c_4/c_4.crt

------------------------------------------------------------------------------
rhui (client) => c

Full path to local directory in which the client configuration files generated by this tool
should be stored (if this directory does not exist, it will be created):
/root/c_4

Name of the RPM:
c_4

Version of the configuration RPM [2.0]:


Full path to the entitlement certificate authorizing the client to access
specific channels:
/root/c_4/c_4.crt

Full path to the private key for the above entitlement certificate:
/root/c_4/c_4.key

Full path to the CA certificate or CA chain used to sign the CDS SSL certificate:
/root/pem/ca.crt

Select the CDS instance that should be the primary load balancer for the
client. All other CDS instances will be listed as back up load balancers
in the client's mirror list:

  1  - dhcp-31-129.brq.redhat.com
  2  - dhcp-31-128.brq.redhat.com
Enter value (1-2) or 'b' to abort: 1

Load Balancer Order:
  dhcp-31-129.brq.redhat.com
  dhcp-31-128.brq.redhat.com

Successfully created client configuration RPM.
RPMs can be found at /root/c_4

------------------------------------------------------------------------------
rhui (client) =>
 <

------------------------------------------------------------------------------
             -= Red Hat Update Infrastructure Management Tool =-


-= Home =-

   r   manage repositories
   c   manage content delivery servers (CDS)
   s   synchronization status and scheduling
   e   create entitlement certificates and client configuration RPMs
   n   manage Red Hat entitlement certificates
   u   manage users
   i   manage identity certificate

                                         Connected: dhcp-31-127.brq.redhat.com
------------------------------------------------------------------------------
rhui (home) => s

------------------------------------------------------------------------------
             -= Red Hat Update Infrastructure Management Tool =-


-= 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: dhcp-31-127.brq.redhat.com
------------------------------------------------------------------------------
rhui (sync) => dc

------------------------------------------------------------------------------
             -= Red Hat Update Infrastructure Management Tool =-


-= CDS Synchronization Status =-

Last Refreshed: 09:05:44
(updated every 5 seconds, ctrl+c to exit)


dhcp-31-128.brq.redhat.com .................................. [  UP  ]
dhcp-31-129.brq.redhat.com .................................. [  UP  ]


Next Sync                    Last Sync                    Last Result
------------------------------------------------------------------------------
dhcp-31-128.brq.redhat.com
04-05-2012 11:27             04-05-2012 09:05             Success

dhcp-31-129.brq.redhat.com
04-05-2012 11:36             04-05-2012 09:05             Success


                                         Connected: dhcp-31-127.brq.redhat.com
------------------------------------------------------------------------------
^Crhui (sync) => q
[root@dhcp-31-127 ~]# ls /root/c_4/c_4-2.0/build/RPMS/noarch/c_4-2.0-1.el6.noarch.rpm
/root/c_4/c_4-2.0/build/RPMS/noarch/c_4-2.0-1.el6.noarch.rpm
[root@dhcp-31-127 ~]#[root@dhcp-31-127 ~]# scp /root/c_4/c_4-2.0/build/RPMS/noarch/c_4-2.0-1.el6.noarch.rpm root.31.102:/root
root.31.102's password:
c_4-2.0-1.el6.noarch.rpm                                                                                                                                                                                                                                                              100% 7427     7.3KB/s   00:00
[root@dhcp-31-127 ~]#

### CLIENT
[root@dhcp-31-102 ~]# rpm -qf /etc/yum.repos.d/rh-cloud.repo
s_6-2.0-1.el6.noarch
[root@dhcp-31-102 ~]# yum remove -y s_6
Loaded plugins: product-id, rhui-lb, subscription-manager
Updating Red Hat repositories.
Setting up Remove Process
Resolving Dependencies
--> Running transaction check
---> Package s_6.noarch 0:2.0-1.el6 will be erased
--> Finished Dependency Resolution

Dependencies Resolved

========================================================================================================================================================================================================================================================================================================================
 Package                                                                 Arch                                                                       Version                                                                         Repository                                                                     Size
========================================================================================================================================================================================================================================================================================================================
Removing:
 s_6                                                                     noarch                                                                     2.0-1.el6                                                                       installed                                                                     8.6 k

Transaction Summary
========================================================================================================================================================================================================================================================================================================================
Remove        1 Package(s)

Installed size: 8.6 k
Downloading Packages:
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
  Erasing    : s_6-2.0-1.el6.noarch                                                                                                                                                                                                                                                                                 1/1
https://dhcp-31-128.brq.redhat.com/pulp/repos///content/dist/rhel/rhui/server/6/6Server/x86_64/os/repodata/productid.gz: [Errno 14] PYCURL ERROR 77 - "Problem with the SSL CA cert (path? access rights?)"
Trying other mirror.
https://dhcp-31-129.brq.redhat.com/pulp/repos///content/dist/rhel/rhui/server/6/6Server/x86_64/os/repodata/productid.gz: [Errno 14] PYCURL ERROR 77 - "Problem with the SSL CA cert (path? access rights?)"
Trying other mirror.
duration: 215(ms)
Installed products updated.

Removed:
  s_6.noarch 0:2.0-1.el6

Complete!
[root@dhcp-31-102 ~]# yum clean all
Loaded plugins: product-id, subscription-manager
Updating Red Hat repositories.
Cleaning repos:
Cleaning up Everything
[root@dhcp-31-102 ~]# rpm -Uvh c_4-2.0-1.el6.noarch.rpm
Preparing...                ########################################### [100%]
   1:c_4                    ########################################### [100%]
[root@dhcp-31-102 ~]# ls
anaconda-ks.cfg  c_4-2.0-1.el6.noarch.rpm  install.log  install.log.syslog  PyYAML-3.09-14.el6_1.x86_64.rpm  rhui-2.0-1.el6.noarch.rpm  rpmforge-release-0.5.2-2.el6.rf.x86_64.rpm  s_6-2.0-1.el6.noarch.rpm
[root@dhcp-31-102 ~]# yumdownloader gkrellm-daemon
Loaded plugins: product-id, rhui-lb
rhui-custom-10000                                                                                                                                                                                                                                                                                | 2.6 kB     00:00
rhui-custom-10000/primary_db                                                                                                                                                                                                                                                                     | 2.5 kB     00:00
gkrellm-daemon-2.3.5-3.el6.x86_64.rpm                                                                                                                                                                                                                                                            |  69 kB     00:00
[root@dhcp-31-102 ~]#

### RHUA
[root@dhcp-31-127 ~]# rhui-manager

------------------------------------------------------------------------------
             -= Red Hat Update Infrastructure Management Tool =-


-= Home =-

   r   manage repositories
   c   manage content delivery servers (CDS)
   s   synchronization status and scheduling
   e   create entitlement certificates and client configuration RPMs
   n   manage Red Hat entitlement certificates
   u   manage users
   i   manage identity certificate

   logout
       removes stored authentication credentials and exits

   <   move to the previous screen
   ^, home
       move to the home screen
   /, clear
       clears the screen
   ?, help
       display help
   q, quit, exit
       exit

                                         Connected: dhcp-31-127.brq.redhat.com
------------------------------------------------------------------------------
rhui (home) => r

------------------------------------------------------------------------------
             -= Red Hat Update Infrastructure Management Tool =-


-= Repository Management =-

   l   list repositories currently managed by the RHUI
   i   display detailed information on a repository
   a   add a new Red Hat content repository
   c   create a new custom repository
   d   delete a repository from the RHUI
   u   upload content to a custom repository
   p   list packages in a repository

                                         Connected: dhcp-31-127.brq.redhat.com
------------------------------------------------------------------------------
rhui (repo) => d

Select one or more repositories:

  Custom Repositories
    -  1 : c_4

  Red Hat Repositories
    -  2 : Red Hat Enterprise Linux 5 Server from RHUI (RPMs) (5Server-i386)
    -  3 : Red Hat Enterprise Linux 5 Server from RHUI (RPMs) (5Server-x86_64)
    -  4 : Red Hat Enterprise Linux 6 Server (RPMs) from RHUI (6Server-i386)
    -  5 : Red Hat Enterprise Linux 6 Server (RPMs) from RHUI (6Server-x86_64)
    -  6 : Red Hat Enterprise Linux 6 Server - Supplementary (RPMs) from RHUI (6Server-i386)
    -  7 : Red Hat Enterprise Linux 6 Server - Supplementary (RPMs) from RHUI (6Server-x86_64)
    -  8 : Red Hat Update Infrastructure 2.0 (RPMs) (6Server-x86_64)

Enter value (1-8) to toggle selection, 'c' to confirm selections, or '?' for more commands: 1

Select one or more repositories:

  Custom Repositories
    x  1 : c_4

  Red Hat Repositories
    -  2 : Red Hat Enterprise Linux 5 Server from RHUI (RPMs) (5Server-i386)
    -  3 : Red Hat Enterprise Linux 5 Server from RHUI (RPMs) (5Server-x86_64)
    -  4 : Red Hat Enterprise Linux 6 Server (RPMs) from RHUI (6Server-i386)
    -  5 : Red Hat Enterprise Linux 6 Server (RPMs) from RHUI (6Server-x86_64)
    -  6 : Red Hat Enterprise Linux 6 Server - Supplementary (RPMs) from RHUI (6Server-i386)
    -  7 : Red Hat Enterprise Linux 6 Server - Supplementary (RPMs) from RHUI (6Server-x86_64)
    -  8 : Red Hat Update Infrastructure 2.0 (RPMs) (6Server-x86_64)

Enter value (1-8) to toggle selection, 'c' to confirm selections, or '?' for more commands: c


The following repositories will be deleted:
  Custom Repositories
    c_4

Proceed? (y/n) y


Deleting c_4...

------------------------------------------------------------------------------
rhui (repo) => <

------------------------------------------------------------------------------
             -= Red Hat Update Infrastructure Management Tool =-


-= Home =-

   r   manage repositories
   c   manage content delivery servers (CDS)
   s   synchronization status and scheduling
   e   create entitlement certificates and client configuration RPMs
   n   manage Red Hat entitlement certificates
   u   manage users
   i   manage identity certificate

                                         Connected: dhcp-31-127.brq.redhat.com
------------------------------------------------------------------------------
rhui (home) => s

------------------------------------------------------------------------------
             -= Red Hat Update Infrastructure Management Tool =-


-= 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: dhcp-31-127.brq.redhat.com
------------------------------------------------------------------------------
rhui (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  04-05-2012 11:27  dhcp-31-128.brq.redhat.com
  -  2 : Success  04-05-2012 11:36  dhcp-31-129.brq.redhat.com
Enter value (1-2) to toggle selection, 'c' to confirm selections, or '?' for more commands: 1-2

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  04-05-2012 11:27  dhcp-31-128.brq.redhat.com
  x  2 : Success  04-05-2012 11:36  dhcp-31-129.brq.redhat.com
Enter value (1-2) to toggle selection, 'c' to confirm selections, or '?' for more commands: c


The following CDS instances will be scheduled for synchronization:
  dhcp-31-128.brq.redhat.com
  dhcp-31-129.brq.redhat.com
Proceed? (y/n) y


Scheduling sync for dhcp-31-128.brq.redhat.com...
... successfully scheduled for the next available timeslot.
Scheduling sync for dhcp-31-129.brq.redhat.com...
... successfully scheduled for the next available timeslot.

------------------------------------------------------------------------------
rhui (sync) => q
[root@dhcp-31-127 ~]# ls /var/lib/pulp/repos/content/dist/rhel/rhui/server/
5/ 6/
[root@dhcp-31-127 ~]# ls /var/lib/pulp/repos/content/dist/rhel/rhui/server/
5/ 6/
[root@dhcp-31-127 ~]# ls /var/lib/pulp/repos/content/dist/rhel/rhui/server/
5/ 6/
[root@dhcp-31-127 ~]# ls /root/c_4/c_4-2.0/build/RPMS/noarch/c_4-2.0-1.el6.noarch.rpm ^C
[root@dhcp-31-127 ~]#
 rhui-manager

------------------------------------------------------------------------------
             -= Red Hat Update Infrastructure Management Tool =-


-= Home =-

   r   manage repositories
   c   manage content delivery servers (CDS)
   s   synchronization status and scheduling
   e   create entitlement certificates and client configuration RPMs
   n   manage Red Hat entitlement certificates
   u   manage users
   i   manage identity certificate

   logout
       removes stored authentication credentials and exits

   <   move to the previous screen
   ^, home
       move to the home screen
   /, clear
       clears the screen
   ?, help
       display help
   q, quit, exit
       exit

                                         Connected: dhcp-31-127.brq.redhat.com
------------------------------------------------------------------------------
rhui (home) => s

------------------------------------------------------------------------------
             -= Red Hat Update Infrastructure Management Tool =-


-= 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: dhcp-31-127.brq.redhat.com
------------------------------------------------------------------------------
rhui (sync) => dc

------------------------------------------------------------------------------
             -= Red Hat Update Infrastructure Management Tool =-


-= CDS Synchronization Status =-

Last Refreshed: 09:20:07
(updated every 5 seconds, ctrl+c to exit)


dhcp-31-128.brq.redhat.com .................................. [  UP  ]
dhcp-31-129.brq.redhat.com .................................. [  UP  ]


Next Sync                    Last Sync                    Last Result
------------------------------------------------------------------------------
dhcp-31-128.brq.redhat.com
04-05-2012 11:27             04-05-2012 09:18             Success

dhcp-31-129.brq.redhat.com
04-05-2012 11:36             04-05-2012 09:18             Success


                                         Connected: dhcp-31-127.brq.redhat.com
------------------------------------------------------------------------------
^Crhui (sync) =>

#### CDS1
[root@dhcp-31-128 ~]# ls /var/lib/pulp-cds/repos/c_4/x86_64/gkrellm-daemon-2.3.5-3.el6.x86_64.rpm
/var/lib/pulp-cds/repos/c_4/x86_64/gkrellm-daemon-2.3.5-3.el6.x86_64.rpm
[root@dhcp-31-128 ~]#

#### CLIENT
[root@dhcp-31-102 ~]# yum clean all
Loaded plugins: product-id, rhui-lb, subscription-manager
Updating Red Hat repositories.
Cleaning repos: rhui-custom-10000
Cleaning up Everything
[root@dhcp-31-102 ~]# rm -f gkrellm-daemon-2.3.5-3.el6.x86_64.rpm
[root@dhcp-31-102 ~]# yumdownloader gkrellm-daemon
Loaded plugins: product-id, rhui-lb
rhui-custom-10000                                                                                                                                                                                                                                                                                | 2.6 kB     00:00
rhui-custom-10000/primary_db                                                                                                                                                                                                                                                                     | 2.5 kB     00:00
gkrellm-daemon-2.3.5-3.el6.x86_64.rpm                                                                                                                                                                                                                                                            |  69 kB     00:00
[root@dhcp-31-102 ~]# ls gkrellm-daemon-2.3.5-3.el6.x86_64.rpm
gkrellm-daemon-2.3.5-3.el6.x86_64.rpm
[root@dhcp-31-102 ~]#

Comment 1 wes hayutin 2012-04-05 13:10:24 UTC
I believe this is a dupe of 802545
Milan, please reopen if you disagree.

*** This bug has been marked as a duplicate of bug 802545 ***

Comment 2 mkovacik 2012-04-05 18:53:53 UTC
I agree, they're the same


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