Red Hat Satellite engineering is moving the tracking of its product development work on Satellite to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "Satellite project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs will be migrated starting at the end of May. If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "Satellite project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/SAT-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1696350 - NoMethodError: undefined method `to_datetime' for nil:NilClass when Importing Katello::OstreeBranch
Summary: NoMethodError: undefined method `to_datetime' for nil:NilClass when Importing...
Keywords:
Status: CLOSED DUPLICATE of bug 1689504
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Content Management
Version: 6.5.0
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: Released
Assignee: satellite6-bugs
QA Contact: Lai
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-04-04 15:18 UTC by Evgeni Golov
Modified: 2019-10-07 17:20 UTC (History)
0 users

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2019-04-04 18:40:49 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Evgeni Golov 2019-04-04 15:18:45 UTC
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:

Comment 5 Evgeni Golov 2019-04-04 18:40:21 UTC
This looks like a dupe of https://bugzilla.redhat.com/show_bug.cgi?id=1689504

Comment 6 Evgeni Golov 2019-04-04 18:40:49 UTC

*** This bug has been marked as a duplicate of bug 1689504 ***

Comment 7 Brad Buckingham 2019-04-05 13:20:09 UTC
Confirmed.  It is a duplicate.


Note You need to log in before you can comment on or make changes to this bug.