Hacktoberfest 2026: as issues que os mantenedores marcaram para outubro, abertas e boas para iniciantes. Ver issues do Hacktoberfest

Initial failed deployment can not be fixed

Aberta
#147 1 comentário 0 reações 0 responsáveis Ver no GitHub

Ninguém assumiu esta issue ainda.

Avaliação

Dificuldade
4/5
Tempo estimado
3-5 dias
Facilidade para iniciantes
35/100
Tipo de issue
Bug
Clareza
Razoavelmente clara
Status de atividade
Estagnada
Stack de tecnologia
kubernetes, postgresql, redis, rust

Direção de pesquisa

Use airflow.yml e o caminho de reconciliação do AirflowCluster como ponto de entrada; reproduza a inicialização malsucedida do PostgreSQL, exclua o recurso e reaplique-o, e inspecione como o operador registra a falha terminal após suas tentativas. Considera-se concluído quando corrigir a conexão e reaplicar o recurso fizer com que a inicialização do banco de dados e a implantação do cluster sejam tentadas novamente e tenham sucesso sem reinstalar o operador nem seu CRD.

Escrita pelo modelo de indexação a partir do texto da issue.

Descrição

Affected version

0.5.0-nightly

Current and expected behavior
  • stackablectl --namespace=stackable operator install airflow
    
  • helm repo add bitnami https://charts.bitnami.com/bitnami
    
  • helm install airflow-postgresql bitnami/postgresql --version 11.0.0 \
    --set auth.username=airflow \
    --set auth.password=airflow \
    --set auth.database=airflow
    
  • helm install redis bitnami/redis \
    --set auth.password=redis
    
  • Wait for all ressources are deployed

  • create airflow file

  • # airflow.yml
    apiVersion: v1
    kind: Secret
    metadata:
      name: simple-airflow-credentials
    type: Opaque
    stringData:
      adminUser.username: airflow
      adminUser.firstname: Airflow
      adminUser.lastname: Admin
      adminUser.email: airflow@airflow.com
      adminUser.password: airflow
      connections.secretKey: thisISaSECRET_1234
      connections.sqlalchemyDatabaseUri: postgresql+psycopg2://airflow:airflow@airflow-postgresql.WRONG-VALUE.svc.cluster.local/airflow
      connections.celeryResultBackend: db+postgresql://airflow:airflow@airflow-postgresql.WRONG-VALUE.svc.cluster.local/airflow
      connections.celeryBrokerUrl: redis://:redis@redis-master:6379/0
    
    ---
    apiVersion: airflow.stackable.tech/v1alpha1
    kind: AirflowCluster
    metadata:
      name: airflow
    spec:
      version: 2.2.4-python3.9-stackable0.3.0
      statsdExporterVersion: v0.22.4
      executor: CeleryExecutor
      loadExamples: true
      exposeConfig: false
      credentialsSecret: simple-airflow-credentials
      webservers:
        roleGroups:
          default:
            replicas: 1
      workers:
        roleGroups:
          default:
            replicas: 2
      schedulers:
        roleGroups:
          default:
            replicas: 1
    
  •   kubectl apply -f airflow.yml
    

This config has a bug (wrong database url)

The operator now tries to deploy airflow but the database init fails.
After seven retries all the retries are done and we are in a failure state.
Now I deleted the deployment with
kubectl delete -f airflow.yml

After that i fixed the bug and run kubectl apply -f airflow.yml. This does not try again the database init and just goes to error state.

My expected behavior would be that the database init would tried again and succeeds this time.

Possible solution

Delete the airflow operator and the Custom ressource definition and reinstall the operator. Then apply the correct yaml file. This time the database init succeeds.

Additional context

No response

Environment

Client Version: v1.22.4
Server Version: v1.23.9

Would you like to work on fixing this bug?

No response

Linguagem predominante
Rust
Estrelas
32
Forks
6
Merge médio
1d 7h
PRs com merge (30d)
13

Guia de contribuição

Nenhum guia de contribuição indexado para este repositório

Primeiros passos

  1. Leia a issue inteira e depois o guia de contribuição do projeto.
  2. Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
  3. Faça um fork do repositório e trabalhe em uma branch.
  4. Abra um pull request que referencie o número da issue.

Mais de stackabletech/airflow-operator

Todas as issues de stackabletech/airflow-operator

Issues semelhantes

Mais issues de Rust

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.