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

Module breaks services on Amazon Linux 2 #510

Open
jaxxstorm opened this issue Nov 28, 2020 · 1 comment
Open

Module breaks services on Amazon Linux 2 #510

jaxxstorm opened this issue Nov 28, 2020 · 1 comment
Labels
needs-feedback Further information is requested

Comments

@jaxxstorm
Copy link

jaxxstorm commented Nov 28, 2020

Affected Puppet, Ruby, OS and module versions/distributions

  • Puppet: 7.0.0
  • Ruby: 2.7.1p83
  • Distribution: Amazon Linux 2 ARM64
  • Module version: 10.2.0

How to reproduce (e.g Puppet code you use)

Include the module and set the init_style:

class { 'prometheus':
    init_style => 'systemd',
}

What are you seeing

When this module is added to my puppet configuration, it actually appears to break the service provider on other modules. Here's an example of nginx failing to start properly:

    forum-web-arm64: Notice: /Stage[main]/Nginx::Config/File[/etc/nginx/sites-enabled]/ensure: created
    forum-web-arm64: Notice: /Stage[main]/Nginx::Config/File[/etc/nginx/streams-enabled]/ensure: created
    forum-web-arm64: Notice: /Stage[main]/Nginx::Config/File[/etc/nginx/streams-available]/ensure: created
    forum-web-arm64: Notice: /Stage[main]/Nginx::Config/File[/etc/nginx/nginx.conf]/content: content changed '{sha256}24ede949f59d8c03920908a96cd73d20019d2ca998f2fb62d4cba2250790d08c' to '{sha256}2af8d5eedf889a75ad3c548eb40e61f9f8f6774f02b315877874ecd1e37a7849'
==> forum-web-arm64: Error: Services must specify a start command or a binary
==> forum-web-arm64: Error: /Stage[main]/Nginx::Service/Service[nginx]/ensure: change from 'stopped' to 'running' failed: Services must specify a start command or a binary
    forum-web-arm64: Notice: /Stage[main]/Nginx::Config/File[/etc/nginx/mime.types]/content: content changed '{sha256}7f0b9e0c2320db6882b6d0db1cb3d28c41dd4ff0d1c6e17798ff19668f412598' to '{sha256}64956c0bfe2399b9c26db37d2731ecd221bf5c0b5d47e7f0ca99461c51c4e5cf'

What behaviour did you expect instead

Other services to start correctly

Any additional information you'd like to impart

It appears the amazon linux 2 service provider isn't detected correctly, so I have to explicitly set the init_style

If I remove the puppet-prometheus module from my modulepath, everything works correctly. I can't figure out where this is coming from.

@bastelfreak
Copy link
Member

hey, thanks for raising this issue. just from your output it's hard to say if the prometheus module is triggering this or another side effect. However, I just fixed a bug that messed around with the init system detection: #511. can you see if this fixes your issue?

@TheMeier TheMeier added the needs-feedback Further information is requested label May 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs-feedback Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants