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

[ceph-mon] upgrade failed: hooks/update-status: No such file or directory #465

Closed
chanchiwai-ray opened this issue Jun 28, 2024 · 0 comments · Fixed by #475
Closed

[ceph-mon] upgrade failed: hooks/update-status: No such file or directory #465

chanchiwai-ray opened this issue Jun 28, 2024 · 0 comments · Fixed by #475

Comments

@chanchiwai-ray
Copy link
Contributor

Upgrade plan for 'ceph-mon' to 'zed'
Upgrade software packages of 'ceph-mon' from the current APT repositories
                Ψ Upgrade software packages on unit 'ceph-mon/0'
        Ensure that the 'require-osd-release' option matches the 'ceph-osd' version
        Change charm config of 'ceph-mon' 'source' to 'cloud:jammy-zed'
        Wait for up to 2400s for model 'cou' to reach the idle state
        Verify that the workload of 'ceph-mon' has been upgraded on units: ceph-mon/0

Continue (y/n): y
Verify that the workload of 'ceph-mon' has been upgraded on units: ceph-mon/0 ✖
2024-06-24 03:55:23 [ERROR] Command hooks/update-status failed with code 127, output  and error /tmp/juju-exec2307319450/script.sh: line 1: hooks/update-status: No such file or directory

I think the problem is: starting at focal-quincy, ceph-mon is rewrote into operator framework, and update_status is lost.

For example:

→  juju exec --unit ceph-mon-octopus/0 -- ls /var/lib/juju/agents/unit-ceph-mon*/charm/hooks/update-status
/var/lib/juju/agents/unit-ceph-mon-octopus-0/charm/hooks/update-status

→  juju exec --unit ceph-mon-pacific/0 -- ls /var/lib/juju/agents/unit-ceph-mon*/charm/hooks/update-status
/var/lib/juju/agents/unit-ceph-mon-pacific-0/charm/hooks/update-status

 →  juju exec --unit ceph-mon-quincy-focal/0 -- ls /var/lib/juju/agents/unit-ceph-mon*/charm/hooks/update-status
ls: cannot access '/var/lib/juju/agents/unit-ceph-mon*/charm/hooks/update-status': No such file or directory
ERROR the following task failed:
 - id "10" with return code 2

use 'juju show-task' to inspect the failure

 →  juju exec --unit ceph-mon-quincy-jammy/0 -- ls /var/lib/juju/agents/unit-ceph-mon*/charm/hooks/update-status
ls: cannot access '/var/lib/juju/agents/unit-ceph-mon*/charm/hooks/update-status': No such file or directory
ERROR the following task failed:
 - id "12" with return code 2

use 'juju show-task' to inspect the failure

→  juju exec --unit ceph-mon-reef/0 -- ls /var/lib/juju/agents/unit-ceph-mon*/charm/hooks/update-status
ls: cannot access '/var/lib/juju/agents/unit-ceph-mon*/charm/hooks/update-status': No such file or directory
ERROR the following task failed:
 - id "15" with return code 2

use 'juju show-task' to inspect the failure
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant