Project

General

Profile

Actions

Task #2166

closed

Jenkins: CentOS 7 slave

Added by Junxiao Shi over 9 years ago. Updated almost 5 years ago.

Status:
Closed
Priority:
Normal
Category:
Build
Target version:
Start date:
Due date:
% Done:

100%

Estimated time:
3.00 h

Description

Deploy CentOS 7 x86_64 slaves.

Collect the list of packages needed by projects, so that the deployment can be repeated.


Related issues 1 (0 open1 closed)

Has duplicate NFD - Task #4610: Make CentOS 7 an official (CI-tested) platformClosedMd Ashiqur Rahman

Actions
Actions #1

Updated by Lan Wang over 9 years ago

  • Assignee changed from Lan Wang to Ashlesh Gawande
Actions #2

Updated by Ashlesh Gawande over 9 years ago

  • % Done changed from 0 to 50

Installed Virtual Machines and configured Networking and ssh.

Actions #3

Updated by Alex Afanasyev over 9 years ago

Ashlesh, how do you managing images? Just in plain virtualbox?

I have suggestion to invest time into building vagrant images and use puppet as a configuration management. It would still be virtualbox, but this would allow simpler instantiation and management of vms. Moreover, others would be able to easily instantiate VM that is used for testing.

Actions #4

Updated by Ashlesh Gawande over 9 years ago

Yes I am using VirtualBox command line to make VMs. Right now I just made three VMs. How do I build vagrant images?

Actions #5

Updated by Alex Afanasyev over 9 years ago

I have limited knowledge about vagrant, as I basically just started learning. Some tutorial is available at https://docs.vagrantup.com/v2/boxes.html.

I can only say that creating "box" in vagrant is straightforward and simple. Most likely, you will be able to reuse the virtualbox image you already created.


Another piece that I briefly mentioned is Puppet. I have not used it at all, but a lot of projects use it for management purposes. So we need to investigate how it can help us.

Actions #6

Updated by Ashlesh Gawande over 9 years ago

  • Status changed from New to In Progress
Actions #7

Updated by Ashlesh Gawande over 9 years ago

Alright I have installed all dependencies on the three machines. Now should I install a puppet agent on them and make a Vagrant base box?

Actions #8

Updated by Lan Wang over 9 years ago

go ahead if you know how to do those.

Actions #9

Updated by Ashlesh Gawande over 9 years ago

Hi Alex

I am confused about installing puppet server. Should I just install puppet agent on each machine and you will install and configure a server or should I install and configure a puppet server?

Actions #10

Updated by Alex Afanasyev over 9 years ago

I'm not sure. I don't really know what puppet is and how to use it. You can install agents on VMs and then try to figure out how to use them (and then tell us).

Actions #11

Updated by Alex Afanasyev over 9 years ago

And, just in case. It is optional. If it is too complicated to use / there are no clear benefits, then don't spend too much time on it.

Actions #12

Updated by Ashlesh Gawande over 9 years ago

  • % Done changed from 50 to 100

I am sorry I forgot to update here. I have abandoned the puppet installation. The machines can be logged in at:

I have vagrant boxes ready, which can be used to repeat deployment. Where do I upload them to?

Actions #13

Updated by Alex Afanasyev over 9 years ago

You can try to upload them to vagrant cloud (https://vagrantcloud.com). I haven't done it before, but they have some documentation about it.

Actions #14

Updated by Alex Afanasyev over 9 years ago

CentOS and Fedora required additional tweaking of /etc/sudoers: default config requires tty to run sudo, which prevents jenkins script to do any meaningful task.

See http://unix.stackexchange.com/questions/122616/why-do-i-need-a-tty-to-run-sudo-if-i-can-sudo-without-a-password

Actions #15

Updated by Alex Afanasyev over 9 years ago

Also failed and also most likely because of limited memory:

Actions #16

Updated by Ashlesh Gawande over 9 years ago

I disabled requiretty for jenkins user.

Actions #17

Updated by Alex Afanasyev over 9 years ago

Still failing at random places. http://jenkins.named-data.net/job/ndn-cxx/OS=CentOS7/1696/consoleFull

I have no idea what is going on and how to fix that... There is almost 2Gb free space available plus 2Gb of swap (which is not used).

Actions #18

Updated by Junxiao Shi almost 9 years ago

  • Status changed from In Progress to Closed
Actions #19

Updated by Junxiao Shi about 6 years ago

  • Status changed from Closed to New
  • Assignee deleted (Ashlesh Gawande)
  • Target version changed from v0.3 to v0.7
  • % Done changed from 100 to 0

As discussed in 20180409 NFD call, we should reactivate CentOS7 slaves.

Actions #20

Updated by Davide Pesavento about 6 years ago

  • Subject changed from Jenkins: CentOS 7.0 slave to Jenkins: CentOS 7 slave
  • Description updated (diff)
Actions #21

Updated by Davide Pesavento over 5 years ago

  • Status changed from New to In Progress
  • Assignee set to Md Ashiqur Rahman
Actions #22

Updated by Davide Pesavento over 5 years ago

  • Has duplicate Task #4610: Make CentOS 7 an official (CI-tested) platform added
Actions #23

Updated by Davide Pesavento over 5 years ago

  • % Done changed from 0 to 40

CentOS-7-64bit has been enabled for ndn-cxx.

Actions #24

Updated by Junxiao Shi over 5 years ago

I notice that both CentOS 7 slaves are deployed on the same site. One needs to be moved to fulfill resiliency requirements and prevent downtime due to single site failure.

Actions #25

Updated by Davide Pesavento about 5 years ago

  • % Done changed from 40 to 80
Actions #26

Updated by Davide Pesavento about 5 years ago

  • Status changed from In Progress to Feedback
  • % Done changed from 80 to 100

CentOS 7 slaves have been enabled for ndn-cxx, NFD, ndn-tools. More projects can follow in the future, if needed.

Setting status to Feedback due to note-24.

Actions #27

Updated by Davide Pesavento almost 5 years ago

  • Status changed from Feedback to Closed

Davide Pesavento wrote:

Setting status to Feedback due to note-24.

On second thought... both slaves are on maestro (UA) which is also the Jenkins master, so if that machine or site goes offline for any reason, everything else will go down as well. Deploying at different sites won't help in this case. Closing.

Actions

Also available in: Atom PDF