With Nutanix plugin v1.3.0 its failing to upload the object to S3 during the build

nutanix.Redhat: Error uploading CD disk:error while uploading image: failed to upload image file to Objects: operation error S3: PutObject, exceeded maximum number of attempts, 3, https response error StatusCode: 503, RequestID: , HostID: , api error ServiceUnavailable: Service Unavailable

It looks like the Nutanix v1.3.0 plugin is hitting a 503 ServiceUnavailable when trying to PutObject to S3 during the build. That error usually points to an issue on the S3 side or a network hiccup rather than a Packer bug. Here’s a friendly checklist you can run through:

  1. Check the S3 endpoint & region – Make sure the bucket URL in your template matches the region your credentials are scoped for. A mismatch can cause temporary 503s.
  2. Validate credentials – Run aws sts get-caller-identity (or your equivalent) to confirm that the access key/secret are still valid and have s3:PutObject permissions on the target bucket.
  3. Bucket policy / ACL – A restrictive policy can reject uploads. Ensure the bucket allows writes from your IAM role/account.
  4. Network / VPC endpoints – If you’re inside a VPC that uses an S3 gateway endpoint, double‑check that the route table and security group allow traffic. A brief outage or throttling on the endpoint can trigger 503s.
  5. Retry count – The plugin defaults to 3 attempts. You can increase this via the packer environment variable PACKER_HTTP_TIMEOUT or by adding max_retries in the builder (if supported) to give S3 a bit more breathing room.
  6. Test a manual upload – Try aws s3 cp or the s3cmd tool against the same bucket to see if the problem reproduces outside of Packer.
  7. Plugin / Packer version – v1.3.0 of the Nutanix plugin is fairly recent, but a bug could still exist. Check the Nutanix plugin changelog for any known S3‑related regressions, and consider upgrading to the latest patch.

If you run through those checks and still hit the same 503, the next step is to enable verbose logging (packer build -debug ...) and look for any networking timeouts or back‑off messages. Those logs often point directly at the root cause.

1 Like