Page MenuHomePhabricator

setup/install an-airflow1001.eqiad.wmnet on ganeti
Closed, ResolvedPublic

Description

Site/Location: eqiad
Number of systems: 1
Service: Apache Airflow instance for the Search Team
Networking Requirements: Analytics VLAN
Processor Requirements: 4
Memory: 8 GB
Disks: 50G
OS: Stretch or Buster are fine
Other Requirements: None

Context: https://airflow.apache.org/

The above specs are a complete guess. The system will not be doing any heavy computation or storage, this is an orchestrator that will issue all the real work to the yarn cluster. The applications that submit to the yarn cluster are in java though, so guessing it will need extra memory to deal with running a number of jvms, even if all they do is ping the yarn api and wait for completion.

Event Timeline

• elukey added projects: SRE, vm-requests.
• elukey updated the task description. (Show Details)
colewhite triaged this task as Medium priority.Oct 23 2019, 4:02 PM
elukey@ganeti1003:~$ sudo gnt-group list
Group Nodes Instances AllocPolicy NDParams
row_A     4        42 preferred   ovs=False, ssh_port=22, ovs_link=, spindle_count=1, exclusive_storage=False, cpu_speed=1, ovs_name=switch1, oob_program=
row_C     4        38 preferred   ovs=False, ssh_port=22, ovs_link=, spindle_count=1, exclusive_storage=False, cpu_speed=1, ovs_name=switch1, oob_program=

Row C is probably the best choice!

Change 546498 had a related patch set uploaded (by Elukey; owner: Elukey):
[operations/dns@master] Add AAAA/A/PTR records for airflow1001

https://gerrit.wikimedia.org/r/546498

Change 546498 merged by Elukey:
[operations/dns@master] Add AAAA/A/PTR records for an-airflow1001

https://gerrit.wikimedia.org/r/546498

Ottomata renamed this task from setup/install airflow1001.eqiad.wmnet on ganeti to setup/install an-airflow1001.eqiad.wmnet on ganeti.Oct 28 2019, 4:55 PM
elukey@cumin1001:~$ sudo cookbook sre.ganeti.makevm eqiad_C an-airflow1001.eqiad.wmnet --vcpus 4 --memory 8 --disk 50 --link analytics
START - Cookbook sre.ganeti.makevm
Creating new VM named an-airflow1001.eqiad.wmnet in eqiad with row=C vcpu=4 memory=8 gigabytes disk=50 gigabytes link=analytics
Is this correct?
Type "done" to proceed
> done
Mon Oct 28 16:57:09 2019  - INFO: No-installation mode selected, disabling startup
Mon Oct 28 16:57:14 2019  - INFO: Selected nodes for instance an-airflow1001.eqiad.wmnet via iallocator hail: ganeti1003.eqiad.wmnet, ganeti1001.eqiad.wmnet
Mon Oct 28 16:57:15 2019 * creating instance disks...
Mon Oct 28 16:57:19 2019 adding instance an-airflow1001.eqiad.wmnet to cluster config
Mon Oct 28 16:57:19 2019 adding disks to cluster config
Mon Oct 28 16:57:20 2019  - INFO: Waiting for instance an-airflow1001.eqiad.wmnet to sync disks
Mon Oct 28 16:57:20 2019  - INFO: - device disk/0:  0.10% done, 1h 31m 0s remaining (estimated)
Mon Oct 28 16:58:20 2019  - INFO: - device disk/0:  4.40% done, 22m 6s remaining (estimated)
Mon Oct 28 16:59:20 2019  - INFO: - device disk/0:  8.70% done, 20m 32s remaining (estimated)
Mon Oct 28 17:00:20 2019  - INFO: - device disk/0: 13.00% done, 19m 53s remaining (estimated)
Mon Oct 28 17:01:20 2019  - INFO: - device disk/0: 17.30% done, 19m 6s remaining (estimated)
Mon Oct 28 17:02:21 2019  - INFO: - device disk/0: 21.60% done, 17m 35s remaining (estimated)
Mon Oct 28 17:03:21 2019  - INFO: - device disk/0: 25.90% done, 16m 48s remaining (estimated)
Mon Oct 28 17:04:21 2019  - INFO: - device disk/0: 30.20% done, 16m 1s remaining (estimated)
Mon Oct 28 17:05:21 2019  - INFO: - device disk/0: 34.50% done, 14m 30s remaining (estimated)
Mon Oct 28 17:06:22 2019  - INFO: - device disk/0: 38.80% done, 13m 50s remaining (estimated)
Mon Oct 28 17:07:22 2019  - INFO: - device disk/0: 43.10% done, 13m 4s remaining (estimated)
Mon Oct 28 17:08:22 2019  - INFO: - device disk/0: 47.40% done, 12m 14s remaining (estimated)
Mon Oct 28 17:09:22 2019  - INFO: - device disk/0: 51.70% done, 10m 48s remaining (estimated)
Mon Oct 28 17:10:22 2019  - INFO: - device disk/0: 56.00% done, 10m 4s remaining (estimated)
Mon Oct 28 17:11:22 2019  - INFO: - device disk/0: 60.30% done, 9m 14s remaining (estimated)
Mon Oct 28 17:12:23 2019  - INFO: - device disk/0: 64.60% done, 7m 55s remaining (estimated)
Mon Oct 28 17:13:23 2019  - INFO: - device disk/0: 68.90% done, 7m 3s remaining (estimated)
Mon Oct 28 17:14:23 2019  - INFO: - device disk/0: 73.20% done, 6m 11s remaining (estimated)
Mon Oct 28 17:15:23 2019  - INFO: - device disk/0: 77.60% done, 4m 43s remaining (estimated)
Mon Oct 28 17:16:23 2019  - INFO: - device disk/0: 82.20% done, 3m 47s remaining (estimated)
Mon Oct 28 17:17:24 2019  - INFO: - device disk/0: 86.70% done, 2m 51s remaining (estimated)
Mon Oct 28 17:18:24 2019  - INFO: - device disk/0: 91.20% done, 1m 53s remaining (estimated)
Mon Oct 28 17:19:24 2019  - INFO: - device disk/0: 95.70% done, 56s remaining (estimated)
Mon Oct 28 17:20:20 2019  - INFO: - device disk/0: 99.90% done, 1s remaining (estimated)
Mon Oct 28 17:20:21 2019  - INFO: - device disk/0: 100.00% done, 0s remaining (estimated)
Mon Oct 28 17:20:22 2019  - INFO: - device disk/0: 100.00% done, 0s remaining (estimated)
Mon Oct 28 17:20:22 2019  - INFO: Instance an-airflow1001.eqiad.wmnet's disks are in sync
Mon Oct 28 17:20:22 2019  - INFO: Waiting for instance an-airflow1001.eqiad.wmnet to sync disks
Mon Oct 28 17:20:22 2019  - INFO: Instance an-airflow1001.eqiad.wmnet's disks are in sync
instance an-airflow1001.eqiad.wmnet created with MAC aa:00:00:97:85:12
END (PASS) - Cookbook sre.ganeti.makevm (exit_code=0)

Change 546660 had a related patch set uploaded (by Elukey; owner: Elukey):
[operations/puppet@production] Introduce an-airflow1001

https://gerrit.wikimedia.org/r/546660

Change 546660 merged by Elukey:
[operations/puppet@production] Introduce an-airflow1001

https://gerrit.wikimedia.org/r/546660

Change 546665 had a related patch set uploaded (by Elukey; owner: Elukey):
[operations/puppet@production] Add an-airflow to the ganeti's partman recipes

https://gerrit.wikimedia.org/r/546665

Change 546665 merged by Elukey:
[operations/puppet@production] Add an-airflow to the ganeti's partman recipes

https://gerrit.wikimedia.org/r/546665

For some reason that I don't get, the debian install gets stuck at the partman step since it doesn't find the correct recipe..

For some reason that I don't get, the debian install gets stuck at the partman step since it doesn't find the correct recipe..

It's because you have "an-airflow[1-9]" but that is matching only 1-9 and not 1001 - 1009.

For some reason that I don't get, the debian install gets stuck at the partman step since it doesn't find the correct recipe..

It's because you have "an-airflow[1-9]" but that is matching only 1-9 and not 1001 - 1009.

Shouldn't it match anyway the prefix an-airflow1 ? I am seeing other similar patters in the netboot config...

EDIT: now I know what Daniel means, trying to fix it manually on install1002 to triple check, if correct I'll amend puppet. Thanks a lot!

Change 546680 had a related patch set uploaded (by Elukey; owner: Elukey):
[operations/puppet@production] Fix partman configuration for an-airflow1001 in netboot

https://gerrit.wikimedia.org/r/546680

Change 546680 merged by Elukey:
[operations/puppet@production] Fix partman configuration for an-airflow1001 in netboot

https://gerrit.wikimedia.org/r/546680

The VM is ready, running buster with basic puppet settings (so only ops for now can ssh to it). @EBernhardson I just realized that Buster only ships with Python 3.7, is it ok for Airflow or do we need also Python 2? If so I'll need to delete the VM and create a new one with Stretch!

I've only tested 3.5, but their github and pypi pages list 3.7 compatibility so it should be ok. I think I can go ahead and deploy the software and see how it goes.

• elukey claimed this task.

All right then, let's close this and re-open if necessary!