How to remove some orphaned RedHat products

Hi

While trying to correct some provisioning issues and updating the katello
instance I get the folowing error. "Upgrade step import_distributions
failed. Check logs for more information."

A tail of the log gives me this

/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/relation/delegation.rb:46:in
each' /opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.0.2/app/models/katello/repository.rb:511:inimport_distributions'
/opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.0.2/lib/katello/tasks/upgrades/2.4/import_distributions.rake:8:in
`block (4 levels) in <top (required)>'
Tasks: TOP => katello:upgrades:2.4:import_distributions
(See full trace by running task with --trace)
Importing distribution data into repositories

[ERROR 2016-09-22 14:50:35 main] Upgrade step import_distributions failed.
Check logs for more information.
[DEBUG 2016-09-22 14:50:35 main] Cleaning
/etc/foreman-installer/scenarios.d/d20160922-2138-p01ysa
[DEBUG 2016-09-22 14:50:35 main] Cleaning /tmp/default_values.yaml

I have concerns about the katello:upgrades:2.4:import_distributions
statement above as this is a 3.0 installation.

I think this maybe due to a the orphaned Redhat directory product that is
left over from another time and that account is no longer valid.

Any help in getting this product removed would be greatly appreciated.

Thank you

foreman-rake katello:delete_orphaned_content

may be this can help?

··· On Friday, 23 September 2016 01:32:06 UTC+5:30, Rick Langston wrote:

Hi

While trying to correct some provisioning issues and updating the katello
instance I get the folowing error. “Upgrade step import_distributions
failed. Check logs for more information.”

A tail of the log gives me this

/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/relation/delegation.rb:46:in
each' /opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.0.2/app/models/katello/repository.rb:511:in import_distributions’
/opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.0.2/lib/katello/tasks/upgrades/2.4/import_distributions.rake:8:in
`block (4 levels) in <top (required)>’
Tasks: TOP => katello:upgrades:2.4:import_distributions
(See full trace by running task with --trace)
Importing distribution data into repositories

[ERROR 2016-09-22 14:50:35 main] Upgrade step import_distributions failed.
Check logs for more information.
[DEBUG 2016-09-22 14:50:35 main] Cleaning
/etc/foreman-installer/scenarios.d/d20160922-2138-p01ysa
[DEBUG 2016-09-22 14:50:35 main] Cleaning /tmp/default_values.yaml

I have concerns about the katello:upgrades:2.4:import_distributions
statement above as this is a 3.0 installation.

I think this maybe due to a the orphaned Redhat directory product that is
left over from another time and that account is no longer valid.

Any help in getting this product removed would be greatly appreciated.

Thank you

Thank you
I tried that one but its a persistent one for sure. I even tried to
manipulate the product with hammer and it refused also.

I was just going to leave it in until I ran across this upgrade issue which
seems to be forcing my hand.

··· On Friday, September 23, 2016 at 3:18:13 AM UTC-5, Unix SA wrote: > > foreman-rake katello:delete_orphaned_content > > may be this can help? > > On Friday, 23 September 2016 01:32:06 UTC+5:30, Rick Langston wrote: > >> Hi >> >> While trying to correct some provisioning issues and updating the katello >> instance I get the folowing error. "Upgrade step import_distributions >> failed. Check logs for more information." >> >> >> A tail of the log gives me this >> >> /opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/relation/delegation.rb:46:in >> `each' >> /opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.0.2/app/models/katello/repository.rb:511:in >> `import_distributions' >> /opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.0.2/lib/katello/tasks/upgrades/2.4/import_distributions.rake:8:in >> `block (4 levels) in ' >> Tasks: TOP => katello:upgrades:2.4:import_distributions >> (See full trace by running task with --trace) >> Importing distribution data into repositories >> >> [ERROR 2016-09-22 14:50:35 main] Upgrade step import_distributions >> failed. Check logs for more information. >> [DEBUG 2016-09-22 14:50:35 main] Cleaning >> /etc/foreman-installer/scenarios.d/d20160922-2138-p01ysa >> [DEBUG 2016-09-22 14:50:35 main] Cleaning /tmp/default_values.yaml >> >> >> I have concerns about the katello:upgrades:2.4:import_distributions >> statement above as this is a 3.0 installation. >> >> I think this maybe due to a the orphaned Redhat directory product that is >> left over from another time and that account is no longer valid. >> >> Any help in getting this product removed would be greatly appreciated. >> >> >> Thank you >> >