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

Unable to install #604

Open
shayfisher opened this issue Nov 27, 2022 · 6 comments
Open

Unable to install #604

shayfisher opened this issue Nov 27, 2022 · 6 comments
Labels
question Further information is requested

Comments

@shayfisher
Copy link

I've tried installing using this URL:

Successfully installed the AWS Organization integration.
Then after launching the pre-configured template and setting Cloudformation to preserve failed components -

The deployment fails on the StartInstall custom resource creation.
When I look at the codebuild project (servicecatalog-product-puppet-initialiser - used default values) I see the following errors:
`

Starting bootstrap

230 | Traceback (most recent call last):
231 | File "/root/.pyenv/versions/3.9.12/lib/python3.9/site-packages/servicecatalog_puppet/commands/bootstrap.py", line 72, in bootstrap
232 | client.describe_event_bus(Name=constants.EVENT_BUS_NAME)
233 | File "/root/.pyenv/versions/3.9.12/lib/python3.9/site-packages/botocore/client.py", line 530, in _api_call
234 | return self._make_api_call(operation_name, kwargs)
235 | File "/root/.pyenv/versions/3.9.12/lib/python3.9/site-packages/botocore/client.py", line 960, in _make_api_call
236 | raise error_class(parsed_response, operation_name)
237 | botocore.errorfactory.ResourceNotFoundException: An error occurred (ResourceNotFoundException) when calling the DescribeEventBus operation: Event bus servicecatalog-puppet-event-bus does not exist.
238 |  
239 | During handling of the above exception, another exception occurred:
240 |  
241 | Traceback (most recent call last):
242 | File "/root/.pyenv/versions/3.9.12/bin/servicecatalog-puppet", line 8, in
243 | sys.exit(cli())
244 | File "/root/.pyenv/versions/3.9.12/lib/python3.9/site-packages/click/core.py", line 764, in call
245 | return self.main(*args, **kwargs)
246 | File "/root/.pyenv/versions/3.9.12/lib/python3.9/site-packages/click/core.py", line 717, in main
247 | rv = self.invoke(ctx)
248 | File "/root/.pyenv/versions/3.9.12/lib/python3.9/site-packages/click/core.py", line 1137, in invoke
249 | return _process_result(sub_ctx.command.invoke(sub_ctx))
250 | File "/root/.pyenv/versions/3.9.12/lib/python3.9/site-packages/click/core.py", line 956, in invoke
251 | return ctx.invoke(self.callback, **ctx.params)
252 | File "/root/.pyenv/versions/3.9.12/lib/python3.9/site-packages/click/core.py", line 555, in invoke
253 | return callback(*args, **kwargs)
254 | File "/root/.pyenv/versions/3.9.12/lib/python3.9/site-packages/servicecatalog_puppet/cli.py", line 347, in bootstrap
255 | bootstrap_commands.bootstrap(**parameters)
256 | File "/root/.pyenv/versions/3.9.12/lib/python3.9/site-packages/servicecatalog_puppet/commands/bootstrap.py", line 73, in bootstrap
257 | except events.exceptions.ResourceNotFoundException:
258 | UnboundLocalError: local variable 'events' referenced before assignment
259 |  
260 | [Container] 2022/11/27 07:24:08 Command did not exit successfully servicecatalog-puppet --info bootstrap exit status 1
261 | [Container] 2022/11/27 07:24:08 Phase complete: BUILD State: FAILED
262 | [Container] 2022/11/27 07:24:08 Phase context status code: COMMAND_EXECUTION_ERROR Message: Error while executing command: servicecatalog-puppet --info bootstrap. Reason: exit status 1
263 | [Container] 2022/11/27 07:24:08 Entering phase POST_BUILD
264 | [Container] 2022/11/27 07:24:08 Phase complete: POST_BUILD State: SUCCEEDED
265 | [Container] 2022/11/27 07:24:08 Phase context status code: Message:

`

I tried looking at the CFN templates but couldn't see the creation of an event bus named - servicecatalog-puppet-event-bus
Am I missing something ?
Thank you!

@eamonnfaherty
Copy link
Contributor

can you please confirm you are using the latest initialiser template from https://service-catalog-tools.s3.eu-west-2.amazonaws.com/puppet/latest/servicecatalog-puppet-initialiser.template.yaml

I have tried to recreate this but cannot. Could you please share your full codebuild logs.

@eamonnfaherty eamonnfaherty added the question Further information is requested label Dec 5, 2022
@shayfisher
Copy link
Author

Hi @eamonnfaherty ,
Just tried deploying right now.
Deployed this https://service-catalog-tools-workshop.com/installation/30-service-catalog-puppet/10-using-aws-organizations.html correctly to the management account - used version 0.211.0 as the version and the management account id as the puppet account id.
Set the parameter in SSM and carried on to the next step.
Tried deploying this: https://service-catalog-tools-workshop.com/installation/30-service-catalog-puppet/30-installing-puppet.html
If failed on different issues now (non existing roles):
image
It is weird because those roles are being deployed by the cloudformation snippet itself on the second step

@shayfisher
Copy link
Author

Hi @eamonnfaherty
Tried now with latest release and the second step deployment rolled back -
image

What information do you need me to provide in order to make some progress on this issue ?
Thank you!

@sandrich
Copy link

Looks like I am hitting the same issue @eamonnfaherty

Setting the following to true on the puppet init template it works

ShouldCollectCloudformationEvents | true 
ShouldForwardEventsToEventbridge | true

@eamonnfaherty
Copy link
Contributor

@sandrich does your error message match the one in this issue?

@sandrich
Copy link

@eamonnfaherty yes. Your new release seems to have fixed it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants