| Summary: | TraceBack while adding ovirt-release-master | ||
|---|---|---|---|
| Product: | [Community] Repoman | Reporter: | Sandro Bonazzola <sbonazzo> |
| Component: | Core | Assignee: | David Caro <dcaroest> |
| Status: | CLOSED NOTABUG | QA Contact: | David Caro <dcaroest> |
| Severity: | urgent | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 1.2 | CC: | eedri |
| Target Milestone: | 1.3 | Keywords: | Regression |
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2016-01-26 09:50:54 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: | |
|
Description
Sandro Bonazzola
2016-01-26 09:17:55 UTC
That's to be expected, as the rpms are malformed (they have no distro in the release at all). You can bypass this adding the option: > repoman --with-sources /path/to/repo add --option stores.RPMStore.on_wrong_distro=warn ... To do nothing about it (the rpms will not be pulled) or if you want to pull them to all the distros in the repo: > repoman --with-sources add /path/to/repo --option stores.RPMStore.on_wrong_distro=copy_to_all For more info: http://repoman.readthedocs.org/en/latest/repoman.common.stores.RPM.html#repoman.common.stores.RPM.RPMStore Doesn't work: # repoman --option stores.RPMStore.on_wrong_distro=copy_to_all --with-sources /var/www/html/pub/ovirt-master-snapshot-static add http://jenkins.ovirt.org/job/ovirt-release_master_create-rpms_merged/21127/artifact/exported-artifacts/ovirt-node-ng-image-update-placeholder-4.0.0-0.0.master.noarch.rpm http://jenkins.ovirt.org/job/ovirt-release_master_create-rpms_merged/21127/artifact/exported-artifacts/ovirt-release-master-4.0.0-0.0.master.noarch.rpm http://jenkins.ovirt.org/job/ovirt-release_master_create-rpms_merged/21127/artifact/exported-artifacts/ovirt-release-master-4.0.0-0.0.master.src.rpm http://jenkins.ovirt.org/job/ovirt-release_master_create-rpms_merged/21127/artifact/exported-artifacts/ovirt-release-master-host-node-4.0.0-0.0.master.noarch.rpm 2016-01-26 09:39:24,625::INFO::repoman.common.stores.RPM::Loading repo /var/www/html/pub/ovirt-master-snapshot-static 2016-01-26 09:39:24,678::ERROR::root::Malformed release string on /var/www/html/pub/ovirt-master-snapshot-static/rpm/el7/noarch/ovirt-node-ng-image-update-placeholder-4.0.0-0.0.master.noarch.rpm Traceback (most recent call last): File "/bin/repoman", line 10, in <module> sys.exit(main()) File "/usr/lib/python2.7/site-packages/repoman/cmd.py", line 197, in main repo = Repo(path=path, config=config) File "/usr/lib/python2.7/site-packages/repoman/common/repo.py", line 76, in __init__ if key in self.stores or 'all' in self.stores File "/usr/lib/python2.7/site-packages/repoman/common/stores/RPM/__init__.py", line 160, in __init__ hidelog=True, File "/usr/lib/python2.7/site-packages/repoman/common/stores/RPM/__init__.py", line 178, in add_artifact self.add_rpm(pkg, **args) File "/usr/lib/python2.7/site-packages/repoman/common/stores/RPM/__init__.py", line 198, in add_rpm distro_reg=self.config.get('distro_reg') File "/usr/lib/python2.7/site-packages/repoman/common/stores/RPM/RPM.py", line 137, in __init__ self.distro = self.get_distro(self.release, distro_reg) File "/usr/lib/python2.7/site-packages/repoman/common/stores/RPM/RPM.py", line 189, in get_distro raise WrongDistroException('Unknown distro for %s' % release) repoman.common.stores.RPM.RPM.WrongDistroException: Unknown distro for 0.0.master Ok so this is by design. Correct command line is: repoman --option store.RPMStore.on_wrong_distro=copy_to_all --with-sources /var/www/html/pub/ovirt-master-snapshot-static add \ http://jenkins.ovirt.org/job/ovirt-release_master_create-rpms_merged/21127/artifact/exported-artifacts/ovirt-node-ng-image-update-placeholder-4.0.0-0.0.master.noarch.rpm \ http://jenkins.ovirt.org/job/ovirt-release_master_create-rpms_merged/21127/artifact/exported-artifacts/ovirt-release-master-4.0.0-0.0.master.noarch.rpm \ http://jenkins.ovirt.org/job/ovirt-release_master_create-rpms_merged/21127/artifact/exported-artifacts/ovirt-release-master-4.0.0-0.0.master.src.rpm \ http://jenkins.ovirt.org/job/ovirt-release_master_create-rpms_merged/21127/artifact/exported-artifacts/ovirt-release-master-host-node-4.0.0-0.0.master.noarch.rpm Thanks |