You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In Rancher 2.5 (which was released yesterday) the installation of monitoring fails because Prometheus creates a PVC with a selector property. Here's the current state of the PVC (with all irrelevant fields removed):
The log of the local-path-provisioner pod show this error message:
[...] failed to provision volume with StorageClass "local-path": claim.Spec.Selector is not supported [...]
I found that issue #56, but it doesn't resolve this error. And editing the PVC doesn't work because of this restriction: Forbidden: spec is immutable after creation except resources.requests for bound claims.
The text was updated successfully, but these errors were encountered:
I also encountered the same problem when install alluxio in k3s. Warning ProvisioningFailed 2m56s (x11 over 84m) rancher.io/local-path_local-path-provisioner-5d7b5579c7-v44hc_82108aeb-d956-42e2-9c31-7ff185df52ad failed to provision volume with StorageClass "local-path": claim.Spec.Selector is not supported
Interestingly, I get exactly the same error with longhorn. Doesn't seem to be a local-path-provisioner specific problem. However, I also got this error message on more applications than just Prometheus. As a workaround I simply deleted the following lines from the PVC before deploying:
I am also seeing this issue when deploying Rancher Monitoring to a k3s cluster. The grafana PVC comes up ok but I get the same error as the OP for prometheus. As @hwk42 stated, we cannot update the PVC directly because it's immutable.
I would like to use the workaround that @mamiu calls out but the values.yml that Rancher Monitoring uses doesn't have the 'selector' field in it at all, suggesting it's some kind of default during the install/upgrade process.
In Rancher 2.5 (which was released yesterday) the installation of monitoring fails because Prometheus creates a PVC with a
selector
property. Here's the current state of the PVC (with all irrelevant fields removed):The log of the
local-path-provisioner
pod show this error message:I found that issue #56, but it doesn't resolve this error. And editing the PVC doesn't work because of this restriction:
Forbidden: spec is immutable after creation except resources.requests for bound claims
.The text was updated successfully, but these errors were encountered: