Bug 1170646

Summary: apache/manifests/version.pp doesn't recognize "Rawhide"
Product: [Fedora] Fedora Reporter: Richard W.M. Jones <rjones>
Component: openstack-puppet-modulesAssignee: Lukas Bezdicka <lbezdick>
Status: CLOSED EOL QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 22CC: bnemec, gchamoul, gdubreui, ichavero, lbezdick, mmagr, social
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: openstack-packstack-2014.2-0.17.dev1462.gbb05296.fc22 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-07-19 12:28:33 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 Richard W.M. Jones 2014-12-04 14:26:23 UTC
Description of problem:

On this aarch64 Rawhide machine:

$ facter osfamily
RedHat
$ facter operatingsystem
Fedora
$ facter operatingsystemrelease
Rawhide

In /usr/share/openstack-puppet/modules/apache/manifests/version.pp
it tries to parse operatingsystemrelease as an integer, resulting
in the error:

ERROR : Error appeared during Puppet run: 192.168.122.120_prescript.pp
Error: comparison of String with 18 failed at /var/tmp/packstack/0bba6819ac064df6891d9541b36a5361/modules/apache/manifests/version.pp:15 on node packstack.home.annexia.org

I fixed this by editing .../version.pp directly, to change the
test to:

      if ($::operatingsystem == 'Fedora' and $distrelease == 'Rawhide') or ($::operatingsystem == 'Fedora' and $distrelease >= 18) or ($::operatingsystem != 'Fedora' and $distrelease >= 7) {

Version-Release number of selected component (if applicable):

openstack-packstack-2014.2-0.9.dev1359.g40f3b9d.fc22.noarch
openstack-puppet-modules-2014.2.6-1.fc22.noarch

How reproducible:

Unknown, at least once.

Steps to Reproduce:
1. yum install openstack-packstack
2. packstack --allinone

Comment 2 Jaroslav Reznik 2015-03-03 17:09:12 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 22 development cycle.
Changing version to '22'.

More information and reason for this action is here:
https://fedoraproject.org/wiki/Fedora_Program_Management/HouseKeeping/Fedora22

Comment 3 Fedora End Of Life 2016-07-19 12:28:33 UTC
Fedora 22 changed to end-of-life (EOL) status on 2016-07-19. Fedora 22 is
no longer maintained, which means that it will not receive any further
security or bug fix updates. As a result we are closing this bug.

If you can reproduce this bug against a currently maintained version of
Fedora please feel free to reopen this bug against that version. If you
are unable to reopen this bug, please file a new report against the
current release. If you experience problems, please add a comment to this
bug.

Thank you for reporting this bug and we are sorry it could not be fixed.