taskcat icon indicating copy to clipboard operation
taskcat copied to clipboard

Taskcat fail to create S3 bucket due to bucket name longer than 63 chars

Open sshvans opened this issue 8 years ago • 0 comments

Describe the bug Taskcat adds a prefix and a suffix to the Quick Start name when creating an S3 bucket. This may lead to a name which is greater than 63 char and crosses the allowed limit for S3 bucket name. This can be avoided by performing a check on the generated S3 bucket name and trimming it to less than 63 chars, before creating a bucket.

To Reproduce Steps to reproduce the behavior:

  1. Have a Quick Start with name 60 chars long.
  2. Run taskcat with QSS3BucketName = auto_bucket.

Expected behavior You will see the error in the taskcat logs [0;30;43m[INFO ] :Creating bucket taskcat-qs-ci-quickstart-sample-testQuickstart-data-analysisIot-e1620478 in us-east-1

**Version (Please make sure you are running the latest version of taskcat)

  • Taskcat Version (ex: [2018.817.210357]): 0.7.5

sshvans avatar Oct 09 '18 23:10 sshvans