Closed jessereynolds closed 1 year ago
Jesse, we're going to have @ody have a look at this when he's back from PTO next week
@jessereynolds Sorry about this. This was my fault. I introduced a mistake in the puppetlabs-terraform module, updated pecdm's Puppetfile to that ref then noticed the mistake and fixed the puppetlabs-terraform module but forgot to update pecdm's Puppetfile again. This change will fix this issue https://github.com/puppetlabs/puppetlabs-pecdm/commit/cc5575db9e64e9fdb27f740199233275eb52e7de
No worries @ody ! Thank you for the explanation.
So a re-provision is something that I should expect to work?
@jessereynolds PEADM is not idempotent so if it fails as some point during the deployment process, re-running it can either fail or finish "successfully" with an unknown list of misconfigurations. If you use PECDM to destroy infrastructure and provision then PEADM will finish correctly.
PECDM does not currently check the status of PE on nodes so it is not capable of determining the previous attempt by PEADM to deploy failed and automatically re-provisioning infrastructure. Feasible and interesting idea but also dangerous. Could imaging scenarios where people accidentally destroy environments before they were prepared to do so.
Describe the Bug
On a previously built pecdm, after pulling down latest commits to main, I'm unable to re-run the provision. (I am not sure if I am supposed to be able to re-run a provision, or if I've missed some steps after pulling down the latest commits).
Expected Behavior
Running the provision plan again should just verify the deployed infrastructure is as it should be and correct anything incorrect or not set up yet
Steps to Reproduce
Build a standardalone PE server on aws with pecdm with params similar to the below, on a version of pecdm from 15 Nov 2022
Update to f17ada9bdb47b0155f024e7389106b4ae1f967d2
Stop and start the PE instance (new IP addr and internal dns)
Update the bolt project modules as above.
Run the provision plan as above.
Environment
Additional Context
I could be doing multiple daft things based on incorrect assumptions.
I noticed that I could not use pecdm::destroy prior to updating pecdm as it gave the following error:
I've tried the following commands and they work as expected (no errors):
But after this the provision gives a different error and now I really feel I've probably taken multiple bad paths: