Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Activate and deactivate multicast on hyc Jenkins #6035

Closed
wants to merge 1 commit into from

Conversation

llxia
Copy link
Contributor

@llxia llxia commented Mar 12, 2025

  • run activate_multicast and deactivate_multicast on hyc Jenkins machines
  • the cmd can only run on rhel10 and zMetis atm. It is expected to be expanded on all machines.
  • special TARGET value is expected

resolves: #6030

@llxia
Copy link
Contributor Author

llxia commented Mar 12, 2025

15:19:50  sudo activate_multicast
[Pipeline] sh
15:19:51  + sudo activate_multicast
15:19:51  PRETTY_NAME="Red Hat Enterprise Linux 10.0 Beta (Coughlan)"
15:19:51  
15:19:51  DEFAULT NETWORK INTERFACE
15:19:51  2: ens33: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP mode DEFAULT group default qlen 1000
15:19:51      link/ether 00:50:56:94:20:72 brd ff:ff:ff:ff:ff:ff
15:19:51      altname enp2s1
15:19:51  
15:19:51  PRINT ALL ENABLED MUTICAST INTERFACES
15:19:51  2: ens33: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP mode DEFAULT group default qlen 1000
15:36:26  + sudo deactivate_multicast
15:36:26  PRETTY_NAME="Red Hat Enterprise Linux 10.0 Beta (Coughlan)"
15:36:26  
15:36:26  DEFAULT NETWORK INTERFACE
15:36:26  2: ens33: <BROADCAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP mode DEFAULT group default qlen 1000
15:36:26      link/ether 00:50:56:94:20:72 brd ff:ff:ff:ff:ff:ff
15:36:26      altname enp2s1
15:36:26  
15:36:26  PRINT ALL ENABLED MUTICAST INTERFACES

link

A new issue is opened for egrep: warning: egrep is obsolescent error: #6034

@llxia
Copy link
Contributor Author

llxia commented Mar 12, 2025

non-rhel10 and zMetis machine: link

16:34:53  runMulticastCmd: false

try {
addJobDescription()
setup()
addGrinderLink()

// activate_multicast on hyc-runtimes Jenkins serer
Copy link
Contributor

Choose a reason for hiding this comment

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

typo: serer -> server

Copy link
Contributor Author

Choose a reason for hiding this comment

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

fixed

@@ -996,6 +1020,11 @@ def testBuild() {
testExecution()
}
} finally {
// deactivate_multicast on hyc-runtimes Jenkins serer
Copy link
Contributor

Choose a reason for hiding this comment

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

typo: serer -> server

Copy link
Contributor Author

Choose a reason for hiding this comment

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

fixed

Copy link
Contributor

@LongyuZhang LongyuZhang left a comment

Choose a reason for hiding this comment

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

LGTM

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
Signed-off-by: Lan Xia <[email protected]>
@llxia llxia marked this pull request as draft March 12, 2025 22:51
@llxia
Copy link
Contributor Author

llxia commented Mar 12, 2025

re #6035 (comment), noticed the build had AbortException and resulted in FAILURE status. Converted the PR into draft for further investigation.

15:36:26  Exception: hudson.AbortException: script returned exit code 1
[Pipeline] timeout
15:36:26  Timeout set to expire in 5 min 0 sec
[Pipeline] {
[Pipeline] echo
15:36:26  Grinder_JCK #3840 result is FAILURE. Checking console log for specific errors...
[Pipeline] }

@llxia
Copy link
Contributor Author

llxia commented Mar 12, 2025

deactivate_multicast exited with 1 which caused the build to fail.

19:16:44  + sudo deactivate_multicast
19:16:44  PRETTY_NAME="Red Hat Enterprise Linux 10.0 Beta (Coughlan)"
19:16:44  
19:16:44  DEFAULT NETWORK INTERFACE
19:16:44  2: ens33: <BROADCAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP mode DEFAULT group default qlen 1000
19:16:44      link/ether 00:50:56:94:20:72 brd ff:ff:ff:ff:ff:ff
19:16:44      altname enp2s1
19:16:44  
19:16:44  PRINT ALL ENABLED MUTICAST INTERFACES
[Pipeline] echo
19:16:44  statusCode: 1

Below is deactivate_multicast content. After setting multicast off, ip link show | grep MULTICAST cannot find anything and exits with 1. It should be updated to exit with 0 as no MULTICAST is expected.

15:12:05  + cat /usr/bin/deactivate_multicast
15:12:05  #!/bin/sh
15:12:05  
15:12:05  export OS=""
15:12:05  if cat /etc/os-release|grep PRETTY|grep -i Red; then OS=rhel; fi
15:12:05  if cat /etc/os-release|grep PRETTY|grep -i SUSE; then OS=sles; fi
15:12:05  if cat /etc/os-release|grep PRETTY|grep -i Ubuntu; then OS=ubuntu; fi
15:12:05  if cat /etc/os-release|grep PRETTY|grep -i Debian; then OS=debian; fi
15:12:05  
15:12:05  # Identify default interface
15:12:05  export NIC=`ip -o -4 route show to default | awk '{print $5}'`
15:12:05  
15:12:05  case $OS in
15:12:05    "sles" )
15:12:05      printf "\nDEFAULT NETWORK INTERFACE\n"
15:12:05      ip link set $NIC multicast off
15:12:05    ;;
15:12:05    *)
15:12:05      printf "\nDEFAULT NETWORK INTERFACE\n"
15:12:05      ip link set $NIC multicast off
15:12:05    ;;
15:12:05  esac
15:12:05  
15:12:05  # display interface properties
15:12:05  ip link show $NIC
15:12:05  
15:12:05  # show all enabled interfaces
15:12:05  printf "\nPRINT ALL ENABLED MUTICAST INTERFACES\n"
15:12:05  ip link show | grep MULTICAST

@llxia
Copy link
Contributor Author

llxia commented Mar 13, 2025

Left comment on infrastructure/issues/10333. Pending on deactivate_multicast update.

@llxia
Copy link
Contributor Author

llxia commented Mar 19, 2025

close this PR in fav of #6069

@llxia llxia closed this Mar 19, 2025
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.

Activate and deactivate multicast
3 participants