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

Error during creation patch baseline #4

Closed
karimooo opened this issue Jun 23, 2021 · 4 comments
Closed

Error during creation patch baseline #4

karimooo opened this issue Jun 23, 2021 · 4 comments

Comments

@karimooo
Copy link

Hello,
i'm facing an issue during creation of the patchbaseline with this error :
Error: Error running command ' module/register_default_patch_baseline/register-default-patch-baseline.py register pb-01ec5ab46be344feb CENTOS
': exit status 126. Output: /bin/sh: module/register_default_patch_baseline/register-default-patch-baseline.py: Permission denied
Error: Error running command ' module/patch_baseline/register-patch-baseline-for-patch-group.sh pb-01ec5ab46be344feb dev
': exit status 126. Output: /bin/sh: module/patch_baseline/register-patch-baseline-for-patch-group.sh: Permission denied
Error: Error running command ' module/patch_baseline/register-patch-baseline-for-patch-group.sh pb-01ec5ab46be344feb dev
': exit status 126. Output: /bin/sh: module/patch_baseline/register-patch-baseline-for-patch-group.sh: Permission denied

This is the final step to apply this module on my architecture .
Thanks a lot for your help.
Regards
Karim

image

@jparnaudeau
Copy link
Owner

Hi,

Can you check that you have python3 correctly installed on your workstation ? Can you check that the module/register_default_patch_baseline/register-default-patch-baseline.py have the correct permissions ?

@jparnaudeau
Copy link
Owner

jparnaudeau commented Jun 23, 2021

For your information : i have published a new version 1.0.3 that should fix the error related to the use of "register-patch-baseline-for-patch-group.sh" when calling the patch_baseline submodule. The inital bug have been fixed in the provider, so we can use the official resource aws_ssm_patch_group.

@karimooo
Copy link
Author

Hi,
Thanks a lot for your quick feedback.

Yes permissions an py script are ok
image
I can't check the version on python cause not admin on gitlabrunner , i launch the terraform via gitlabci pipeline
On my workstation i'm done with python version
image

@jparnaudeau
Copy link
Owner

Hi karimoo,
Hmmm i think it's a problem in your runner, maybe it does not allow the execution of the python script ?

Unfortunately, the aws terraform provider does not provide a way to make the "defaut registration" of a patch baseline. I have coded this ugly "null_resource" to do it but it's not very the good approach.

I advice you to pass

set_default_patch_baseline = false

and make the call to the aws api by yourself :

response = client.register_default_patch_baseline(BaselineId=baselineId)

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