Project

General

Profile

Actions

Bug #16823

closed

exporting a CV with only a puppet repo results in error

Added by Chris Duryee over 8 years ago. Updated about 3 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
-
Target version:
Difficulty:
Triaged:
Yes
Fixed in Releases:
Found in Releases:

Description

If you attempt to export a CV version that does not contain any yum repos, it will result in an error.

For example:

$ hammer content-view version export --id 2
[Foreman] Password for admin: 
[.....................................................................................................................................................................................] [100%]
unknown file type: /var/lib/pulp/published/yum/master/group_export_distributor/Default_Organization-cv-v1.0
2016-10-06 11:09:44  [foreman-tasks/action] [E] unknown file type: /var/lib/pulp/published/yum/master/group_export_distributor/Default_Organization-cv-v1.0 (RuntimeError)
 | /opt/rh/rh-ruby22/root/usr/share/ruby/fileutils.rb:1386:in `copy'
 | /opt/rh/rh-ruby22/root/usr/share/ruby/fileutils.rb:471:in `block in copy_entry'
 | /opt/rh/rh-ruby22/root/usr/share/ruby/fileutils.rb:1497:in `call'
 | /opt/rh/rh-ruby22/root/usr/share/ruby/fileutils.rb:1497:in `wrap_traverse'
 | /opt/rh/rh-ruby22/root/usr/share/ruby/fileutils.rb:468:in `copy_entry'
 | /opt/rh/rh-ruby22/root/usr/share/ruby/fileutils.rb:443:in `block in cp_r'
 | /opt/rh/rh-ruby22/root/usr/share/ruby/fileutils.rb:1570:in `block in fu_each_src_dest'
 | /opt/rh/rh-ruby22/root/usr/share/ruby/fileutils.rb:1584:in `fu_each_src_dest0'
 | /opt/rh/rh-ruby22/root/usr/share/ruby/fileutils.rb:1568:in `fu_each_src_dest'
 | /opt/rh/rh-ruby22/root/usr/share/ruby/fileutils.rb:442:in `cp_r'
 | /opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.3.0/app/lib/actions/katello/repository/export.rb:60:in `run'
 | /opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-0.8.15/lib/dynflow/action.rb:506:in `block (3 levels) in execute_run'
Actions

Also available in: Atom PDF