-
Notifications
You must be signed in to change notification settings - Fork 183
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
puppetserver_gem failing on FOSS master #146
Comments
Just to ensure: the error occurs on the first run of |
That's correct. |
Are you bootstrapping a puppet server? Usually these gems are installed by the |
Indeed I am booting a puppet server (hence the title ;). After the first run, the three gems have been installed, but by Check this out:
After running
|
Please try the following:
I suppose that at the first puppet apply run the |
No dice. I do see something different in the log, where before
|
OK. Thanks for helping with debugging. One more try (I suppose it has to do with orders): hieradata/role/puppetserver.yaml
Then run again: Switch order of profile::puppet::foss_master and profile::puppet::gems |
Sorry to say, that didn't help either. For the record, I'm running:
I also tried without |
You don't need to run Please change bin/papply.sh:
See line 10, add /opt/puppetlabs/bin to PATH. |
Nice idea - I'd seen that last night when I was mv'ing NB I don't see that
|
Can we try one more thing (I doubt that this is working): In site/profile/manifests/puppet/gems.pp add line 34:
|
As you suggested, it didn't work. It does work when I use Terraform to create a puppet master in AWS, as opposed to doing it on Vagrant. So strange. Here's my Vagrantfile:
The executed parts of
|
There is one last thing we can test: install puppetserver package prior running papply.sh. |
Can you provide your terraform snippet? |
Indeed, installing puppetserver first solved the issue! Do you regard this as a "proper" fix, or is there something else to do? Terraform is pretty boring, like this:
|
This has to do with provider pre-fetching. On initial puppet apply run the provider checks its functionality and marks itself as non-functional. The provider remains in this state during the whole run, even when the required dependency is installed during the run. |
Mention it where? Also, it's not great that the first run leaves errors. For example, it makes Terraform mark the resource as tainted unless a flag is sent to ignore that, which may hide other failures. |
@tuxmea In our use case, it's not just that "bootstrapping puppetserver requires papply.sh to run twice.", it requires:
Hope that is useful, should we leave this open until it's documented (or fixed if you consider this a bug)? |
I would like to keep this open. There are two ways how to deal with this issue:
|
* Create CODE_OF_CONDUCT.md Foss environment works Force bundle run before rspec tests in gitlab Puppetfile cleanup Syntax fix Puppet-lint gems from rubygems Foss vagrant env based on Ubuntu1604 Add full path to Jenkinsfile bundle * starting works on foss setup * switch from PUPPET_GEM_VERSION to installed puppet version * remove pry * smarter handling of installing specific puppet versions * run acceptance tests also for newer puppet versions * reusing the PUPPET_GEM_VERSION environment variable which is also taken for rspec-puppet. * switch from PUPPET_GEM_VERSION to installed puppet version * remove pry * smarter handling of installing specific puppet versions * Add full path to Jenkinsfile bundle * starting works on foss setup * Works on foss vagrant env + docs * Fixed wrong hiera files chnagesdetection in Dangerfile * Fix Typo * Temporarily gemove trouble Gemfile.local Syntax fix for bin/puppet_job_run.sh gitlab ci integration tests Removed spec/acceptance/psick_spec.rb Test puppetmaster role with beaker Foss environment works Added domain fact to acceptance test spec Run puppet jobs in CI only for local domain Saner message in Dangerfile Add docker to ostest-ubuntu1604.lab.psick.io Lints for Codacy Testing pdk on travis #230 Tunong pdk tests in .travis.yml Deploy modules in travis Travis fixes try pdk on travis without error suppression
Hi, I get the following errors. Note the weird two spaces between the words "file" and "does". If I run
bin/papply.sh
again, everything works.I have noticed that if I move
puppetserver/lib/puppet/provider/package/puppetserver_gem.rb
out of the way, it seems to work first time, but I'm not sure if I'm breaking something else by doing that. Any clues?The text was updated successfully, but these errors were encountered: