Bug 681016 - Not able to add/remove errata if the packages in the errata are removed first
Summary: Not able to add/remove errata if the packages in the errata are removed first
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Pulp
Classification: Retired
Component: z_other
Version: unspecified
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: Sprint 21
Assignee: Pradeep Kilambi
QA Contact: Preethi Thomas
URL:
Whiteboard:
Depends On:
Blocks: pulp-verified
TreeView+ depends on / blocked
 
Reported: 2011-02-28 19:46 UTC by Preethi Thomas
Modified: 2011-08-16 13:58 UTC (History)
0 users

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2011-08-16 13:58:40 UTC
Embargoed:


Attachments (Terms of Use)

Description Preethi Thomas 2011-02-28 19:46:35 UTC
Description of problem:





Version-Release number of selected component (if applicable):
[root@preethi ~]# rpm -q pulp
pulp-0.0.143-1.fc14.noarch

How reproducible:


Steps to Reproduce:
1. Add an errata to the repo
2. Run remove package to remove the packages added by adding the errata
3. Try running remove errata
4. Try running add_errata


[root@preethi ~]# pulp-admin repo remove_errata --id=upload -e FEDORA-2010-18034
Associated Errata packages for id [['FEDORA-2010-18034']] are not in the repo.


[root@preethi ~]# pulp-admin repo add_errata --id=upload -e FEDORA-2010-18034 --source=f14-update
Errata Id [FEDORA-2010-18034] is already in target repo [upload]. skipping

Comment 1 Pradeep Kilambi 2011-02-28 20:56:20 UTC
fixed!

$ sudo pulp-admin repo add_errata -e FEDORA-2010-9419 --id=foo --source=f13-updates


Following dependencies are suggested. [u'perl-Software-License-0.101410-1.fc13.noarch.rpm', u'perl-5.10.1-120.fc13.x86_64.rpm'] 
Would you like us to add these?(Y/N/Q):y
Successfully added Errata ['FEDORA-2010-9419'] to repo [foo].

[pkilambi@prad pulp{master}]$ sudo pulp-admin repo content --id=foo
+------------------------------------------+
               Contents of foo
+------------------------------------------+

Packages in foo: 

perl-Software-License-0.101410-1.fc13.noarch.rpm
perl-5.10.1-120.fc13.x86_64.rpm

Errata in foo: 

FEDORA-2010-9419

Files in foo: 

 none

[pkilambi@prad pulp{master}]$ sudo pulp-admin repo remove_package --id=foo -p perl-Software-License-0.101410-1.fc13.noarch.rpm -p perl-5.10.1-120.fc13.x86_64.rpm

Following dependencies are suggested. [u'perl-5.10.1-120.fc13.x86_64.rpm'] 
Would you like us to add these?(Y/N/Q):y
Successfully removed package [u'perl-Software-License-0.101410-1.fc13.noarch.rpm', u'perl-5.10.1-120.fc13.x86_64.rpm'] from repo [foo].

[pkilambi@prad pulp{master}]$ sudo pulp-admin repo remove_errata -e FEDORA-2010-9419 --id=foo 
No dependencies to process..
Successfully removed Errata ['FEDORA-2010-9419'] from repo [foo].

Comment 2 Jeff Ortel 2011-03-02 21:34:38 UTC
Build: 0.144

Comment 3 Preethi Thomas 2011-03-04 18:57:34 UTC
verified
[root@preethi ~]# rpm -q pulp
pulp-0.0.144-1.fc14.noarch



[root@preethi ~]# pulp-admin repo add_errata -e FEDORA-2011-0432 --id=errata-upload1 --source=f14-update -r 

Following dependencies are suggested. ['glibc-2.13-1.x86_64.rpm', 'pam-1.1.1-6.fc14.x86_64.rpm', 'pam-1.1.1-6.fc14.i686.rpm', 'libblkid-2.18-4.8.fc14.i686.rpm', 'libblkid-2.18-4.8.fc14.x86_64.rpm', 'libuuid-2.18-4.8.fc14.x86_64.rpm', 'info-4.13a-13.fc14.x86_64.rpm', 'libmount-2.18-4.8.fc14.x86_64.rpm', 'coreutils-8.5-7.fc14.x86_64.rpm', 'libmount-2.18-4.8.fc14.i686.rpm', 'glibc-2.13-1.i686.rpm', 'ncurses-libs-5.7-9.20100703.fc14.x86_64.rpm', 'libuuid-2.18-4.8.fc14.i686.rpm', 'libselinux-2.0.96-6.fc14.1.x86_64.rpm', 'util-linux-ng-2.18-4.8.fc14.x86_64.rpm', 'libcom_err-1.41.12-6.fc14.x86_64.rpm', 'krb5-libs-1.8.2-8.fc14.x86_64.rpm', 'openldap-2.4.23-4.fc14.x86_64.rpm', 'openssh-5.5p1-24.fc14.2.x86_64.rpm', 'openssl-1.0.0d-1.fc14.x86_64.rpm', 'openssh-clients-5.5p1-24.fc14.2.x86_64.rpm', 'perl-5.12.3-141.fc14.x86_64.rpm', 'nss-softokn-freebl-3.12.9-2.fc14.x86_64.rpm', 'libselinux-2.0.96-6.fc14.1.i686.rpm', 'perl-threads-shared-1.32-141.fc14.x86_64.rpm', 'gdbm-1.8.3-8.fc14.x86_64.rpm', 'perl-libs-5.12.3-141.fc14.x86_64.rpm', 'perl-libs-5.12.3-141.fc14.i686.rpm', 'perl-Pod-Simple-3.13-141.fc14.noarch.rpm', 'perl-threads-1.75-141.fc14.x86_64.rpm', 'perl-Module-Pluggable-3.90-141.fc14.noarch.rpm', 'nss-3.12.9-1.fc14.x86_64.rpm', 'nss-util-3.12.9-1.fc14.x86_64.rpm', 'nspr-4.8.7-1.fc14.x86_64.rpm', 'ncurses-libs-5.7-9.20100703.fc14.i686.rpm', 'nspr-4.8.7-1.fc14.i686.rpm', 'nss-3.12.9-1.fc14.i686.rpm', 'nss-util-3.12.9-1.fc14.i686.rpm', 'nss-softokn-3.12.9-2.fc14.i686.rpm', 'nss-sysinit-3.12.9-1.fc14.x86_64.rpm', 'perl-App-Nopaste-0.25-1.fc14.noarch.rpm', 'perl-Try-Tiny-0.07-1.fc14.noarch.rpm', 'perl-Class-MOP-1.08-1.fc14.x86_64.rpm', 'perl-Pod-Escapes-1.04-141.fc14.noarch.rpm', 'glibc-common-2.13-1.x86_64.rpm', 'tzdata-2010o-1.fc14.noarch.rpm', 'nss-softokn-3.12.9-2.fc14.x86_64.rpm', 'perl-Moose-1.12-2.fc14.x86_64.rpm', 'libattr-2.4.44-6.fc14.x86_64.rpm', 'ncurses-base-5.7-9.20100703.fc14.x86_64.rpm', 'libattr-2.4.44-6.fc14.i686.rpm', 'nss-softokn-freebl-3.12.9-2.fc14.i686.rpm', 'coreutils-libs-8.5-7.fc14.x86_64.rpm', 'ncurses-5.7-9.20100703.fc14.x86_64.rpm'] 
Would you like us to add these?(Y/N/Q):^C[root@preethi ~]# 
[root@preethi ~]# 
[root@preethi ~]# pulp-admin repo add_errata -e FEDORA-2011-0432 --id=errata-upload1 --source=f14-update 

Following dependencies are suggested. ['perl-5.12.3-141.fc14.x86_64.rpm', 'openssh-clients-5.5p1-24.fc14.2.x86_64.rpm', 'perl-Module-Pluggable-3.90-141.fc14.noarch.rpm', 'perl-App-Nopaste-0.25-1.fc14.noarch.rpm', 'perl-Moose-1.12-2.fc14.x86_64.rpm', 'coreutils-8.5-7.fc14.x86_64.rpm'] 
Would you like us to add these?(Y/N/Q):y
Successfully added Errata ['FEDORA-2011-0432'] to repo [errata-upload1].

[root@preethi ~]# pulp-admin repo remove_package -p perl-5.12.3-141.fc14.x86_64.rpm -p openssh-clients-5.5p1-24.fc14.2.x86_64.rpm  --id=errata-upload1 

Following dependencies are suggested. ['glibc-2.13-1.x86_64.rpm', 'libcom_err-1.41.12-6.fc14.x86_64.rpm', 'krb5-libs-1.8.2-8.fc14.x86_64.rpm', 'openldap-2.4.23-4.fc14.x86_64.rpm', 'openssh-5.5p1-24.fc14.2.x86_64.rpm', 'glibc-2.13-1.i686.rpm', 'ncurses-libs-5.7-9.20100703.fc14.x86_64.rpm', 'openssl-1.0.0d-1.fc14.x86_64.rpm', 'libselinux-2.0.96-6.fc14.1.x86_64.rpm', 'perl-libs-5.12.3-141.fc14.x86_64.rpm', 'gdbm-1.8.3-8.fc14.x86_64.rpm', 'perl-libs-5.12.3-141.fc14.i686.rpm', 'perl-threads-shared-1.32-141.fc14.x86_64.rpm', 'perl-Pod-Simple-3.13-141.fc14.noarch.rpm', 'perl-Module-Pluggable-3.90-141.fc14.noarch.rpm', 'perl-threads-1.75-141.fc14.x86_64.rpm'] 
Would you like us to add these?(Y/N/Q):y
Successfully removed package ['libselinux-2.0.96-6.fc14.1.x86_64.rpm', 'perl-Module-Pluggable-3.90-141.fc14.noarch.rpm', 'perl-Pod-Simple-3.13-141.fc14.noarch.rpm', 'perl-libs-5.12.3-141.fc14.x86_64.rpm', 'perl-libs-5.12.3-141.fc14.i686.rpm', 'glibc-2.13-1.i686.rpm', 'gdbm-1.8.3-8.fc14.x86_64.rpm', 'perl-threads-shared-1.32-141.fc14.x86_64.rpm', 'krb5-libs-1.8.2-8.fc14.x86_64.rpm', 'perl-threads-1.75-141.fc14.x86_64.rpm', 'ncurses-libs-5.7-9.20100703.fc14.x86_64.rpm', 'libcom_err-1.41.12-6.fc14.x86_64.rpm', 'openssh-clients-5.5p1-24.fc14.2.x86_64.rpm', 'openldap-2.4.23-4.fc14.x86_64.rpm', 'openssh-5.5p1-24.fc14.2.x86_64.rpm', 'glibc-2.13-1.x86_64.rpm', 'openssl-1.0.0d-1.fc14.x86_64.rpm', 'perl-5.12.3-141.fc14.x86_64.rpm'] from repo [errata-upload1].

[root@preethi ~]# 
[root@preethi ~]# 
[root@preethi ~]# 
[root@preethi ~]# pulp-admin repo content --id=errata-upload1
+------------------------------------------+
         Contents of errata-upload1
+------------------------------------------+

Packages in errata-upload1: 

libcurl-7.21.0-6.fc14.x86_64.rpm
krb5-libs-1.8.2-8.fc14.i686.rpm
nopaste-0.25-1.fc14.noarch.rpm
perl-App-Nopaste-0.25-1.fc14.noarch.rpm
shadow-utils-4.1.4.2-11.fc14.x86_64.rpm
perl-Moose-1.12-2.fc14.x86_64.rpm
setup-2.8.28-1.fc14.noarch.rpm
openldap-2.4.23-4.fc14.i686.rpm
openssl-1.0.0d-1.fc14.i686.rpm
coreutils-8.5-7.fc14.x86_64.rpm
tar-1.23-7.fc14.x86_64.rpm
libcom_err-1.41.12-6.fc14.i686.rpm
mailx-12.5-1.fc14.x86_64.rpm
amanda-3.1.3-2.fc14.x86_64.rpm

Errata in errata-upload1: 

FEDORA-2011-0432

Files in errata-upload1: 

 none

[root@preethi ~]# pulp-admin repo remove_package -p amanda-3.1.3-2.fc14.x86_64.rpm -pmailx-12.5-1.fc14.x86_64.rpm -plibcom_err-1.41.12-6.fc14.i686.rpm -p tar-1.23-7.fc14.x86_64.rpm  --id=errata-upload1 

Following dependencies are suggested. ['glibc-2.13-1.i686.rpm', 'glibc-2.13-1.x86_64.rpm', 'nss-3.12.9-1.fc14.x86_64.rpm', 'krb5-libs-1.8.2-8.fc14.x86_64.rpm', 'nspr-4.8.7-1.fc14.x86_64.rpm', 'libcom_err-1.41.12-6.fc14.x86_64.rpm', 'perl-5.12.3-141.fc14.x86_64.rpm', 'mailx-12.5-1.fc14.x86_64.rpm', 'tar-1.23-7.fc14.x86_64.rpm', 'shadow-utils-4.1.4.2-11.fc14.x86_64.rpm', 'libcurl-7.21.0-6.fc14.x86_64.rpm', 'coreutils-8.5-7.fc14.x86_64.rpm', 'openssl-1.0.0d-1.fc14.x86_64.rpm', 'info-4.13a-13.fc14.x86_64.rpm', 'libselinux-2.0.96-6.fc14.1.x86_64.rpm'] 
Would you like us to add these?(Y/N/Q):y
Successfully removed package ['libselinux-2.0.96-6.fc14.1.x86_64.rpm', 'libcurl-7.21.0-6.fc14.x86_64.rpm', 'mailx-12.5-1.fc14.x86_64.rpm', 'amanda-3.1.3-2.fc14.x86_64.rpm', 'shadow-utils-4.1.4.2-11.fc14.x86_64.rpm', 'glibc-2.13-1.i686.rpm', 'info-4.13a-13.fc14.x86_64.rpm', 'nspr-4.8.7-1.fc14.x86_64.rpm', 'libcom_err-1.41.12-6.fc14.i686.rpm', 'coreutils-8.5-7.fc14.x86_64.rpm', 'libcom_err-1.41.12-6.fc14.x86_64.rpm', 'nss-3.12.9-1.fc14.x86_64.rpm', 'tar-1.23-7.fc14.x86_64.rpm', 'krb5-libs-1.8.2-8.fc14.x86_64.rpm', 'glibc-2.13-1.x86_64.rpm', 'openssl-1.0.0d-1.fc14.x86_64.rpm', 'perl-5.12.3-141.fc14.x86_64.rpm'] from repo [errata-upload1].

[root@preethi ~]# 
[root@preethi ~]# 
[root@preethi ~]# 
[root@preethi ~]# pulp-admin repo content --id=errata-upload1+------------------------------------------+
         Contents of errata-upload1
+------------------------------------------+

Packages in errata-upload1: 

krb5-libs-1.8.2-8.fc14.i686.rpm
nopaste-0.25-1.fc14.noarch.rpm
perl-App-Nopaste-0.25-1.fc14.noarch.rpm
perl-Moose-1.12-2.fc14.x86_64.rpm
setup-2.8.28-1.fc14.noarch.rpm
openldap-2.4.23-4.fc14.i686.rpm
openssl-1.0.0d-1.fc14.i686.rpm

Errata in errata-upload1: 

FEDORA-2011-0432

Files in errata-upload1: 

 none

[root@preethi ~]# pulp-admin repo remove_package -p krb5-libs-1.8.2-8.fc14.i686.rpm -p nopaste-0.25-1.fc14.noarch.rpm  --id=errata-upload1 

Following dependencies are suggested. ['perl-5.12.3-141.fc14.x86_64.rpm', 'perl-App-Nopaste-0.25-1.fc14.noarch.rpm', 'coreutils-8.5-7.fc14.x86_64.rpm', 'glibc-2.13-1.i686.rpm', 'glibc-2.13-1.x86_64.rpm', 'libcom_err-1.41.12-6.fc14.i686.rpm', 'libselinux-2.0.96-6.fc14.1.i686.rpm'] 
Would you like us to add these?(Y/N/Q):y
Successfully removed package ['libselinux-2.0.96-6.fc14.1.i686.rpm', 'perl-App-Nopaste-0.25-1.fc14.noarch.rpm', 'glibc-2.13-1.i686.rpm', 'glibc-2.13-1.x86_64.rpm', 'coreutils-8.5-7.fc14.x86_64.rpm', 'nopaste-0.25-1.fc14.noarch.rpm', 'perl-5.12.3-141.fc14.x86_64.rpm', 'libcom_err-1.41.12-6.fc14.i686.rpm', 'krb5-libs-1.8.2-8.fc14.i686.rpm'] from repo [errata-upload1].

[root@preethi ~]# pulp-admin repo content --id=errata-upload1+------------------------------------------+
         Contents of errata-upload1
+------------------------------------------+

Packages in errata-upload1: 

perl-Moose-1.12-2.fc14.x86_64.rpm
setup-2.8.28-1.fc14.noarch.rpm
openldap-2.4.23-4.fc14.i686.rpm
openssl-1.0.0d-1.fc14.i686.rpm

Errata in errata-upload1: 

FEDORA-2011-0432

Files in errata-upload1: 

 none

Comment 4 Preethi Thomas 2011-08-16 13:58:40 UTC
Closing with Community Release 15

pulp-0.0.223-4.


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