Project

Profile

Help

Issue #601

closed

repo will be updated if a wrong repo type is specified

Added by igulina@redhat.com about 9 years ago. Updated about 5 years ago.

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

Description

Description of problem:
We can specify the wrong type of the updated repo, and it's still will be updated.

Version-Release number of selected component (if applicable):

rpm -qa | grep pulp-server

pulp-server-2.5.0-0.14.beta.el6.noarch

How reproducible:
always

Steps to Reproduce:

pulp-admin docker repo list

--------------------------------------------------------------------
Docker Repositories
--------------------------------------------------------------------

Id: zoo
Display Name: zoo
Description: None
Content Unit Counts:

Id: woo.doo
Display Name: woo.doo
Description: None
Content Unit Counts:

Id: .
Display Name: .
Description: None
Content Unit Counts:

pulp-admin rpm repo list

--------------------------------------------------------------------
RPM Repositories
--------------------------------------------------------------------

Id: gena
Display Name: gena
Description:
Content Unit Counts:

pulp-admin docker repo update --repo-id gena --description='it is not docker repo but rpm repo'

Repository [gena] successfully updated

pulp-admin rpm repo list

--------------------------------------------------------------------
RPM Repositories
--------------------------------------------------------------------

Id: gena
Display Name: gena
Description: it is not docker repo but rpm repo
Content Unit Counts:

Since it's not possible to create repos of different types but with the same repo-id, I think it's OK to have a command line as

pulp-admin repo update --repo-id [repod_id]

Otherwise, maybe it's reasonable to include a test for a repo type.

+ This bug was cloned from Bugzilla Bug #1159075 +

Also available in: Atom PDF