Closed KpuCko closed 3 years ago
├── puppet-python (v3.0.1)
The manage_virtualenv_package
parameter was added to the python module in v4.1.0: https://github.com/voxpupuli/puppet-python/commit/a6b8f4dd6b6faea0b2439d42b2f2686be8037fb9
So if you update to at least puppet-python v4.1.0, this should fix it.
It seems that we are missing some acceptance test coverage in this puppetboard module if our tests are passing. Metadata says some old python module versions are acceptable, but that seems not to be the case: https://github.com/voxpupuli/puppet-puppetboard/blob/v7.0.2/metadata.json#L44
Thanks, I've upgraded the python module and all related modules as well. Unfortunately I've got the same error I had in the past, here is it:
[Fri Jan 15 10:27:04.334493 2021] [wsgi:error] [pid 19286] [remote 192.168.0.15:54635] mod_wsgi (pid=19286): Target WSGI script '/srv/puppetboard/puppetboard/wsgi.py' cannot be loaded as Python module.
[Fri Jan 15 10:27:04.334525 2021] [wsgi:error] [pid 19286] [remote 192.168.0.15:54635] mod_wsgi (pid=19286): Exception occurred processing WSGI script '/srv/puppetboard/puppetboard/wsgi.py'.
[Fri Jan 15 10:27:04.334542 2021] [wsgi:error] [pid 19286] [remote 192.168.0.15:54635] Traceback (most recent call last):
[Fri Jan 15 10:27:04.334592 2021] [wsgi:error] [pid 19286] [remote 192.168.0.15:54635] File "/srv/puppetboard/puppetboard/wsgi.py", line 14, in <module>
[Fri Jan 15 10:27:04.334676 2021] [wsgi:error] [pid 19286] [remote 192.168.0.15:54635] from puppetboard.app import app as application
[Fri Jan 15 10:27:04.334722 2021] [wsgi:error] [pid 19286] [remote 192.168.0.15:54635] File "/srv/puppetboard/puppetboard/puppetboard/app.py", line 21, in <module>
[Fri Jan 15 10:27:04.334971 2021] [wsgi:error] [pid 19286] [remote 192.168.0.15:54635] from pypuppetdb.QueryBuilder import (ExtractOperator, AndOperator,
[Fri Jan 15 10:27:04.334994 2021] [wsgi:error] [pid 19286] [remote 192.168.0.15:54635] ImportError: No module named pypuppetdb.QueryBuilder```
Thanks, I've upgraded the python module and all related modules as well. Unfortunately I've got the same error I had in the past, here is it:
[Fri Jan 15 10:27:04.334493 2021] [wsgi:error] [pid 19286] [remote 192.168.0.15:54635] mod_wsgi (pid=19286): Target WSGI script '/srv/puppetboard/puppetboard/wsgi.py' cannot be loaded as Python module. [Fri Jan 15 10:27:04.334525 2021] [wsgi:error] [pid 19286] [remote 192.168.0.15:54635] mod_wsgi (pid=19286): Exception occurred processing WSGI script '/srv/puppetboard/puppetboard/wsgi.py'. [Fri Jan 15 10:27:04.334542 2021] [wsgi:error] [pid 19286] [remote 192.168.0.15:54635] Traceback (most recent call last): [Fri Jan 15 10:27:04.334592 2021] [wsgi:error] [pid 19286] [remote 192.168.0.15:54635] File "/srv/puppetboard/puppetboard/wsgi.py", line 14, in <module> [Fri Jan 15 10:27:04.334676 2021] [wsgi:error] [pid 19286] [remote 192.168.0.15:54635] from puppetboard.app import app as application [Fri Jan 15 10:27:04.334722 2021] [wsgi:error] [pid 19286] [remote 192.168.0.15:54635] File "/srv/puppetboard/puppetboard/puppetboard/app.py", line 21, in <module> [Fri Jan 15 10:27:04.334971 2021] [wsgi:error] [pid 19286] [remote 192.168.0.15:54635] from pypuppetdb.QueryBuilder import (ExtractOperator, AndOperator, [Fri Jan 15 10:27:04.334994 2021] [wsgi:error] [pid 19286] [remote 192.168.0.15:54635] ImportError: No module named pypuppetdb.QueryBuilder```
That is different and unrelated. https://github.com/voxpupuli/puppetboard/issues/371 and https://github.com/voxpupuli/puppetboard/issues/391 appear when googling that error. :man_shrugging:
Ok, none of the linked articles solved the problem. I except when I use this puppet module with manage git and virtualenv, the module to take care of adding/removing all the things to get puppetboard working. Unfortunately this is not the true.
There is a complete mess, I'm struggling with this issue more then a year. This makes puppetboard totally useless. Dead project for me.
Hi, I also have just upgraded and have the same issue. My versions are:
mod 'puppet-puppetboard', '7.0.2'
mod 'puppet-python', '6.0.0'
I've used onceover to check and all modules are at their latest versions.
This is my unit test log:
Failures:
1) role::puppet_master on ubuntu-20.04-x86_64 is expected to compile into a catalogue without dependency cycles
Failure/Error: it { is_expected.to compile.with_all_deps }
error during compilation: Evaluation Error: Error while evaluating a Resource Statement, Class[Python]:
has no parameter named 'virtualenv'
has no parameter named 'manage_virtualenv_package' (file: /usr/src/control-repo/spec/fixtures/modules/puppetboard/manifests/init.pp, line: 188, column: 5) on node unittest.xxxxxxx.xxx
# ./spec/classes/role/puppet_master_spec.rb:19:in `block (4 levels) in <top (required)>'
Finished in 57.06 seconds (files took 5.86 seconds to load)
@mergwyn you can't use puppet-python 6.0.0 with puppet-puppetboard 7.0.2.
https://github.com/voxpupuli/puppet-puppetboard/blob/v7.0.2/metadata.json#L43-L44
puppet-puppetboard will need to be updated to be compatible with puppet-python 6.0.0.
Hello, In the past I had some issues getting puppetboard working and all dependencies. I had some comunication with the developer, but because lack of time he won't be able to help resolving this. Today I noticed that there is a new version, so I get happy because I assumed my issues has been resolved, unfortunately I've got another issues :-)
Let me show you my node manifest, and more details about the versions and OS I'm using.
All installed puppet modules:
My OS version:
Last few lines of my puppetmaster manifest:
The issue:
Can you help me with that? Thanks!