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

plugin cannot gather the full report #149

Closed
czunker opened this issue Nov 2, 2023 · 3 comments · Fixed by #150
Closed

plugin cannot gather the full report #149

czunker opened this issue Nov 2, 2023 · 3 comments · Fixed by #150
Assignees

Comments

@czunker
Copy link
Contributor

czunker commented Nov 2, 2023

Describe the bug
Different error messages while running the plugin:

failed to handshake
could not gather the full report

To Reproduce
Steps to reproduce the behavior:

  1. Go to '...'
  2. Select '....'
  3. Scroll down to '....'
  4. Note the error

Expected behavior
This shouldn't error.

Desktop (please complete the following information):

  • packer-plugin-cnspec v9.2.4

Additional context
It works with packer-plugin-cnspec v9.2.2.

@czunker czunker self-assigned this Nov 2, 2023
@czunker
Copy link
Contributor Author

czunker commented Nov 2, 2023

It is the combination of cnspec verison and os provider version. Downgrading to os provider 9.0.16 causes the error.

Upgrading the os provider fixes it again.

czunker added a commit that referenced this issue Nov 3, 2023
Fixes #149

Signed-off-by: Christian Zunker <[email protected]>
czunker added a commit that referenced this issue Nov 6, 2023
Fixes #149

Signed-off-by: Christian Zunker <[email protected]>
@vjeffrey
Copy link
Contributor

can we close this? sounds like its not a problem with the latest os provider?

@czunker
Copy link
Contributor Author

czunker commented Nov 14, 2023

can we close this? sounds like its not a problem with the latest os provider?

Yes and no.
In case you only use the packer plugin, it can be a problem with the cnspec os provider, because the packer pugin does not automatically update the cnspec os provider. So, in cases where you use the packer plugin and have an os provider < 9.1.0, it fails. Updating the provider on plugin start (#150 ) solves it.

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

Successfully merging a pull request may close this issue.

2 participants