Bug 1186353
Summary: | Composite content view publish puppet module by specified version (uuid) not working | ||||||
---|---|---|---|---|---|---|---|
Product: | Red Hat Satellite | Reporter: | Peter Vreman <peter.vreman> | ||||
Component: | Content Management | Assignee: | Justin Sherrill <jsherril> | ||||
Status: | CLOSED ERRATA | QA Contact: | Og Maciel <omaciel> | ||||
Severity: | high | Docs Contact: | |||||
Priority: | unspecified | ||||||
Version: | 6.0.7 | CC: | bbuckingham, bkearney, cwelton, jsherril, omaciel | ||||
Target Milestone: | Unspecified | Keywords: | Triaged | ||||
Target Release: | Unused | ||||||
Hardware: | Unspecified | ||||||
OS: | Unspecified | ||||||
URL: | http://projects.theforeman.org/issues/9131 | ||||||
Whiteboard: | |||||||
Fixed In Version: | Doc Type: | Bug Fix | |||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | Environment: | ||||||
Last Closed: | 2015-08-12 05:22:19 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: | |||||||
Bug Depends On: | |||||||
Bug Blocks: | 1122832 | ||||||
Attachments: |
|
Description
Peter Vreman
2015-01-27 13:51:24 UTC
Created redmine issue http://projects.theforeman.org/issues/9131 from this bug Moving to POST since upstream bug http://projects.theforeman.org/issues/9131 has been closed ------------- Justin Sherrill Applied in changeset commit:katello|8ad61197895c1ad3d9494000dc24d2799fcc0e96. There are no tickets associated to this, moving to 6.1 Created attachment 999017 [details]
Update version of content view
The attached screenshot shows that in order for your published composite content view to get access to newer versions of a puppet module, you need to make sure that you edit the existing content view with the newer puppet module and then re-publish your composite content view.
* Created a custom product a custom puppet based repository * Added 2 versions of the puppet lap apache module to said repository * Created content view PuppetCV and added version 1.0.0 of apache module * Published PuppetCV * Created a composite content view named Tutti * Added PuppetCV to Tutti and published Tutti Filesystem shows: # cat /etc/puppet/environments/KT_Default_Organization_Library_Tutti_9/modules/apache/metadata.json |grep version "version": "1.0.0", "version_requirement": "3.2.x" "version_requirement": "3.x" "version_requirement": ">= 2.4.0" "version_requirement": ">= 1.0.0" "manifests/version.pp": "81d6349fd3f4c80e89c8b73c724895d9", "spec/acceptance/version.rb": "a7d6f86a6c457c29ca36810f3e722a99", * Updated PuppetCV and updated the version of the apache module to version 1.3.0 * Published PuppetCV again * Updated Tutti to use newer version of PuppetCV and republished Tutti Filesystem shows: # cat /etc/puppet/environments/KT_Default_Organization_Library_Tutti_9/modules/apache/metadata.json |grep version "version": "1.0.0", "version_requirement": "3.2.x" "version_requirement": "3.x" "version_requirement": ">= 2.4.0" "version_requirement": ">= 1.0.0" "manifests/version.pp": "81d6349fd3f4c80e89c8b73c724895d9", "spec/acceptance/version.rb": "a7d6f86a6c457c29ca36810f3e722a99", Therefore it doesn't look like the composite content view contains the newer version of apache. Failed on Satellite-6.1.0-RHEL-6-20150303.0 Og, given your steps you followed here: * Created a custom product a custom puppet based repository * Added 2 versions of the puppet lap apache module to said repository * Created content view PuppetCV and added version 1.0.0 of apache module * Published PuppetCV * Created a composite content view named Tutti * Added PuppetCV to Tutti and published Tutti i would not expect the composite to have a 'newer' version of apache as version 1.0.0 is in the PuppetCV component. Did you miss writing a step in the list? ohh i missed the following steps: * Updated PuppetCV and updated the version of the apache module to version 1.3.0 * Published PuppetCV again * Updated Tutti to use newer version of PuppetCV and republished Tutti will try to reproduce Og, The issue you are hitting is with: https://pulp.plan.io/issues/663 which should be resolved in pulp 2.6.1. However since there is no BZ opened it has not been cherrypicked. I have opened https://bugzilla.redhat.com/show_bug.cgi?id=1218727 Please try again to reproduce with a module that does not contain a symlink. -Justin Followed the same steps as described on comment #7 except that I used versions 1.0.0 and 1.4.1 of the puppetlabs/apache module: [root@ibm-x3250m4-06 ~]# cat /etc/puppet/environments/KT_Default_Organization_Library_Tutti_6/modules/apache/metadata.json | grep version "version": "1.0.0", "version_requirement": "3.2.x" "version_requirement": "3.x" "version_requirement": ">= 2.4.0" "version_requirement": ">= 1.0.0" "manifests/version.pp": "81d6349fd3f4c80e89c8b73c724895d9", "spec/acceptance/version.rb": "a7d6f86a6c457c29ca36810f3e722a99", [root@ibm-x3250m4-06 ~]# [root@ibm-x3250m4-06 ~]# [root@ibm-x3250m4-06 ~]# [root@ibm-x3250m4-06 ~]# cat /etc/puppet/environments/KT_Default_Organization_Library_Tutti_6/modules/apache/metadata.json | grep version "version": "1.4.1", "version_requirement": ">= 3.7.0 < 4.0.0" "version_requirement": "3.x" {"name":"puppetlabs/stdlib","version_requirement":">= 2.4.0 < 5.0.0"}, {"name":"puppetlabs/concat","version_requirement":">= 1.1.1 < 2.0.0"} also GET /katello/api/v2/content_views/5/content_view_puppet_modules where 5 is the content view ID for my PuppetCV content view shows that version 1.4.1 is the version present: {"total":1,"subtotal":1,"page":1,"per_page":20,"search":null,"sort":{"by":null,"order":null},"results":[{"id":3,"uuid":"703b6d3b-6e0e-44cb-8886-8864a5937c08","name":"apache","author":"puppetlabs","created_at":"2015-05-21T21:24:37Z","updated_at":"2015-05-21T21:28:46Z","computed_version":"1.4.1","puppet_module":{"id":"703b6d3b-6e0e-44cb-8886-8864a5937c08","name":"apache","version":"1.4.1","author":"puppetlabs","summary":"Installs, configures, and manages Apache virtual hosts, web services, and modules.","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","dependencies":[{"name":"puppetlabs/stdlib","version_requirement":">= 2.4.0 < 5.0.0"},{"name":"puppetlabs/concat","version_requirement":">= 1.1.1 < 2.0.0"}],"checksums":[],"tag_list":null,"repoids":["Default_Organization-Puppet_CV-2_0","Default_Organization-Puppet_Modules-Apache","Default_Organization-Library-Tutti","Default_Organization-Tutti-2_0","Default_Organization-Library-Puppet_CV"],"repositories":[{"id":37,"name":"Apache","label":"Apache","organization":{"name":"Default Organization","label":"Default_Organization","id":1},"created_at":"2015-05-21T21:22:47Z","updated_at":"2015-05-21T21:22:50Z","content_type":"puppet","docker_upstream_name":null,"unprotected":true,"full_path":"http://ibm-x3250m4-06.lab.eng.rdu2.redhat.com/pulp/repos/Default_Organization/Library/custom/Puppet_Modules/Apache","checksum_type":null,"container_repository_name":null,"url":null,"relative_path":"Default_Organization/Library/custom/Puppet_Modules/Apache","major":null,"minor":null,"gpg_key_id":null,"content_id":"1432243368904","content_view_version_id":1,"library_instance_id":null,"product_type":"custom","promoted":false,"content_counts":{"docker_image":0,"docker_tag":0,"rpm":0,"package":0,"package_group":null,"erratum":0,"puppet_module":2},"permissions":{"deletable":true},"content_view_environments":[],"last_sync_words":null,"":null,"product":{"id":123,"cp_id":"1432216959725","name":"Puppet Modules","sync_plan":null},"environment":{"id":1},"last_sync":null}]}}]} This bug is slated to be released with Satellite 6.1. Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHSA-2015:1592 |