-
Notifications
You must be signed in to change notification settings - Fork 41
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
Puppet pipeline failed at deploy stage after upgraded to version 0.242.0 #687
Comments
When i have run spoke mode in latest version of puppet 0.242.0, i am getting this below error, but hub mode is works fine. Created new drift_token: 2023-**-05 11:49:21.800021224 | Created new run_token: 2023-**-05 11:49:21.800087 |
Could you share your manifest file and your logs please. |
After an offline call this was diagnosed as: When running a launch in a spoke account that is the puppet account via execution mode spoke the portfolio association for the puppet role is not added to the hub task reference file - it is programmed to run in spoke execution mode. This breaks describe provisioning parameters as the puppet role association is needed. Describe provisioning parameters should run in hub before spokes for performance reasons. |
Describe the bug
We have upgraded the puppet version to 0.242.0, and triggered the puppet pipeline post stack upgrade, but its throwing error at deploy stage.
To Reproduce
Steps to reproduce the behavior:
Traceback (most recent call last):
--
266 | File "/root/.pyenv/versions/3.9.17/bin/servicecatalog-puppet", line 8, in
267 | sys.exit(cli())
268 | File "/root/.pyenv/versions/3.9.17/lib/python3.9/site-packages/click/core.py", line 764, in call
269 | return self.main(*args, **kwargs)
270 | File "/root/.pyenv/versions/3.9.17/lib/python3.9/site-packages/click/core.py", line 717, in main
271 | rv = self.invoke(ctx)
272 | File "/root/.pyenv/versions/3.9.17/lib/python3.9/site-packages/click/core.py", line 1137, in invoke
273 | return _process_result(sub_ctx.command.invoke(sub_ctx))
274 | File "/root/.pyenv/versions/3.9.17/lib/python3.9/site-packages/click/core.py", line 956, in invoke
275 | return ctx.invoke(self.callback, **ctx.params)
276 | File "/root/.pyenv/versions/3.9.17/lib/python3.9/site-packages/click/core.py", line 555, in invoke
277 | return callback(*args, **kwargs)
278 | File "/root/.pyenv/versions/3.9.17/lib/python3.9/site-packages/servicecatalog_puppet/cli.py", line 407, in generate_task_reference
279 | task_reference_commands.generate_task_reference(f)
280 | File "/root/.pyenv/versions/3.9.17/lib/python3.9/site-packages/servicecatalog_puppet/commands/task_reference.py", line **, in generate_task_reference
281 | complete = complete_generator.generate( # hub and spokes
282 | File "/root/.pyenv/versions/3.9.17/lib/python3.9/site-packages/servicecatalog_puppet/commands/task_reference_helpers/complete_generator.py", line 197, in generate
283 | ssm_parameter_handler(
284 | File "/root/.pyenv/versions/3.9.17/lib/python3.9/site-packages/servicecatalog_puppet/commands/task_reference_helpers/generators/ssm_parameter_handler.py", line 32, in ssm_parameter_handler
285 | ssm_parameter_details.get("account_id", puppet_account_id)
286 | AttributeError: 'int' object has no attribute 'replace'
287 |
288 | [Container] 2023/10/03 15:18:28 Command did not exit successfully servicecatalog-puppet --info generate-task-reference $PWD/manifest-expanded.yaml exit status 1
289 | [Container] 2023/10/03 15:18:28 Phase complete: PRE_BUILD State: FAILED
290 | [Container] 2023/10/03 15:18:28 Phase context status code: COMMAND_EXECUTION_ERROR Message: Error while executing command: servicecatalog-puppet --info generate-task-reference $PWD/manifest-expanded.yaml. Reason: exit status 1
Expected behavior
Puppet pipeline should be successfully run and deployed the stuff.
Attachments
Please find the details log attached/.
PuppetLog.txt
The text was updated successfully, but these errors were encountered: