Comments (4)
First change may be introducing new opt:
setup: |-
#!/bin/sh
while getopts "m:s:p:a:" opt
do
case $opt in
p)
absolutePath=$OPTARG
;;
s)
sizeInBytes=$OPTARG
;;
m)
volMode=$OPTARG
;;
a)
action=$OPTARG
;;
esac
done
if [ "$action" = "create" ]
then
mkdir -m 0777 -p ${absolutePath}
chmod 700 ${absolutePath}/..
fi
teardown: |-
#!/bin/sh
set -x
while getopts "m:s:p:a:" opt
do
case $opt in
p)
absolutePath=$OPTARG
;;
s)
sizeInBytes=$OPTARG
;;
m)
volMode=$OPTARG
;;
a)
action=$OPTARG
;;
esac
done
if [ "$action" = "delete" ]
then
rm -rf ${absolutePath}
fi
In that case I don't get Illegal option -a
error, but helper pod fails anyways.
Then I tried to debug:
teardown: |-
#!/bin/sh
sleep infinity
/ # ls -lah /var/lib/rancher/k3s/storage/local/ssd/pvc-a9809075-743a-4a86-ba28-38ca3d8256cd_kube-system_test-pvc
ls: can't open '/var/lib/rancher/k3s/storage/local/ssd/pvc-a9809075-743a-4a86-ba28-38ca3d8256cd_kube-system_test-pvc': Permission denied
total 0
/ # ls -lah /var/lib/rancher/k3s/storage/local/ssd
total 3G
drwx------ 14 root root 4.0K Mar 29 22:12 .
drwxr-xr-x 3 root root 4.0K Mar 29 22:33 ..
drwxrwxrwx 2 root root 4.0K Mar 29 22:13 pvc-a9809075-743a-4a86-ba28-38ca3d8256cd_kube-system_test-pvc
/ # id
uid=0(root) gid=0(root) groups=0(root),10(wheel)
Then I compared Pod definitions between v0.24 and v0.26:
from k3s.
TLDR from above link where I encountered this issue while testing the latest COMMIT_ID for v1.28 branch
$ kg pv -A
NAME CAPACITY ACCESS MODES RECLAIM POLICY STATUS CLAIM STORAGECLASS REASON AGE
checking-path 5Gi RWO Recycle Failed default/test-pvc local-path 50m
from k3s.
is this resolved already?
from k3s.
nope. issue is still open and PR is not merged. Waiting for end of code freeze.
from k3s.
Related Issues (20)
- Report the use of components with vulnerabilities in k3s HOT 1
- Update etcd to >= v3.5.13 HOT 1
- Improve documentation for Tailscale + K3s with an example ACL HOT 1
- Pod priority enforcement without killing lower priority pods
- netpol controller does not honor debug: true HOT 1
- Availability of StructuredAuthenticationConfiguration in 1.30.0-k3s HOT 1
- k3s 使用mysql 8.0.20 版本存储kine表,启动k3s后,mysql进程会反复重启,k3s报错连接被拒绝 HOT 1
- etcd curl: (58) unable to load client key: -8178 (SEC_ERROR_BAD_KEY) HOT 6
- Image pulls from embedded registry fail if --bind-address is set (and not 127.0.0.1) HOT 6
- missing kernel config check HOT 1
- k3s-agent Fails to start with with embedded registry and kill entire OS HOT 7
- Update kube-router to v2.1.2 HOT 1
- unable to get REST mapping for extensions HOT 1
- anget node working but access fail on anget node HOT 3
- container didn't get the environment var from CONTAINERD_XXX HOT 1
- Install script `INSTALL_K3S_PR` support does not work if CI has run more than once HOT 2
- Spegel mirror returns 500 instead of 404 on unavailable images HOT 1
- Bump containerd to >= v1.7.17
- Bump etcd to >= v3.5.13 HOT 1
- Add client certificate auth support to HelmChart controller / job image HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from k3s.