Page MenuHomeDevCentral
Feed All Stories

Jan 13 2024

dereckson committed rDSfc13adda27ce: Use fantoir_YYYMM format to suggest FANTOIR table name (authored by dereckson).
Use fantoir_YYYMM format to suggest FANTOIR table name
Jan 13 2024, 20:08
dereckson closed D3277: Use fantoir_YYYMM format to suggest FANTOIR table name.
Jan 13 2024, 20:08
dereckson added a comment to D3277: Use fantoir_YYYMM format to suggest FANTOIR table name.
WindRiver
$ cd /tmp/fantoir
$ rm FANTOIR0423
$ fantoir-datasource fetch
FANTOIR_FILE=FANTOIR0423
FANTOIR_TABLE=fantoir_202304
Jan 13 2024, 20:07
dereckson accepted D3277: Use fantoir_YYYMM format to suggest FANTOIR table name.
Jan 13 2024, 20:05
dereckson requested review of D3277: Use fantoir_YYYMM format to suggest FANTOIR table name.
Jan 13 2024, 20:05
dereckson added a revision to T1941: Zerofill FANTOIR_TABLE information: D3277: Use fantoir_YYYMM format to suggest FANTOIR table name.
Jan 13 2024, 20:05 · Nasqueron Databases
dereckson updated the diff for D2754: Run fantoir-datasource as Airflow pipeline.

Use fantoir_YYYMM format to suggest FANTOIR table name

Jan 13 2024, 20:03
dereckson claimed T1941: Zerofill FANTOIR_TABLE information.
Jan 13 2024, 19:49 · Nasqueron Databases
dereckson moved T1941: Zerofill FANTOIR_TABLE information from Backlog to Working on on the Nasqueron Databases board.
Jan 13 2024, 19:49 · Nasqueron Databases
dereckson triaged T1941: Zerofill FANTOIR_TABLE information as Normal priority.
Jan 13 2024, 19:49 · Nasqueron Databases
dereckson closed T1940: Can't compile crc32fast on FreeBSD with current datasources dependencies as Resolved.

The crc32fast is a dependency of reqwest, it can be built in version 1.3.2 for reqwest 0.11.17.

Jan 13 2024, 19:25 · Regression, Nasqueron Databases
dereckson triaged T1940: Can't compile crc32fast on FreeBSD with current datasources dependencies as High priority.
Jan 13 2024, 19:19 · Regression, Nasqueron Databases
dereckson closed D3276: Create workspace directory for Airflow pipelines.
Jan 13 2024, 18:46
dereckson committed rOPSe584e2dcf7d0: Create workspace directory for Airflow pipelines (authored by dereckson).
Create workspace directory for Airflow pipelines
Jan 13 2024, 18:46
dereckson accepted D3276: Create workspace directory for Airflow pipelines.
Dwellers
$ airflow nasqueron shell
$ airflow variables get fantoir_directory
/home/airflow/workspace/fantoir
$ ls ~/workspace
fantoir
Jan 13 2024, 18:36
dereckson added inline comments to D2754: Run fantoir-datasource as Airflow pipeline.
Jan 13 2024, 18:27
dereckson updated the diff for D3276: Create workspace directory for Airflow pipelines.

+wrapper

Jan 13 2024, 18:21
dereckson added a revision to T1812: Deploy Airflow: D3276: Create workspace directory for Airflow pipelines.
Jan 13 2024, 18:21 · Product evaluation, Continous integration and delivery, Nasqueron Databases
dereckson requested review of D3276: Create workspace directory for Airflow pipelines.
Jan 13 2024, 18:21
dereckson moved T1751: Enrich FANTOIR database with Wikidata information from Working on to Backlog on the Nasqueron Databases board.
Jan 13 2024, 18:16 · Wikimedia, Nasqueron Databases
dereckson moved T1875: Refresh RFC entries from Working on to Backlog on the Nasqueron Databases board.
Jan 13 2024, 18:15 · Nasqueron Databases, Odderon
dereckson moved T1131: Populate language codes from Working on to Backlog on the Nasqueron Databases board.
Jan 13 2024, 18:15 · Nasqueron Databases, Odderon
dereckson moved T1812: Deploy Airflow from Backlog to Working on on the Nasqueron Databases board.
Jan 13 2024, 18:15 · Product evaluation, Continous integration and delivery, Nasqueron Databases
dereckson added a comment to T1812: Deploy Airflow.

Previous status from 2023 installation:

Jan 13 2024, 16:46 · Product evaluation, Continous integration and delivery, Nasqueron Databases
dereckson added inline comments to D2754: Run fantoir-datasource as Airflow pipeline.
Jan 13 2024, 14:32
dereckson committed rOPSd20a9814bb4c: Allow Airflow to connect to Vault (authored by dereckson).
Allow Airflow to connect to Vault
Jan 13 2024, 14:25
dereckson closed D3273: Allow Airflow to connect to Vault.
Jan 13 2024, 14:25
dereckson updated the summary of D3273: Allow Airflow to connect to Vault.
Jan 13 2024, 14:24
dereckson added a comment to D3273: Allow Airflow to connect to Vault.

The AIRFLOW__DATABASE__SQL_ALCHEMY_CONN environment variable will be removed later, allowing faster container spawn time, but that's for D3273.

Jan 13 2024, 14:23
dereckson added a comment to D3270: Create Vault policy for Airflow.
Jan 13 2024, 14:22
dereckson closed D3270: Create Vault policy for Airflow.
Jan 13 2024, 14:19
dereckson committed rOPS9e46c1130e03: Create Vault policy for Airflow (authored by dereckson).
Create Vault policy for Airflow
Jan 13 2024, 14:19
dereckson updated the test plan for D3270: Create Vault policy for Airflow.
Jan 13 2024, 14:19
dereckson accepted D3270: Create Vault policy for Airflow.

Policy validated during D3273 tests: read is enough.

Jan 13 2024, 14:15
dereckson accepted D3273: Allow Airflow to connect to Vault.
Jan 13 2024, 14:07
dereckson added a comment to D3273: Allow Airflow to connect to Vault.

Tests passed. Works well, but fail silently if the password contains special characters as such we can't parse the DSN as a valid URL.

Jan 13 2024, 14:01
dereckson updated the diff for D3273: Allow Airflow to connect to Vault.

Use airflow.cfg for service containers too

Jan 13 2024, 13:47
dereckson updated the diff for D3273: Allow Airflow to connect to Vault.

Correct database schemes for the PostgreSQLdatabase

Jan 13 2024, 13:42
dereckson closed D3275: Allow to enter a shell for Airflow maintenance operations.
Jan 13 2024, 13:32
dereckson committed rOPS075d7c8cb787: Allow to enter a shell for Airflow maintenance operations (authored by dereckson).
Allow to enter a shell for Airflow maintenance operations
Jan 13 2024, 13:32
dereckson accepted D3275: Allow to enter a shell for Airflow maintenance operations.
Jan 13 2024, 13:31
dereckson added a comment to D3275: Allow to enter a shell for Airflow maintenance operations.

When deployed to Dwellers, code is no-op regarding the code tested there, so looks good to me.

Jan 13 2024, 13:31
dereckson requested review of D3275: Allow to enter a shell for Airflow maintenance operations.
Jan 13 2024, 13:30
dereckson added a revision to T1812: Deploy Airflow: D3275: Allow to enter a shell for Airflow maintenance operations.
Jan 13 2024, 13:30 · Product evaluation, Continous integration and delivery, Nasqueron Databases
dereckson updated the diff for D3273: Allow Airflow to connect to Vault.

Prune extraneous comma. Grrmbl JSON.

Jan 13 2024, 13:14
dereckson updated the diff for D3273: Allow Airflow to connect to Vault.

uid 50000, JSON syntax

Jan 13 2024, 13:08
dereckson updated the diff for D3273: Allow Airflow to connect to Vault.

Fix typo for airflow configuration path

Jan 13 2024, 13:05
dereckson updated the diff for D3273: Allow Airflow to connect to Vault.

Restore credentials module, we don't need to inject secret_id and role_id to a dictionary anymore

Jan 13 2024, 13:02
dereckson updated the diff for D3273: Allow Airflow to connect to Vault.

Provision airflow.cfg

Jan 13 2024, 13:01
dereckson closed D3274: Document correct source file path for Airflow wrapper.
Jan 13 2024, 12:53
dereckson committed rOPSc2b7afbb55a9: Document correct source file path for Airflow wrapper (authored by dereckson).
Document correct source file path for Airflow wrapper
Jan 13 2024, 12:53
dereckson accepted D3274: Document correct source file path for Airflow wrapper.
Jan 13 2024, 12:53
dereckson requested review of D3274: Document correct source file path for Airflow wrapper.
Jan 13 2024, 12:52
dereckson planned changes to D3273: Allow Airflow to connect to Vault.
Jan 13 2024, 00:49
dereckson added a comment to D3273: Allow Airflow to connect to Vault.

The tojson filter created this:

Jan 13 2024, 00:31
dereckson updated the diff for D3273: Allow Airflow to connect to Vault.

Add salt to get secret id / role id

Jan 13 2024, 00:21
dereckson updated the diff for D3273: Allow Airflow to connect to Vault.

Move dictionary build to credentials module

Jan 13 2024, 00:16
dereckson updated the summary of D3273: Allow Airflow to connect to Vault.
Jan 13 2024, 00:03
dereckson added a revision to T1812: Deploy Airflow: D3273: Allow Airflow to connect to Vault.
Jan 13 2024, 00:03 · Product evaluation, Continous integration and delivery, Nasqueron Databases
dereckson requested review of D3273: Allow Airflow to connect to Vault.
Jan 13 2024, 00:03

Jan 12 2024

dereckson closed D3271: Add Nasqueron Vault CA certificate to image.
Jan 12 2024, 23:23
dereckson committed rDAF07b7040c55c2: Add Nasqueron Vault CA certificate to image (authored by dereckson).
Add Nasqueron Vault CA certificate to image
Jan 12 2024, 23:23
dereckson accepted D3271: Add Nasqueron Vault CA certificate to image.
Dwellers
$ docker build -t nasqueron/airflow .
[...]
Jan 12 2024, 23:23
dereckson committed rRPRT8fc27bd6a3f9: Put MySQL queries in correct db-B cluster (authored by dereckson).
Put MySQL queries in correct db-B cluster
Jan 12 2024, 23:12
dereckson closed D3272: Put MySQL queries in correct db-B cluster.
Jan 12 2024, 23:12
dereckson accepted D3272: Put MySQL queries in correct db-B cluster.
Jan 12 2024, 23:12
dereckson requested review of D3272: Put MySQL queries in correct db-B cluster.
Jan 12 2024, 23:12
dereckson requested review of D3271: Add Nasqueron Vault CA certificate to image.
Jan 12 2024, 22:47
dereckson added a revision to T1812: Deploy Airflow: D3271: Add Nasqueron Vault CA certificate to image.
Jan 12 2024, 22:47 · Product evaluation, Continous integration and delivery, Nasqueron Databases
dereckson added a revision to T1812: Deploy Airflow: D3270: Create Vault policy for Airflow.
Jan 12 2024, 20:26 · Product evaluation, Continous integration and delivery, Nasqueron Databases
dereckson requested review of D3270: Create Vault policy for Airflow.
Jan 12 2024, 20:26
dereckson added a comment to T1812: Deploy Airflow.

DNS -> airflow.nasqueron.org. 172800 IN CNAME app2.nasqueron.org.

Jan 12 2024, 19:10 · Product evaluation, Continous integration and delivery, Nasqueron Databases
dereckson closed D3269: Use nasqueron/airflow image for Airflow command wrapper too.
Jan 12 2024, 19:02
dereckson committed rOPS76b53a39115b: Use nasqueron/airflow image for Airflow command wrapper too (authored by dereckson).
Use nasqueron/airflow image for Airflow command wrapper too
Jan 12 2024, 19:02
dereckson accepted D3269: Use nasqueron/airflow image for Airflow command wrapper too.
Dwellers
$ airflow nasqueron db upgrade
/home/airflow/.local/lib/python3.11/site-packages/airflow/cli/commands/db_command.py:68 DeprecationWarning: `db upgrade` is deprecated. Use `db migrate` instead.
DB: postgresql+psycopg2://airflow:***@172.27.27.8/airflow
Performing upgrade to the metadata database postgresql+psycopg2://airflow:***@172.27.27.8/airflow
[2024-01-12T18:56:14.127+0000] {migration.py:213} INFO - Context impl PostgresqlImpl.
[2024-01-12T18:56:14.128+0000] {migration.py:216} INFO - Will assume transactional DDL.
[2024-01-12T18:56:14.139+0000] {db.py:1615} INFO - Creating tables
INFO  [alembic.runtime.migration] Context impl PostgresqlImpl.
INFO  [alembic.runtime.migration] Will assume transactional DDL.
INFO  [alembic.runtime.migration] Running upgrade 290244fb8b83 -> 6abdffdd4815, add dttm index on log table
INFO  [alembic.runtime.migration] Running upgrade 6abdffdd4815 -> 98ae134e6fff, Increase length of user identifier columns in ``ab_user`` and ``ab_register_user`` tables
INFO  [alembic.runtime.migration] Running upgrade 98ae134e6fff -> c804e5c76e3e, Add ``onupdate`` cascade to ``task_map`` table
INFO  [alembic.runtime.migration] Running upgrade c804e5c76e3e -> 937cbd173ca1, Add index to task_instance table
INFO  [alembic.runtime.migration] Running upgrade 937cbd173ca1 -> 788397e78828, Add custom_operator_name column
INFO  [alembic.runtime.migration] Running upgrade 788397e78828 -> 405de8318b3a, add include_deferred column to pool
INFO  [alembic.runtime.migration] Running upgrade 405de8318b3a -> 375a816bbbf4, add new field 'clear_number' to dagrun
INFO  [alembic.runtime.migration] Running upgrade 375a816bbbf4 -> f7bf2a57d0a6, Add owner_display_name to (Audit) Log table
INFO  [alembic.runtime.migration] Running upgrade f7bf2a57d0a6 -> bd5dfbe21f88, Make connection login/password TEXT
INFO  [alembic.runtime.migration] Running upgrade bd5dfbe21f88 -> 10b52ebd31f7, Add processor_subdir to ImportError.
Database migrating done!
Jan 12 2024, 19:01
dereckson requested review of D3269: Use nasqueron/airflow image for Airflow command wrapper too.
Jan 12 2024, 19:00
dereckson added a revision to T1812: Deploy Airflow: D3269: Use nasqueron/airflow image for Airflow command wrapper too.
Jan 12 2024, 19:00 · Product evaluation, Continous integration and delivery, Nasqueron Databases
dereckson added a comment to D3268: Upgrade to AirFlow 2.8.0 and Python 3.11.

One of the issue with the current procedure is the airflow command is still under 2.5.2:

Jan 12 2024, 18:55
dereckson added a comment to D3268: Upgrade to AirFlow 2.8.0 and Python 3.11.
Dwellers
$ deploy-containers-service airflow
[…]
----------
          ID: airflow_web
    Function: docker_container.running
      Result: True
     Comment: Replaced container 'airflow_web'. State changed from 'stopped' to 'running'. Container has a new image.
     Started: 18:45:58.009764
    Duration: 6838.744 ms
     Changes:
              ----------
              container_id:
                  ----------
                  added:
                      225f26be8d11efdfe1ca5f6fdaa0292b469411c3fd6f17448cea1ce6f2302748
                  removed:
                      - 7db02e9132e4034668ea6436f6abca659995bd7c3fb9d8e27e09ee2d1aeb7f76
              image:
                  ----------
                  new:
                      sha256:51f5e1b11188b4b10efd6a44528a13a559a937cc18cc9c6f0b1166c8dc8090b7
                  old:
                      sha256:12037a55b9dd7fb6d59308e92b619f8bff2a016ea04889b2bd464b8d8db0f3bd
              state:
                  ----------
                  new:
                      running
                  old:
                      stopped
[…]
Jan 12 2024, 18:47
dereckson closed D3268: Upgrade to AirFlow 2.8.0 and Python 3.11.
Jan 12 2024, 18:44
dereckson committed rDAFc6b6da7ceafb: Upgrade to AirFlow 2.8.0 and Python 3.11 (authored by dereckson).
Upgrade to AirFlow 2.8.0 and Python 3.11
Jan 12 2024, 18:44
dereckson accepted D3268: Upgrade to AirFlow 2.8.0 and Python 3.11.
Jan 12 2024, 18:43
dereckson requested review of D3268: Upgrade to AirFlow 2.8.0 and Python 3.11.
Jan 12 2024, 18:43
dereckson closed D3267: Configure Arcanist.
Jan 12 2024, 18:39
dereckson committed rDAF1bc4aaf65c99: Configure Arcanist (authored by dereckson).
Configure Arcanist
Jan 12 2024, 18:39
dereckson accepted D3267: Configure Arcanist.
Jan 12 2024, 18:38
dereckson requested review of D3267: Configure Arcanist.
Jan 12 2024, 18:38
dereckson closed D3266: Create custom Docker image with Sentry.
Jan 12 2024, 18:37
dereckson committed rDAF201c7874ddae: Create custom Docker image with Sentry (authored by dereckson).
Create custom Docker image with Sentry
Jan 12 2024, 18:37
dereckson accepted D3266: Create custom Docker image with Sentry.

Not yet committed code from last March, so that explains the version lag. 2.5.2 is still what's currently deployed.

Jan 12 2024, 18:37
dereckson requested review of D3266: Create custom Docker image with Sentry.
Jan 12 2024, 18:36
dereckson added a revision to T1812: Deploy Airflow: D3266: Create custom Docker image with Sentry.
Jan 12 2024, 18:36 · Product evaluation, Continous integration and delivery, Nasqueron Databases

Jan 10 2024

dereckson updated the task description for T1938: Non open-source infrastructure software policy.
Jan 10 2024, 22:30 · discussion, Servers
dereckson added a comment to T1938: Non open-source infrastructure software policy.

Added RHEL question.

Jan 10 2024, 22:23 · discussion, Servers
dereckson updated the task description for T1938: Non open-source infrastructure software policy.
Jan 10 2024, 22:23 · discussion, Servers
dereckson lowered the priority of T1939: Implement blue/green deployment or immutable artefacts for router-001 from Normal to Low.
Jan 10 2024, 22:11 · Servers, Restricted Project
dereckson added a comment to T1939: Implement blue/green deployment or immutable artefacts for router-001.

router-001 update would cut network connections between Ysul, WindRiver, CloudHugger and IntraNought VMs.

I think that's actually acceptable, as production services can reach web-001/db-*/ directly through their dedicated network card.

Impact:

  • IRC bots wouldn't be able to reach MySQL or Vault as they're still on Ysul
  • Services still on Ysul can't reach
  • Development servers can't reach production services, or Dwellers

Another issue is we lose connections to all those machines, as router-001 is used to route traffic to them.

Probably best to ship router-002 under FreeBSD 14 so we can prepare to minimize this impact if we need more hypervisors in the future.

Jan 10 2024, 22:10 · Servers, Restricted Project
dereckson updated the task description for T1939: Implement blue/green deployment or immutable artefacts for router-001.
Jan 10 2024, 22:10 · Servers, Restricted Project
dereckson closed T1924: Upgrade servers to FreeBSD 14 as Resolved.

router-001 is out of scope as long as T1939 is implemented

Jan 10 2024, 22:09 · Servers
dereckson triaged T1939: Implement blue/green deployment or immutable artefacts for router-001 as Normal priority.
Jan 10 2024, 22:08 · Servers, Restricted Project