Uploaded image for project: 'oVirt - virtualization made easy'
  1. OVIRT-651

fix deploy.sh script on resources.ovirt.org to deploy ovirt-release rpm

    Details

    • Type: Bug
    • Status: Done
    • Priority: Highest
    • Resolution: Won't Fix
    • Affects Version/s: None
    • Fix Version/s: OVIRT-INFRA-NOV-2016
    • Component/s: oVirt CI
    • Labels:
      None

      Description

      Currently the deploy to experimental uses a deploy.sh script under:
      resources.ovirt.org:/home/deploy-ovirt-experimental/ dir which is triggered
      by the deploy job [1] (for master in this case, but applies to all versions).

      The current code [2] doesn't work for non versioned RPMs like ovirt-release [3] and fails on [4].

      repoman knows already how to handle this and sbonazolla used it on another flow.

      The relevant params in the conf is:
      store.RPMStore.to_all_distros=ovirt-release*

      the param: on_wrong_distro with 'fail' as default value might also be related, and should probably have 'copy_to_all' value.

      See [5] for full doc on repoman.

      This is currently blocking from NG & Appliance to use the tested repo since they need the 'ovirt-release' rpm to work and its not deployed to experimental due to this.

      Also, once this is working we can probably drop the old publish artifacts jobs and use the experimental repo instead (we'll rename it to snapshot after softlinking the nightlies repos for a test period)

      [1] http://jenkins.ovirt.org/job/deploy-to-ovirt_experimental_master
      [2] repoman \
      --verbose \
      --temp-dir generate-in-repo \
      --option main.allowed_repo_paths=/srv/resources/repos/ovirt/experimental \
      --create-latest-repo \
      '/srv/resources/repos/ovirt/experimental' \
      add conf:stdin
      [3] http://jenkins.ovirt.org/job/ovirt-release_master_build-artifacts-el7-x86_64/
      [4] http://jenkins.ovirt.org/job/deploy-to-ovirt_experimental_master/1265/console
      2016-07-25 05:32:03,693::INFO::repoman.cmd.do_add:353::
      2016-07-25 05:32:03,693::INFO::repoman.common.stores.RPM._save:269::Saving new added rpms into /srv/resources/repos/ovirt/experimental/master/ovirt-release_el7_75
      Traceback (most recent call last):
      File "/usr/bin/repoman", line 10, in <module>
      sys.exit(main())
      File "/usr/lib/python2.7/site-packages/repoman/cmd.py", line 455, in main
      exit_code = do_add(args, config, repo)
      File "/usr/lib/python2.7/site-packages/repoman/cmd.py", line 355, in do_add
      repo.save()
      File "/usr/lib/python2.7/site-packages/repoman/common/repo.py", line 42, in _func
      return func(self, *args, **kwargs)
      File "/usr/lib/python2.7/site-packages/repoman/common/repo.py", line 201, in save
      store.save()
      File "/usr/lib/python2.7/site-packages/repoman/common/stores/RPM/_init_.py", line 261, in save
      self._save(**args)
      File "/usr/lib/python2.7/site-packages/repoman/common/stores/RPM/_init_.py", line 280, in _save
      'No distros found in the repo and no packages with '
      Exception: No distros found in the repo and no packages with any distros added.

      [5] http://repoman.readthedocs.io/

        Attachments

          Activity

            People

            • Assignee:
              amarchuk Anton Marchukov
              Reporter:
              eedri Eyal Edri
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: