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

Archive failing in download.pp #60

Open
trenta opened this issue Jul 15, 2021 · 2 comments
Open

Archive failing in download.pp #60

trenta opened this issue Jul 15, 2021 · 2 comments

Comments

@trenta
Copy link
Contributor

trenta commented Jul 15, 2021

Hi,

Doing a fresh install for testing on RHEL 8 and having trouble with the archive part in https://github.com/ULHPC/puppet-slurm/blob/v1.4.3/manifests/download.pp

It downloads the file to /tmp and fails when trying to move it to /usr/local/src

Here are notice statements showing that the user and group variables are working

Notice: $archive returns slurm-20.11.8.tar.bz2
Notice: $path returns /usr/local/src/slurm-20.11.8.tar.bz2
Notice: $url returns https://download.schedmd.com/slurm//slurm-20.11.8.tar.bz2
Notice: $slurm::params::username returns slurm
Notice: $slurm::params::group returns slurm
Notice: $checksum_type returns sha1
Notice: $checksum_veriry returns (false or ! empty(dcf328865591b42b6c8f5586b3e396e6eb30dcd7))
Notice: $checksum returns dcf328865591b42b6c8f5586b3e396e6eb30dcd7

The puppet error is

Error: Could not set 'present' on ensure: wrong number of arguments (given 1, expected 0) (file: /etc/puppetlabs/code/environments/slurm_upgrade/modules/slurm/manifests/download.pp, line: 74)
Error: Could not set 'present' on ensure: wrong number of arguments (given 1, expected 0) (file: /etc/puppetlabs/code/environments/slurm_upgrade/modules/slurm/manifests/download.pp, line: 74)
Wrapped exception:
wrong number of arguments (given 1, expected 0)
Error: /Stage[main]/Slurm::Install/Slurm::Download[20.11.8]/Archive[slurm-20.11.8.tar.bz2]/ensure: change from 'absent' to 'present' failed: Could not set 'present' on ensure: wrong number of arguments (given 1, expected 0) (file: /etc/puppetlabs/code/environments/slurm_upgrade/modules/slurm/manifests/download.pp, line: 74)

Interestingly the pmix download with the same archive statement works fine.

@trenta
Copy link
Contributor Author

trenta commented Jul 15, 2021

Also the docs indicate the default checksum type is md5 where sha1 is actually used.

@trenta
Copy link
Contributor Author

trenta commented Jul 15, 2021

Also the docs and the comments in init.pp suggest the default src_checksum is ''. When I manually set that in the slurm class everything works fine.

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

1 participant