Jira (PUP-11635) dnfmodule provider fails, preventing updating catalog

2022-10-11 Thread Vadym Chepkov (Jira)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Vadym Chepkov commented on  PUP-11635  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: dnfmodule provider fails, preventing updating catalog   
 

  
 
 
 
 

 
 I tested on puppet 7 and it works fine, I guess the problem is confined to puppet 6  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

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

 
   
 

  
 

  
 

   





-- 
You received this message because you are subscribed to the Google Groups "Puppet Bugs" group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-bugs/JIRA.470041.1664551063000.45128.1665509580043%40Atlassian.JIRA.


Jira (PUP-11635) dnfmodule provider fails, preventing updating catalog

2022-10-04 Thread Josh Cooper (Jira)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Josh Cooper commented on  PUP-11635  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: dnfmodule provider fails, preventing updating catalog   
 

  
 
 
 
 

 
 This seems to work as expected for me. Resources that depend on the package resource will be marked skipped, while unrelated resources that come after should still be applied:  
 
 
 
 
 [root@petty-dramatist ~]# cat /etc/yum.repos.d/choria_release.repo   
 
 
 [choria_release]  
 
 
 name=Choria Orchestrator Releases  
 
 
 mirrorlist=https://packagecloud.io/choria/yum/release/el/$releasever/$basearch.txt  
 
 
 enabled=True  
 
 
 gpgcheck=False  
 
 
    
 
 
 [root@petty-dramatist ~]# cat /etc/puppetlabs/code/environments/production/manifests/site.pp  
 
 
 package { 'virt':  
 
 
   ensure => installed  
 
 
 }  
 
 
 notify { 'dependent':  
 
 
   require => Package['virt']  
 

Jira (PUP-11635) dnfmodule provider fails, preventing updating catalog

2022-10-04 Thread Vadym Chepkov (Jira)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Vadym Chepkov updated an issue  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Puppet /  PUP-11635  
 
 
  dnfmodule provider fails, preventing updating catalog   
 

  
 
 
 
 

 
Change By: 
 Vadym Chepkov  
 
 
Attachment: 
 puppet-debug.log  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

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

 
   
 

  
 

  
 

   





-- 
You received this message because you are subscribed to the Google Groups "Puppet Bugs" group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-bugs/JIRA.470041.1664551063000.41407.1664917500035%40Atlassian.JIRA.


Jira (PUP-11635) dnfmodule provider fails, preventing updating catalog

2022-10-04 Thread Vadym Chepkov (Jira)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Vadym Chepkov commented on  PUP-11635  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: dnfmodule provider fails, preventing updating catalog   
 

  
 
 
 
 

 
 Josh Cooper, All you need to do is to create un-accessible yum repository definition  
 
 
 
 
 # cat /etc/yum.repos.d/choria_release.repo  
 
 
 [choria_release]  
 
 
 name=Choria Orchestrator Releases  
 
 
 mirrorlist=https://packagecloud.io/choria/yum/release/el/$releasever/$basearch.txt  
 
 
 enabled=True  
 
 
 gpgcheck=False  
 
 
    
 
 
 # /usr/bin/dnf module list -d 0 -e 1  
 
 
 Error: Failed to download metadata for repo 'choria_release': Cannot prepare internal mirrorlist: Status code: 404 for https://packagecloud.io/choria/yum/release/el/8/x86_64.txt (IP: 52.8.166.117)  
 
 
 [root@puppet ~]# echo $?  
 
 
 1  
 
 
    
 
 
 Puppet will fail at prefetch stage. I will upload debug file shortly  
  

Jira (PUP-11635) dnfmodule provider fails, preventing updating catalog

2022-10-04 Thread Josh Cooper (Jira)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Josh Cooper commented on  PUP-11635  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: dnfmodule provider fails, preventing updating catalog   
 

  
 
 
 
 

 
 Vadym Chepkov could you provide a sample manifest to reproduce the issue and the output of puppet agent -td when the error occurs. Note if prefetch fails for a provider, then puppet will mark all resources associated with that provider and all downstream dependencies as failed.  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

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

 
   
 

  
 

  
 

   





-- 
You received this message because you are subscribed to the Google Groups "Puppet Bugs" group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-bugs/JIRA.470041.1664551063000.41348.1664914740044%40Atlassian.JIRA.


Jira (PUP-11635) dnfmodule provider fails, preventing updating catalog

2022-09-30 Thread Vadym Chepkov (Jira)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Vadym Chepkov created an issue  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Puppet /  PUP-11635  
 
 
  dnfmodule provider fails, preventing updating catalog   
 

  
 
 
 
 

 
Issue Type: 
  Bug  
 
 
Assignee: 
 Unassigned  
 
 
Created: 
 2022/09/30 8:17 AM  
 
 
Priority: 
  Normal  
 
 
Reporter: 
 Vadym Chepkov  
 

  
 
 
 
 

 
 Puppet Version: 6.28.0 Puppet Server Version: 6.20.0 OS Name/Version: AlmaLinux 8 dnfmodule provider doesn't handle exceptions properly, preventing puppet to apply catalog and fix the repository I have encountered it when a yum repository was removed from original server and even though manifest has been updated, puppet failed before it was able to update it:  
 
 
 
 
 Error: Could not prefetch package provider 'dnfmodule': Execution of '/usr/bin/dnf module list -d 0 -e 1' returned 1: Error: Failed to download metadata for repo 'choria_release': Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried  
 
 
 Error: Failed to apply catalog: Execution of '/usr/bin/dnf module list -d 0 -e 1' returned 1: Error: Failed to download metadata for repo 'choria_release': Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried