Bug 972913
Summary: | an unexpected error occurs when the --cond-name option is used with repo uploads group | ||
---|---|---|---|
Product: | [Retired] Pulp | Reporter: | Jeremy Cline <jcline> |
Component: | rpm-support | Assignee: | Sayli Karmarkar <skarmark> |
Status: | CLOSED CURRENTRELEASE | QA Contact: | Preethi Thomas <pthomas> |
Severity: | low | Docs Contact: | |
Priority: | low | ||
Version: | 2.2 Beta | CC: | cperry, jason.dobies, nobody, skarmark |
Target Milestone: | --- | Keywords: | Triaged |
Target Release: | 2.3.0 | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2013-12-09 14:31:47 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Jeremy Cline
2013-06-10 19:23:12 UTC
I just noticed that the --cond-name option expects the format "pkg_name : required_package". When provided this format uploads group performs as expected. This is just a matter of not checking the input for correct formatting before splitting on ':'. commit 1098334a6edd8083bde1134c9ae594fda1d45bb7 Author: Sayli Karmarkar <skarmark> Date: Fri Sep 6 12:54:49 2013 -0700 972913 - adding cli validation for conditional packages when upload a package group $ pulp-admin rpm repo uploads group --repo-id=test-repo --group-id=test_group --name=test --description="A test of uploads group" --cond-name=conditional +----------------------------------------------------------------------+ Unit Upload +----------------------------------------------------------------------+ Extracting necessary metadata for each request... Invalid value for argument : cond-name Merged. build: 2.3.0-0.14.alpha verified [root@pulp-v2-server ~]# rpm -qa pulp-server pulp-server-2.3.0-0.14.alpha.el6.noarch [root@pulp-v2-server ~]# [root@pulp-v2-server ~]# pulp-admin rpm repo uploads group --repo-id=uploads_group --group-id=test_group --name=test --description="A test of uploads group" --cond-name=conditional +----------------------------------------------------------------------+ Unit Upload +----------------------------------------------------------------------+ Extracting necessary metadata for each request... Invalid value for argument : cond-name Pulp 2.3 released. |