Bug #33383
closedError in logs when scanning for repository undefined method resolve_substitutions
Description
Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1994212
Description of problem:
Failed at scanning for repository: undefined method `resolve_substitutions' for nil:NilClass
Version-Release number of selected component (if applicable):
satellite-6.10.0-0.6.beta
How reproducible:
New installation of satellite 6.10 Beta
Steps to Reproduce:
1. Install satellite 6.10 Beta
2. Try to enable repos through WebUI
3. Check the logs
Actual results:
2021-08-17T09:15:18 [I|bac|d0db5e92] Task {label: Actions::Katello::RepositorySet::ScanCdn, id: c2607c7e-488e-4448-990a-5917c117fa26, execution_plan_id: d6af3cd0-f4d7-4efa-b70b-1414b592c794} state changed: running
2021-08-17T09:15:19 [E|app|d0db5e92] Failed at scanning for repository: undefined method `resolve_substitutions' for nil:NilClass
2021-08-17T09:15:19 [E|app|d0db5e92] Failed at scanning for repository: undefined method `resolve_substitutions' for nil:NilClass
2021-08-17T09:15:19 [E|app|d0db5e92] Failed at scanning for repository: undefined method `resolve_substitutions' for nil:NilClass
2021-08-17T09:15:19 [E|app|d0db5e92] Failed at scanning for repository: undefined method `resolve_substitutions' for nil:NilClass
2021-08-17T09:15:19 [E|app|d0db5e92] Failed at scanning for repository: undefined method `resolve_substitutions' for nil:NilClass
2021-08-17T09:15:19 [E|app|d0db5e92] Failed at scanning for repository: undefined method `resolve_substitutions' for nil:NilClass
2021-08-17T09:15:19 [E|app|d0db5e92] Failed at scanning for repository: undefined method `resolve_substitutions' for nil:NilClass
2021-08-17T09:15:21 [E|app|d0db5e92] Failed at scanning for repository: undefined method `resolve_substitutions' for nil:NilClass
2021-08-17T09:15:21 [E|app|d0db5e92] Failed at scanning for repository: undefined method `resolve_substitutions' for nil:NilClass
2021-08-17T09:15:21 [E|app|d0db5e92] Failed at scanning for repository: undefined method `resolve_substitutions' for nil:NilClass
2021-08-17T09:15:21 [E|app|d0db5e92] Failed at scanning for repository: undefined method `resolve_substitutions' for nil:NilClass
2021-08-17T09:15:21 [E|app|d0db5e92] Failed at scanning for repository: undefined method `resolve_substitutions' for nil:NilClass
2021-08-17T09:15:21 [I|bac|d0db5e92] Task {label: Actions::Katello::RepositorySet::ScanCdn, id: c2607c7e-488e-4448-990a-5917c117fa26, execution_plan_id: d6af3cd0-f4d7-4efa-b70b-1414b592c794} state changed: stopped result: success
Expected results:
Additional info:
- hammer ping
database:
Status: ok
Server Response: Duration: 0ms
candlepin:
Status: ok
Server Response: Duration: 32ms
candlepin_auth:
Status: ok
Server Response: Duration: 28ms
candlepin_events:
Status: ok
message: 20 Processed, 0 Failed
Server Response: Duration: 0ms
katello_events:
Status: ok
message: 0 Processed, 0 Failed
Server Response: Duration: 0ms
pulp3:
Status: ok
Server Response: Duration: 68ms
foreman_tasks:
Status: ok
Server Response: Duration: 3ms
- satellite-maintain service status -b
Running Status Services ================================================================================
Get status of applicable services:
Displaying the following service(s):
rh-redis5-redis, postgresql, pulpcore-api, pulpcore-content, rh-redis5-redis, pulpcore-worker@1.service, pulpcore-worker@2.service, pulpcore-worker@3.service, pulpcore-worker@4.service, tomcat, dynflow-sidekiq@orchestrator, foreman, httpd, puppetserver, dynflow-sidekiq@worker-1, dynflow-sidekiq@worker-hosts-queue-1, foreman-proxy, foreman-cockpit
\ displaying rh-redis5-redis [OK]
| displaying postgresql [OK]
| displaying pulpcore-api [OK]
| displaying pulpcore-content [OK]
| displaying rh-redis5-redis [OK]
| displaying pulpcore-worker@1.service [OK]
| displaying pulpcore-worker@2.service [OK]
| displaying pulpcore-worker@3.service [OK]
| displaying pulpcore-worker@4.service [OK]
| displaying tomcat [OK]
| displaying dynflow-sidekiq@orchestrator [OK]
| displaying foreman [OK]
| displaying httpd [OK]
| displaying puppetserver [OK]
| displaying dynflow-sidekiq@worker-1 [OK]
| displaying dynflow-sidekiq@worker-hosts-queue-1 [OK]
| displaying foreman-proxy [OK]
| displaying foreman-cockpit [OK]
| All services are running [OK]
--------------------------------------------------------------------------------
Updated by The Foreman Bot over 3 years ago
- Status changed from New to Ready For Testing
- Assignee set to Justin Sherrill
- Pull request https://github.com/Katello/katello/pull/9595 added
Updated by Justin Sherrill over 3 years ago
- Subject changed from Failed at scanning for repository: undefined method `resolve_substitutions' for nil:NilClass to Error in logs when scanning for repository: undefined method `resolve_substitutions' for nil:NilClass
- Target version set to Katello 4.3.0
- Triaged changed from No to Yes
Updated by The Foreman Bot about 3 years ago
- Fixed in Releases Katello 4.4.0 added
Updated by Justin Sherrill about 3 years ago
- Status changed from Ready For Testing to Closed
Applied in changeset katello|8cb4654dde46d5194b9947d399a841512d3223db.
Updated by Chris Roberts about 3 years ago
- Subject changed from Error in logs when scanning for repository: undefined method `resolve_substitutions' for nil:NilClass to Error in logs when scanning for repository undefined method resolve_substitutions