-
Notifications
You must be signed in to change notification settings - Fork 126
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
copy_nrpe_checks doesn't verify the directory to copy from. #246
Comments
ajkavanagh
added a commit
to ajkavanagh/charm-helpers
that referenced
this issue
Nov 23, 2018
The function assumed that the charmhelpers directory would always be in the hooks directory. However, with PY3 it can be very tricky to try to keep a symlink in the hooks directory. Therefore, for some PY3 non-reactive charms, charmhelpers was moved to the CHARMDIR. However, this caused this function to fail. The change here is to search for the charmhelpers directory in both CHARMDIR and CHARMDIR/hooks and then use that. Closes-Bug: juju#246 LP-Bug: #1796830
ajkavanagh
added a commit
to ajkavanagh/charm-helpers
that referenced
this issue
Nov 23, 2018
The function assumed that the charmhelpers directory would always be in the hooks directory. However, with PY3 it can be very tricky to try to keep a symlink in the hooks directory. Therefore, for some PY3 non-reactive charms, charmhelpers was moved to the CHARMDIR. However, this caused this function to fail. The change here is to search for the charmhelpers directory in both CHARMDIR and CHARMDIR/hooks and then use that. Closes-Bug: juju#246 LP-Bug: #1796830
thedac
pushed a commit
that referenced
this issue
Nov 26, 2018
The function assumed that the charmhelpers directory would always be in the hooks directory. However, with PY3 it can be very tricky to try to keep a symlink in the hooks directory. Therefore, for some PY3 non-reactive charms, charmhelpers was moved to the CHARMDIR. However, this caused this function to fail. The change here is to search for the charmhelpers directory in both CHARMDIR and CHARMDIR/hooks and then use that. Closes-Bug: #246 LP-Bug: #1796830
ajkavanagh
added a commit
to ajkavanagh/charm-helpers
that referenced
this issue
Nov 27, 2018
The function assumed that the charmhelpers directory would always be in the hooks directory. However, with PY3 it can be very tricky to try to keep a symlink in the hooks directory. Therefore, for some PY3 non-reactive charms, charmhelpers was moved to the CHARMDIR. However, this caused this function to fail. The change here is to search for the charmhelpers directory in both CHARMDIR and CHARMDIR/hooks and then use that. Closes-Bug: juju#246 LP-Bug: #1796830
ryan-beisner
pushed a commit
that referenced
this issue
Nov 27, 2018
The function assumed that the charmhelpers directory would always be in the hooks directory. However, with PY3 it can be very tricky to try to keep a symlink in the hooks directory. Therefore, for some PY3 non-reactive charms, charmhelpers was moved to the CHARMDIR. However, this caused this function to fail. The change here is to search for the charmhelpers directory in both CHARMDIR and CHARMDIR/hooks and then use that. Closes-Bug: #246 LP-Bug: #1796830
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Due to LP:#1796830 it turns out that the copy_nrpe_checks() function assumes that charmhelpers will always be installed in the hooks directory (which was probably a reasonable assumption). However, certain issues around converting PY2 charms to PY3 charms has meant, that for some charms, charmhelpers is better placed in the CHARMDIR. This has the unfortunate effect of breaking copy_nrpe_checks.
The text was updated successfully, but these errors were encountered: