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

[BUG] epicli upgrade of cluster created by Epiphany v0.5 may fail on [kubernetes_master : Patch deployment: coredns] task #1888

Closed
to-bar opened this issue Dec 3, 2020 · 1 comment

Comments

@to-bar
Copy link
Contributor

to-bar commented Dec 3, 2020

Describe the bug

The issue appeared on AWS after upgrading Docker and is non-deterministic.

Error message:

INFO cli.engine.ansible.AnsibleCommand - TASK [kubernetes_master : Patch deployment: coredns]
ERROR cli.engine.ansible.AnsibleCommand - fatal: [ec2-34-244-180-113.eu-west-1.compute.amazonaws.com]: FAILED! => {"changed": true, "cmd": ["kubectl", "patch", "deployment", "coredns", "--namespace", "kube-system", "--type", "strategic", "--patch", "{\"spec\": {\"template\": {\"spec\": {\"containers\": [{\"name\": \"coredns\", \"resources\": {\"requests\": {\"ephemeral-storage\": \"2Mi\"}}, \"volumeMounts\": [{\"name\": \"hosts-volume\", \"mountPath\": \"/etc/hosts\", \"readOnly\": true}]}], \"volumes\": [{\"name\": \"hosts-volume\", \"hostPath\": {\"path\": \"/etc/hosts\", \"type\": \"File\"}}]}}}}"], "delta": "0:00:00.091792", "end": "2020-12-03 09:50:52.285496", "msg": "non-zero return code", "rc": 1, "start": "2020-12-03 09:50:52.193704", "stderr": "Error from server (NotFound): the server could not find the requested resource", "stderr_lines": ["Error from server (NotFound): the server could not find the requested resource"], "stdout": "", "stdout_lines": []}

How to reproduce
Steps to reproduce the behavior:

  1. Create cluster with Epiphany v0.5
  2. Run epicli upgrade using code from a branch with upgraded Docker to v19.03.14.

Expected behavior
Upgrade should succeed.

Environment

  • Cloud provider: AWS
  • OS: Ubuntu, RHEL

Additional context
Issue not seen when using Calico.

@przemyslavic
Copy link
Collaborator

przemyslavic commented Dec 9, 2020

Upgrade to develop tested automatically in the pipeline.
✔️ AWS/Azure x RHEL/Ubuntu x flannel/calico/canal

@mkyc mkyc closed this as completed Dec 10, 2020
atsikham added a commit to atsikham/epiphany that referenced this issue Feb 4, 2021
atsikham added a commit that referenced this issue Feb 4, 2021
* Backported upgrade to Docker v19.03.14

* Backported #1888 fix

* Update changelog

* Changed rabbitmq component version

* Changed filebeat component version

* licenses.py from v0.8

* Updated only docker version in components

* Renamed modules document

Co-authored-by: to-bar <[email protected]>
Co-authored-by: atsikham <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants