jagusztinl opened a new issue #15482:
URL: https://github.com/apache/airflow/issues/15482


   
   **Apache Airflow version**:
   2.0.1
   
   **Kubernetes version (if you are using kubernetes)** (use `kubectl version`):
   Openshift 4.5 on Azure
   
   **Environment**:
   Azure PVC
   
   
   - **Cloud provider or hardware configuration**:
   - **OS** (e.g. from /etc/os-release):
   - **Kernel** (e.g. `uname -a`):
   - **Install tools**:
   - **Others**:
   
   **What happened**:
   Installed Airflow 2.0.1 to OKD, on Azure, defined Azure PVC, fileshare to 
store the logs
   
   <!-- (please include exact error messages if you can) -->
   [Yesterday 9:18 PM] 
       Traceback (most recent call last):
     File "/home/airflow/.local/bin/airflow", line 8, in <module>
       sys.exit(main())
     File 
"/home/airflow/.local/lib/python3.8/site-packages/airflow/__main__.py", line 
40, in main
       args.func(args)
     File 
"/home/airflow/.local/lib/python3.8/site-packages/airflow/cli/cli_parser.py", 
line 48, in command
       return func(*args, **kwargs)
     File 
"/home/airflow/.local/lib/python3.8/site-packages/airflow/utils/cli.py", line 
89, in wrapper
       return f(*args, **kwargs)
     File 
"/home/airflow/.local/lib/python3.8/site-packages/airflow/cli/commands/task_command.py",
 line 225, in task_run
       ti.init_run_context(raw=args.raw)
     File 
"/home/airflow/.local/lib/python3.8/site-packages/airflow/models/taskinstance.py",
 line 1987, in init_run_context
       self._set_context(self)
     File 
"/home/airflow/.local/lib/python3.8/site-packages/airflow/utils/log/logging_mixin.py",
 line 54, in _set_context
       set_context(self.log, context)
     File 
"/home/airflow/.local/lib/python3.8/site-packages/airflow/utils/log/logging_mixin.py",
 line 174, in set_context
       handler.set_context(value)
     File 
"/home/airflow/.local/lib/python3.8/site-packages/airflow/utils/log/file_task_handler.py",
 line 56, in set_context
       local_loc = self._init_file(ti)
     File 
"/home/airflow/.local/lib/python3.8/site-packages/airflow/utils/log/file_task_handler.py",
 line 258, in _init_file
       os.chmod(full_path, 0o666)
   PermissionError: [Errno 1] Operation not permitted: 
'/opt/airflow/logs/example_bash_operator/runme_0/2021-04-20T00:00:00+00:00/1.log'
    
   
   **What you expected to happen**:
   Write logs to PVC
   <!-- What do you think went wrong? -->
   Permission problem, Airflow do not handle well cloud storage
   **How to reproduce it**:
   <!---
   
   
   Install AIrflow to AKS or OKD on Azure, set persistent logging to PVC
   
   As minimally and precisely as possible. Keep in mind we do not have access 
to your cluster or dags.
   
   If you are using kubernetes, please attempt to recreate the issue using 
minikube or kind.
   
   ## Install minikube/kind
   
   - Minikube https://minikube.sigs.k8s.io/docs/start/
   - Kind https://kind.sigs.k8s.io/docs/user/quick-start/
   
   If this is a UI bug, please provide a screenshot of the bug or a link to a 
youtube video of the bug in action
   
   You can include images using the .md style of
   ![alt text](http://url/to/img.png)
   
   To record a screencast, mac users can use QuickTime and then create an 
unlisted youtube video with the resulting .mov file.
   
   --->
   
   
   **Anything else we need to know**:
   
   <!--
   
   How often does this problem occur? Once? Every time etc?
   Yes
   
   <img width="537" alt="Névtelen" 
src="https://user-images.githubusercontent.com/46651189/115681490-de793d80-a354-11eb-9cc4-f8e559b8326b.png";>
   
   You can see the Azire files directories created, but unable to set 
permissions
   
   Any relevant logs to include? Put them here in side a detail tag:
   <details><summary>x.log</summary> lots of stuff </details>
   
   -->
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to