Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

aws: fix nil pointer exception #568

Merged
merged 2 commits into from
Dec 2, 2024
Merged

aws: fix nil pointer exception #568

merged 2 commits into from
Dec 2, 2024

Conversation

tormath1
Copy link
Contributor

In the CI (and locally) we can notice random nil pointer exception during the AWS snapshot creation. In this PR, we just make the code more robust against those errors.

The details (progress and status message) are not provided by AWS at the beginning of the import. Here's the
details:

{
  DiskImageSize: 0,
  Format: "RAW",
  SnapshotId: "",
  Status: "active",
  UserBucket: {
    S3Bucket: "flatcar-kola-ami-import-us-east-1",
    S3Key: "tormath1/amd64-usr/tormath1-flatcar-stable/flatcar_production_ami_image.bin"
  }
}

Let's just drop it as we don't use it, this does not impact the
execution of the program. If required, we can still access to the task
via its ID using the AWS CLI.

Signed-off-by: Mathieu Tortuyaux <mtortuyaux@microsoft.com>
The details (progress and status message) are not provided by AWS at the beginning of the import. Here's the
details:
```json
{
  DiskImageSize: 0,
  Format: "RAW",
  SnapshotId: "",
  Status: "active",
  UserBucket: {
    S3Bucket: "flatcar-kola-ami-import-us-east-1",
    S3Key: "tormath1/amd64-usr/tormath1-flatcar-stable/flatcar_production_ami_image.bin"
  }
}
```

Let's just drop it as we don't use it, this does not impact the
execution of the program. If required, we can still access to the task
via its ID using the AWS CLI.

Signed-off-by: Mathieu Tortuyaux <mtortuyaux@microsoft.com>
@tormath1 tormath1 self-assigned this Nov 29, 2024
@tormath1 tormath1 marked this pull request as ready for review November 29, 2024 15:10
@tormath1 tormath1 requested a review from a team November 29, 2024 15:10
@tormath1 tormath1 merged commit 28a2bfa into flatcar-master Dec 2, 2024
2 checks passed
@tormath1 tormath1 deleted the tormath1/aws branch December 2, 2024 09:04
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants