Description of problem: When running "foreman-rake katello:reimport" on 6.5 (and not hitting https://bugzilla.redhat.com/show_bug.cgi?id=1696273), the next step fails too. # foreman-rake katello:reimport Importing Katello::Erratum Importing Katello::PackageGroup Importing Katello::PuppetModule Importing Katello::Rpm Importing Katello::Srpm Importing Katello::ModuleStream Importing Katello::YumMetadataFile Importing Katello::Deb Importing Katello::FileUnit Importing Katello::Subscription Importing Katello::Pool Importing Katello::DockerManifest Importing Katello::DockerManifestList Importing Katello::DockerTag Importing Katello::ContentViewPuppetEnvironment Importing Katello::Content Importing Katello::OstreeBranch rake aborted! NoMethodError: undefined method `to_datetime' for nil:NilClass /opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.10.0.36/app/models/katello/ostree_branch.rb:24:in `update_from_json' /opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.10.0.36/app/models/katello/concerns/pulp_database_unit.rb:61:in `block (2 levels) in import_all' /opt/theforeman/tfm/root/usr/share/gems/gems/runcible-2.11.1/lib/runcible/response.rb:32:in `each' /opt/theforeman/tfm/root/usr/share/gems/gems/runcible-2.11.1/lib/runcible/response.rb:32:in `method_missing' /opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.10.0.36/app/models/katello/concerns/pulp_database_unit.rb:56:in `block in import_all' /opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.10.0.36/app/services/katello/pulp/pulp_content_unit.rb:35:in `fetch_all' /opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.10.0.36/app/models/katello/concerns/pulp_database_unit.rb:74:in `import_all' /opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.10.0.36/lib/katello/tasks/reimport.rake:41:in `block (3 levels) in <top (required)>' /opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.10.0.36/lib/katello/tasks/reimport.rake:39:in `each' /opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.10.0.36/lib/katello/tasks/reimport.rake:39:in `block (2 levels) in <top (required)>' /opt/rh/rh-ruby25/root/usr/share/gems/gems/rake-12.3.0/exe/rake:27:in `<top (required)>' Tasks: TOP => katello:reimport (See full trace by running task with --trace) Version-Release number of selected component (if applicable): tfm-rubygem-katello-3.10.0.36-1.el7sat.noarch How reproducible: 100% on Romans machine Steps to Reproduce: 1. foreman-rake katello:reimport Actual results: see above Expected results: reimport succeeds Additional info:
This looks like a dupe of https://bugzilla.redhat.com/show_bug.cgi?id=1689504
*** This bug has been marked as a duplicate of bug 1689504 ***
Confirmed. It is a duplicate.