Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

puppet 7.29.0 and 8.5.0 sink my arithmetic battleship! #9268

Closed
jhoblitt opened this issue Feb 27, 2024 · 8 comments · Fixed by #9269
Closed

puppet 7.29.0 and 8.5.0 sink my arithmetic battleship! #9268

jhoblitt opened this issue Feb 27, 2024 · 8 comments · Fixed by #9269
Labels
bug Something isn't working triaged Jira issue has been created for this

Comments

@jhoblitt
Copy link
Contributor

Describe the Bug

Using a negative value with the Integer type assertion on a class causes a rather surprising pops error.

Example code which triggers the error:

  Integer[-1] $slowlog_log_slower_than                           = 10000,

from

https://github.com/voxpupuli/puppet-redis/blob/e8ca35a403653a2dac60dd93afd33cca4f9c2d2e/manifests/init.pp#L432

causes

       error during compilation: The parameter '$slowlog_log_slower_than' must be a literal type, not a Puppet::Pops::Model::AccessExpression (file: /home/jhoblitt/github/lsst-control/spec/fixtures/modules/redis/manifests/init.pp, line: 432, column: 15) on node foreman.cp.lsst.org

Expected Behavior

I expect my battleship to float!

Steps to Reproduce

Steps to reproduce the behavior:

  1. configure CI with a pessimistic version constraint which allows 7.29.0
  2. have code which uses Integer[<a filthy no good negative integer>]
  3. run ci

Environment

  • Version 7.29.0
  • gha ubuntu latest runner
@kajinamit
Copy link
Contributor

I also hit the same problem triggered by some definitions in puppet-rabbitmq ( https://github.com/voxpupuli/puppet-rabbitmq/blob/2605e305cc730f77fbb41c76a763cb471f7d66ce/manifests/init.pp#L435-L436 ), in our CI jobs which now uses puppet-agent-7.29.0-1.el9.x86_64 and CentOS 9 Stream.

Copy link

Migrated issue to PUP-12024

@fetzerms
Copy link

Just for the sake of completeness, as the title only refers to 7.29.0: This also fails on 8.5.0 (seen with rabbitmq and dhcp modules)

@joshcooper joshcooper changed the title puppet 7.29.0 sinks my arithmetic battleship! puppet 7.29.0 and 8.5.0 sinks my arithmetic battleship! Feb 28, 2024
@joshcooper joshcooper changed the title puppet 7.29.0 and 8.5.0 sinks my arithmetic battleship! puppet 7.29.0 and 8.5.0 sink my arithmetic battleship! Feb 28, 2024
openstack-mirroring pushed a commit to openstack/puppet-openstack-integration that referenced this issue Feb 29, 2024
puppet 7.29.0 introduced a regression[1], which is causing pops errors.
Let's exclude the version until the new version with an appropriate fix
is released.

[1] puppetlabs/puppet#9268

Change-Id: If1cf943890fbdeb40bb6a7a2a2d7acf44337ddf6
openstack-mirroring pushed a commit to openstack/openstack that referenced this issue Feb 29, 2024
* Update puppet-openstack-integration from branch 'master'
  to 44834b77bad05015cb21762957ca052c731625ae
  - Exclude known bad puppet version
    
    puppet 7.29.0 introduced a regression[1], which is causing pops errors.
    Let's exclude the version until the new version with an appropriate fix
    is released.
    
    [1] puppetlabs/puppet#9268
    
    Change-Id: If1cf943890fbdeb40bb6a7a2a2d7acf44337ddf6
kapouik pushed a commit to nfrance-conseil/puppet-redis that referenced this issue Feb 29, 2024
@bk-lg
Copy link

bk-lg commented Mar 4, 2024

Sry for commenting in this allready closed issue but does someone else experience this behaviour with agent 7.23 and server 7.16?
As far as I understand only agents with version 7.29.0 should be impacted but i can observice the problematic behaviour on many hosts with an agent <7.29.0.

@seqizz
Copy link

seqizz commented Mar 4, 2024

Just 2 cents, I had to remove cache folder on the master in order to make it work after downgrade to agent to 7.28

@bk-lg
Copy link

bk-lg commented Mar 4, 2024

For everyone having the same issue. If your puppet agent on your puppetserver is 7.29 this seems to impact all other agents connection to this master. Downgrade the package, clear the cache and reboot server. After that it works again.
@seqizz thank you for mentioning the cache folder!

@kajinamit
Copy link
Contributor

kajinamit commented Mar 6, 2024

May I know any update (especially ETA of the fixed version) about this problem ?

I can't access the jira ticket (maybe I need to request access ? I used to have a different account but lost access to it when I leave my prev. company)

Edit:
Ignore this. I noticed puppet 7.29.1 and 8.5.1 were already released and these contain the fix.

@fetzerms
Copy link

fetzerms commented Mar 6, 2024

For everyone having the same issue. If your puppet agent on your puppetserver is 7.29 this seems to impact all other agents connection to this master. Downgrade the package, clear the cache and reboot server. After that it works again. @seqizz thank you for mentioning the cache folder!

As 8.5.1 agent is out now, I only needed to restart the puppetmaster (8.5.0) in order to have it fix the error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working triaged Jira issue has been created for this
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants