Skip to content
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

Cannot generate terraform when NSG have Rules #440

Closed
LotToLearn opened this issue Aug 13, 2021 · 2 comments
Closed

Cannot generate terraform when NSG have Rules #440

LotToLearn opened this issue Aug 13, 2021 · 2 comments

Comments

@LotToLearn
Copy link

Hi,

I have 3 NSG.. Validation was FINE on okit console, had to look in LOGS to find the issue -- strange because validation succeeded when I hit the option.

I had to end up removing all the security rules for my NSG. I tried one at a time, keeping rules and then deleting. Eventually all 3 had everything deleted, and it worked.

First one failed, deleted all rules eventually, then it passed, repeat for 2 and 3.

This is the log
INFO: Processing Network Security Group Information Dbnsg
ERROR: 'description'
Traceback (most recent call last):
File "/github/oci-designer-toolkit/okitweb/okitWebDesigner.py", line 504, in generate
generator.generate()
File "/okit/visualiser/generators/okitGenerator.py", line 171, in generate
self.renderNetworkSecurityGroup(network_security_group)
File "/okit/visualiser/generators/okitGenerator.py", line 1402, in renderNetworkSecurityGroup
jinja2_security_rule["description"] = self.generateJinja2Variable('security_rule_{0:02d}_description'.format(rule_number), rule["description"], standardisedName)

@toxophilist
Copy link
Member

@LotToLearn I can not reproduce this but it looks like your json is missing the description element for the rules which is rather odd. Can you check the original json in the json view to see if description is there.

@toxophilist
Copy link
Member

Fixed in v0.26.0 release

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants