-
Notifications
You must be signed in to change notification settings - Fork 218
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
install --dry-run not so dry (makes changes) #192
Comments
Good catch. This is an artifact of new installer behavior that runs the bulk of the install in the cluster itself. In order to do that it has to create temporary resources in the cluster for the installer itself, even when it's performing a dry run. It should not be leaving those resources behind if the dry run (or even a regular run) fails, however. |
I think we may actually be creating changes in solidfire in successful dry runs as well. Specifically it will create the tenant/account if it doesn’t exist. |
If the install fails, the installer leaves the trident-installer pod around in case any further inspection is warranted. The uninstaller always starts by cleaning up any leftover install pod. |
I think that's fine if it's not a dry run. A dry run should always leave both the cluster and the storage in the same state it was in before it started. |
I stumbled over the same issue today. With the dry-run option it should have same state before it started. If this is not possible, at least the uninstall command should clean everything fully. |
--dry-run is no longer needed with Trident 19.07 (or later), and is no longer in the documentation. The --dry-run feature was only needed to validate that Trident could access the backend to create it's own PV for etcd. Since Trident now uses CRDs for it's persistent storage, you don't need to check for a backend any longer. |
* Initial commit for Prometheus metrics
According to TFM (https://netapp-trident.readthedocs.io/en/stable-v18.10/kubernetes/deploying.html):
I had a typo in my backend.json (for solidfire-san.json, concretely).
But why is it saying I should uninstall? I used
--dry-run
.... Fix the typo and try again:Oops... Okay, uninstall, fix the typo and try another dry run:
Created... and Deleted... look like changes to me.
Perhaps the doco should be changed to say it won't create changes if it can complete without errors... But that may not be how
--dry-run
is expected to behave, IMHO.The text was updated successfully, but these errors were encountered: