You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "Huang Xingbo (Jira)" <ji...@apache.org> on 2022/06/28 03:21:00 UTC

[jira] [Created] (FLINK-28269) Kubernetes test failed with permission denied

|  ![](cid:jira-generated-image-avatar-62e83c6d-e279-4a7e-ae21-72e77eeb8425) |
[Huang
Xingbo](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=hxbks2ks)
**created** an issue  
---|---  
|  
---  
|  [Flink](https://issues.apache.org/jira/browse/FLINK) / [![Bug](cid:jira-
generated-image-
avatar-88f6291e-006b-40e6-a591-7fbcb7fa7301)](https://issues.apache.org/jira/browse/FLINK-28269)
[FLINK-28269](https://issues.apache.org/jira/browse/FLINK-28269)  
---  
[Kubernetes test failed with permission
denied](https://issues.apache.org/jira/browse/FLINK-28269)  
| Issue Type: |  ![Bug](cid:jira-generated-image-
avatar-88f6291e-006b-40e6-a591-7fbcb7fa7301) Bug  
---|---  
Affects Versions: |  1.16.0  
Assignee: |  Unassigned  
Components: |  Deployment / Kubernetes, Tests  
Created: |  28/Jun/22 03:20  
Labels: |  test-stability  
Priority: |  ![Major](cid:jira-generated-image-static-
major-00cb0e2c-e36e-46f9-83e8-31018b08de11) Major  
Reporter: |  [Huang
Xingbo](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=hxbks2ks)  
|

    
    
    2022-06-28T00:57:41.2724102Z Jun 28 00:57:41 Preparing to unpack .../conntrack_1%3a1.4.5-2_amd64.deb ...
    2022-06-28T00:57:41.2747620Z Jun 28 00:57:41 Unpacking conntrack (1:1.4.5-2) ...
    2022-06-28T00:57:41.3287046Z Jun 28 00:57:41 Setting up conntrack (1:1.4.5-2) ...
    2022-06-28T00:57:41.3316320Z Jun 28 00:57:41 Processing triggers for man-db (2.9.1-1) ...
    2022-06-28T00:57:43.0246060Z Jun 28 00:57:43 fs.protected_regular = 0
    2022-06-28T00:57:46.5039126Z Jun 28 00:57:46 * Profile "minikube" not found. Run "minikube profile list" to view all profiles.
    2022-06-28T00:57:46.5047104Z Jun 28 00:57:46   To start a cluster, run: "minikube start"
    2022-06-28T00:57:46.5088285Z Jun 28 00:57:46 Starting minikube ...
    2022-06-28T00:57:46.6801624Z Jun 28 00:57:46 * minikube v1.26.0 on Ubuntu 20.04
    2022-06-28T00:57:46.7004754Z Jun 28 00:57:46 * Using the none driver based on user configuration
    2022-06-28T00:57:46.7128484Z Jun 28 00:57:46 * Starting control plane node minikube in cluster minikube
    2022-06-28T00:57:46.7178545Z Jun 28 00:57:46 * Running on localhost (CPUs=2, Memory=6946MB, Disk=85173MB) ...
    2022-06-28T00:57:47.0620600Z Jun 28 00:57:47 * OS release is Ubuntu 20.04.4 LTS
    2022-06-28T00:57:49.3027006Z Jun 28 00:57:49 
    2022-06-28T00:57:49.3040058Z X Exiting due to RUNTIME_ENABLE: sudo systemctl enable cri-docker.socket: exit status 1
    2022-06-28T00:57:49.3040497Z stdout:
    2022-06-28T00:57:49.3040596Z 
    2022-06-28T00:57:49.3040809Z stderr:
    2022-06-28T00:57:49.3041270Z Failed to enable unit: Unit file cri-docker.socket does not exist.
    2022-06-28T00:57:49.3041461Z 
    2022-06-28T00:57:49.3041663Z * 
    2022-06-28T00:57:49.3063195Z ╭─────────────────────────────────────────────────────────────────────────────────────────────╮
    2022-06-28T00:57:49.3063744Z │                                                                                             │
    2022-06-28T00:57:49.3064375Z │    * If the above advice does not help, please let us know:                                 │
    2022-06-28T00:57:49.3064975Z │      https://github.com/kubernetes/minikube/issues/new/choose                               │
    2022-06-28T00:57:49.3065484Z │                                                                                             │
    2022-06-28T00:57:49.3066019Z │    * Please run `minikube logs --file=logs.txt` and attach logs.txt to the GitHub issue.    │
    2022-06-28T00:57:49.3066543Z │                                                                                             │
    2022-06-28T00:57:49.3067048Z ╰─────────────────────────────────────────────────────────────────────────────────────────────╯
    2022-06-28T00:57:49.3067360Z Jun 28 00:57:49 
    2022-06-28T00:57:49.3922883Z E0628 00:57:49.392012  194614 root.go:88] failed to log command start to audit: failed to open the audit log: open /home/vsts/.minikube/logs/audit.json: permission denied
    2022-06-28T00:57:49.3948489Z Jun 28 00:57:49 
    2022-06-28T00:57:49.3957501Z X Exiting due to HOST_HOME_PERMISSION: open /home/vsts/.minikube/profiles/minikube/config.json: permission denied
    2022-06-28T00:57:49.3960093Z * Suggestion: Your user lacks permissions to the minikube profile directory. Run: 'sudo chown -R $USER $HOME/.minikube; chmod -R u+wrx $HOME/.minikube' to fix
    2022-06-28T00:57:49.3960924Z * Related issue: https://github.com/kubernetes/minikube/issues/9165
    2022-06-28T00:57:49.3966499Z Jun 28 00:57:49 
    2022-06-28T00:57:49.4693197Z Jun 28 00:57:49 
    2022-06-28T00:57:49.4700763Z X Exiting due to HOST_HOME_PERMISSION: open /home/vsts/.minikube/profiles/minikube/config.json: permission denied
    2022-06-28T00:57:49.4702406Z * Suggestion: Your user lacks permissions to the minikube profile directory. Run: 'sudo chown -R $USER $HOME/.minikube; chmod -R u+wrx $HOME/.minikube' to fix
    2022-06-28T00:57:49.4703168Z * Related issue: https://github.com/kubernetes/minikube/issues/9165
    2022-06-28T00:57:49.4731042Z Jun 28 00:57:49 
    2022-06-28T00:57:49.4733005Z Jun 28 00:57:49 Command: start_kubernetes_if_not_running failed. Retrying...
    2022-06-28T00:57:54.5441686Z Jun 28 00:57:54 
    2022-06-28T00:57:54.5443916Z X Exiting due to HOST_HOME_PERMISSION: open /home/vsts/.minikube/profiles/minikube/config.json: permission denied
    2022-06-28T00:57:54.5445961Z * Suggestion: Your user lacks permissions to the minikube profile directory. Run: 'sudo chown -R $USER $HOME/.minikube; chmod -R u+wrx $HOME/.minikube' to fix
    2022-06-28T00:57:54.5446526Z * Related issue: https://github.com/kubernetes/minikube/issues/9165
    2022-06-28T00:57:54.5450376Z Jun 28 00:57:54 
    2022-06-28T00:57:54.5469377Z Jun 28 00:57:54 Starting minikube ...
    2022-06-28T00:57:54.6254675Z Jun 28 00:57:54 * minikube v1.26.0 on Ubuntu 20.04
    2022-06-28T00:57:54.6299271Z Jun 28 00:57:54 * Using the none driver based on existing profile
    2022-06-28T00:57:54.6324036Z Jun 28 00:57:54 * Starting control plane node minikube in cluster minikube
    2022-06-28T00:57:54.6867587Z Jun 28 00:57:54 * Restarting existing none bare metal machine for "minikube" ...
    2022-06-28T00:57:54.6954113Z Jun 28 00:57:54 * OS release is Ubuntu 20.04.4 LTS
    2022-06-28T00:57:55.7715259Z Jun 28 00:57:55 
    2022-06-28T00:57:55.7730526Z X Exiting due to RUNTIME_ENABLE: sudo systemctl enable cri-docker.socket: exit status 1
    2022-06-28T00:57:55.7731022Z stdout:
    2022-06-28T00:57:55.7731134Z 
    2022-06-28T00:57:55.7731336Z stderr:
    2022-06-28T00:57:55.7731822Z Failed to enable unit: Unit file cri-docker.socket does not exist.
    2022-06-28T00:57:55.7732019Z 
    2022-06-28T00:57:55.7732211Z * 
    2022-06-28T00:57:55.7732693Z ╭─────────────────────────────────────────────────────────────────────────────────────────────╮
    2022-06-28T00:57:55.7733157Z │                                                                                             │
    2022-06-28T00:57:55.7733672Z │    * If the above advice does not help, please let us know:                                 │
    2022-06-28T00:57:55.7734360Z │      https://github.com/kubernetes/minikube/issues/new/choose                               │
    2022-06-28T00:57:55.7734861Z │                                                                                             │
    2022-06-28T00:57:55.7735418Z │    * Please run `minikube logs --file=logs.txt` and attach logs.txt to the GitHub issue.    │
    2022-06-28T00:57:55.7735959Z │                                                                                             │
    2022-06-28T00:57:55.7736589Z ╰─────────────────────────────────────────────────────────────────────────────────────────────╯
    2022-06-28T00:57:55.7740218Z Jun 28 00:57:55 
    2022-06-28T00:57:55.8458528Z E0628 00:57:55.845551  194918 root.go:88] failed to log command start to audit: failed to open the audit log: open /home/vsts/.minikube/logs/audit.json: permission denied
    2022-06-28T00:57:55.8471612Z Jun 28 00:57:55 
    2022-06-28T00:57:55.8477089Z X Exiting due to HOST_HOME_PERMISSION: open /home/vsts/.minikube/profiles/minikube/config.json: permission denied
    2022-06-28T00:57:55.8479071Z * Suggestion: Your user lacks permissions to the minikube profile directory. Run: 'sudo chown -R $USER $HOME/.minikube; chmod -R u+wrx $HOME/.minikube' to fix
    2022-06-28T00:57:55.8480223Z * Related issue: https://github.com/kubernetes/minikube/issues/9165
    2022-06-28T00:57:55.8482785Z Jun 28 00:57:55 
    2022-06-28T00:57:55.9175143Z Jun 28 00:57:55 
    2022-06-28T00:57:55.9189731Z X Exiting due to HOST_HOME_PERMISSION: open /home/vsts/.minikube/profiles/minikube/config.json: permission denied
    2022-06-28T00:57:55.9192377Z * Suggestion: Your user lacks permissions to the minikube profile directory. Run: 'sudo chown -R $USER $HOME/.minikube; chmod -R u+wrx $HOME/.minikube' to fix
    2022-06-28T00:57:55.9194955Z * Related issue: https://github.com/kubernetes/minikube/issues/9165
    2022-06-28T00:57:55.9207163Z Jun 28 00:57:55 
    2022-06-28T00:57:55.9233298Z Jun 28 00:57:55 Command: start_kubernetes_if_not_running failed. Retrying...
    2022-06-28T00:58:00.9957446Z Jun 28 00:58:00 
    2022-06-28T00:58:00.9963674Z X Exiting due to HOST_HOME_PERMISSION: open /home/vsts/.minikube/profiles/minikube/config.json: permission denied
    2022-06-28T00:58:00.9964966Z * Suggestion: Your user lacks permissions to the minikube profile directory. Run: 'sudo chown -R $USER $HOME/.minikube; chmod -R u+wrx $HOME/.minikube' to fix
    2022-06-28T00:58:00.9965541Z * Related issue: https://github.com/kubernetes/minikube/issues/9165
    2022-06-28T00:58:00.9973430Z Jun 28 00:58:00 
    2022-06-28T00:58:01.0002581Z Jun 28 00:58:00 Starting minikube ...
    2022-06-28T00:58:01.0729479Z Jun 28 00:58:01 * minikube v1.26.0 on Ubuntu 20.04
    2022-06-28T00:58:01.0790218Z Jun 28 00:58:01 * Using the none driver based on existing profile
    2022-06-28T00:58:01.0808505Z Jun 28 00:58:01 * Starting control plane node minikube in cluster minikube
    2022-06-28T00:58:01.1067402Z Jun 28 00:58:01 * Restarting existing none bare metal machine for "minikube" ...
    2022-06-28T00:58:01.1177185Z Jun 28 00:58:01 * OS release is Ubuntu 20.04.4 LTS
    2022-06-28T00:58:02.2118290Z Jun 28 00:58:02 
    2022-06-28T00:58:02.2134209Z X Exiting due to RUNTIME_ENABLE: sudo systemctl enable cri-docker.socket: exit status 1
    2022-06-28T00:58:02.2136970Z stdout:
    2022-06-28T00:58:02.2137355Z 
    2022-06-28T00:58:02.2137725Z stderr:
    2022-06-28T00:58:02.2138686Z Failed to enable unit: Unit file cri-docker.socket does not exist.
    2022-06-28T00:58:02.2139016Z 
    2022-06-28T00:58:02.2139342Z * 
    2022-06-28T00:58:02.2139953Z ╭─────────────────────────────────────────────────────────────────────────────────────────────╮
    2022-06-28T00:58:02.2140560Z │                                                                                             │
    2022-06-28T00:58:02.2141218Z │    * If the above advice does not help, please let us know:                                 │
    2022-06-28T00:58:02.2141916Z │      https://github.com/kubernetes/minikube/issues/new/choose                               │
    2022-06-28T00:58:02.2142571Z │                                                                                             │
    2022-06-28T00:58:02.2143272Z │    * Please run `minikube logs --file=logs.txt` and attach logs.txt to the GitHub issue.    │
    2022-06-28T00:58:02.2143943Z │                                                                                             │
    2022-06-28T00:58:02.2144601Z ╰─────────────────────────────────────────────────────────────────────────────────────────────╯
    2022-06-28T00:58:02.2145064Z Jun 28 00:58:02 
    2022-06-28T00:58:02.2880448Z E0628 00:58:02.287766  195222 root.go:88] failed to log command start to audit: failed to open the audit log: open /home/vsts/.minikube/logs/audit.json: permission denied
    2022-06-28T00:58:02.2892504Z Jun 28 00:58:02 
    2022-06-28T00:58:02.2896830Z X Exiting due to HOST_HOME_PERMISSION: open /home/vsts/.minikube/profiles/minikube/config.json: permission denied
    2022-06-28T00:58:02.2899275Z * Suggestion: Your user lacks permissions to the minikube profile directory. Run: 'sudo chown -R $USER $HOME/.minikube; chmod -R u+wrx $HOME/.minikube' to fix
    2022-06-28T00:58:02.2900544Z * Related issue: https://github.com/kubernetes/minikube/issues/9165
    2022-06-28T00:58:02.2901362Z Jun 28 00:58:02 
    2022-06-28T00:58:02.3582770Z Jun 28 00:58:02 
    2022-06-28T00:58:02.3587835Z X Exiting due to HOST_HOME_PERMISSION: open /home/vsts/.minikube/profiles/minikube/config.json: permission denied
    2022-06-28T00:58:02.3589055Z * Suggestion: Your user lacks permissions to the minikube profile directory. Run: 'sudo chown -R $USER $HOME/.minikube; chmod -R u+wrx $HOME/.minikube' to fix
    2022-06-28T00:58:02.3589630Z * Related issue: https://github.com/kubernetes/minikube/issues/9165
    2022-06-28T00:58:02.3599452Z Jun 28 00:58:02 
    2022-06-28T00:58:02.3621002Z Jun 28 00:58:02 Command: start_kubernetes_if_not_running failed. Retrying...
    2022-06-28T00:58:07.3638880Z Jun 28 00:58:07 Command: start_kubernetes_if_not_running failed 3 times.
    2022-06-28T00:58:07.3639385Z Jun 28 00:58:07 Could not start minikube. Aborting...
    2022-06-28T00:58:07.3639759Z Jun 28 00:58:07 Debugging failed Kubernetes test:
    2022-06-28T00:58:07.3640148Z Jun 28 00:58:07 Currently existing Kubernetes resources
    2022-06-28T00:58:07.5490786Z The connection to the server localhost:8080 was refused - did you specify the right host or port?
    2022-06-28T00:58:07.5922448Z The connection to the server localhost:8080 was refused - did you specify the right host or port?
    2022-06-28T00:58:07.5945237Z Jun 28 00:58:07 Flink logs:
    2022-06-28T00:58:07.6330601Z The connection to the server localhost:8080 was refused - did you specify the right host or port?
    2022-06-28T00:58:07.6707241Z The connection to the server localhost:8080 was refused - did you specify the right host or port?
    2022-06-28T00:58:07.7097992Z The connection to the server localhost:8080 was refused - did you specify the right host or port?
    2022-06-28T00:58:07.7506609Z The connection to the server localhost:8080 was refused - did you specify the right host or port?
    2022-06-28T00:58:07.7886315Z The connection to the server localhost:8080 was refused - did you specify the right host or port?
    2022-06-28T00:58:07.7896794Z Jun 28 00:58:07 Stopping minikube ...
    2022-06-28T00:58:07.8560167Z E0628 00:58:07.855722  195270 root.go:88] failed to log command start to audit: failed to open the audit log: open /home/vsts/.minikube/logs/audit.json: permission denied
    2022-06-28T00:58:07.8564021Z E0628 00:58:07.856252  195270 cloud_events.go:60] unable to write to /home/vsts/.minikube/profiles/minikube/events.json: open /home/vsts/.minikube/profiles/minikube/events.json: permission denied
    2022-06-28T00:58:07.8583780Z Jun 28 00:58:07 
    2022-06-28T00:58:07.8595235Z X Exiting due to HOST_HOME_PERMISSION: open /home/vsts/.minikube/profiles/minikube/config.json: permission denied
    2022-06-28T00:58:07.8596811Z * Suggestion: Your user lacks permissions to the minikube profile directory. Run: 'sudo chown -R $USER $HOME/.minikube; chmod -R u+wrx $HOME/.minikube' to fix
    2022-06-28T00:58:07.8597431Z * Related issue: https://github.com/kubernetes/minikube/issues/9165
    2022-06-28T00:58:07.8605881Z Jun 28 00:58:07 
    2022-06-28T00:58:07.8632037Z Jun 28 00:58:07 Command: minikube stop failed. Retrying...
    2022-06-28T00:58:12.9320992Z E0628 00:58:12.931814  195281 root.go:88] failed to log command start to audit: failed to open the audit log: open /home/vsts/.minikube/logs/audit.json: permission denied
    2022-06-28T00:58:12.9323097Z E0628 00:58:12.932141  195281 cloud_events.go:60] unable to write to /home/vsts/.minikube/profiles/minikube/events.json: open /home/vsts/.minikube/profiles/minikube/events.json: permission denied
    2022-06-28T00:58:12.9346464Z Jun 28 00:58:12 
    2022-06-28T00:58:12.9356598Z X Exiting due to HOST_HOME_PERMISSION: open /home/vsts/.minikube/profiles/minikube/config.json: permission denied
    2022-06-28T00:58:12.9359608Z * Suggestion: Your user lacks permissions to the minikube profile directory. Run: 'sudo chown -R $USER $HOME/.minikube; chmod -R u+wrx $HOME/.minikube' to fix
    2022-06-28T00:58:12.9361856Z * Related issue: https://github.com/kubernetes/minikube/issues/9165
    2022-06-28T00:58:12.9370436Z Jun 28 00:58:12 
    2022-06-28T00:58:12.9401892Z Jun 28 00:58:12 Command: minikube stop failed. Retrying...
    2022-06-28T00:58:18.0093241Z E0628 00:58:18.009042  195290 root.go:88] failed to log command start to audit: failed to open the audit log: open /home/vsts/.minikube/logs/audit.json: permission denied
    2022-06-28T00:58:18.0094620Z E0628 00:58:18.009278  195290 cloud_events.go:60] unable to write to /home/vsts/.minikube/profiles/minikube/events.json: open /home/vsts/.minikube/profiles/minikube/events.json: permission denied
    2022-06-28T00:58:18.0105801Z Jun 28 00:58:18 
    2022-06-28T00:58:18.0109189Z X Exiting due to HOST_HOME_PERMISSION: open /home/vsts/.minikube/profiles/minikube/config.json: permission denied
    2022-06-28T00:58:18.0112493Z * Suggestion: Your user lacks permissions to the minikube profile directory. Run: 'sudo chown -R $USER $HOME/.minikube; chmod -R u+wrx $HOME/.minikube' to fix
    2022-06-28T00:58:18.0114979Z * Related issue: https://github.com/kubernetes/minikube/issues/9165
    2022-06-28T00:58:18.0119419Z Jun 28 00:58:18 
    2022-06-28T00:58:18.0139916Z Jun 28 00:58:18 Command: minikube stop failed. Retrying...
    2022-06-28T00:58:23.0155447Z Jun 28 00:58:23 Command: minikube stop failed 3 times.
    2022-06-28T00:58:23.0156414Z Jun 28 00:58:23 Could not stop minikube. Aborting...
    2022-06-28T00:58:23.0159072Z Jun 28 00:58:23 [FAIL] Test script contains errors.
    2022-06-28T00:58:23.0166657Z Jun 28 00:58:23 Checking for errors...
    2022-06-28T00:58:23.0402412Z Jun 28 00:58:23 No errors in log files.
    2022-06-28T00:58:23.0404271Z Jun 28 00:58:23 Checking for exceptions...
    2022-06-28T00:58:23.0675070Z Jun 28 00:58:23 No exceptions in log files.
    2022-06-28T00:58:23.0677372Z Jun 28 00:58:23 Checking for non-empty .out files...
    2022-06-28T00:58:23.0700681Z grep: /home/vsts/work/_temp/debug_files/flink-logs/*.out: No such file or directory
    2022-06-28T00:58:23.0706900Z Jun 28 00:58:23 No non-empty .out files.
    2022-06-28T00:58:23.0707516Z Jun 28 00:58:23 
    2022-06-28T00:58:23.0708309Z Jun 28 00:58:23 [FAIL] 'Run Kubernetes test' failed after 0 minutes and 44 seconds! Test exited with exit code 1
    

[https://dev.azure.com/apache-flink/apache-
flink/_build/results?buildId=37264&view=logs&j=bea52777-eaf8-5663-8482-18fbc3630e81&t=b2642e3a-5b86-574d-4c8a-f7e2842bfb14&l=4975](https://dev.azure.com/apache-
flink/apache-
flink/_build/results?buildId=37264&view=logs&j=bea52777-eaf8-5663-8482-18fbc3630e81&t=b2642e3a-5b86-574d-4c8a-f7e2842bfb14&l=4975)  
  
---  
|  |  [ ![Add Comment](cid:jira-generated-image-static-comment-
icon-a2e64cc7-50e1-4f92-a05a-13a7880c1684)
](https://issues.apache.org/jira/browse/FLINK-28269#add-comment "Add Comment")
|  [Add Comment](https://issues.apache.org/jira/browse/FLINK-28269#add-comment
"Add Comment")  
---|---  
  
|  This message was sent by Atlassian Jira (v8.20.10#820010-sha1:ace47f9) |  |
![Atlassian logo](https://issues.apache.org/jira/images/mail/atlassian-email-
logo.png)  
---