Red Hat Satellite engineering is moving the tracking of its product development work on Satellite to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "Satellite project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs will be migrated starting at the end of May. If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "Satellite project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/SAT-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 963325 - Removing system from Katello does not remove it from Foreman
Summary: Removing system from Katello does not remove it from Foreman
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Provisioning
Version: Nightly
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: Unspecified
Assignee: Ivan Necas
QA Contact: Katello QA List
URL:
Whiteboard:
Depends On: 1081697
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-05-15 16:22 UTC by Og Maciel
Modified: 2014-06-19 19:07 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-05-23 17:35:02 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Og Maciel 2013-05-15 16:22:49 UTC
Description of problem:

Removing a system from the Katello ui does not remove it from Foreman UI. Seems to be the reverse of https://bugzilla.redhat.com/show_bug.cgi?id=961112

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

* apr-util-ldap-1.3.9-3.el6_0.1.x86_64
* candlepin-0.8.7-1.el6.noarch
* candlepin-selinux-0.8.7-1.el6.noarch
* candlepin-tomcat6-0.8.7-1.el6.noarch
* elasticsearch-0.19.9-7.el6.noarch
* foreman-1.1stable-31.3849429.el6.noarch
* foreman-installer-puppet-concat-0-2.d776701.el6.noarch
* foreman-installer-puppet-dhcp-0-5.3a4a13c.el6.noarch
* foreman-installer-puppet-dns-0-7.fcae203.el6.noarch
* foreman-installer-puppet-foreman-0-6.568c5c4.el6.noarch
* foreman-installer-puppet-foreman_proxy-0-8.bd1e35d.el6.noarch
* foreman-installer-puppet-puppet-0-2.ef1ba61.el6.noarch
* foreman-installer-puppet-tftp-0-5.ea6c5e5.el6.noarch
* foreman-installer-puppet-xinetd-0-2.09540eb.el6.noarch
* foreman-postgresql-1.1stable-31.3849429.el6.noarch
* foreman-proxy-1.0.1-11.aff8fa8.el6.noarch
* foreman-proxy-installer-1.0.1-6.f5ae2cd.el6.noarch
* katello-1.4.2-1.git.333.d2a35bc.el6.noarch
* katello-all-1.4.2-1.git.333.d2a35bc.el6.noarch
* katello-candlepin-cert-key-pair-1.0-1.noarch
* katello-certs-tools-1.4.2-1.el6.noarch
* katello-cli-1.4.2-1.git.48.441089b.el6.noarch
* katello-cli-common-1.4.2-1.git.48.441089b.el6.noarch
* katello-common-1.4.2-1.git.333.d2a35bc.el6.noarch
* katello-configure-1.4.3-1.git.12.bc3684c.el6.noarch
* katello-configure-foreman-1.4.3-1.git.12.bc3684c.el6.noarch
* katello-glue-candlepin-1.4.2-1.git.333.d2a35bc.el6.noarch
* katello-glue-elasticsearch-1.4.2-1.git.333.d2a35bc.el6.noarch
* katello-glue-pulp-1.4.2-1.git.333.d2a35bc.el6.noarch
* katello-qpid-broker-key-pair-1.0-1.noarch
* katello-qpid-client-key-pair-1.0-1.noarch
* katello-repos-1.4.2-1.el6.noarch
* katello-selinux-1.4.3-1.git.3.ce8227b.el6.noarch
* openldap-2.4.23-32.el6_4.1.x86_64
* pulp-admin-client-2.1.1-0.10.beta.el6.noarch
* pulp-builtins-admin-extensions-2.1.1-0.10.beta.el6.noarch
* pulp-rpm-admin-extensions-2.1.1-0.10.beta.el6.noarch
* pulp-rpm-plugins-2.1.1-0.10.beta.el6.noarch
* pulp-selinux-2.1.1-0.10.beta.el6.noarch
* pulp-server-2.1.1-0.10.beta.el6.noarch
* python-ldap-2.3.10-1.el6.x86_64
* ruby193-rubygem-ldap_fluff-0.1.3-4.el6.noarch
* ruby193-rubygem-net-ldap-0.2.2-6.el6.noarch

How reproducible:


Steps to Reproduce:
1. Provision a system via Foreman + libvirt
2. Remove said system using the Katello UI
3.
  
Actual results:


Expected results:

Additional info:

==> /var/log/candlepin/audit.log <==
Wed May 15 12:08:59 EDT 2013 - POOL DELETED on 8a90f8b83ea84760013ea8b946b8000a owner 8a90f8b83e8ff6c7013e900473110003 performed by org.candlepin.auth.PrincipalData@4f07b732
Wed May 15 12:08:59 EDT 2013 - ENTITLEMENT DELETED on 8a90f8b83ea84760013ea8b946b20009 owner 8a90f8b83e8ff6c7013e900473110003 performed by org.candlepin.auth.PrincipalData@13d21f46
Wed May 15 12:08:59 EDT 2013 - ENTITLEMENT DELETED on 8a90f8b83ea84760013ea8b6ce450006 owner 8a90f8b83e8ff6c7013e900473110003 performed by org.candlepin.auth.PrincipalData@53bc43de
Wed May 15 12:08:59 EDT 2013 - CONSUMER DELETED on 8a90f8b83ea84760013ea8b6c9620001 owner 8a90f8b83e8ff6c7013e900473110003 performed by org.candlepin.auth.PrincipalData@38e77c19

==> /var/log/pulp/pulp.log <==
2013-05-15 12:09:00,198 gofer.rmi.policy:INFO: sent (ccdbaad4-4288-4128-b8de-903a151f6aa9):
{'classname': 'Consumer', 'kws': {}, 'args': (), 'method': 'unregistered', 'cntr': None}
2013-05-15 12:09:00,216 pulp.server.dispatch.task:INFO: SUCCESS: Task d05b8934-7e90-41c8-9880-6213081e5ad3: CallRequest: ConsumerManager.unregister(u'ccdbaad4-4288-4128-b8de-903a151f6aa9')

==> /var/log/foreman/production.log <==


Started GET "/foreman/hosts" for 127.0.0.1 at 2013-05-15 12:09:10 -0400
Processing by HostsController#index as HTML
  Rendered hosts/_list.html.erb (107.9ms)
  Rendered hosts/index.html.erb within layouts/application (112.3ms)
  Rendered home/_user_dropdown.html.erb (0.9ms)
Read fragment views/tabs_and_title_records-1 (0.1ms)
  Rendered home/_topbar.html.erb (1.3ms)
  Rendered common/_searchbar.erb (4.3ms)
Completed 200 OK in 139ms (Views: 121.3ms | ActiveRecord: 5.2ms)


Started GET "/foreman/hosts" for 127.0.0.1 at 2013-05-15 12:10:15 -0400
Processing by HostsController#index as HTML
  Rendered hosts/_list.html.erb (15.8ms)
  Rendered hosts/index.html.erb within layouts/application (19.9ms)
  Rendered home/_user_dropdown.html.erb (0.8ms)
Read fragment views/tabs_and_title_records-1 (0.1ms)
  Rendered home/_topbar.html.erb (1.2ms)
  Rendered common/_searchbar.erb (3.6ms)
Completed 200 OK in 45ms (Views: 27.9ms | ActiveRecord: 4.8ms)

Comment 2 Mike McCune 2013-10-22 04:14:51 UTC
definitely not fixing this in MDP2

Comment 5 Brad Buckingham 2014-05-23 17:35:02 UTC
Since this bugzilla was initially created, katello has been updated to be a 'rails engine' that runs within the foreman application.  As part of this work, there has been some integration of the foreman host with the katello content host (formerly known as 'system').  With that integration, the foreman host is considered the 'master'.  When a host is provisioned and the client registers back with the Satellite, a content host will be created and will be associated with the foreman host.  If the client (i.e. content host) unregisters the content host will be deleted; however, it will not impact the foreman host (i.e. master).  If, however, the foreman host is deleted, the corresponding content host will also be removed. This will allow the client to register/unregister without impacting the foreman host.

Based on the above, this bugzilla is no longer valid.  In the future, the desire is to further integrate the host and content host, such that it is is really a single 'host'.


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