Skip to content

vETH: add full parameter support & along with Remote LPAR and HMC details.#388

Open
FarooqAbdulla02 wants to merge 2 commits intolop-devops:masterfrom
FarooqAbdulla02:feature/veth-improvements
Open

vETH: add full parameter support & along with Remote LPAR and HMC details.#388
FarooqAbdulla02 wants to merge 2 commits intolop-devops:masterfrom
FarooqAbdulla02:feature/veth-improvements

Conversation

@FarooqAbdulla02
Copy link
Copy Markdown
Contributor

  • Implement conditional host_ips/netmasks assignment:
    • One interface → single IP/netmask
    • Multiple interfaces → comma‑separated IPs/netmasks
  • Extend [io_veth_fvt] sections with complete parameter mappings.
  • Add peer_password mapping to [io_veth_fvt] for consistency.
  • Ensure identical parameter support for veth, FVT tests.

“Shaik added 2 commits March 5, 2026 18:06
- Remove the commented exclude_inputs_params block.
- Simplify configuration file handling by using shutil.copy() for all interface types.
- Reduce overall code complexity from 688 to 661 lines.
- All configuration files (vnic, veth, hnv, pci) are now copied directly without any filtering,
  making the code more maintainable and consistent.
- All existing functionality remains intact, including HMC integration (manageSystem, VIOS information),
  credential handling (hmc_pwd, vios_pwd), remote peer discovery through SSH,
  and dynamic parameter injection from files.

Signed-off-by: “Shaik <“shaik.abdulla1@ibm.com”>
…ails.

- Implement conditional host_ips/netmasks assignment:
  * One interface → single IP/netmask
  * Multiple interfaces → comma‑separated IPs/netmasks
- Extend [io_veth_fvt] sections with complete parameter mappings.
- Add peer_password mapping to [io_veth_fvt] for consistency.
- Ensure identical parameter support for  veth, FVT tests.

Signed-off-by: “Shaik <“shaik.abdulla1@ibm.com”>
@Naresh-ibm
Copy link
Copy Markdown

@FarooqAbdulla02 can you please attach the run logs. So that it will be easy to get merge

@FarooqAbdulla02
Copy link
Copy Markdown
Contributor Author

@Naresh-ibm Here are the running logs,

[root@ltcden7-lp23-new tests]# python pci_info.py --vnic --params-file adapter_list_values.txt --create-config
09:05:18 INFO : Loaded 4 param(s) from params file: adapter_list_values.txt
09:05:25 INFO : HMC IP detected via lsrsrc IBM.MCP: 10.48.33.38
09:05:25 INFO : Auto-detected HMC IP: 10.48.33.38
09:05:25 INFO : Remote mode: connecting to 10.48.35.44 as root
09:05:25 INFO : RemoteRunner ready for root@10.48.35.44:22 (sshpass mode)
09:05:26 INFO : Local LPAR name detected: ltcden7-lp23-Farooq_RH_10.2
09:05:26 INFO : HMCClient ready for hscroot@10.48.33.38:22
09:05:33 INFO : Managed systems on 10.48.33.38: ['10.48.32.162', 'ltcden3', 'ltcever87', 'ltcden4', 'ltcden7', 'ltcfuji9ys', 'ltcblue9qb', 'ltcd41', 'ltcblue9qd', 'ltcd89', 'ltcblue9qc']
09:05:33 ERROR : HMC command failed (exit 1): lssyscfg -r lpar -m 10.48.32.162 -F name
HSCL0237 This operation is not allowed when the managed system is in the Failed Authentication state. After you have established a connection from the management console to the managed system and have entered a valid management console access password, try the operation again.
09:05:33 WARNING : No LPARs found on managed system 10.48.32.162
09:05:34 INFO : LPARs on ltcden3: ['ltcden3-lp15', 'ltcden3-lp14', 'ltcden3-lp13', 'ltcden3-lp12', 'ltcden3-lp11', 'ltcden3-lp10', 'ltcden3-lp9', 'ltcden3-vios1', 'ltcden3-lp8', 'ltcden3-lp7', 'ltcden3-lp6', 'ltcden3-lp5', 'ltcden3-lp4', 'ltcden3-lp3', 'ltcden3-lp2', 'ltcden3-lp1']
09:05:34 INFO : LPARs on ltcever87: ['ltcever87-lp21-krishan', 'ltcever87-lp20-spyre-fvt', 'ltcever87-lp19-spyre-fvt', 'ltcever87-lp18-CR-rh9.5', 'ltcever87-lp17-spyre-janani', 'ltcever87-lp16_Yeswanth_Sles15Sp7', 'ltcever87-lp15_PP', 'ltcever87-lp14-CR', 'ltcever87-lp13-CR', 'ltcever87-lp12-krishan', 'ltcever87-lp11-CR', 'ltcever87-lp10_disha', 'ltcever87-lp9_sles15', 'ltcever87-lp8_yeswanth', 'ltcever87-lp7-disha', 'ltcever87-vios1', 'ltcever87-lp6-CR-SACHINPB', 'ltcever87-lp5_disha', 'ltcever87-lp4-spyre-fvt', 'ltcever87-lp3_Pavaman_RHEL9.8', 'ltcever87-lp2-Naveen', 'ltcever87-lp1']
09:05:34 INFO : LPARs on ltcden4: ['ltcden4-lp12-Farooq-vNIC-RH10.2', 'ltcden4-lp4-Naresh', 'ltcden4-lp21-SACHINPB', 'ltcden4-lp20-Vaishnavi_hnv_sles15sp7', 'ltcden4-lp18-Pavaman', 'ltcden4-lp16-Pavaman-Shasta', 'ltcden4-lp15-Naresh-ak', 'ltcden4-lp13-abdul', 'ltcden4-lp14-Farooq_RH-98', 'ltcden4-lp11-Pavaman-OnionCreekSRIOV', 'ltcden4-lp10-tejas', 'ltcden4-lp9-Vaishnavi_RH102', 'ltcden4-lp8-Pavaman', 'ltcden4-lp7-Murthy', 'ltcden4-vios1', 'ltcden4-lp6-Pavaman-OnionCreek-dedicated', 'ltcden4-lp5-Abdul', 'ltcden4-lp19-Vaishnavi_sl16', 'ltcden4-lp3-naveed', 'ltcden4-lp2-Farooq-RH-10.1_vNIC', 'ltcden4-lp1-Naresh']
09:05:34 INFO : LPARs on ltcden7: ['ltcden7-lp23-Farooq_RH_10.2', 'ltcden7-lp10-nvme-tcp-soft-target', 'ltcden7-lp22-Vaishnavi', 'ltcden7-lp20-jenkins-backup', 'ltcden7-lp19-Vaishnavi_rh9.8-Naveed', 'ltcden7-lp18-CR', 'ltcden7-lp17-CR-Barrowed_by_Farooq', 'ltcden7-lp14-Naresh', 'ltcden7-lp15-Vaishnavi_RH10', 'ltcden7-lp21-Pavaman', 'ltcden7-lp13-Pavaman-MOFED', 'ltcden7-lp12-nvmf', 'ltcden7-lp11-Pavaman', 'ltcden7-lp16-Naresh', 'ltcden7-lp9-Pavaman', 'ltcden7-lp8-Pavaman', 'ltcden7-lp7-Pavaman', 'ltcden7-vios1', 'ltcden7-lp6-Pavaman', 'ltcden7-lp5-Farooq_RH_10', 'ltcden7-lp4-gcov-rh96-Naresh', 'ltcden7-lp3-CI-LPM', 'ltcden7-lp2-Bluefin2-Murthy', 'ltcden7-lp1-Farooq_vNIC_bug']
09:05:34 INFO : LPAR 'ltcden7-lp23-Farooq_RH_10.2' found on managed system 'ltcden7'
09:05:34 INFO : Managed system resolved: ltcden7
09:05:34 INFO : HMCClient ready for hscroot@10.48.33.38:22
09:05:35 INFO : VIOS on 'ltcden7': names=ltcden7-vios1 ltcden7-vios1 ips=10.48.35.39
09:05:35 INFO : VIOS names: ltcden7-vios1 ltcden7-vios1 VIOS IPs: 10.48.35.39
09:05:35 INFO : Derived host_ip=192.168.10.62 host_ips=192.168.10.62 from public_interface_ip=10.48.35.62 (interfaces: 1)
09:05:35 INFO : Gathering peer vNIC details from remote host 10.48.35.44
09:05:36 INFO : Peer info injected: peer_ip=192.168.10.30 peer_ips=192.168.10.30 peer_interfaces=env6 peer_public_ip=10.48.35.44
09:05:37 INFO : python avocado-setup.py --run-suite host_io_vnic_stress_fvt --input-file io_input.txt ======> final command

@Naresh-ibm
Copy link
Copy Markdown

@FarooqAbdulla02 please paste the content of the final built input file, that will help

Copy link
Copy Markdown

@Naresh-ibm Naresh-ibm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants