Project

Profile

Help

Issue #619

wrong error message when unbinding consumer group with invalid repo-id

Added by pthomas@redhat.com almost 7 years ago. Updated almost 3 years ago.

Status:
CLOSED - CURRENTRELEASE
Priority:
Normal
Category:
-
Sprint/Milestone:
-
Start date:
Due date:
Estimated time:
Severity:
2. Medium
Version:
2.5
Platform Release:
2.6.1
OS:
Triaged:
Yes
Groomed:
No
Sprint Candidate:
No
Tags:
Pulp 2
Sprint:
Quarter:

Description

Description of problem:
If you use an repo-id that is not bound to the consumer group, the error message displayed is wrong.

Version-Release number of selected component (if applicable):
[root@hp-dl380pgen8-02-vm-2 ~]# rpm -qa pulp-server
pulp-server-2.5.0-0.19.rc.el7.noarch

How reproducible:

Steps to Reproduce:
1.create a consumer group
2.add consumers to the group
3.try to unbind a repo that is not bound to the consumer group

Actual results:

[root@hp-dl380pgen8-02-vm-2 ~]# rpm -qa pulp-server
pulp-server-2.5.0-0.19.rc.el7.noarch
[root@hp-dl380pgen8-02-vm-2 ~]#
[root@hp-dl380pgen8-02-vm-2 ~]#
[root@hp-dl380pgen8-02-vm-2 ~]# pulp-admin rpm consumer group members list --group-id grp1
----------------------------------------------------------------------
Consumer Group Members
--------------------------------------------------------------------

Id: client1
Display Name: client1
Description: None
Notes:

[root@hp-dl380pgen8-02-vm-2 ~]# pulp-admin rpm consumer group list
--------------------------------------------------------------------
Consumer Groups
--------------------------------------------------------------------

Id: grp1
Display Name: None
Description: None
Consumer Ids: client1
Notes:

[root@hp-dl380pgen8-02-vm-2 ~]# pulp-admin rpm consumer group unbind --consumer-group-id grp1 --repo-id rhel7-client
Consumer Group [grp1] does not exist on the server

Expected results:

Additional info:

+ This bug was cloned from Bugzilla Bug #1165323 +

History

#1 Updated by ipanova@redhat.com almost 7 years ago

  • Status changed from ASSIGNED to POST
  • Platform Release set to 2.6.1

#2 Updated by ipanova@redhat.com almost 7 years ago

  • Status changed from POST to MODIFIED

#3 Updated by bmbouter almost 7 years ago

  • Severity changed from Medium to 2. Medium

#4 Updated by bcourt almost 7 years ago

  • Status changed from MODIFIED to 5

#6 Updated by igulina@redhat.com almost 7 years ago

  • Status changed from 5 to 6

rpm -qa pulp-server

pulp-server-2.6.1-0.2.beta.el7.noarch

pulp-admin rpm consumer group list

--------------------------------------------------------------------
Consumer Groups
--------------------------------------------------------------------

Id: my_group
Display Name: None
Description: None
Consumer Ids: lelik
Notes:

pulp-admin rpm consumer group members list --group-id my_group

--------------------------------------------------------------------
Consumer Group Members
--------------------------------------------------------------------

Id: lelik
Display Name: lelik
Description: None
Notes:

pulp-admin rpm consumer group unbind --consumer-group-id my_group --repo-id no_such_repo

Repository [no_such_repo] does not exist on the server

#7 Updated by dkliban@redhat.com over 6 years ago

  • Status changed from 6 to CLOSED - CURRENTRELEASE

#9 Updated by bmbouter almost 3 years ago

  • Tags Pulp 2 added

Also available in: Atom PDF