← Back to team overview

cloud-init-dev team mailing list archive

[Merge] ~mruffell/cloud-init:lp1842562 into cloud-init:master


Matthew Ruffell has proposed merging ~mruffell/cloud-init:lp1842562 into cloud-init:master.

Commit message:
AWS: Add udev rule to set Instance Store device IO timeouts

AWS are wishing to implement per-device IO timeouts in their cloud, and they
require Instance Store devices to use a timeout of 30000ms. 

This commit adds a udev rule to enable that timeout for AWS Instance Store
devices only.

LP: #1842562

Requested reviews:
  cloud-init commiters (cloud-init-dev)
Related bugs:
  Bug #1842562 in cloud-init (Ubuntu): "AWS: Add udev rule to set Instance Store device IO timeouts"

For more details, see:
Your team cloud-init commiters is requested to review the proposed merge of ~mruffell/cloud-init:lp1842562 into cloud-init:master.
diff --git a/udev/66-aws-io-timeout.rules b/udev/66-aws-io-timeout.rules
new file mode 100644
index 0000000..3ad3d45
--- /dev/null
+++ b/udev/66-aws-io-timeout.rules
@@ -0,0 +1,2 @@
+# AWS Specific Rule - Set Instance Storage to have a 30s timeout
+KERNEL=="nvme[0-9]*n[0-9]*", ENV{DEVTYPE}=="disk", ATTRS{model}=="Amazon EC2 NVMe Instance Storage", ATTR{queue/io_timeout}="30000"