-
Notifications
You must be signed in to change notification settings - Fork 33
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
clean_content_views.py fails in Satellite 6.5 #58
Comments
Thanks for the report - reproduced here as well. Looks like there is no straight-up replacement of the katello_content_views field in the JSON output - working this one in branch ISSUE-58 against both 6.5 and 6.4 installations. |
Any news on a fix for this? |
Would also like to see a fix - it's been 2 months now, we have to manually clean up old versions after each promotion. If you cannot fix the code here, at least, provide a patch to apply locally. After all, these scripts are more or less "official" RedHat supplementary scripts for what Satellite should have long had as built-in functions -so it is a pity to see them not working after a change in Satellite. |
Unfortunately other commitments have left me unable to work on this (or any) issue in this project for a while. These scripts are NOT official RedHat product. There is an ISSUE-58 branch of this project that contains a semi-fix for Satellite 6.5, in that it uses the new API syntax, however there is no code currently to allow backwards compatibility with 6.3/4, and there also seems to be no way in 6.5 to pull the required info to handle CCV versions nicely, so if you are using CCV's it won't work anyway. Please feel free to try that branch and see if it helps - I am hoping to get some time to focus on this project again soon. |
After looking at the current structure of the viewlist, it seems that this simple patch does the job for me:
The "environments" key will be empty whenever the examined version is not part of any environment (i.e. may be deleted if other requirements, like number of instances to keep, are met) - and will not be empty whenever the version is used in an environment, hence should not be touched. |
@assen-totin I have tested your patch (manually) against code from the master branch and can confirm that it works perfectly. Well done! |
You can replace |
fixes RedHatSatellite#58 Conditionally apply assen-totin's fix by checking the Katello version
Script clean_content_views.py fails in Red Hat Satellite 6.5 with the following error code:
Seems issue is in line 94. Tested quering API at https://localhost/katello/api/v2/content_view_versions/id and the list doesn't contain an attribute katello_content_views.
The text was updated successfully, but these errors were encountered: