Bug 1377947 - Cloning host do not clone when puppet parameters set to override
Summary: Cloning host do not clone when puppet parameters set to override
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Hosts
Version: 6.1.9
Hardware: Unspecified
OS: Unspecified
unspecified
medium vote
Target Milestone: Unspecified
Assignee: satellite6-bugs
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-09-21 06:48 UTC by Kavita
Modified: 2020-01-17 15:57 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-01-05 15:53:18 UTC
Target Upstream Version:


Attachments (Terms of Use)
Screenshot for error log (64.16 KB, image/png)
2016-09-21 06:48 UTC, Kavita
no flags Details

Description Kavita 2016-09-21 06:48:59 UTC
Created attachment 1203125 [details]
Screenshot for error log

Description of problem:
If the system have puppet parameter overrides settings at the host level then cloning host failed with server side error.

Version-Release number of selected component (if applicable):
Satellite 6.1.9.

How reproducible:
100%

Steps to Reproduce:
1. Save any of the system with puppet parameter overrides configurations
2. Click on "clone" action from action tray against that system
3. 

Actual results:
Shows below error -

undefined method `managed_id=' for #<LookupValue:0x000000113cdac8>

NoMethodError
undefined method `managed_id=' for #<LookupValue:0x000000113cdac8>
app/models/host/managed.rb:659:in `clone'
app/controllers/hosts_controller.rb:72:in `clone'
app/models/concerns/foreman/thread_session.rb:33:in `clear_thread'
lib/middleware/catch_json_parse_errors.rb:9:in `call'


Expected results:
Should clone the system

Additional info:

This issue is not reproduciable in Satellite 6.2


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