Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
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 1377654

Summary: Delete button works for primary interface
Product: Red Hat Satellite Reporter: Anand Agrawal <aagrawal>
Component: HostsAssignee: orabin
Status: CLOSED ERRATA QA Contact: Peter Ondrejka <pondrejk>
Severity: medium Docs Contact:
Priority: high    
Version: 6.2.0CC: abalakht, bbuckingham, jcallaha, jkrocil, sjagtap, sshtein, zhunting
Target Milestone: UnspecifiedKeywords: Triaged
Target Release: Unused   
Hardware: All   
OS: All   
Whiteboard:
Fixed In Version: foreman-1.11.0.66-2 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1417119 (view as bug list) Environment:
Last Closed: 2017-03-06 08:28:45 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1417119    

Description Anand Agrawal 2016-09-20 10:01:37 UTC
Description of problem:

When we edit a hosts and delete or add interfaces we are able to click the Delete button from the primary interface although the button show a stop symbol when you hover over it.


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

How reproducible:
Always


Steps to Reproduce:

Hosts --> All Hosts --> Edit Host --> Interfaces --> Click the Delete button from the primary interface

Actual results:

If you click on delete button, the interface gets deleted

Expected results:

AS the deleted button in greyed out and when you hover over the button, stop symbol appears, it should not be deleted


Additional info:

In the html code from the button there is only missing a "disabled" statment in the code

Current code:
<button class="btn btn-danger removeInterface disabled" type="button">Delete</button>

Working code in live code edit
<button class="btn btn-danger removeInterface disabled" type="button" disabled>Delete</button>

Comment 3 Shimon Shtein 2016-09-26 18:08:07 UTC
The bug does not appear in pure foreman upstream.

Comment 4 Anand Agrawal 2016-09-27 04:57:07 UTC
I alredy mentioned  in comment#1.  It does not appear for pure foreman upstream.

This bug appears in Satellite. I have checked Satellite V 6.2.0, 6.2.1 and 6.2.2.

This appears in all Satellite 6.2 Version.

Comment 5 Shimon Shtein 2016-09-27 06:55:27 UTC
Connecting redmine issue http://projects.theforeman.org/issues/14726 from this bug

Comment 6 Bryan Kearney 2016-09-27 08:19:06 UTC
Moving this bug to POST for triage into Satellite 6 since the upstream issue http://projects.theforeman.org/issues/14726 has been resolved.

Comment 8 Peter Ondrejka 2016-10-20 15:35:16 UTC
Verfied in Satellite 6.3 snap 5. It is no longer possible to delete host's primary interface.

Comment 9 Marek Hulan 2016-11-16 15:07:06 UTC
*** Bug 1395644 has been marked as a duplicate of this bug. ***

Comment 10 Daniel Lobato Garcia 2016-12-23 12:38:05 UTC
*** Bug 1405407 has been marked as a duplicate of this bug. ***

Comment 12 Peter Ondrejka 2017-02-08 16:07:08 UTC
Verfied in Satellite 6.2.8. It is no longer possible to delete host's primary interface.

Comment 14 errata-xmlrpc 2017-03-06 08:28:45 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2017:0447