Bug 750618

Summary: Add --checksum_type to "pulp-admin repo update"
Product: [Retired] Pulp Reporter: Chris St. Pierre <cstpierr>
Component: user-experienceAssignee: Pradeep Kilambi <pkilambi>
Status: CLOSED CURRENTRELEASE QA Contact: Preethi Thomas <pthomas>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: unspecifiedCC: skarmark
Target Milestone: ---Keywords: Triaged
Target Release: Sprint 30   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-02-24 20:12:59 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Chris St. Pierre 2011-11-01 19:14:20 UTC
Description of problem:

If you create a repository with the default sha256 checksum type, you cannot use it to install RHEL 5.  Unfortunately, it is not currently possible to change the checksum type after a repo has been created, so you have to delete and then re-create the repo.

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

0.0.237

How reproducible:

Always.

Steps to Reproduce:

1. Create a repository.
2. Decide that you want to change the checksum type.
3. Search in vain for the --checksum_type option to "pulp-admin repo update".

Actual results:

No such option exists.

Expected results:

It should.

Additional info:

Comment 1 Pradeep Kilambi 2011-11-14 19:56:25 UTC
fixed! commit 0d5461031cad392c951f1c4758340d17713766ca

Comment 2 Jeff Ortel 2011-11-17 03:06:40 UTC
build: 0.249

Comment 3 Preethi Thomas 2011-11-28 20:55:51 UTC
verified

[root@preethi ~]# rpm -q pulp
pulp-0.0.251-1.fc15.noarch

[root@preethi ~]# pulp-admin repo update --help
Usage: pulp-admin <options> repo update <options>

Options:
  -h, --help            show this help message and exit
  --id=ID               repository id (required)
  --name=NAME           common repository name
  --arch=ARCH           package arch the repository should support
  --feed=FEED           url feed to populate the repository (repository must
                        be empty to change path component of the url)
  --feed_ca=FEED_CA     path location to the feed's ca certificate
  --feed_cert=FEED_CERT
                        path location to the feed's entitlement certificate
  --feed_key=FEED_KEY   path location to the feed's entitlement certificate
                        key
  --remove_feed_cert    if specified, the feed certificate information will be
                        removed from this repo
  --consumer_ca=CONSUMER_CA
                        path location to the ca certificate used to verify
                        consumer requests
  --consumer_cert=CONSUMER_CERT
                        path location to the entitlement certificate consumers
                        will be provided at bind to grant access to this repo
  --consumer_key=CONSUMER_KEY
                        path location to the consumer entitlement certificate
                        key
  --remove_consumer_cert
                        if specified, the consumer certificate information
                        will be removed from this repo
  --addgroup=ADDGROUP   group id to be added to the repository
  --rmgroup=RMGROUP     group id to be removed from the repository
  --addkeys=ADDKEYS     a ',' separated list of directories and/or files
                        containing GPG keys
  --rmkeys=RMKEYS       a ',' separated list of GPG key names
  --checksum_type=CHECKSUM_TYPE
                        checksum type to use for repository metadata; this
                        will perform a metadata update
[root@preethi ~]# 

[root@preethi ~]# pulp-admin repo update --id=f15 --checksum_type=sha256
Successfully updated repository [ f15 ]

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