Skip to content

Fix cluster creation error when login nodes are used and cloudwatch is disabled - #7557

Open
hgreebe wants to merge 2 commits into
aws:developfrom
hgreebe:develop2
Open

Fix cluster creation error when login nodes are used and cloudwatch is disabled#7557
hgreebe wants to merge 2 commits into
aws:developfrom
hgreebe:develop2

Conversation

@hgreebe

@hgreebe hgreebe commented Aug 13, 2026

Copy link
Copy Markdown
Contributor

Description of changes

  • Fix cluster creation error when login nodes are used and cloudwatch is disabled
  • Before this fix the following error occured:
pcluster create-cluster --cluster-name test --cluster-configuration cluster-config.yaml
{
  "message": "'NoneType' object has no attribute 'log_group_name'"
}

Tests

  • Test cluster creation passed

Please review the guidelines for contributing and Pull Request Instructions.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@hgreebe
hgreebe marked this pull request as ready for review August 13, 2026 16:48
@hgreebe
hgreebe requested review from a team as code owners August 13, 2026 16:48
"dcv_enabled": "login_node" if self._pool.has_dcv_enabled else "false",
"dcv_port": self._pool.dcv.port if self._pool.dcv else "NONE",
"log_group_name": self._log_group.log_group_name,
"log_group_name": self._log_group.log_group_name if self._config.is_cw_logging_enabled else "NONE",

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Dont; we have a unit test we can extend to cover this change?

@gmarciani

Copy link
Copy Markdown
Contributor

This bug fix deserves an entry in the changelog for 3.16.0

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 this pull request may close these issues.

2 participants