-
Notifications
You must be signed in to change notification settings - Fork 7
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
'CSR_ORIGIN_LOCAL' is not defined. #39
Comments
I am having the same issue, setting certificate_csr_origin role variable to "service" does not resolve the issue. |
A colleague's answer on this:
@cbrister78 , @dwebr , could you confirm VCert Python library is installed among your dependencies? |
I have the same issue and can confirm that vCert is installed. Also, it looks like the original post shows that the "Certificate_remote_execution" is set to false So that would mean that in main/roles/certificate/tasks/main.yml the
And as seen in line 25 of the roles/certificate/tasks/local-certificate.yml, the "certificate_csr_origin": from the runbook ('service') is set to a new variable named csr_origin but I don't see where the csr_origin variable is called to be transformed into "CSR_ORIGIN_SERVICE based on the variable's value (currently set to 'service') and if it wasn't set to service, it should at least be set to Local, as shown above. |
Found the bug due to version of python lib with vcert (lib ruamel.yaml version <=0.17.31 to work, bug with version 0.18.5) |
@cbrister78 Is @Fantomace74 fix working for you? @Fantomace74 What version of python are you using? Starting with vcert 0.16.0 support for python 3.6 has been dropped. Minimum python version is 3.9 |
I’m using python version 3.11.5 and vcert 0.16.2, which downgraded the ruamel.yaml from 0.18.5 to version 0.17.31 |
@Fantomace74 definitely something we need to fix. The ruamel dependency was updated on the requirements file but not on the setup.py file |
Hey there, |
@DaDenniX did you try at last update on your controler (no other python module upgrade after) If you are running the role in a play on localhost (controler with vcert) This more a vcert and python deps bug than an ansible collection bug. See project vcert-python (waiting for merge) Venafi/vcert-python#143 |
PROBLEM SUMMARY
We are getting a 'CSR_ORIGIN_LOCAL' is not defined message on the Enroll Venafi certificate on remote host task. We have recently upgraded from Ansible Automation Platform 1 to 2 when these issues started.
We noticed in the Venafi_Credentials.py file is being defaulted to ‘CSR_ORIGIN_LOCAL’:
I have it set to “Service” in the code:
STEPS TO REPRODUCE
EXPECTED RESULTS
ACTUAL RESULTS
ENVIRONMENT DETAILS
COMMENTS/WORKAROUNDS
The text was updated successfully, but these errors were encountered: