Jira (PUP-11724) Unable to target dnfmodule stream named `latest`

5 views
Skip to first unread message

Pat Riehecky (Jira)

unread,
Jan 24, 2023, 12:51:01 PM1/24/23
to puppe...@googlegroups.com
Pat Riehecky created an issue
 
Puppet / Bug PUP-11724
Unable to target dnfmodule stream named `latest`
Issue Type: Bug Bug
Assignee: Unassigned
Created: 2023/01/24 9:50 AM
Priority: Normal Normal
Reporter: Pat Riehecky

Puppet Version: 7.21.0
Puppet Server Version: 7.12
OS Name/Version: AlmaLinux 9

NVidia has a module stream named `latest` which I'd like to use.  The documentation the `dnfmodule` provide indicates I should set the target stream under the `ensure` property.  Which as you'd expect makes things a bit weird.  Their repo contains a stream called `latest-dkms` which ends up getting targeted instead as the `ensure` is omitted.

 

Describe steps to reproduce…

Add yum repo : https://developer.download.nvidia.com/compute/cuda/repos/rhel$releasever/$basearch/

```

puppet apply -e "

package

{'nvidia-driver':   ensure   => 'latest',   flavor   => 'fm',   provider => 'dnfmodule', }

"

dnf module list

```

Desired Behavior:

Some sort of way to target the stream named "latest"

Actual Behavior:

Please take a moment and attach any relevant log output and/or manifests. This will help us immensely when troubleshooting the issue.

Examples:
Run puppet agent with --test --trace --debug

```

Info: Using environment 'production'
Info: Applying configuration version '1674582424'
Debug: Prefetching dnfmodule resources for package
Debug: Executing: '/usr/bin/dnf --version'
Debug: Executing: '/usr/bin/dnf module list -d 0 -e 1'
Debug: Executing: '/usr/bin/dnf module list -d 0 -e 1'
Debug: Executing: '/usr/bin/dnf module install -d 0 -e 1 -y nvidia-driver/fm'
Notice: /Stage[main]/Main/Package[nvidia-driver]/ensure: created
Debug: /Package[nvidia-driver]: The container Class[Main] will propagate my refresh event
Debug: Class[Main]: The container Stage[main] will propagate my refresh event
Debug: Finishing transaction 11940
Debug: Storing state
Info: Creating state file /opt/puppetlabs/puppet/cache/state/state.yaml
Debug: Pruned old state cache entries in 0.00 seconds
Debug: Stored state in 0.00 seconds
Notice: Applied catalog in 97.96 seconds

```

Add Comment Add Comment
 
This message was sent by Atlassian Jira (v8.20.11#820011-sha1:0629dd8)
Atlassian logo

Pat Riehecky (Jira)

unread,
Jan 24, 2023, 1:01:03 PM1/24/23
to puppe...@googlegroups.com
Pat Riehecky commented on Bug PUP-11724
 
Re: Unable to target dnfmodule stream named `latest`

From a workflow perspective, omitting the version ensures the default stream is installed rather than the highest versioned one.  That is, to my mind, not fulfilling the spirit of the "latest".

Tony Vu (Jira)

unread,
Jan 31, 2023, 4:40:07 PM1/31/23
to puppe...@googlegroups.com
Tony Vu commented on Bug PUP-11724

Thanks for submitting this Pat Riehecky ; we have another ticket, PUP-11588 that is tracking this issue. I'm going to close this one out and feel free to follow that one to track its progress.

Reply all
Reply to author
Forward
0 new messages