Bug #36398
closedcontent view environment data in cloned host missing
Description
If a host is cloned via foreman-rake console, the data of the content_facet is mostly missing.
h is the original host
b is the cloned one.
```
irb(main):009:0> h.content_facet.content_view_ids
=> [25]
irb(main):010:0> h.content_facet.lifecycle_environment_ids
=> [1]
irb(main):011:0> h.content_facet.content_source
=> #<SmartProxy id: 1, name: "foreman.testforeman.atix", url: "https://foreman.testforeman.atix:9090", created_at: "2021-07-21 18:33:47.867732000 +0000", updated_at: "2022-05-18 13:16:35.335560000 +0000", pubkey: "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDRuFP6V/GC6s...", expired_logs: "0", puppet_path: nil, download_policy: "on_demand", http_proxy_id: nil>
irb(main):012:0> h.content_source
=> #<SmartProxy id: 1, name: "foreman.testforeman.atix", url: "https://foreman.testforeman.atix:9090", created_at: "2021-07-21 18:33:47.867732000 +0000", updated_at: "2022-05-18 13:16:35.335560000 +0000", pubkey: "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDRuFP6V/GC6s...", expired_logs: "0", puppet_path: nil, download_policy: "on_demand", http_proxy_id: nil>
irb(main):013:0> b = h.clone
irb(main):014:0> b.content_view_ids
=> []
irb(main):015:0> b.lifecycle_environment_ids
=> []
irb(main):016:0> b.content_facet.content_view_ids
=> []
irb(main):017:0> b.content_facet.lifecycle_environment_ids
=> []
irb(main):018:0> b.content_facet.content_source
=> #<SmartProxy id: 1, name: "foreman.testforeman.atix", url: "https://foreman.testforeman.atix:9090", created_at: "2021-07-21 18:33:47.867732000 +0000", updated_at: "2022-05-18 13:16:35.335560000 +0000", pubkey: "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDRuFP6V/GC6s...", expired_logs: "0", puppet_path: nil, download_policy: "on_demand", http_proxy_id: nil>
irb(main):019:0> b.content_source
=> #<SmartProxy id: 1, name: "foreman.testforeman.atix", url: "https://foreman.testforeman.atix:9090", created_at: "2021-07-21 18:33:47.867732000 +0000", updated_at: "2022-05-18 13:16:35.335560000 +0000", pubkey: "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDRuFP6V/GC6s...", expired_logs: "0", puppet_path: nil, download_policy: "on_demand", http_proxy_id: nil>
```
Additionally, I think https://github.com/Katello/katello/blob/master/lib/katello/plugin.rb#L320 need to be extend