| Summary: | RFE: Record and query which network interface is cabled in beaker machines | ||
|---|---|---|---|
| Product: | [Retired] Beaker | Reporter: | Qian Hong <qhong> |
| Component: | inventory | Assignee: | beaker-dev-list |
| Status: | CLOSED WONTFIX | QA Contact: | tools-bugs <tools-bugs> |
| Severity: | low | Docs Contact: | |
| Priority: | low | ||
| Version: | 0.8 | CC: | bpeck, cbouchar, kzhang, mcsontos, ptalbert, qhong, stl, tools-bugs, xtian |
| Target Milestone: | --- | Keywords: | FutureFeature, Reopened, Triaged |
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | Inventory | ||
| Fixed In Version: | Doc Type: | Enhancement | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2020-11-16 20:20:15 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
Hello, updates: It is a waste of resource if a network card is not connected. This happens in two ways: The first way is, a network card with single port, which is not connected; The second way is, a network card with multiple ports, and none of its ports is connected. We found this happens on many beaker machines, and have already opened some tickets to eng-ops [1][2]. However, rather than manually check every network cards on every machines, I think it is great if the inventory script would throw a warning when it find any network card match one of the above rules. Of cause it is the best if every ports of every network cards are all connected, but it seems will not happen in near future, our beaker labs might have no enough switcher ports in that case. Regards. [1] https://engineering.redhat.com/rt/Ticket/Display.html?id=143753 [2] https://engineering.redhat.com/rt/Ticket/Display.html?id=143754 Hello, update 2: In some machines of our beaker labs, there is a primary card which connected to the public beaker network and one or more cards connected to a private lan, here is an example: https://engineering.redhat.com/rt/Ticket/Display.html?id=143786 We need more information for our auto testing jobs, it would be great if the inventory script could report whether an interface is connected to the beaker public network. Regards. Can you please add an example (or examples) of a use case that you are looking for here? I am clear about what you are asking for, but not sure about the use case. I would also appreciate if you explain the update:2 a little more: https://bugzilla.redhat.com/show_bug.cgi?id=797696#c2 *** Bug 1210439 has been marked as a duplicate of this bug. *** Closing as insufficient data since no additional info has been provided in 7 years. Reopening after a discussion |
Description of problem: We already have a "Find Active Network interface" function in push-inventory.py, it will be nice if we can extend this script to record and query cable connection status of all network interfaces, that's very useful for our testing in network-qe groups. Technically it is possible to detect whether a network interface is connected or not, here is a bash version: --- snip --- #!/bin/sh ETHER_LIST=$(ifconfig -a | grep Ethernet | cut -f 1 -d' ') for ETHER in $ETHER_LIST; do ifconfig $ETHER up sleep 10s # usually it takes about 2 seconds to have the interface connected after # `ifconfig $ETHER up`, sometimes it takes more. 10 seconds should be long # enough. IS_LINKED=$(ethtool $ETHER | grep 'Link detected' | cut -f 3 -d' ' echo "balabla $IS_LINKED" done --- snip --- Thanks!