[Pulp-list] local clone has wrong checksum

Ryan Bowlby rbowlby83 at gmail.com
Wed Apr 17 00:56:50 UTC 2013


Hi Guys,

I'm attempting to swap our production pulpV1 with 2.1. We have a
mirror of external repos and then a clone of that local daily mirror.
When setting up the clone in 2.1 the metadata generated is sha256,
even though both repos are set to sha.


The local mirror:

Id:                  daily-centos-5-extras-x86_64
Display Name:        daily-centos-5-extras-x86_64
Description:         None
Content Unit Counts:
  Package Category: 1
  Package Group:    7
  Rpm:              270
Notes:
Importers:
  Config:
    Feed URL: http://mirror.centos.org/centos/5/extras/x86_64
  Id:               yum_importer
  Importer Type Id: yum_importer
  Last Sync:        2013-04-16T19:21:48Z
  Repo Id:          daily-centos-5-extras-x86_64
  Scheduled Syncs:  516769a3ee95995ff4023162
Distributors:
  Auto Publish:        True
  Config:
    Checksum Type: sha
    Http:          True
    Https:         True
    Relative URL:  daily/centos/5/extras/x86_64
  Distributor Type Id: yum_distributor
  Id:                  yum_distributor
  Last Publish:        2013-04-16T06:43:48Z
  Repo Id:             daily-centos-5-extras-x86_64
  Scheduled Publishes:


pulp-admin rpm repo create --repo-id=stable-centos-5-extras-x86_64
--relative-url=stable/centos/5/extras/x86_64 --serve-http=true
--serve-https=true --checksum-type sha

pulp-admin rpm repo copy rpm
--from-repo-id=daily-centos-5-extras-x86_64
--to-repo-id=stable-centos-5-extras-x86_64
pulp-admin rpm repo publish run  --repo-id=stable-centos-5-extras-x86_64

# grep sha /var/lib/pulp/published/http/repos/stable/centos/5/extras/x86_64/repodata/repomd.xml
  <checksum type="sha256">1075a7ef67740a7f076d4d114d6751de9a4655bb961f0cfca86515f28224a350</checksum>
  <open-checksum
type="sha256">54f93f445e243b31b66c021f35393caa10f8c9b2e353b9053790e08c7306cf1c</open-checksum>
  <checksum type="sha256">e7c7c6964f06c3adad37d28a14f355d8ad7655b05ddd35b88c2b732585574788</checksum>
  <open-checksum
type="sha256">20433fc98785a6733a7af5ea18aebfa34ba4f2001bc0618a446b985a5a48def4</open-checksum>
  <checksum type="sha256">aa385f383570c8e3b317437ed1c1c2da5510119465322cfb48815dde9cea0ce6</checksum>
  <open-checksum
type="sha256">b2a93fa5c561d5ceb8741623ca9b49aad528561189c12e0fcf88ea7d87811d01</open-checksum>
  <checksum type="sha256">456feb36911d1f8a3b605485ec700b3c787bb70be2fc5996598644e99ee8cd03</checksum>
  <open-checksum
type="sha256">b5d865cf9c967f7c59b8a8d087d333595ab6d1a8c81de68326ebe22e3575d908</open-checksum>
  <checksum type="sha256">2bb6538a1103f688e9c4384ea46ff2605698d9da270fa021f06e22fa27148148</checksum>
  <open-checksum
type="sha256">4513460fa90dd91ecd66d962d70aa42bc0566a9b5d26121693a3cc3aa1024c14</open-checksum>
  <checksum type="sha256">31720c766584dfa49055e15a185235e34a4d4f8864a604507d6ab7dadb6ccd1c</checksum>
  <open-checksum
type="sha256">2f44530f88d896f011df9809bb70dd056ebbfc9be79ea8b0000171be9dc140f6</open-checksum>


:( Am I doing something wrong or is this a bug. Where in the pulp
codebase can I change the metadata default to sha? While there appears
to be several inconsistencies and bugs this one is the only blocker.

Thanks!
Ryan




More information about the Pulp-list mailing list