Uploaded image for project: 'Community Package Repository'
  1. Community Package Repository
  2. CPR-275

Beaker cannot install latest repo configs from nightlies

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Closed
    • Priority: Normal
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: 2017/08/02
    • Component/s: None
    • Labels:
      None
    • Template:

      Error rendering 'issue-templates-customfield'. Please contact your Jira administrators.

    • Story Points:
      3
    • Sprint:
      RE 2016-02-10

      Description

      Beaker is unable to install latest repo configs from nightlies.puppetlabs.com because it assumes the the URL is of the form (for el7):

      <project>/<version>/repo_configs/rpm/pl-<project>-<version>-el-7-x86_64.repo
      

      But it's not for nightlies:

      http://nightlies.puppetlabs.com/puppetserver-latest/repo_configs/rpm/pl-puppetserver-latest-el-7-x86_64.repo
      

      Note the nightlies URL uses puppetserver-latest as the project name, but the .repo file doesn't contain any version info, e.g. pl-puppetserver-latest-el-7-x86_64.repo. For example, trying:

       install_puppetlabs_dev_repo(master, 'puppetserver', 'latest', nil, :dev_builds_url => 'http://nightlies.puppetlabs.com')
      

      Will try to curl from:

      Fetching: http://nightlies.puppetlabs.com/puppetserver/latest/repo_configs/rpm/pl-puppetserver-latest-el-7-x86_64.repo
      

      which fails because of puppetserver/latest.

      Trying:

          install_puppetlabs_dev_repo(master, 'puppetserver-latest', nil, nil, :dev_builds_url => 'http://nightlies.puppetlabs.com')
      

      Also fails:

      http://nightlies.puppetlabs.com/puppetserver-latest//repo_configs/rpm/pl-puppetserver-latest--el-7-x86_64.repo
      

      because there's an extra dash in pl-puppetserver-latest--el-7-x86_64.repo.

      It seems we could add a method to beaker or an option to install_puppetlabs_dev_repo to install latest. Alternatively, we could modify packaging so it ships nightlies in a way that is consistent with other dev builds. Specifically, what if we used "latest" as the version and shipped to:

      http://nightlies.puppetlabs.com/puppetserver/latest/repo_configs/rpm/pl-puppetserver-latest-el-7-x86_64.repo
      

      Then beaker would already do the right thing and none of the calling code, e.g. puppet acceptance would need to change.

      /cc Michael Stahnke

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              richard.sherman Rick Sherman
              Reporter:
              josh Josh Cooper
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Zendesk Support