Project

General

Profile

Actions

Bug #35709

closed

Getting "undefined method `schema_version' for nil:NilClass" while syncing from quay.io

Added by Ian Ballou about 2 years ago. Updated about 1 year ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Container
Target version:

Description

Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=2134682

Description of problem:
Can't sync containers hosted on quay.io. Getting "undefined method `schema_version' for nil:NilClass" as part of Actions::Katello::Repository::IndexContent step

===
2022-10-14T12:07:27 [I|aud|c3ba92c1] Katello::Repository (2904) update event on last_contents_changed 2022-10-14 12:03:36 +1100, 2022-10-14 12:07:27 +1100
2022-10-14T12:07:27 [I|aud|c3ba92c1] Katello::Repository (2904) update event on version_href /pulp/api/v3/repositories/container/container/1b38c4c0-71cc-4b00-83d2-94d7223205f6/versions/0/, /pulp/api/v3/repositories/container/container/1b38c4c0-71cc-4b00-83d2-94d72232
05f6/versions/1/
2022-10-14T12:07:29 [I|app|c3ba92c1] CONTENT_INDEX type=Katello::DockerManifest success=true duration=316.78
2022-10-14T12:07:29 [I|app|c3ba92c1] CONTENT_INDEX type=Katello::DockerManifestList success=true duration=289.08
2022-10-14T12:07:30 [I|app|c3ba92c1] CONTENT_INDEX type=Katello::DockerTag success=false duration=453.59
2022-10-14T12:07:30 [E|bac|c3ba92c1] undefined method `schema_version' for nil:NilClass (NoMethodError)
c3ba92c1 | /usr/share/gems/gems/katello-4.3.0.49/app/models/katello/docker_meta_tag.rb:177:in `block in get_tag_table_values'
c3ba92c1 | /usr/share/gems/gems/katello-4.3.0.49/app/models/katello/docker_meta_tag.rb:176:in `each'
c3ba92c1 | /usr/share/gems/gems/katello-4.3.0.49/app/models/katello/docker_meta_tag.rb:176:in `map'
c3ba92c1 | /usr/share/gems/gems/katello-4.3.0.49/app/models/katello/docker_meta_tag.rb:176:in `get_tag_table_values'
c3ba92c1 | /usr/share/gems/gems/katello-4.3.0.49/app/models/katello/docker_meta_tag.rb:138:in `block in import_meta_tags'
c3ba92c1 | /usr/share/gems/gems/katello-4.3.0.49/app/models/katello/docker_meta_tag.rb:137:in `each'
c3ba92c1 | /usr/share/gems/gems/katello-4.3.0.49/app/models/katello/docker_meta_tag.rb:137:in `import_meta_tags'
c3ba92c1 | /usr/share/gems/gems/katello-4.3.0.49/app/models/katello/docker_tag.rb:63:in `import_for_repository'
c3ba92c1 | /usr/share/gems/gems/katello-4.3.0.49/app/models/katello/repository.rb:924:in `block (2 levels) in index_content'
c3ba92c1 | /usr/share/gems/gems/katello-4.3.0.49/app/lib/katello/logging.rb:8:in `time'
c3ba92c1 | /usr/share/gems/gems/katello-4.3.0.49/app/models/katello/repository.rb:920:in `block in index_content'
c3ba92c1 | /usr/share/gems/gems/katello-4.3.0.49/app/models/katello/repository.rb:919:in `each'
c3ba92c1 | /usr/share/gems/gems/katello-4.3.0.49/app/models/katello/repository.rb:919:in `index_content'
c3ba92c1 | /usr/share/gems/gems/katello-4.3.0.49/app/lib/actions/katello/repository/index_content.rb:22:in `run'
c3ba92c1 | /usr/share/gems/gems/dynflow-1.6.4/lib/dynflow/action.rb:582:in `block (3 levels) in execute_run'
c3ba92c1 | /usr/share/gems/gems/dynflow-1.6.4/lib/dynflow/middleware/stack.rb:27:in `pass'
c3ba92c1 | /usr/share/gems/gems/dynflow-1.6.4/lib/dynflow/middleware.rb:19:in `pass'
c3ba92c1 | /usr/share/gems/gems/foreman-tasks-5.2.3/app/lib/actions/middleware/rails_executor_wrap.rb:14:in `block in run'
c3ba92c1 | /usr/share/gems/gems/activesupport-6.0.4.7/lib/active_support/execution_wrapper.rb:91:in `wrap'
c3ba92c1 | /usr/share/gems/gems/foreman-tasks-5.2.3/app/lib/actions/middleware/rails_executor_wrap.rb:13:in `run'
c3ba92c1 | /usr/share/gems/gems/dynflow-1.6.4/lib/dynflow/middleware/stack.rb:23:in `call'
c3ba92c1 | /usr/share/gems/gems/dynflow-1.6.4/lib/dynflow/middleware/stack.rb:27:in `pass'
c3ba92c1 | /usr/share/gems/gems/dynflow-1.6.4/lib/dynflow/middleware.rb:19:in `pass'
c3ba92c1 | /usr/share/gems/gems/dynflow-1.6.4/lib/dynflow/action/progress.rb:31:in `with_progress_calculation'
c3ba92c1 | /usr/share/gems/gems/dynflow-1.6.4/lib/dynflow/action/progress.rb:17:in `run'
c3ba92c1 | /usr/share/gems/gems/dynflow-1.6.4/lib/dynflow/middleware/stack.rb:23:in `call'
c3ba92c1 | /usr/share/gems/gems/dynflow-1.6.4/lib/dynflow/middleware/stack.rb:27:in `pass'
c3ba92c1 | /usr/share/gems/gems/dynflow-1.6.4/lib/dynflow/middleware.rb:19:in `pass'

===

Version-Release number of selected component (if applicable):
Any Katello with Pulp 3

How reproducible:
100%

Steps to Reproduce:
1. Create a new container repository:
- registry url: https://quay.io/
- upstream repo: ansible/ansible-runner
2. Sync

Actual results:
undefined method `schema_version' for nil:NilClass

Expected results:
Succesfull sync

Additional info:

Actions #1

Updated by The Foreman Bot about 2 years ago

  • Status changed from New to Ready For Testing
  • Assignee set to Ian Ballou
  • Pull request https://github.com/Katello/katello/pull/10332 added
Actions #2

Updated by William Clark about 2 years ago

  • Subject changed from Getting "undefined method `schema_version' for nil:NilClass" while syncing from quay.io to Getting "undefined method `schema_version' for nil:NilClass" while syncing from quay.io
  • Category set to Container
  • Target version set to Katello 4.7.0
  • Triaged changed from No to Yes
Actions #3

Updated by The Foreman Bot about 2 years ago

  • Fixed in Releases Katello 4.8.0 added
Actions #4

Updated by Anonymous about 2 years ago

  • Status changed from Ready For Testing to Closed
Actions #5

Updated by The Foreman Bot almost 2 years ago

  • Pull request https://github.com/Katello/katello/pull/10367 added
Actions #6

Updated by The Foreman Bot about 1 year ago

  • Pull request https://github.com/Katello/katello/pull/10743 added
Actions

Also available in: Atom PDF