Project

General

Profile

Actions

Bug #6826

closed

undefined method variable "subscription_manager_configuration_url"

Added by dustin tsang over 9 years ago. Updated almost 6 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Hosts
Target version:
Difficulty:
Triaged:
Yes
Fixed in Releases:
Found in Releases:

Description

Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1104133
Description of problem:
When I try to create a EC2 guests using Sat6, I get this error in production.log and guest is not registered.

Prepare post installation script for ggg.test.example.com task failed with the following error: undefined method `subscription_manager_configuration_url' for #<Host::Managed:0x007f065c9f1d98>/opt/rh/ruby193/root/usr/share/gems/gems/activemodel-3.2.8/lib/active_model/attribute_methods.rb:407:in `method_missing'
/opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/attribute_methods.rb:149:in `method_missing'
/opt/rh/ruby193/root/usr/share/gems/gems/safemode-1.2.0/lib/safemode/scope.rb:37:in `method_missing'

<< the complete traceback is in the attachment >>

Version-Release number of selected component (if applicable):
Satellite-6.0.3-RHEL-6-20140528.4

How reproducible:
100%

Steps to Reproduce:
1. We have got Sat6 with EC2 compute resource.
2. We have got this line in our finish template

<%= snippets "subscription_manager_registration" %>

3. We can try create new host, but registration fails with the traceback in log.

Snippet "subscription_manager_registration" contains this row.

rpm -ivh <%= subscription_manager_configuration_url %>

One thing is interesting, When we open a detail of guest ("Hosts" > "All hosts" > our new guest > "Templates" > our finish template > "Review"), the expansion of the variable "subscription_manager_configuration_url" is correct

rpm -ivh http://sat.eu-west-1.compute.internal/pub/katello-ca-consumer-latest.noarch.rpm

When We replace the variable "subscription_manager_configuration_url" with link "http://sat.eu-west-1.compute.internal/pub/katello-ca-consumer-latest.noarch.rpm" in the snippet, the registration ends fine.

Actual results:
Traceback, system is not registered.

Expected results:
System is registered.

Additional info:

Actions #1

Updated by The Foreman Bot over 9 years ago

  • Status changed from New to Ready For Testing
  • Target version set to 54
  • Pull request https://github.com/Katello/katello/pull/4498 added
  • Pull request deleted ()
Actions #2

Updated by dustin tsang over 9 years ago

  • Status changed from Ready For Testing to Closed
  • Pull request https://github.com/Katello/katello/pull/4428 added
  • Pull request deleted (https://github.com/Katello/katello/pull/4498)

fix already present in upstream.
closing and updating pull request to https://github.com/Katello/katello/pull/4428

Actions #3

Updated by Eric Helms over 9 years ago

  • Triaged changed from No to Yes
Actions #4

Updated by Eric Helms over 9 years ago

  • translation missing: en.field_release set to 13
Actions

Also available in: Atom PDF