Bug 745250 - Add a warning check during pulp-migrate to notify user if multiple repos with the relative path exist
Summary: Add a warning check during pulp-migrate to notify user if multiple repos with...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Pulp
Classification: Retired
Component: user-experience
Version: 1.0.0
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: Sprint 29
Assignee: Pradeep Kilambi
QA Contact: Preethi Thomas
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-10-11 19:04 UTC by Pradeep Kilambi
Modified: 2013-09-09 16:32 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed:


Attachments (Terms of Use)

Description Pradeep Kilambi 2011-10-11 19:04:01 UTC
Description of problem:


Add a warning check in pulp-migrate for users to be notified if they have multiple repos with same relative path. The warning would be displayed on the output for user to take action

WARNING: Your database has multiple repos with the same relative path. This is a deprecated functionality and will not be supported in upcoming versions of pulp. Please remove the following repos from your database [repo1, repo2, repo3].

Comment 1 Pradeep Kilambi 2011-10-19 14:21:59 UTC
commit b41a9064b45d1c1d391739ec561417040a78b73d

$ pulp-migrate 
WARNING: Your database has multiple repos with the same relative path.
This is a deprecated functionality and will not be supported in upcoming versions of pulp.
Please remove the following set(s) of repoids from your pulp server [('repodup1', 'repodup2', 'repodup3'), ('repodup4', 'repodup5')]

database migration to version 25 complete

Comment 2 Jeff Ortel 2011-10-20 00:35:01 UTC
build: 0.240

Comment 3 Preethi Thomas 2011-10-20 17:59:34 UTC
verified
[root@katello-test ~]# yum update --disablerepo=* --enablerepo=testing-rhel-pulp --enablerepo=rhel-6-Server --enablerepo=epel
Loaded plugins: product-id, rhnplugin, subscription-manager
Updating Red Hat repositories.
testing-rhel-pulp                                        | 1.3 kB     00:00     
testing-rhel-pulp/primary                                | 6.0 kB     00:00     
testing-rhel-pulp                                                         18/18
Setting up Update Process
Resolving Dependencies
--> Running transaction check
---> Package grinder.noarch 0:0.0.119-1.el6 will be updated
---> Package grinder.noarch 0:0.0.121-1.el6 will be an update
---> Package mod_wsgi.x86_64 0:3.2-3.sslpatch.el6 will be updated
---> Package mod_wsgi.x86_64 0:3.2-4.pulp.el6 will be an update
---> Package mongodb.x86_64 0:1.6.4-3.el6 will be updated
--> Processing Dependency: libmongoclient.so()(64bit) for package: mongodb-1.8.2-2.el6.x86_64
---> Package mongodb.x86_64 0:1.8.2-2.el6 will be an update
---> Package mongodb-server.x86_64 0:1.6.4-3.el6 will be updated
---> Package mongodb-server.x86_64 0:1.8.2-2.el6 will be an update
---> Package pulp.noarch 0:0.0.237-4.el6 will be updated
---> Package pulp.noarch 0:0.0.240-1.el6 will be an update
---> Package pulp-admin.noarch 0:0.0.237-4.el6 will be updated
---> Package pulp-admin.noarch 0:0.0.240-1.el6 will be an update
---> Package pulp-client-lib.noarch 0:0.0.237-4.el6 will be updated
---> Package pulp-client-lib.noarch 0:0.0.240-1.el6 will be an update
---> Package pulp-common.noarch 0:0.0.237-4.el6 will be updated
---> Package pulp-common.noarch 0:0.0.240-1.el6 will be an update
--> Running transaction check
---> Package libmongodb.x86_64 0:1.8.2-2.el6 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

================================================================================
 Package             Arch       Version             Repository             Size
================================================================================
Updating:
 grinder             noarch     0.0.121-1.el6       testing-rhel-pulp     121 k
 mod_wsgi            x86_64     3.2-4.pulp.el6      testing-rhel-pulp      66 k
 mongodb             x86_64     1.8.2-2.el6         epel                   12 M
 mongodb-server      x86_64     1.8.2-2.el6         epel                  2.6 M
 pulp                noarch     0.0.240-1.el6       testing-rhel-pulp     678 k
 pulp-admin          noarch     0.0.240-1.el6       testing-rhel-pulp     175 k
 pulp-client-lib     noarch     0.0.240-1.el6       testing-rhel-pulp     158 k
 pulp-common         noarch     0.0.240-1.el6       testing-rhel-pulp      87 k
Installing for dependencies:
 libmongodb          x86_64     1.8.2-2.el6         epel                  477 k

Transaction Summary
================================================================================
Install       1 Package(s)
Upgrade       8 Package(s)

Total download size: 17 M
Is this ok [y/N]: y
Downloading Packages:
(1/9): grinder-0.0.121-1.el6.noarch.rpm                  | 121 kB     00:01     
(2/9): libmongodb-1.8.2-2.el6.x86_64.rpm                 | 477 kB     00:01     
(3/9): mod_wsgi-3.2-4.pulp.el6.x86_64.rpm                |  66 kB     00:00     
(4/9): mongodb-1.8.2-2.el6.x86_64.rpm                    |  12 MB     01:02     
(5/9): mongodb-server-1.8.2-2.el6.x86_64.rpm             | 2.6 MB     00:16     
(6/9): pulp-0.0.240-1.el6.noarch.rpm                     | 678 kB     00:02     
(7/9): pulp-admin-0.0.240-1.el6.noarch.rpm               | 175 kB     00:01     
(8/9): pulp-client-lib-0.0.240-1.el6.noarch.rpm          | 158 kB     00:01     
(9/9): pulp-common-0.0.240-1.el6.noarch.rpm              |  87 kB     00:00     
--------------------------------------------------------------------------------
Total                                           186 kB/s |  17 MB     01:32     
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Warning: RPMDB altered outside of yum.
  Updating   : pulp-common-0.0.240-1.el6.noarch                            1/17 
  Updating   : pulp-client-lib-0.0.240-1.el6.noarch                        2/17 
  Updating   : grinder-0.0.121-1.el6.noarch                                3/17 
  Installing : libmongodb-1.8.2-2.el6.x86_64                               4/17 
  Updating   : mongodb-1.8.2-2.el6.x86_64                                  5/17 
  Updating   : mongodb-server-1.8.2-2.el6.x86_64                           6/17 
  Updating   : mod_wsgi-3.2-4.pulp.el6.x86_64                              7/17 
  Updating   : pulp-0.0.240-1.el6.noarch                                   8/17 
  Updating   : pulp-admin-0.0.240-1.el6.noarch                             9/17 
  Cleanup    : pulp-0.0.237-4.el6.noarch                                  10/17 
  Cleanup    : pulp-admin-0.0.237-4.el6.noarch                            11/17 
  Cleanup    : pulp-client-lib-0.0.237-4.el6.noarch                       12/17 
  Cleanup    : mongodb-server-1.6.4-3.el6.x86_64                          13/17 
  Cleanup    : pulp-common-0.0.237-4.el6.noarch                           14/17 
  Cleanup    : grinder-0.0.119-1.el6.noarch                               15/17 
  Cleanup    : mongodb-1.6.4-3.el6.x86_64                                 16/17 
  Cleanup    : mod_wsgi-3.2-3.sslpatch.el6.x86_64                         17/17 
duration: 142(ms)
Installed products updated.

Dependency Installed:
  libmongodb.x86_64 0:1.8.2-2.el6                                               

Updated:
  grinder.noarch 0:0.0.121-1.el6           mod_wsgi.x86_64 0:3.2-4.pulp.el6     
  mongodb.x86_64 0:1.8.2-2.el6             mongodb-server.x86_64 0:1.8.2-2.el6  
  pulp.noarch 0:0.0.240-1.el6              pulp-admin.noarch 0:0.0.240-1.el6    
  pulp-client-lib.noarch 0:0.0.240-1.el6   pulp-common.noarch 0:0.0.240-1.el6   

Complete!

[root@katello-test ~]# pulp-migrate
WARNING: Your database has multiple repos with the same relative path.
This is a deprecated functionality and will not be supported in upcoming versions of pulp.
Please remove the following set(s) of repoids from your pulp server [('pulp-relative3', 'pulp-relative1', 'pulp-relative2')]

database migration to version 25 complete

Comment 4 Preethi Thomas 2012-02-24 20:18:49 UTC
Pulp v1.0 is released
Closed Current Release.

Comment 5 Preethi Thomas 2012-02-24 20:19:41 UTC
Pulp v1.0 is released.


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