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

catalog diff should set non-zero error code when evaluates a broken catalog #45

Open
vchepkov opened this issue Mar 16, 2021 · 10 comments
Labels
bugfix Something isn't working

Comments

@vchepkov
Copy link

Even though problems with catalog are found, puppet catalog diff returns 0 as error code:

# puppet catalog diff puppet.example.com/development puppet.example.bnaint.com/fix_loop --certless --show_resource_diff
Notice: Add --debug for realtime output, add --render-as {json,yaml} for parsed output
Error: Unable to compile catalog for node1.example.com
	Error parsing json output of puppet catalog query for node1.bnaint.com: source 'Internal Server Erro' not in PSON!. Content: Internal Server Error: org.jruby.exceptions.RuntimeError: (PreformattedError) Evaluation Error: Resource type not found: Bwip::Rails_app (file: /etc/puppetlabs/code/environments/development/modules/bpub/manifests/bwip.pp, line: 39, column: 21) on node pubdevx-opns102.bnaint.com
Error: Unable to compile catalog for node2.example.com
	Error parsing json output of puppet catalog query for node2.example.com: source 'Internal Server Erro' not in PSON!. Content: Internal Server Error: org.jruby.exceptions.RuntimeError: (PreformattedError) Evaluation Error: Resource type not found: Bwip::Rails_app (file: /etc/puppetlabs/code/environments/development/modules/bpub/manifests/bwip.pp, line: 39, column: 21) on node pubdevx-opns202.bnaint.com
Notice: Add --debug for realtime output, add --render-as {json,yaml} for parsed output
Error: Missing partner catalog for node1.example.com.pson
Error: Missing partner catalog for node2.example.com.pson
....
# echo $?
0


@vchepkov
Copy link
Author

also, if catalog has a dependency cycle, tool doesn't produce any indication of a failure

@raphink raphink added the bugfix Something isn't working label Mar 18, 2021
@stale
Copy link

stale bot commented May 18, 2021

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the wontfix This will not be worked on label May 18, 2021
@vchepkov
Copy link
Author

hmm. one way to close the tickets

@stale stale bot removed the wontfix This will not be worked on label May 18, 2021
@stale
Copy link

stale bot commented Jul 17, 2021

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the wontfix This will not be worked on label Jul 17, 2021
@vchepkov
Copy link
Author

ping

@stale stale bot removed the wontfix This will not be worked on label Jul 17, 2021
@stale
Copy link

stale bot commented Sep 15, 2021

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the wontfix This will not be worked on label Sep 15, 2021
@vchepkov
Copy link
Author

ping

@stale stale bot removed the wontfix This will not be worked on label Sep 16, 2021
@stale
Copy link

stale bot commented Nov 15, 2021

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the wontfix This will not be worked on label Nov 15, 2021
@stale stale bot closed this as completed Nov 22, 2021
@raphink raphink reopened this Nov 22, 2021
@stale stale bot removed the wontfix This will not be worked on label Nov 22, 2021
@stale
Copy link

stale bot commented Jan 21, 2022

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the wontfix This will not be worked on label Jan 21, 2022
@stale stale bot closed this as completed Jan 29, 2022
@raphink raphink removed the wontfix This will not be worked on label Jan 31, 2022
@raphink raphink reopened this Jan 31, 2022
@stale
Copy link

stale bot commented Apr 3, 2022

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the wontfix This will not be worked on label Apr 3, 2022
@stale stale bot closed this as completed Apr 10, 2022
@vchepkov vchepkov reopened this Jul 25, 2022
@vchepkov vchepkov removed the wontfix This will not be worked on label Jul 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bugfix Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants