Bug 946966
Summary: | Pulp doesn't support puppet module versioning puppet does. | ||
---|---|---|---|
Product: | [Retired] Pulp | Reporter: | rush.ru |
Component: | puppet-support | Assignee: | Michael Hrivnak <mhrivnak> |
Status: | CLOSED CURRENTRELEASE | QA Contact: | Preethi Thomas <pthomas> |
Severity: | high | Docs Contact: | |
Priority: | medium | ||
Version: | 2.1 Beta | CC: | chrungoo.abhay, james.defelice, jason.dobies, rbarlow |
Target Milestone: | --- | Keywords: | Triaged |
Target Release: | 2.3.0 | ||
Hardware: | All | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2013-12-09 14:30:16 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: | |
Embargoed: |
Description
rush.ru
2013-04-01 04:47:55 UTC
It should be noted that the OP graciously submitted a pull request for this: https://github.com/pulp/pulp_puppet/pull/47 It will require a bit of testing before being merged, but should be a fairly simple enhancement. Solving this with a slightly different change than the OP suggested, plus tests to confirm. https://github.com/pulp/pulp_puppet/pull/52 build: 2.2.0-0.2.beta. Some of these were likely included in an earlier build but found them this time with a better BZ query. verified [root@hp-dl360g6-01 ~]# rpm -q pulp-server pulp-server-2.2.0-0.2.beta.fc18.noarch [root@hp-dl360g6-01 ~]# [root@hp-dl360g6-01 ~]# pulp-admin puppet repo uploads upload --repo-id bz946966 --file puppetlabs-apache-0.5.0-rc1.tar.gz -v +----------------------------------------------------------------------+ Unit Upload +----------------------------------------------------------------------+ Extracting necessary metadata for each request... [==================================================] 100% Analyzing: puppetlabs-apache-0.5.0-rc1.tar.gz ... completed Files to be uploaded: puppetlabs-apache-0.5.0-rc1.tar.gz Creating upload requests on the server... [==================================================] 100% Initializing: puppetlabs-apache-0.5.0-rc1.tar.gz ... completed Starting upload of selected units. If this process is stopped through ctrl+c, the uploads will be paused and may be resumed later using the resume command or cancelled entirely using the cancel command. Uploading: puppetlabs-apache-0.5.0-rc1.tar.gz [==================================================] 100% 28866/28866 bytes ... completed Importing into the repository... ... completed Deleting the upload request... ... completed [root@hp-dl360g6-01 ~]# pulp-admin puppet repo modules --repo-id bz946966 Name: apache Version: 0.5.0-rc1 Author: puppetlabs Dependencies: Name: puppetlabs/firewall Version Requirement: >= 0.0.4 Name: puppetlabs/stdlib Version Requirement: >= 2.2.1 Description: Module for Apache configuration License: Apache 2.0 Project Page: https://github.com/puppetlabs/puppetlabs-apache Source: git://github.com/puppetlabs/puppetlabs-apache.git Summary: Puppet module for Apache Tag List: None Types: Doc: Manage Apache 2 modules Name: a2mod Parameters: Doc: The name of the module to be managed Name: name Doc: The name of the .so library to be loaded Name: lib Doc: Module identifier string used by LoadModule. Default: module-name_module Name: identifier Properties: Doc: The basic property that the resource should be in. Valid values are `present`, `absent`. Name: ensure Providers: Doc: Manage Apache 2 modules on Debian and Ubuntu Required binaries: `a2enmod`, `a2dismod`. Default for `operatingsystem` == `debian, ubuntu`. Name: a2mod Doc: Manage Apache 2 modules on Gentoo Default for `operatingsystem` == `gentoo`. Name: gentoo Doc: Dummy provider for A2mod. Fake nil resources when there is no crontab binary available. Allows puppetd to run on a bootstrapped machine before a Cron package has been installed. Workaround for: http://projects.puppetlabs.com/issues/2384 Name: modfix Doc: Manage Apache 2 modules on RedHat family OSs Default for `osfamily` == `redhat`. Name: redhat While upload works, download is still an issue [root@puppetrepo modules]# rpm -q pulp-server pulp-server-2.2.0-0.25.beta.el6.noarch [root@puppet-master modules]# puppet module install server-oasis Notice: Preparing to install into /etc/puppet/modules ... Notice: Downloading from http://.:puppetforge@puppetrepo.server.com ... Error: Could not execute operation for 'server/oasis' The server being queried was http://.:puppetforge@puppetrepo.server.com The HTTP response we received was '500 Internal Server Error' Check the author and module names are correct. [root@puppet-master modules]# puppet module install server/oasis -v 0.0.3-20130823150537 Notice: Preparing to install into /etc/puppet/modules ... Notice: Downloading from http://.:puppetforge@puppetrepo.server.com ... Notice: Installing -- do not interrupt ... /etc/puppet/modules âââ server-oasis (v0.0.3-20130823150537) [root@puppet-master modules]# puppet module upgrade server/oasis Notice: Preparing to upgrade 'server-oasis' ... Notice: Found 'server-oasis' (v0.0.3-20130823150537) in /etc/puppet/modules ... Notice: Downloading from http://.:puppetforge@puppetrepo.server.com ... Error: Could not upgrade module 'server-oasis' (v0.0.3-20130823150537 -> latest) Module 'server-oasis' does not exist on http://.:puppetforge@puppetrepo.server.com [root@puppet-master modules]# puppet module upgrade server/oasis -v 0.0.5-20130823172126 Error: puppet module upgrade takes 1 argument, but you gave 2 Error: Try 'puppet help module upgrade' for usage [root@puppet-master modules]# puppet module install server/oasis -v 0.0.5-20130823172126 Notice: Preparing to install into /etc/puppet/modules ... Error: Could not install module 'server-oasis' (v0.0.5-20130823172126) Module 'server-oasis' (v0.0.3-20130823150537) is already installed Use `puppet module upgrade` to install a different version Use `puppet module install --force` to re-install only this module [root@puppet-master modules]# puppet module install server/oasis -v 0.0.5-20130823172126 --force Notice: Preparing to install into /etc/puppet/modules ... Notice: Downloading from http://.:puppetforge@puppetrepo.server.com ... Notice: Installing -- do not interrupt ... /etc/puppet/modules âââ server-oasis (v0.0.5-20130823172126) Resolved problem from comment 5, created pull request: https://github.com/pulp/pulp_puppet/pull/64 [root@project2 modules]# puppet module install companyname-project --module_repository http://.:project-snapshots-puppet@node251.mgmt.dev Notice: Preparing to install into /etc/puppet/modules ... Notice: Downloading from http://.:project-snapshots-puppet@node251.mgmt.dev ... Notice: Installing -- do not interrupt ... /etc/puppet/modules └── companyname-project (v0.0.6-20130827151152) Dang! you're fast. ;) https://github.com/pulp/pulp_puppet/pull/65 PUBLISH puppet-test-0.0.2-rc1 [root@puppet-master2 tmp]# puppet module install puppet/test --target-dir=/tmp/mods Notice: Preparing to install into /tmp/mods ... Notice: Downloading from http://.:puppetforge@puppetrepo.server.com ... Notice: Installing -- do not interrupt ... /tmp/mods âââ puppet-test (v0.0.2-rc1) PUBLISH puppet-test-0.0.2-rc1-11 [root@puppet-master2 tmp]# rm -rf /tmp/mods [root@puppet-master2 tmp]# puppet module install puppet/test --target-dir=/tmp/mods Notice: Preparing to install into /tmp/mods ... Notice: Created target directory /tmp/mods Notice: Downloading from http://.:puppetforge@puppetrepo.server.com ... Notice: Installing -- do not interrupt ... /tmp/mods âââ puppet-test (v0.0.2-rc1-11) PUBLISH puppet-test-0.0.2 [root@puppet-master2 tmp]# rm -rf /tmp/mods [root@puppet-master2 tmp]# puppet module install puppet/test --target-dir=/tmp/mods Notice: Preparing to install into /tmp/mods ... Notice: Created target directory /tmp/mods Notice: Downloading from http://.:puppetforge@puppetrepo.server.com ... Notice: Installing -- do not interrupt ... /tmp/mods âââ puppet-test (v0.0.2) Thanks for the pull requests! I'm marking this back to assigned so one of us can take a look at them and get it merged. Unfortunately, we are a little too close to the 2.2 release for us to merge this fix for that one, so I'm also marking this ticket for 2.3. build: 2.3.0-0.10.alpha moving to verified puppet module install puppetlabs-apache --version 0.5.0-rc1 --module_repository http://pulp-client:.@pulp-v2-server.usersys.redhat.com --ignore-dependencies Notice: Preparing to install into /etc/puppet/modules ... Notice: Downloading from http://pulp-client:.@pulp-v2-server.usersys.redhat.co Pulp 2.3 released. |