Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 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 "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". 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 "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-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 1541922

Summary: [NMCI] team_abs_set_runner_tx_hash regressed
Product: Red Hat Enterprise Linux 7 Reporter: Vladimir Benes <vbenes>
Component: NetworkManagerAssignee: Francesco Giudici <fgiudici>
Status: CLOSED ERRATA QA Contact: Desktop QE <desktop-qa-list>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 7.5CC: atragler, bgalvani, fgiudici, jreznik, lrintel, rkhan, sukulkar, thaller
Target Milestone: rcKeywords: Regression
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: NetworkManager-1.10.2-12.el7 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-04-10 13:37:57 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:

Description Vladimir Benes 2018-02-05 08:37:01 UTC
Description of problem:
Test case failure described here:
https://desktopqe-jenkins.rhev-ci-vms.eng.rdu2.redhat.com/job/beaker-NetworkManager-nm-1-10-veth-upstream/89/artifact/beaker/J_2289104/FAIL_test_log-NetworkManager-ci_Test152_team_abs_set_runner_tx_hash.html

it worked before some later commits regarding team around Jan 22, 2018 

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

Comment 2 Francesco Giudici 2018-02-05 18:22:30 UTC
Pushed fix on branch:
fg/team-clean-tx-hash-on-set-rh1541922

Please review

Comment 3 Beniamino Galvani 2018-02-06 07:46:49 UTC
+ while (nm_setting_team_get_num_runner_tx_hash (NM_SETTING_TEAM (setting)))
+	nm_setting_team_remove_runner_tx_hash (NM_SETTING_TEAM (setting), 0);

For link watchers we have a "nm_setting_team_clear_link_watchers()" function, maybe we should add the same API also for tx-hash?

Otherwise, LGTM.

Comment 4 Thomas Haller 2018-02-06 09:56:45 UTC
> nmcli: team: allow the "ip" element in runner-tx-hash set

can you add an example of `nmcli connnection add type team ...` that shows what was not working before, but works now?

why does re-ordering the names in valid_tx_hashes matter? Can you fix nmc_string_is_valid() to accept input in any order?

Comment 5 Francesco Giudici 2018-02-07 16:46:22 UTC
(In reply to Beniamino Galvani from comment #3)
> + while (nm_setting_team_get_num_runner_tx_hash (NM_SETTING_TEAM (setting)))
> +	nm_setting_team_remove_runner_tx_hash (NM_SETTING_TEAM (setting), 0);
> 
> For link watchers we have a "nm_setting_team_clear_link_watchers()"
> function, maybe we should add the same API also for tx-hash?

Yes, I thought the same, we should. Anyway, as we need to backport this in nm-1-10 and we don't want to add APIs there, I would let it as further improvement on master.

Comment 6 Francesco Giudici 2018-02-07 16:49:45 UTC
(In reply to Thomas Haller from comment #4)
> > nmcli: team: allow the "ip" element in runner-tx-hash set
> 
> can you add an example of `nmcli connnection add type team ...` that shows
> what was not working before, but works now?
> 
> why does re-ordering the names in valid_tx_hashes matter? Can you fix
> nmc_string_is_valid() to accept input in any order?

I did both in "client: fix nmc_string_is_valid ambiguous detection" commit.

I also resorted to change the function to check the tx-hashes for two reasons:
1) we don't want to accept substrings of valid values nor upper case versions
2) I thought would be good to have an error message on failure showing the allowed hashes.

Please, review the updated branch:
fg/team-clean-tx-hash-on-set-rh1541922

Comment 11 errata-xmlrpc 2018-04-10 13:37:57 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-2018:0778