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

Wrong provider selected in Centos7 #7

Closed
tlimoncelli opened this issue Jul 30, 2015 · 9 comments
Closed

Wrong provider selected in Centos7 #7

tlimoncelli opened this issue Jul 30, 2015 · 9 comments

Comments

@tlimoncelli
Copy link

Centos7 should always pick grub2 (AFAICT). However some of our centos7 machines output this message and select grub instead. As a result, the change doesn't get made.

Warning: Found multiple default providers for kernel_parameter: grub, grub2; using grub

As a temporary measure, I'd like to know if there is a way to force is to select grub2.

As a long-term solution, I have no idea how to start debugging this. What information can I provide to help narrow this down?

@tlimoncelli
Copy link
Author

FYI: The workaround I'm using is this:

  if $::osfamily == 'RedHat' and $::operatingsystemmajrelease == '7' {
    $provider = 'grub2'
  } else {
    $provider = undef
  }

  # Disable transparent_hugepage at boot time.
  kernel_parameter { 'transparent_hugepage':
    ensure   => present,
    value    => 'never',
    provider => $provider,
  }

@BenoitLefebvre
Copy link

I was having the same error but when trying your fix with the provider, I am getting this message:

Error: Could not retrieve catalog from remote server: Error 400 on SERVER: Invalid parameter provider on Kernel_parameter[audit] at /etc/puppet/environments/benoit/modules/cn/manifests/grub.pp:35 on node puppet-test1.domain Warning: Not using cache on failed catalog Error: Could not retrieve catalog; skipping run

@haghabozorgi
Copy link

@tlimoncelli I tried that and it does not work for me. I still get the same warning
Warning: Found multiple default providers for kernel_parameter: grub2, grub; using grub2

@tlimoncelli
Copy link
Author

With the workaround I still get the warning too. However Puppet does the right thing. We still need a real fix.

@BenoitLefebvre
Copy link

This issue was fixed since @vinzent committed this change: 86ad46f

I suggest the augeasproviders_grub module version to be updated to 2.0.2 in the metadata.json file and this issue to be closed

@raphink
Copy link
Member

raphink commented Oct 27, 2015

Ah, so this is fixed in master but not released, correct?

@beddari
Copy link

beddari commented Nov 13, 2015

Yup, correct 👍

@raphink
Copy link
Member

raphink commented Nov 17, 2015

OK then I'll release now.

@raphink raphink closed this as completed Nov 17, 2015
@tzz
Copy link

tzz commented Jan 27, 2016

@vinzent @BenoitLefebvre @raphink please note that Fedora 23 also has this issue.

Simply using defaultfor :osfamily => 'Redhat', :operatingsystemrelease => 'Fedora', :operatingsystemmajrelease => [ '23' ] doesn't seem to work so I hope you know the right incantation... thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants