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

Jenkins job to do daily node maintenance #10

Open
VermaSh opened this issue Mar 23, 2018 · 4 comments
Open

Jenkins job to do daily node maintenance #10

VermaSh opened this issue Mar 23, 2018 · 4 comments
Labels
enhancement New feature or request

Comments

@VermaSh
Copy link
Contributor

VermaSh commented Mar 23, 2018

We'll need a job that runs periodically and validates the machines on Jenkins with those in the inventory file. Along with adding machines the job will also any labels mentioned in the inventory file.

@VermaSh
Copy link
Contributor Author

VermaSh commented Mar 23, 2018

I have a job that adds new nodes and adds the default labels (Endian, OS, architecture and kernel). I am also working on a job that will pull the inventory file from git. I'll push them both soon.

@karianna karianna added the enhancement New feature or request label Mar 24, 2018
@gdams
Copy link
Member

gdams commented Mar 25, 2018

So a useful command to know would be python ansible/plugins/inventory/adoptopenjdk_yaml.py (run from the root of the infrastructure repo). This will return a large JSON _meta object like this:

"_meta": {
    "hostvars": {
      "build-osuosl-centos74-ppc64le-1": {
        "uid": "1", 
        "type": "build", 
        "ansible_become": true, 
        "ansible_user": "centos", 
        "arch": "ppc64le", 
        "provider": "osuosl", 
        "os": "centos74", 
        "ansible_host": "140.211.168.138"
      }, 
      "build-scaleway-ubuntu1604-x64-2": {
        "uid": "2", 
        "provider": "scaleway", 
        "type": "build", 
        "os": "ubuntu1604", 
        "ansible_host": "51.15.46.107", 
        "arch": "x64"
      } 
}

@VermaSh
Copy link
Contributor Author

VermaSh commented Mar 27, 2018

@gdams thanks! I'll look into it

@VermaSh
Copy link
Contributor Author

VermaSh commented Apr 2, 2018

I have just created a PR for the second part of this issue, creating new nodes. I have submitted the parts separate because those jobs were very close to their usable states and incase I don't get around to finishing the Node maintenance job there'll at least be these jobs to automate most of the work.

VermaSh added a commit to VermaSh/openjdk-jenkins-helper that referenced this issue Apr 9, 2018
- Added CreateNewNode job
- Updated readme file to include the new job
- Moved string constants to the vars directory of the Node helper API

Issue adoptium#10
VermaSh added a commit to VermaSh/openjdk-jenkins-helper that referenced this issue Apr 11, 2018
- Added CreateNewNode job
- Updated readme file to include the new job
- Moved string constants to the vars directory of the Node helper API
- added a input parameter for SSH key id in CreateNewNode

issue adoptium#10

Signed-off-by: Shubham Verma <shubhamv.sv@gmail.com>
VermaSh added a commit to VermaSh/openjdk-jenkins-helper that referenced this issue Apr 11, 2018
- This is part of what NodeMaintaince job will be doing
- This job only updates labels and desription
- Updated readme for UpdateMachineIdentifiers
- Replaced initial_run with overWriteLabels
- Added functionality to allow user to overwrite pre-configured labels

issue adoptium#10

Signed-off-by: Shubham Verma <shubhamv.sv@gmail.com>
@adoptium adoptium deleted a comment Apr 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants