-
Notifications
You must be signed in to change notification settings - Fork 52
Cleanup Prod Jenkins Node configurations #7
Comments
This issue/pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
This issue/pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
@gowthamchinna Can you please take a look |
Sure will work on it |
Hi @gowthamchinna can you provide an update on this issue? |
For the convenience of the Seagate development team, this issue has been mirrored in a private Seagate Jira Server: https://jts.seagate.com/browse/EOS-28328. Note that community members will not be able to access that Jira server but that is not a problem since all activity in that Jira mirror will be copied into this GitHub issue. |
Hi @shailesh-vaidya can you provide an update on this issue? |
@nikhilpatil2995 is working on this task in the current sprint. @nikhilpatil2995 Please update details. |
We have created an excel sheet which contains the offline agent details. We will share the excel to the respective team to delete the node/agent if it is not required. |
I have verified the nodes in Prod Jenkins, Unable to find the nodes which is specified in ticket. It maybe cleaned earlier. |
[~945475] - Updated ticket details based on scrum discussion. CC: [~940197] |
I have created script to extract the information of nodes, But to run that it needs admin access. As [~729494] rightly suggested me to setup one dev Jenkins and try the script there first. So, I have setup Jenkins ( [http://ssc-vm-g4-rhev4-1690.colo.seagate.com:8080/ |http://ssc-vm-g4-rhev4-1690.colo.seagate.com:8080/]) and created 2 nodes(ssc-vm-g3-rhev4-3198.colo.seagate.com & ssc-vm-g3-rhev4-3198.colo.seagate.com) with different users. One is online and another node is offline for testing. Then I have tested my script getting the following output : ==================== Name: Node1 getLabelString: ssc-vm-g3-rhev4-3203.colo.seagate.com getNumExectutors: 1 getRemoteFS: /root getMode: NORMAL getRootPath: /root getDescriptor: hudson.slaves.DumbSlave$DescriptorImpl@530c28a1 getComputer: hudson.slaves.SlaveComputer@51e2a0de computer.isAcceptingTasks: true computer.isLaunchSupported: true computer.getConnectTime: 1654854879632 computer.getDemandStartMilliseconds: 9223372036854775807 computer.isOffline: false ==================== Name: Node2 getLabelString: NojavaNode getNumExectutors: 1 getRemoteFS: /root getMode: NORMAL getRootPath: null getDescriptor: hudson.slaves.DumbSlave$DescriptorImpl@530c28a1 getComputer: hudson.slaves.SlaveComputer@6e383529 computer.isAcceptingTasks: true computer.isLaunchSupported: true computer.getConnectTime: 1654855520383 computer.getDemandStartMilliseconds: 9223372036854775807 computer.isOffline: true
Now trying to enhancing the script to extract VM & user details. cc: [~940197] |
Hi [~729494] ,I am able to extract the VM, Label & Status details via job on development Jenkins. Below is the output: echoHostname: ssc-vm-g3-rhev4-3203.colo.seagate.com[Pipeline] echo computer.isOffline: false [Pipeline] echo-------------------------------- [Pipeline] echoSlave: Node2[Pipeline] echoHostname: ssc-vm-g3-rhev4-3198.colo.seagate.com [Pipeline] echo computer.isOffline: true CC: [~940197] |
Hi [~729494], I am now able to extract all the needed information. Below is the output: |
I found there were some security vulnerabilities in some functions like: Getting this warning when approving the functions "Approving this signature may introduce a security vulnerability! You are advised to deny it." So, replacing it with staticMethod jenkins.model.Jenkins get as per [https://github.com/jenkinsci/jenkins/pull/4042#:~:text=Note%20that%20Jenkins,PR%20is%20fine] No vulnerabilities is scanned over dev Jenkins. Getting the output as per desired. cc: [~729494] |
Fixed some issues in Prod Jenkins, Able to get the details. Made some improvements as per [~729494] :
Script: [https://github.com/vijwani-seagate/cortx-re/blob/CORTX-28328/jenkins/env_setup/Jenkinsnodedetails.groovy] cc: [~940197] |
PR: #1088 |
Hello [~940197], The PR got merged, but I am unable to put this ticket in resolve state. Getting this error: "Environment is required. But it is not present on screen. " !image-2022-06-29-17-10-43-220.png! Can you please help me in putting it in resolve state? |
{panel:bgColor=#c1c7d0}h2. cortx-rgw - main branch build pipeline SUCCESS
h3. Image Location :
|
Resolved |
Completed |
There are many unused and disconnected Jenkins Agents in Production Jenkins. We need to remove them to free up infra resources. In order to do that we need the following info for each node
We should create a Jenkins job to list down the above info for offline nodes.
Refernce -
The text was updated successfully, but these errors were encountered: