-
Notifications
You must be signed in to change notification settings - Fork 24
docs: add DependenciesNotReady troubleshooting and fix make target #450
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
Merged
kvaps
merged 2 commits into
cozystack:main
from
kvaps:docs/troubleshooting-dependencies-not-ready
Mar 12, 2026
Merged
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -105,6 +105,46 @@ tenant-root tenant-root 4m1s True Rele | |||||
|
|
||||||
| Normally all of them should be `Ready` and `Release reconciliation succeeded` | ||||||
|
|
||||||
| ## Packages stuck in DependenciesNotReady | ||||||
|
|
||||||
| If some packages show `DependenciesNotReady` status: | ||||||
|
|
||||||
| ```console | ||||||
| $ kubectl get pkg -A | grep -v True | ||||||
| NAME VARIANT READY STATUS | ||||||
| cozystack.cozystack-basics default False One or more dependencies are not ready | ||||||
| cozystack.tenant-application default False One or more dependencies are not ready | ||||||
| cozystack.monitoring-application default False One or more dependencies are not ready | ||||||
| ``` | ||||||
|
|
||||||
| This usually means a package in the dependency chain is missing or disabled. To diagnose: | ||||||
|
|
||||||
| 1. **Find the root cause** — check the operator logs for `"dependency not found"` messages: | ||||||
|
|
||||||
| ```bash | ||||||
| kubectl logs -n cozy-system deploy/cozystack-operator | grep "dependency not found" | ||||||
| ``` | ||||||
|
|
||||||
| This will show which dependency is missing, for example: | ||||||
|
|
||||||
| ``` | ||||||
| dependency not found, marking as not ready package=cozystack.monitoring-application dependency=cozystack.postgres-operator | ||||||
| ``` | ||||||
|
|
||||||
| 2. **Check if you disabled a required package** — some packages have dependencies on other packages. If you disabled a package (e.g. `cozystack.postgres-operator`) that other packages depend on, the entire dependency chain will be blocked. | ||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is a good point. To make it more actionable for the user, you could add a hint on how to check for disabled packages. For example, by mentioning where to look for the
Suggested change
|
||||||
|
|
||||||
| 3. **Fix the issue** — either re-enable the disabled package, or if you intentionally want to keep it disabled, add it to `ignoreDependencies` on the affected package: | ||||||
|
|
||||||
| ```bash | ||||||
| kubectl edit pkg cozystack.monitoring-application | ||||||
| ``` | ||||||
|
|
||||||
| ```yaml | ||||||
| spec: | ||||||
| ignoreDependencies: | ||||||
| - cozystack.postgres-operator | ||||||
| ``` | ||||||
|
|
||||||
| ## Specific Troubleshooting Guides | ||||||
|
|
||||||
| ### Cluster Bootstrapping | ||||||
|
|
||||||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The
grep -v Truecommand is a bit broad as it will show any package that is not ready, regardless of the reason. To make the command more specific to the issue described in this section (DependenciesNotReady), it would be more precise to filter on the status message directly, based on the example output provided.