CodeBleu commented on PR #245:
URL: 
https://github.com/apache/cloudstack-terraform-provider/pull/245#issuecomment-3403663171

   @Pearl1594 Below you will see why I have a concern about the current state 
of #242 .  I feel like there shouldn't be this many issues when "upgrading" the 
provider for things that will have ACL rules like this.  I'm OK, with having to 
split up and replace `ports` to `port`, but even after that, there are a lot of 
issues.  This is why originally I mentioned I had to delete all the rules and 
create them fresh ( which we shouldn't have to do )
   
   Here were steps taken.
   
   I used 0.5.0 initially and made sure all was good with TF plan.
   
   I updated my TF binary to be the one created from this branch and ran plan
   
   <img width="992" height="939" alt="image" 
src="https://github.com/user-attachments/assets/5ecf7b93-318f-4d74-a615-d176824136f8";
 />
   
   I then fixed the ports -> port with creating new rules and splitting them 
up.  I originally had 7 rules and 2 of the rules had multiple ports in them.
   
   This is the plan after that
   <img width="700" height="922" alt="image" 
src="https://github.com/user-attachments/assets/ed985ee3-72f0-4895-8408-d7baf01c62be";
 />
   <img width="428" height="409" alt="image" 
src="https://github.com/user-attachments/assets/a0c5e678-32d2-430f-bfed-1f8ff74360e8";
 />
   
   
   Then I ran apply and get this
   <img width="1027" height="467" alt="image" 
src="https://github.com/user-attachments/assets/02a8c439-e818-4c56-be06-26d677c83936";
 />
   
   Then I immediately run another plan again to see what it shows and this is it
   <img width="687" height="858" alt="image" 
src="https://github.com/user-attachments/assets/6f36773a-62b3-4d34-b960-13a5be8d3bd7";
 />
   <img width="477" height="406" alt="image" 
src="https://github.com/user-attachments/assets/1463b3e6-a7a9-4054-be04-63a8a709eb56";
 />
   
   
   Tried to apply what it showed again, and I get this
   <img width="1277" height="413" alt="image" 
src="https://github.com/user-attachments/assets/f9bfcccc-0a2a-4c1e-af0f-3ff2936de143";
 />
   
   resulting in this
   <img width="663" height="704" alt="image" 
src="https://github.com/user-attachments/assets/487d26c6-066a-4c4c-a819-496746108360";
 />
   
   
   When my original was this
   <img width="768" height="789" alt="image" 
src="https://github.com/user-attachments/assets/29f87736-50da-43e0-ada2-0d159c5d3b48";
 />
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to