bitnami / charts

Bitnami Helm Charts
https://bitnami.com
Other
8.85k stars 9.14k forks source link

[bitnami/airflow] existingConfigmap not working as expected #21053

Closed thispejo closed 9 months ago

thispejo commented 10 months ago

Name and Version

bitnami/airflow/16.1.2

What architecture are you using?

None

What steps will reproduce the bug?

Apparently since a certain version of the chart started giving the error below:

No injected configuration file found. Creating default config file
cp: cannot create regular file '/opt/bitnami/airflow/webserver_config.py': Read-only file system

In my production environment it is working as expected, I am using version --version 14.4.0

In the approval environment I tested the charts in the versions: 16.1.2, 16.1.1, 16.1.0, 16.0.7, they all generated the same error.

Are you using any custom parameters or values?

auth:
  username: "xpto"  
executor: "CeleryKubernetesExecutor"

web: 
  existingConfigmap: airflow-web-config-16
  image:  
    debug: true    
  autoscaling:
    enable: true  
    minReplicas: 1
    maxReplicas: 3
  extraVolumes:  
    - name: requirements
      configMap:
        name: requirements     
  extraVolumeMounts:
    - name: requirements
      mountPath: /bitnami/python/requirements.txt
      subPath: requirements.txt      
  replicaCount: 1
  nodeSelector:
    name: Homologacao 
  readinessProbe:
    enabled: true
    initialDelaySeconds: 360
  livenessProbe:
    enabled: true
    initialDelaySeconds: 360

  resources:
    requests:
      cpu: 500m 
      memory: "500Mi" 
    limits:
      cpu: "1" 
      memory: "2Gi"

What is the expected behavior?

No response

What do you see instead?

airflow 13:47:58.71 
airflow 13:47:58.71 Welcome to the Bitnami airflow container
airflow 13:47:58.71 Subscribe to project updates by watching https://github.com/bitnami/containers
airflow 13:47:58.71 Submit issues and feature requests at https://github.com/bitnami/containers/issues
airflow 13:47:58.71
airflow 13:47:58.71 INFO  ==> Enabling non-root system user with nss_wrapper
Collecting authlib (from -r /bitnami/python/requirements.txt (line 1))
  Obtaining dependency information for authlib from https://files.pythonhosted.org/packages/81/6e/f4522542322c7f53783da5f65464a7dee137c687111624d2ac733e2a1b98/Authlib-1.2.1-py2.py3-none-any.whl.metadata
  Downloading Authlib-1.2.1-py2.py3-none-any.whl.metadata (3.8 kB)
Collecting discord-webhook (from -r /bitnami/python/requirements.txt (line 2))
  Obtaining dependency information for discord-webhook from https://files.pythonhosted.org/packages/8e/43/82b473a9dd9a0aa6d289111ed9af889937d1e1566872798e0e943edd58a4/discord_webhook-1.3.0-py3-none-any.whl.metadata
  Downloading discord_webhook-1.3.0-py3-none-any.whl.metadata (13 kB)
Collecting apache-airflow-providers-apache-spark (from -r /bitnami/python/requirements.txt (line 3))
  Obtaining dependency information for apache-airflow-providers-apache-spark from https://files.pythonhosted.org/packages/1b/f7/738e25d1f8539d7e5993626cfd7bf73918d257b26f9c023d92f15d4a5c71/apache_airflow_providers_apache_spark-4.4.0-py3-none-any.whl.metadata
  Downloading apache_airflow_providers_apache_spark-4.4.0-py3-none-any.whl.metadata (5.7 kB)
Requirement already satisfied: pytz in /opt/bitnami/airflow/venv/lib/python3.9/site-packages (from -r /bitnami/python/requirements.txt (line 4)) (2023.3.post1)
Requirement already satisfied: cryptography>=3.2 in /opt/bitnami/airflow/venv/lib/python3.9/site-packages (from authlib->-r /bitnami/python/requirements.txt (line 1)) (41.0.4)
Requirement already satisfied: requests<3.0.0,>=2.28.1 in /opt/bitnami/airflow/venv/lib/python3.9/site-packages (from discord-webhook->-r /bitnami/python/requirements.txt (line 2)) (2.31.0)
Requirement already satisfied: apache-airflow>=2.5.0 in /opt/bitnami/airflow/venv/lib/python3.9/site-packages (from apache-airflow-providers-apache-spark->-r /bitnami/python/requirements.txt (line 3)) (2.7.2)
Collecting pyspark (from apache-airflow-providers-apache-spark->-r /bitnami/python/requirements.txt (line 3))
  Downloading pyspark-3.5.0.tar.gz (316.9 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 316.9/316.9 MB 708.4 kB/s eta 0:00:00
  Preparing metadata (setup.py): started
  Preparing metadata (setup.py): finished with status 'done'
Requirement already satisfied: alembic<2.0,>=1.6.3 in /opt/bitnami/airflow/venv/lib/python3.9/site-packages (from apache-airflow>=2.5.0->apache-airflow-providers-apache-spark->-r /bitnami/python/requirements.txt (line 3)) (1.12.0)
Requirement already satisfied: argcomplete>=1.10 in /opt/bitnami/airflow/venv/lib/python3.9/site-packages (from apache-airflow>=2.5.0->apache-airflow-providers-apache-spark->-r /bitnami/python/requirements.txt (line 3)) (3.1.2)
Requirement already satisfied: asgiref in /opt/bitnami/airflow/venv/lib/python3.9/site-packages (from apache-airflow>=2.5.0->apache-airflow-providers-apache-spark->-r /bitnami/python/requirements.txt (line 3)) (3.7.2)
Requirement already satisfied: attrs>=22.1.0 in /opt/bitnami/airflow/venv/lib/python3.9/site-packages (from apache-airflow>=2.5.0->apache-airflow-providers-apache-spark->-r /bitnami/python/requirements.txt (line 3)) (23.1.0)
Requirement already satisfied: blinker in /opt/bitnami/airflow/venv/lib/python3.9/site-packages (from apache-airflow>=2.5.0->apache-airflow-providers-apache-spark->-r /bitnami/python/requirements.txt (line 3)) (1.6.3)
Requirement already satisfied: cattrs>=22.1.0 in /opt/bitnami/airflow/venv/lib/python3.9/site-packages (from apache-airflow>=2.5.0->apache-airflow-providers-apache-spark->-r /bitnami/python/requirements.txt (line 3)) (23.1.2)
Requirement already satisfied: colorlog<5.0,>=4.0.2 in /opt/bitnami/airflow/venv/lib/python3.9/site-packages (from apache-airflow>=2.5.0->apache-airflow-providers-apache-spark->-r /bitnami/python/requirements.txt (line 3)) (4.8.0)
Requirement already satisfied: configupdater>=3.1.1 in /opt/bitnami/airflow/venv/lib/python3.9/site-packages (from apache-airflow>=2.5.0->apache-airflow-providers-apache-spark->-r /bitnami/python/requirements.txt (line 3)) (3.1.1)
Requirement already satisfied: connexion[flask]>=2.10.0 in /opt/bitnami/airflow/venv/lib/python3.9/site-packages (from apache-airflow>=2.5.0->apache-airflow-providers-apache-spark->-r /bitnami/python/requirements.txt (line 3)) (2.14.2)
Requirement already satisfied: cron-descriptor>=1.2.24 in /opt/bitnami/airflow/venv/lib/python3.9/site-packages (from apache-airflow>=2.5.0->apache-airflow-providers-apache-spark->-r /bitnami/python/requirements.txt (line 3)) (1.4.0)
Requirement already satisfied: croniter>=0.3.17 in /opt/bitnami/airflow/venv/lib/python3.9/site-packages (from apache-airflow>=2.5.0->apache-airflow-providers-apache-spark->-r /bitnami/python/requirements.txt (line 3)) (1.4.1)
Requirement already satisfied: deprecated>=1.2.13 in /opt/bitnami/airflow/venv/lib/python3.9/site-packages (from apache-airflow>=2.5.0->apache-airflow-providers-apache-spark->-r /bitnami/python/requirements.txt (line 3)) (1.2.14)
Requirement already satisfied: dill>=0.2.2 in /opt/bitnami/airflow/venv/lib/python3.9/site-packages (from apache-airflow>=2.5.0->apache-airflow-providers-apache-spark->-r /bitnami/python/requirements.txt (line 3)) (0.3.1.1)
Requirement already satisfied: flask<2.3,>=2.2 in /opt/bitnami/airflow/venv/lib/python3.9/site-packages (from apache-airflow>=2.5.0->apache-airflow-providers-apache-spark->-r /bitnami/python/requirements.txt (line 3)) (2.2.5)
Requirement already satisfied: flask-appbuilder==4.3.6 in /opt/bitnami/airflow/venv/lib/python3.9/site-packages (from apache-airflow>=2.5.0->apache-airflow-providers-apache-spark->-r /bitnami/python/requirements.txt (line 3)) (4.3.6)
Requirement already satisfied: flask-caching>=1.5.0 in /opt/bitnami/airflow/venv/lib/python3.9/site-packages (from apache-airflow>=2.5.0->apache-airflow-providers-apache-spark->-r /bitnami/python/requirements.txt (line 3)) (2.0.2)
Requirement already satisfied: flask-login>=0.6.2 in /opt/bitnami/airflow/venv/lib/python3.9/site-packages (from apache-airflow>=2.5.0->apache-airflow-providers-apache-spark->-r /bitnami/python/requirements.txt (line 3)) (0.6.2)
Requirement already satisfied: flask-session>=0.4.0 in /opt/bitnami/airflow/venv/lib/python3.9/site-packages (from apache-airflow>=2.5.0->apache-airflow-providers-apache-spark->-r /bitnami/python/requirements.txt (line 3)) (0.5.0)
Requirement already satisfied: flask-wtf>=0.15 in /opt/bitnami/airflow/venv/lib/python3.9/site-packages (from apache-airflow>=2.5.0->apache-airflow-providers-apache-spark->-r /bitnami/python/requirements.txt (line 3)) (1.2.1)
Requirement already satisfied: google-re2>=1.0 in /opt/bitnami/airflow/venv/lib/python3.9/site-packages (from apache-airflow>=2.5.0->apache-airflow-providers-apache-spark->-r /bitnami/python/requirements.txt (line 3)) (1.1)
Requirement already satisfied: graphviz>=0.12 in /opt/bitnami/airflow/venv/lib/python3.9/site-packages (from apache-airflow>=2.5.0->apache-airflow-providers-apache-spark->-r /bitnami/python/requirements.txt (line 3)) (0.20.1)
Requirement already satisfied: gunicorn>=20.1.0 in /opt/bitnami/airflow/venv/lib/python3.9/site-packages (from apache-airflow>=2.5.0->apache-airflow-providers-apache-spark->-r /bitnami/python/requirements.txt (line 3)) (21.2.0)
Requirement already satisfied: httpx in /opt/bitnami/airflow/venv/lib/python3.9/site-packages (from apache-airflow>=2.5.0->apache-airflow-providers-apache-spark->-r /bitnami/python/requirements.txt (line 3)) (0.23.3)
Requirement already satisfied: itsdangerous>=2.0 in /opt/bitnami/airflow/venv/lib/python3.9/site-packages (from apache-airflow>=2.5.0->apache-airflow-providers-apache-spark->-r /bitnami/python/requirements.txt (line 3)) (2.1.2)
Requirement already satisfied: jinja2>=3.0.0 in /opt/bitnami/airflow/venv/lib/python3.9/site-packages (from apache-airflow>=2.5.0->apache-airflow-providers-apache-spark->-r /bitnami/python/requirements.txt (line 3)) (3.1.2)
Requirement already satisfied: jsonschema>=4.18.0 in /opt/bitnami/airflow/venv/lib/python3.9/site-packages (from apache-airflow>=2.5.0->apache-airflow-providers-apache-spark->-r /bitnami/python/requirements.txt (line 3)) (4.19.1)
Requirement already satisfied: lazy-object-proxy in /opt/bitnami/airflow/venv/lib/python3.9/site-packages (from apache-airflow>=2.5.0->apache-airflow-providers-apache-spark->-r /bitnami/python/requirements.txt (line 3)) (1.9.0)
Requirement already satisfied: linkify-it-py>=2.0.0 in /opt/bitnami/airflow/venv/lib/python3.9/site-packages (from apache-airflow>=2.5.0->apache-airflow-providers-apache-spark->-r /bitnami/python/requirements.txt (line 3)) (2.0.2)
Requirement already satisfied: lockfile>=0.12.2 in /opt/bitnami/airflow/venv/lib/python3.9/site-packages (from apache-airflow>=2.5.0->apache-airflow-providers-apache-spark->-r /bitnami/python/requirements.txt (line 3)) (0.12.2)
Requirement already satisfied: markdown>=3.0 in /opt/bitnami/airflow/venv/lib/python3.9/site-packages (from apache-airflow>=2.5.0->apache-airflow-providers-apache-spark->-r /bitnami/python/requirements.txt (line 3)) (3.5)
Requirement already satisfied: markdown-it-py>=2.1.0 in /opt/bitnami/airflow/venv/lib/python3.9/site-packages (from apache-airflow>=2.5.0->apache-airflow-providers-apache-spark->-r /bitnami/python/requirements.txt (line 3)) (3.0.0)
Requirement already satisfied: markupsafe>=1.1.1 in /opt/bitnami/airflow/venv/lib/python3.9/site-packages (from apache-airflow>=2.5.0->apache-airflow-providers-apache-spark->-r /bitnami/python/requirements.txt (line 3)) (2.1.3)
Requirement already satisfied: marshmallow-oneofschema>=2.0.1 in /opt/bitnami/airflow/venv/lib/python3.9/site-packages (from apache-airflow>=2.5.0->apache-airflow-providers-apache-spark->-r /bitnami/python/requirements.txt (line 3)) (3.0.1)
Requirement already satisfied: mdit-py-plugins>=0.3.0 in /opt/bitnami/airflow/venv/lib/python3.9/site-packages (from apache-airflow>=2.5.0->apache-airflow-providers-apache-spark->-r /bitnami/python/requirements.txt (line 3)) (0.4.0)
Requirement already satisfied: opentelemetry-api>=1.15.0 in /opt/bitnami/airflow/venv/lib/python3.9/site-packages (from apache-airflow>=2.5.0->apache-airflow-providers-apache-spark->-r /bitnami/python/requirements.txt (line 3)) (1.20.0)
Requirement already satisfied: opentelemetry-exporter-otlp in /opt/bitnami/airflow/venv/lib/python3.9/site-packages (from apache-airflow>=2.5.0->apache-airflow-providers-apache-spark->-r /bitnami/python/requirements.txt (line 3)) (1.20.0)
Requirement already satisfied: packaging>=14.0 in /opt/bitnami/airflow/venv/lib/python3.9/site-packages (from apache-airflow>=2.5.0->apache-airflow-providers-apache-spark->-r /bitnami/python/requirements.txt (line 3)) (23.2)
Requirement already satisfied: pathspec>=0.9.0 in /opt/bitnami/airflow/venv/lib/python3.9/site-packages (from apache-airflow>=2.5.0->apache-airflow-providers-apache-spark->-r /bitnami/python/requirements.txt (line 3)) (0.11.2)
Requirement already satisfied: pendulum>=2.0 in /opt/bitnami/airflow/venv/lib/python3.9/site-packages (from apache-airflow>=2.5.0->apache-airflow-providers-apache-spark->-r /bitnami/python/requirements.txt (line 3)) (2.1.2)
Requirement already satisfied: pluggy>=1.0 in /opt/bitnami/airflow/venv/lib/python3.9/site-packages (from apache-airflow>=2.5.0->apache-airflow-providers-apache-spark->-r /bitnami/python/requirements.txt (line 3)) (1.3.0)
Requirement already satisfied: psutil>=4.2.0 in /opt/bitnami/airflow/venv/lib/python3.9/site-packages (from apache-airflow>=2.5.0->apache-airflow-providers-apache-spark->-r /bitnami/python/requirements.txt (line 3)) (5.9.5)
Requirement already satisfied: pydantic>=1.10.0 in /opt/bitnami/airflow/venv/lib/python3.9/site-packages (from apache-airflow>=2.5.0->apache-airflow-providers-apache-spark->-r /bitnami/python/requirements.txt (line 3)) (2.4.2)
Requirement already satisfied: pygments>=2.0.1 in /opt/bitnami/airflow/venv/lib/python3.9/site-packages (from apache-airflow>=2.5.0->apache-airflow-providers-apache-spark->-r /bitnami/python/requirements.txt (line 3)) (2.16.1)
Requirement already satisfied: pyjwt>=2.0.0 in /opt/bitnami/airflow/venv/lib/python3.9/site-packages (from apache-airflow>=2.5.0->apache-airflow-providers-apache-spark->-r /bitnami/python/requirements.txt (line 3)) (2.8.0)
Requirement already satisfied: python-daemon>=3.0.0 in /opt/bitnami/airflow/venv/lib/python3.9/site-packages (from apache-airflow>=2.5.0->apache-airflow-providers-apache-spark->-r /bitnami/python/requirements.txt (line 3)) (3.0.1)
Requirement already satisfied: python-dateutil>=2.3 in /opt/bitnami/airflow/venv/lib/python3.9/site-packages (from apache-airflow>=2.5.0->apache-airflow-providers-apache-spark->-r /bitnami/python/requirements.txt (line 3)) (2.8.2)
Requirement already satisfied: python-nvd3>=0.15.0 in /opt/bitnami/airflow/venv/lib/python3.9/site-packages (from apache-airflow>=2.5.0->apache-airflow-providers-apache-spark->-r /bitnami/python/requirements.txt (line 3)) (0.15.0)
Requirement already satisfied: python-slugify>=5.0 in /opt/bitnami/airflow/venv/lib/python3.9/site-packages (from apache-airflow>=2.5.0->apache-airflow-providers-apache-spark->-r /bitnami/python/requirements.txt (line 3)) (8.0.1)
Requirement already satisfied: rfc3339-validator>=0.1.4 in /opt/bitnami/airflow/venv/lib/python3.9/site-packages (from apache-airflow>=2.5.0->apache-airflow-providers-apache-spark->-r /bitnami/python/requirements.txt (line 3)) (0.1.4)
Requirement already satisfied: rich>=12.4.4 in /opt/bitnami/airflow/venv/lib/python3.9/site-packages (from apache-airflow>=2.5.0->apache-airflow-providers-apache-spark->-r /bitnami/python/requirements.txt (line 3)) (13.6.0)
Requirement already satisfied: rich-argparse>=1.0.0 in /opt/bitnami/airflow/venv/lib/python3.9/site-packages (from apache-airflow>=2.5.0->apache-airflow-providers-apache-spark->-r /bitnami/python/requirements.txt (line 3)) (1.3.0)
Requirement already satisfied: setproctitle>=1.1.8 in /opt/bitnami/airflow/venv/lib/python3.9/site-packages (from apache-airflow>=2.5.0->apache-airflow-providers-apache-spark->-r /bitnami/python/requirements.txt (line 3)) (1.3.3)
Requirement already satisfied: sqlalchemy<2.0,>=1.4.28 in /opt/bitnami/airflow/venv/lib/python3.9/site-packages (from apache-airflow>=2.5.0->apache-airflow-providers-apache-spark->-r /bitnami/python/requirements.txt (line 3)) (1.4.49)
Requirement already satisfied: sqlalchemy-jsonfield>=1.0 in /opt/bitnami/airflow/venv/lib/python3.9/site-packages (from apache-airflow>=2.5.0->apache-airflow-providers-apache-spark->-r /bitnami/python/requirements.txt (line 3)) (1.0.1.post0)
Requirement already satisfied: tabulate>=0.7.5 in /opt/bitnami/airflow/venv/lib/python3.9/site-packages (from apache-airflow>=2.5.0->apache-airflow-providers-apache-spark->-r /bitnami/python/requirements.txt (line 3)) (0.9.0)
Requirement already satisfied: tenacity!=8.2.0,>=6.2.0 in /opt/bitnami/airflow/venv/lib/python3.9/site-packages (from apache-airflow>=2.5.0->apache-airflow-providers-apache-spark->-r /bitnami/python/requirements.txt (line 3)) (8.2.3)
Requirement already satisfied: termcolor>=1.1.0 in /opt/bitnami/airflow/venv/lib/python3.9/site-packages (from apache-airflow>=2.5.0->apache-airflow-providers-apache-spark->-r /bitnami/python/requirements.txt (line 3)) (2.3.0)
Requirement already satisfied: typing-extensions>=4.0.0 in /opt/bitnami/airflow/venv/lib/python3.9/site-packages (from apache-airflow>=2.5.0->apache-airflow-providers-apache-spark->-r /bitnami/python/requirements.txt (line 3)) (4.8.0)
Requirement already satisfied: unicodecsv>=0.14.1 in /opt/bitnami/airflow/venv/lib/python3.9/site-packages (from apache-airflow>=2.5.0->apache-airflow-providers-apache-spark->-r /bitnami/python/requirements.txt (line 3)) (0.14.1)
Requirement already satisfied: werkzeug>=2.0 in /opt/bitnami/airflow/venv/lib/python3.9/site-packages (from apache-airflow>=2.5.0->apache-airflow-providers-apache-spark->-r /bitnami/python/requirements.txt (line 3)) (2.2.3)
Requirement already satisfied: apache-airflow-providers-common-sql in /opt/bitnami/airflow/venv/lib/python3.9/site-packages (from apache-airflow>=2.5.0->apache-airflow-providers-apache-spark->-r /bitnami/python/requirements.txt (line 3)) (1.7.2)
Requirement already satisfied: apache-airflow-providers-ftp in /opt/bitnami/airflow/venv/lib/python3.9/site-packages (from apache-airflow>=2.5.0->apache-airflow-providers-apache-spark->-r /bitnami/python/requirements.txt (line 3)) (3.5.2)
Requirement already satisfied: apache-airflow-providers-http in /opt/bitnami/airflow/venv/lib/python3.9/site-packages (from apache-airflow>=2.5.0->apache-airflow-providers-apache-spark->-r /bitnami/python/requirements.txt (line 3)) (4.5.2)
Requirement already satisfied: apache-airflow-providers-imap in /opt/bitnami/airflow/venv/lib/python3.9/site-packages (from apache-airflow>=2.5.0->apache-airflow-providers-apache-spark->-r /bitnami/python/requirements.txt (line 3)) (3.3.2)
Requirement already satisfied: apache-airflow-providers-sqlite in /opt/bitnami/airflow/venv/lib/python3.9/site-packages (from apache-airflow>=2.5.0->apache-airflow-providers-apache-spark->-r /bitnami/python/requirements.txt (line 3)) (3.4.3)
Requirement already satisfied: apispec[yaml]<7,>=6.0.0 in /opt/bitnami/airflow/venv/lib/python3.9/site-packages (from flask-appbuilder==4.3.6->apache-airflow>=2.5.0->apache-airflow-providers-apache-spark->-r /bitnami/python/requirements.txt (line 3)) (6.3.0)
Requirement already satisfied: colorama<1,>=0.3.9 in /opt/bitnami/airflow/venv/lib/python3.9/site-packages (from flask-appbuilder==4.3.6->apache-airflow>=2.5.0->apache-airflow-providers-apache-spark->-r /bitnami/python/requirements.txt (line 3)) (0.4.6)
Requirement already satisfied: click<9,>=8 in /opt/bitnami/airflow/venv/lib/python3.9/site-packages (from flask-appbuilder==4.3.6->apache-airflow>=2.5.0->apache-airflow-providers-apache-spark->-r /bitnami/python/requirements.txt (line 3)) (8.1.7)
Requirement already satisfied: email-validator<2,>=1.0.5 in /opt/bitnami/airflow/venv/lib/python3.9/site-packages (from flask-appbuilder==4.3.6->apache-airflow>=2.5.0->apache-airflow-providers-apache-spark->-r /bitnami/python/requirements.txt (line 3)) (1.3.1)
Requirement already satisfied: Flask-Babel<3,>=1 in /opt/bitnami/airflow/venv/lib/python3.9/site-packages (from flask-appbuilder==4.3.6->apache-airflow>=2.5.0->apache-airflow-providers-apache-spark->-r /bitnami/python/requirements.txt (line 3)) (2.0.0)
Requirement already satisfied: Flask-Limiter<4,>3 in /opt/bitnami/airflow/venv/lib/python3.9/site-packages (from flask-appbuilder==4.3.6->apache-airflow>=2.5.0->apache-airflow-providers-apache-spark->-r /bitnami/python/requirements.txt (line 3)) (3.5.0)
Requirement already satisfied: Flask-SQLAlchemy<3,>=2.4 in /opt/bitnami/airflow/venv/lib/python3.9/site-packages (from flask-appbuilder==4.3.6->apache-airflow>=2.5.0->apache-airflow-providers-apache-spark->-r /bitnami/python/requirements.txt (line 3)) (2.5.1)
Requirement already satisfied: Flask-JWT-Extended<5.0.0,>=4.0.0 in /opt/bitnami/airflow/venv/lib/python3.9/site-packages (from flask-appbuilder==4.3.6->apache-airflow>=2.5.0->apache-airflow-providers-apache-spark->-r /bitnami/python/requirements.txt (line 3)) (4.5.3)
Requirement already satisfied: marshmallow<4,>=3.18.0 in /opt/bitnami/airflow/venv/lib/python3.9/site-packages (from flask-appbuilder==4.3.6->apache-airflow>=2.5.0->apache-airflow-providers-apache-spark->-r /bitnami/python/requirements.txt (line 3)) (3.20.1)
Requirement already satisfied: marshmallow-sqlalchemy<0.27.0,>=0.22.0 in /opt/bitnami/airflow/venv/lib/python3.9/site-packages (from flask-appbuilder==4.3.6->apache-airflow>=2.5.0->apache-airflow-providers-apache-spark->-r /bitnami/python/requirements.txt (line 3)) (0.26.1)
Requirement already satisfied: prison<1.0.0,>=0.2.1 in /opt/bitnami/airflow/venv/lib/python3.9/site-packages (from flask-appbuilder==4.3.6->apache-airflow>=2.5.0->apache-airflow-providers-apache-spark->-r /bitnami/python/requirements.txt (line 3)) (0.2.1)
Requirement already satisfied: sqlalchemy-utils<1,>=0.32.21 in /opt/bitnami/airflow/venv/lib/python3.9/site-packages (from flask-appbuilder==4.3.6->apache-airflow>=2.5.0->apache-airflow-providers-apache-spark->-r /bitnami/python/requirements.txt (line 3)) (0.41.1)
Requirement already satisfied: WTForms<4 in /opt/bitnami/airflow/venv/lib/python3.9/site-packages (from flask-appbuilder==4.3.6->apache-airflow>=2.5.0->apache-airflow-providers-apache-spark->-r /bitnami/python/requirements.txt (line 3)) (3.0.1)
Requirement already satisfied: cffi>=1.12 in /opt/bitnami/airflow/venv/lib/python3.9/site-packages (from cryptography>=3.2->authlib->-r /bitnami/python/requirements.txt (line 1)) (1.16.0)
Requirement already satisfied: charset-normalizer<4,>=2 in /opt/bitnami/airflow/venv/lib/python3.9/site-packages (from requests<3.0.0,>=2.28.1->discord-webhook->-r /bitnami/python/requirements.txt (line 2)) (3.3.0)
Requirement already satisfied: idna<4,>=2.5 in /opt/bitnami/airflow/venv/lib/python3.9/site-packages (from requests<3.0.0,>=2.28.1->discord-webhook->-r /bitnami/python/requirements.txt (line 2)) (3.4) 
Requirement already satisfied: urllib3<3,>=1.21.1 in /opt/bitnami/airflow/venv/lib/python3.9/site-packages (from requests<3.0.0,>=2.28.1->discord-webhook->-r /bitnami/python/requirements.txt (line 2)) (1.26.17)
Requirement already satisfied: certifi>=2017.4.17 in /opt/bitnami/airflow/venv/lib/python3.9/site-packages (from requests<3.0.0,>=2.28.1->discord-webhook->-r /bitnami/python/requirements.txt (line 2)) (2023.7.22)
Collecting py4j==0.10.9.7 (from pyspark->apache-airflow-providers-apache-spark->-r /bitnami/python/requirements.txt (line 3))
  Downloading py4j-0.10.9.7-py2.py3-none-any.whl (200 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 200.5/200.5 kB 106.4 MB/s eta 0:00:00
Requirement already satisfied: Mako in /opt/bitnami/airflow/venv/lib/python3.9/site-packages (from alembic<2.0,>=1.6.3->apache-airflow>=2.5.0->apache-airflow-providers-apache-spark->-r /bitnami/python/requirements.txt (line 3)) (1.2.4)
Requirement already satisfied: exceptiongroup in /opt/bitnami/airflow/venv/lib/python3.9/site-packages (from cattrs>=22.1.0->apache-airflow>=2.5.0->apache-airflow-providers-apache-spark->-r /bitnami/python/requirements.txt (line 3)) (1.1.3)
Requirement already satisfied: pycparser in /opt/bitnami/airflow/venv/lib/python3.9/site-packages (from cffi>=1.12->cryptography>=3.2->authlib->-r /bitnami/python/requirements.txt (line 1)) (2.21)     
Requirement already satisfied: clickclick<21,>=1.2 in /opt/bitnami/airflow/venv/lib/python3.9/site-packages (from connexion[flask]>=2.10.0->apache-airflow>=2.5.0->apache-airflow-providers-apache-spark->-r /bitnami/python/requirements.txt (line 3)) (20.10.2)
Requirement already satisfied: PyYAML<7,>=5.1 in /opt/bitnami/airflow/venv/lib/python3.9/site-packages (from connexion[flask]>=2.10.0->apache-airflow>=2.5.0->apache-airflow-providers-apache-spark->-r /bitnami/python/requirements.txt (line 3)) (6.0.1)
Requirement already satisfied: inflection<0.6,>=0.3.1 in /opt/bitnami/airflow/venv/lib/python3.9/site-packages (from connexion[flask]>=2.10.0->apache-airflow>=2.5.0->apache-airflow-providers-apache-spark->-r /bitnami/python/requirements.txt (line 3)) (0.5.1)
Requirement already satisfied: wrapt<2,>=1.10 in /opt/bitnami/airflow/venv/lib/python3.9/site-packages (from deprecated>=1.2.13->apache-airflow>=2.5.0->apache-airflow-providers-apache-spark->-r /bitnami/python/requirements.txt (line 3)) (1.15.0)
Requirement already satisfied: importlib-metadata>=3.6.0 in /opt/bitnami/airflow/venv/lib/python3.9/site-packages (from flask<2.3,>=2.2->apache-airflow>=2.5.0->apache-airflow-providers-apache-spark->-r /bitnami/python/requirements.txt (line 3)) (6.8.0)
Requirement already satisfied: cachelib<0.10.0,>=0.9.0 in /opt/bitnami/airflow/venv/lib/python3.9/site-packages (from flask-caching>=1.5.0->apache-airflow>=2.5.0->apache-airflow-providers-apache-spark->-r /bitnami/python/requirements.txt (line 3)) (0.9.0)
Requirement already satisfied: jsonschema-specifications>=2023.03.6 in /opt/bitnami/airflow/venv/lib/python3.9/site-packages (from jsonschema>=4.18.0->apache-airflow>=2.5.0->apache-airflow-providers-apache-spark->-r /bitnami/python/requirements.txt (line 3)) (2023.7.1)
Requirement already satisfied: referencing>=0.28.4 in /opt/bitnami/airflow/venv/lib/python3.9/site-packages (from jsonschema>=4.18.0->apache-airflow>=2.5.0->apache-airflow-providers-apache-spark->-r /bitnami/python/requirements.txt (line 3)) (0.30.2)
Requirement already satisfied: rpds-py>=0.7.1 in /opt/bitnami/airflow/venv/lib/python3.9/site-packages (from jsonschema>=4.18.0->apache-airflow>=2.5.0->apache-airflow-providers-apache-spark->-r /bitnami/python/requirements.txt (line 3)) (0.10.4)
Requirement already satisfied: uc-micro-py in /opt/bitnami/airflow/venv/lib/python3.9/site-packages (from linkify-it-py>=2.0.0->apache-airflow>=2.5.0->apache-airflow-providers-apache-spark->-r /bitnami/python/requirements.txt (line 3)) (1.0.2)
Requirement already satisfied: mdurl~=0.1 in /opt/bitnami/airflow/venv/lib/python3.9/site-packages (from markdown-it-py>=2.1.0->apache-airflow>=2.5.0->apache-airflow-providers-apache-spark->-r /bitnami/python/requirements.txt (line 3)) (0.1.2)
Requirement already satisfied: pytzdata>=2020.1 in /opt/bitnami/airflow/venv/lib/python3.9/site-packages (from pendulum>=2.0->apache-airflow>=2.5.0->apache-airflow-providers-apache-spark->-r /bitnami/python/requirements.txt (line 3)) (2020.1)
Requirement already satisfied: annotated-types>=0.4.0 in /opt/bitnami/airflow/venv/lib/python3.9/site-packages (from pydantic>=1.10.0->apache-airflow>=2.5.0->apache-airflow-providers-apache-spark->-r /bitnami/python/requirements.txt (line 3)) (0.6.0)
Requirement already satisfied: pydantic-core==2.10.1 in /opt/bitnami/airflow/venv/lib/python3.9/site-packages (from pydantic>=1.10.0->apache-airflow>=2.5.0->apache-airflow-providers-apache-spark->-r /bitnami/python/requirements.txt (line 3)) (2.10.1)
Requirement already satisfied: docutils in /opt/bitnami/airflow/venv/lib/python3.9/site-packages (from python-daemon>=3.0.0->apache-airflow>=2.5.0->apache-airflow-providers-apache-spark->-r /bitnami/python/requirements.txt (line 3)) (0.20.1)
Requirement already satisfied: setuptools>=62.4.0 in /opt/bitnami/airflow/venv/lib/python3.9/site-packages (from python-daemon>=3.0.0->apache-airflow>=2.5.0->apache-airflow-providers-apache-spark->-r /bitnami/python/requirements.txt (line 3)) (68.2.0)
Requirement already satisfied: six>=1.5 in /opt/bitnami/airflow/venv/lib/python3.9/site-packages (from python-dateutil>=2.3->apache-airflow>=2.5.0->apache-airflow-providers-apache-spark->-r /bitnami/python/requirements.txt (line 3)) (1.16.0)
Requirement already satisfied: text-unidecode>=1.3 in /opt/bitnami/airflow/venv/lib/python3.9/site-packages (from python-slugify>=5.0->apache-airflow>=2.5.0->apache-airflow-providers-apache-spark->-r /bitnami/python/requirements.txt (line 3)) (1.3)
Requirement already satisfied: greenlet!=0.4.17 in /opt/bitnami/airflow/venv/lib/python3.9/site-packages (from sqlalchemy<2.0,>=1.4.28->apache-airflow>=2.5.0->apache-airflow-providers-apache-spark->-r /bitnami/python/requirements.txt (line 3)) (3.0.0)
Requirement already satisfied: sqlparse>=0.4.2 in /opt/bitnami/airflow/venv/lib/python3.9/site-packages (from apache-airflow-providers-common-sql->apache-airflow>=2.5.0->apache-airflow-providers-apache-spark->-r /bitnami/python/requirements.txt (line 3)) (0.4.4)
Requirement already satisfied: aiohttp in /opt/bitnami/airflow/venv/lib/python3.9/site-packages (from apache-airflow-providers-http->apache-airflow>=2.5.0->apache-airflow-providers-apache-spark->-r /bitnami/python/requirements.txt (line 3)) (3.8.6)
Requirement already satisfied: requests-toolbelt in /opt/bitnami/airflow/venv/lib/python3.9/site-packages (from apache-airflow-providers-http->apache-airflow>=2.5.0->apache-airflow-providers-apache-spark->-r /bitnami/python/requirements.txt (line 3)) (1.0.0)
Requirement already satisfied: httpcore<0.17.0,>=0.15.0 in /opt/bitnami/airflow/venv/lib/python3.9/site-packages (from httpx->apache-airflow>=2.5.0->apache-airflow-providers-apache-spark->-r /bitnami/python/requirements.txt (line 3)) (0.16.3)
Requirement already satisfied: rfc3986[idna2008]<2,>=1.3 in /opt/bitnami/airflow/venv/lib/python3.9/site-packages (from httpx->apache-airflow>=2.5.0->apache-airflow-providers-apache-spark->-r /bitnami/python/requirements.txt (line 3)) (1.5.0)
Requirement already satisfied: sniffio in /opt/bitnami/airflow/venv/lib/python3.9/site-packages (from httpx->apache-airflow>=2.5.0->apache-airflow-providers-apache-spark->-r /bitnami/python/requirements.txt (line 3)) (1.3.0)
Requirement already satisfied: opentelemetry-exporter-otlp-proto-grpc==1.20.0 in /opt/bitnami/airflow/venv/lib/python3.9/site-packages (from opentelemetry-exporter-otlp->apache-airflow>=2.5.0->apache-airflow-providers-apache-spark->-r /bitnami/python/requirements.txt (line 3)) (1.20.0)
Requirement already satisfied: opentelemetry-exporter-otlp-proto-http==1.20.0 in /opt/bitnami/airflow/venv/lib/python3.9/site-packages (from opentelemetry-exporter-otlp->apache-airflow>=2.5.0->apache-airflow-providers-apache-spark->-r /bitnami/python/requirements.txt (line 3)) (1.20.0)
Requirement already satisfied: backoff<3.0.0,>=1.10.0 in /opt/bitnami/airflow/venv/lib/python3.9/site-packages (from opentelemetry-exporter-otlp-proto-grpc==1.20.0->opentelemetry-exporter-otlp->apache-airflow>=2.5.0->apache-airflow-providers-apache-spark->-r /bitnami/python/requirements.txt (line 3)) (1.10.0)
Requirement already satisfied: googleapis-common-protos~=1.52 in /opt/bitnami/airflow/venv/lib/python3.9/site-packages (from opentelemetry-exporter-otlp-proto-grpc==1.20.0->opentelemetry-exporter-otlp->apache-airflow>=2.5.0->apache-airflow-providers-apache-spark->-r /bitnami/python/requirements.txt (line 3)) (1.60.0)
Requirement already satisfied: grpcio<2.0.0,>=1.0.0 in /opt/bitnami/airflow/venv/lib/python3.9/site-packages (from opentelemetry-exporter-otlp-proto-grpc==1.20.0->opentelemetry-exporter-otlp->apache-airflow>=2.5.0->apache-airflow-providers-apache-spark->-r /bitnami/python/requirements.txt (line 3)) (1.59.0)
Requirement already satisfied: opentelemetry-exporter-otlp-proto-common==1.20.0 in /opt/bitnami/airflow/venv/lib/python3.9/site-packages (from opentelemetry-exporter-otlp-proto-grpc==1.20.0->opentelemetry-exporter-otlp->apache-airflow>=2.5.0->apache-airflow-providers-apache-spark->-r /bitnami/python/requirements.txt (line 3)) (1.20.0)
Requirement already satisfied: opentelemetry-proto==1.20.0 in /opt/bitnami/airflow/venv/lib/python3.9/site-packages (from opentelemetry-exporter-otlp-proto-grpc==1.20.0->opentelemetry-exporter-otlp->apache-airflow>=2.5.0->apache-airflow-providers-apache-spark->-r /bitnami/python/requirements.txt (line 3)) (1.20.0)
Requirement already satisfied: opentelemetry-sdk~=1.20.0 in /opt/bitnami/airflow/venv/lib/python3.9/site-packages (from opentelemetry-exporter-otlp-proto-grpc==1.20.0->opentelemetry-exporter-otlp->apache-airflow>=2.5.0->apache-airflow-providers-apache-spark->-r /bitnami/python/requirements.txt (line 3)) (1.20.0)
Requirement already satisfied: protobuf<5.0,>=3.19 in /opt/bitnami/airflow/venv/lib/python3.9/site-packages (from opentelemetry-proto==1.20.0->opentelemetry-exporter-otlp-proto-grpc==1.20.0->opentelemetry-exporter-otlp->apache-airflow>=2.5.0->apache-airflow-providers-apache-spark->-r /bitnami/python/requirements.txt (line 3)) (4.21.12)
Requirement already satisfied: dnspython>=1.15.0 in /opt/bitnami/airflow/venv/lib/python3.9/site-packages (from email-validator<2,>=1.0.5->flask-appbuilder==4.3.6->apache-airflow>=2.5.0->apache-airflow-providers-apache-spark->-r /bitnami/python/requirements.txt (line 3)) (2.4.2)
Requirement already satisfied: Babel>=2.3 in /opt/bitnami/airflow/venv/lib/python3.9/site-packages (from Flask-Babel<3,>=1->flask-appbuilder==4.3.6->apache-airflow>=2.5.0->apache-airflow-providers-apache-spark->-r /bitnami/python/requirements.txt (line 3)) (2.13.0)
Requirement already satisfied: limits>=2.8 in /opt/bitnami/airflow/venv/lib/python3.9/site-packages (from Flask-Limiter<4,>3->flask-appbuilder==4.3.6->apache-airflow>=2.5.0->apache-airflow-providers-apache-spark->-r /bitnami/python/requirements.txt (line 3)) (3.6.0)
Requirement already satisfied: ordered-set<5,>4 in /opt/bitnami/airflow/venv/lib/python3.9/site-packages (from Flask-Limiter<4,>3->flask-appbuilder==4.3.6->apache-airflow>=2.5.0->apache-airflow-providers-apache-spark->-r /bitnami/python/requirements.txt (line 3)) (4.1.0)
Requirement already satisfied: h11<0.15,>=0.13 in /opt/bitnami/airflow/venv/lib/python3.9/site-packages (from httpcore<0.17.0,>=0.15.0->httpx->apache-airflow>=2.5.0->apache-airflow-providers-apache-spark->-r /bitnami/python/requirements.txt (line 3)) (0.14.0)
Requirement already satisfied: anyio<5.0,>=3.0 in /opt/bitnami/airflow/venv/lib/python3.9/site-packages (from httpcore<0.17.0,>=0.15.0->httpx->apache-airflow>=2.5.0->apache-airflow-providers-apache-spark->-r /bitnami/python/requirements.txt (line 3)) (4.0.0)
Requirement already satisfied: zipp>=0.5 in /opt/bitnami/airflow/venv/lib/python3.9/site-packages (from importlib-metadata>=3.6.0->flask<2.3,>=2.2->apache-airflow>=2.5.0->apache-airflow-providers-apache-spark->-r /bitnami/python/requirements.txt (line 3)) (3.17.0)
Requirement already satisfied: multidict<7.0,>=4.5 in /opt/bitnami/airflow/venv/lib/python3.9/site-packages (from aiohttp->apache-airflow-providers-http->apache-airflow>=2.5.0->apache-airflow-providers-apache-spark->-r /bitnami/python/requirements.txt (line 3)) (6.0.4)
Requirement already satisfied: async-timeout<5.0,>=4.0.0a3 in /opt/bitnami/airflow/venv/lib/python3.9/site-packages (from aiohttp->apache-airflow-providers-http->apache-airflow>=2.5.0->apache-airflow-providers-apache-spark->-r /bitnami/python/requirements.txt (line 3)) (4.0.3)
Requirement already satisfied: yarl<2.0,>=1.0 in /opt/bitnami/airflow/venv/lib/python3.9/site-packages (from aiohttp->apache-airflow-providers-http->apache-airflow>=2.5.0->apache-airflow-providers-apache-spark->-r /bitnami/python/requirements.txt (line 3)) (1.9.2)
Requirement already satisfied: frozenlist>=1.1.1 in /opt/bitnami/airflow/venv/lib/python3.9/site-packages (from aiohttp->apache-airflow-providers-http->apache-airflow>=2.5.0->apache-airflow-providers-apache-spark->-r /bitnami/python/requirements.txt (line 3)) (1.4.0)
Requirement already satisfied: aiosignal>=1.1.2 in /opt/bitnami/airflow/venv/lib/python3.9/site-packages (from aiohttp->apache-airflow-providers-http->apache-airflow>=2.5.0->apache-airflow-providers-apache-spark->-r /bitnami/python/requirements.txt (line 3)) (1.3.1)
Requirement already satisfied: importlib-resources>=1.3 in /opt/bitnami/airflow/venv/lib/python3.9/site-packages (from limits>=2.8->Flask-Limiter<4,>3->flask-appbuilder==4.3.6->apache-airflow>=2.5.0->apache-airflow-providers-apache-spark->-r /bitnami/python/requirements.txt (line 3)) (6.1.0)
Requirement already satisfied: opentelemetry-semantic-conventions==0.41b0 in /opt/bitnami/airflow/venv/lib/python3.9/site-packages (from opentelemetry-sdk~=1.20.0->opentelemetry-exporter-otlp-proto-grpc==1.20.0->opentelemetry-exporter-otlp->apache-airflow>=2.5.0->apache-airflow-providers-apache-spark->-r /bitnami/python/requirements.txt (line 3)) (0.41b0)
Downloading Authlib-1.2.1-py2.py3-none-any.whl (215 kB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 215.3/215.3 kB 101.9 MB/s eta 0:00:00
Downloading discord_webhook-1.3.0-py3-none-any.whl (13 kB)
Downloading apache_airflow_providers_apache_spark-4.4.0-py3-none-any.whl (37 kB)
Building wheels for collected packages: pyspark
  Building wheel for pyspark (setup.py): started
  Building wheel for pyspark (setup.py): finished with status 'done'
  Created wheel for pyspark: filename=pyspark-3.5.0-py2.py3-none-any.whl size=317425344 sha256=88fd346035b0015f130948a4c790cec9e472049914822cf31fff10fdec049d2f
  Stored in directory: /opt/bitnami/airflow/.cache/pip/wheels/57/bd/14/ce9e21f2649298678d011fb8f71ed38ee70b42b94fef0be142
Successfully built pyspark
Installing collected packages: py4j, pyspark, discord-webhook, authlib, apache-airflow-providers-apache-spark
Successfully installed apache-airflow-providers-apache-spark-4.4.0 authlib-1.2.1 discord-webhook-1.3.0 py4j-0.10.9.7 pyspark-3.5.0

[notice] A new release of pip is available: 23.2.1 -> 23.3.1
[notice] To update, run: pip install --upgrade pip
airflow 13:49:14.37 INFO  ==> ** Starting Airflow setup **
airflow 13:49:14.38 INFO  ==> Validating settings in POSTGRESQL_CLIENT_* env vars
airflow 13:49:14.40 INFO  ==> Initializing Airflow ...
airflow 13:49:14.41 INFO  ==> No injected configuration file found. Creating default config file
cp: cannot create regular file '/opt/bitnami/airflow/webserver_config.py': Read-only file system

Additional information

requirements.txt authlib discord-webhook apache-airflow-providers-apache-spark pytz

fmulero commented 10 months ago

Hi @thispejo

I think the problem is related to the airflow container and it comes from this PR: https://github.com/bitnami/containers/pull/49544 Could you test setting web.image.tag=2.7.1-debian-11-r13 to ensure that I'm looking in the right direction?

In the meantime I'll try to gather more information about that change.

thispejo commented 10 months ago

Hello, I did the test, but the error remained.

DESCRIBE

SaaS.Airflow> k describe pod/airflow-homo-web-7b56d95d5f-4wfmm
Name:             airflow-homo-web-7b56d95d5f-4wfmm
Namespace:        airflow
Priority:         0
Service Account:  default
Node:             10.0.10.11/10.0.10.11
Start Time:       Tue, 21 Nov 2023 11:22:13 -0300
Labels:           app.kubernetes.io/component=web
                  app.kubernetes.io/instance=airflow-homo
                  app.kubernetes.io/managed-by=Helm
                  app.kubernetes.io/name=airflow
                  app.kubernetes.io/version=2.7.1
                  helm.sh/chart=airflow-16.1.3
                  pod-template-hash=7b56d95d5f
Annotations:      checksum/configmap: 19ba7505341d87f103d369d4b7fe80ebdb3930fac9f3a88aae13410d3a843f6e
Status:           Running
IP:               10.244.1.151
IPs:
  IP:           10.244.1.151
Controlled By:  ReplicaSet/airflow-homo-web-7b56d95d5f
Containers:
  airflow-web:
    Container ID:   cri-o://0bdecadf4b9df9cd89dfa67432d4e439278be7d95978e0d4b92a42f450cb88f0
    Image:          docker.io/bitnami/airflow:2.7.1-debian-11-r13
    Image ID:       docker.io/bitnami/airflow@sha256:d3c84e594f5c758d9861d278e41fb27a6b3904326b6081d732f6402865391c2f
    Port:           8080/TCP
    Host Port:      0/TCP
    State:          Waiting
      Reason:       CrashLoopBackOff
    Last State:     Terminated
      Reason:       Error
      Exit Code:    1
      Started:      Tue, 21 Nov 2023 11:26:23 -0300
      Finished:     Tue, 21 Nov 2023 11:27:12 -0300
    Ready:          False
    Restart Count:  3
    Limits:
      cpu:     1
      memory:  2Gi
    Requests:
      cpu:      500m
      memory:   500Mi
    Liveness:   tcp-socket :http delay=360s timeout=5s period=20s #success=1 #failure=6
    Readiness:  tcp-socket :http delay=360s timeout=5s period=10s #success=1 #failure=6
    Environment:
      AIRFLOW_FERNET_KEY:                                           <set to the key 'airflow-fernet-key' in secret 'airflow-homo'>  Optional: false
      AIRFLOW_SECRET_KEY:                                           <set to the key 'airflow-secret-key' in secret 'airflow-homo'>  Optional: false
      AIRFLOW_LOAD_EXAMPLES:                                        no
      BASH_DEBUG:                                                   1
      BITNAMI_DEBUG:                                                true
      AIRFLOW_DATABASE_NAME:                                        bitnami_airflow
      AIRFLOW_DATABASE_USERNAME:                                    bn_airflow
      AIRFLOW_DATABASE_PASSWORD:                                    <set to the key 'password' in secret 'airflow-homo-postgresql'>  Optional: false
      AIRFLOW_DATABASE_HOST:                                        airflow-homo-postgresql
      AIRFLOW_DATABASE_PORT_NUMBER:                                 5432
      REDIS_HOST:                                                   airflow-homo-redis-master
      REDIS_PORT_NUMBER:                                            6379
      REDIS_PASSWORD:                                               <set to the key 'redis-password' in secret 'airflow-homo-redis'>  Optional: false
      AIRFLOW__KUBERNETES__NAMESPACE:                               airflow
      AIRFLOW__KUBERNETES__WORKER_CONTAINER_REPOSITORY:             docker.io/bitnami/airflow-worker
      AIRFLOW__KUBERNETES__WORKER_CONTAINER_TAG:                    2.7.3-debian-11-r0
      AIRFLOW__KUBERNETES__IMAGE_PULL_POLICY:                       IfNotPresent
      AIRFLOW__KUBERNETES__DAGS_IN_IMAGE:                           True
      AIRFLOW__KUBERNETES__DELETE_WORKER_PODS:                      True
      AIRFLOW__KUBERNETES__DELETE_WORKER_PODS_ON_FAILURE:           False
      AIRFLOW__KUBERNETES__WORKER_SERVICE_ACCOUNT_NAME:             default
      AIRFLOW__KUBERNETES__POD_TEMPLATE_FILE:                       /opt/bitnami/airflow/pod_template.yaml
      AIRFLOW_EXECUTOR:                                             CeleryKubernetesExecutor
      AIRFLOW_WEBSERVER_HOST:                                       0.0.0.0
      AIRFLOW_WEBSERVER_PORT_NUMBER:                                8080
      AIRFLOW_USERNAME:                                             *******admin
      AIRFLOW_PASSWORD:                                             <set to the key 'airflow-password' in secret 'airflow-homo'>  Optional: false
      AIRFLOW_BASE_URL:                                             http://airflowhomo.local:8080
      AIRFLOW_LDAP_ENABLE:                                          no
      AIRFLOW__SMTP__SMTP_HOST:                                     smtp.gmail.com
      AIRFLOW__SMTP__SMTP_STARTTLS:                                 True
      AIRFLOW__SMTP__SMTP_SSL:                                      False
      AIRFLOW__SMTP__SMTP_USER:                                     noreply@*******.com.br
      AIRFLOW__SMTP__SMTP_PORT:                                     587
      AIRFLOW__SMTP__SMTP_PASSWORD:                                 fadfaef*****
      AIRFLOW__SMTP__SMTP_MAIL_FROM:                                noreply@*******.com.br
      PYTHONPATH:                                                   /opt/bitnami/airflow/dags/git_devops/airflowdags/
      AIRFLOW__KUBERNETES_EXECUTOR__LOGS_TASK_METADATA:             True
      AIRFLOW__KUBERNETES_EXECUTOR__DELETE_WORKER_PODS_ON_FAILURE:  True
      AIRFLOW__LOGGING__CELERY_LOGGING_LEVEL:                       INFO
      AIRFLOW_KUBERNETES_LOGGING_ENABLED:                           True
    Mounts:
      /bitnami/python/requirements.txt from requirements (rw,path="requirements.txt")
      /opt/bitnami/airflow/webserver_config.py from custom-webserver-configuration-file (rw,path="webserver_config.py")
      /var/run/secrets/kubernetes.io/serviceaccount from kube-api-access-789vz (ro)
Conditions:
  Type              Status
  Initialized       True
  Ready             False
  ContainersReady   False
  PodScheduled      True
Volumes:
  custom-webserver-configuration-file:
    Type:      ConfigMap (a volume populated by a ConfigMap)
    Name:      airflow-web-config-16
    Optional:  false
  requirements:
    Type:      ConfigMap (a volume populated by a ConfigMap)
    Name:      requirements
    Optional:  false
  kube-api-access-789vz:
    Type:                    Projected (a volume that contains injected data from multiple sources)
    TokenExpirationSeconds:  3607
    ConfigMapName:           kube-root-ca.crt
    ConfigMapOptional:       <nil>
    DownwardAPI:             true
QoS Class:                   Burstable
Node-Selectors:              name=Homologacao
Tolerations:                 node.kubernetes.io/not-ready:NoExecute op=Exists for 300s
                             node.kubernetes.io/unreachable:NoExecute op=Exists for 300s
Events:
  Type     Reason     Age                       From               Message
  ----     ------     ----                      ----               -------
  Normal   Scheduled  4m10s                     default-scheduler  Successfully assigned airflow/airflow-homo-web-7b56d95d5f-4wfmm to 10.0.10.11
  Normal   Pulling    4m9s                      kubelet            Pulling image "docker.io/bitnami/airflow:2.7.1-debian-11-r13"
  Normal   Pulled     3m17s                     kubelet            Successfully pulled image "docker.io/bitnami/airflow:2.7.1-debian-11-r13" in 51.354294023s (51.3543139s including waiting)
  Normal   Created    0s (x4 over 3m3s)         kubelet            Created container airflow-web
  Normal   Started    0s (x4 over 3m3s)         kubelet            Started container airflow-web
  Normal   Pulled     0s (x3 over 2m26s)        kubelet            Container image "docker.io/bitnami/airflow:2.7.1-debian-11-r13" already present on machine
  Warning  BackOff    <invalid> (x7 over 119s)  kubelet            Back-off restarting failed container airflow-web in pod airflow-homo-web-7b56d95d5f-4wfmm_airflow(5fa13818-6a04-409c-ba07-cf7919227724)

===============================================================

LOGS:

Successfully installed apache-airflow-providers-apache-spark-4.4.0 authlib-1.2.1 discord-webhook-1.3.0 py4j-0.10.9.7 pyspark-3.5.0

[notice] A new release of pip is available: 23.2.1 -> 23.3.1
[notice] To update, run: pip install --upgrade pip
airflow 14:25:51.52 INFO  ==> ** Starting Airflow setup **
airflow 14:25:51.57 INFO  ==> Validating settings in POSTGRESQL_CLIENT_* env vars
airflow 14:25:51.60 INFO  ==> Initializing Airflow ...
airflow 14:25:51.60 INFO  ==> No injected configuration file found. Creating default config file
cp: cannot create regular file '/opt/bitnami/airflow/webserver_config.py': Read-only file system
fmulero commented 10 months ago

Sorry @thispejo, you are completely right.

The error was introduced in the revision 2.7.1-debian-11-r5 (https://github.com/bitnami/containers/pull/48293), if you set web.image.tag=2.7.1-debian-11-r2 you shouldn't face the problem. I am gathering more information to fix it properly.

thispejo commented 10 months ago

Sure thing, I'll be waiting for the fix. I'll let you know how it goes once I've given it a shot. 🤞👍

fmulero commented 10 months ago

Hi @thispejo

New releases are in the oven to fix the problem in the container and use that new image tag in the chart. I hope to be ready in a few hours

fmulero commented 10 months ago

Last Friday, version 16.1.6 was released using the airflow container tag 2.7.3-debian-11-r2 which solves the problem reported in this issue.

thispejo commented 9 months ago

thanks!

thispejo commented 4 months ago

The problem now is when I try to put a requirements.txt it gives this error:

Downloading Authlib-1.3.0-py2.py3-none-any.whl (223 kB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 223.7/223.7 kB 14.3 MB/s eta 0:00:00
Installing collected packages: Authlib
ERROR: Could not install packages due to an OSError: [Errno 30] Read-only file system: '/opt/bitnami/airflow/venv/lib/python3.11/site-packages/authlib'

yaml:

# Alias para a configuração de volumes e montagens de requirements
requirements-volume-config: &requirements-volume-config
  extraVolumeMounts:
    - name: requirements
      mountPath: /bitnami/python/requirements.txt
      subPath: requirements.txt
  extraVolumes:
    - name: requirements
      configMap:
        name: airflow-requirements

web: 
  automountServiceAccountToken: true
  autoscaling:
    enable: true  
    minReplicas: 1
    maxReplicas: 3
  #existingConfigmap: airflow-web-config
  <<: *requirements-volume-config    

scheduler:
  replicaCount: 1
  autoscaling:
    enable: true  
    minReplicas: 1
    maxReplicas: 5  
    targetCPU: 80
    targetMemory: 80      
  nodeSelector:
    name: AirflowHomo 
  automountServiceAccountToken: true
  <<: *requirements-volume-config    

worker: 
  replicaCount: 1
  nodeSelector:
    name: AirflowHomo
  autoscaling:
    enable: true  
    minReplicas: 1
    maxReplicas: 5
    targetCPU: 80
    targetMemory: 80    
  readinessProbe:
    enabled: true
    initialDelaySeconds: 120
  livenessProbe:
    enabled: true
    initialDelaySeconds: 120
  automountServiceAccountToken: true
  <<: *requirements-volume-config