Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PVC try replace and failed #74

Closed
dekhtyarev opened this issue Jan 14, 2019 · 2 comments
Closed

PVC try replace and failed #74

dekhtyarev opened this issue Jan 14, 2019 · 2 comments
Assignees
Labels
bug Something isn't working P1 Normal priority

Comments

@dekhtyarev
Copy link
Collaborator

2019-01-14 02:31:09 INFO:k8s.resource:PersistentVolumeClaim "k8s-starter-kit-with-pvc" already exists, replace it
2019-01-14 02:31:09 ERROR:k8s.resource:Exception when calling "replace_namespaced_persistent_volume_claim": {
    "kind": "Status",
    "apiVersion": "v1",
    "metadata": {},
    "status": "Failure",
    "message": "PersistentVolumeClaim \"k8s-starter-kit-with-pvc\" is invalid: spec: Forbidden: is immutable after creation except resources.requests for bound claims",
    "reason": "Invalid",
    "details": {
        "name": "k8s-starter-kit-with-pvc",
        "kind": "PersistentVolumeClaim",
        "causes": [
            {
                "reason": "FieldValueForbidden",
                "message": "Forbidden: is immutable after creation except resources.requests for bound claims",
                "field": "spec"
            }
        ]
    },
    "code": 422
}

Но PVC не изменялся.

Проблема в отстутствии выхода из https://github.com/2gis/k8s-handle/blob/master/k8s/resource.py#L216

@dekhtyarev dekhtyarev self-assigned this Jan 14, 2019
@dekhtyarev dekhtyarev added bug Something isn't working P1 Normal priority labels Jan 14, 2019
@dekhtyarev
Copy link
Collaborator Author

fix in #75

@dekhtyarev
Copy link
Collaborator Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working P1 Normal priority
Projects
None yet
Development

No branches or pull requests

1 participant