Skip to content

Commit

Permalink
Increase SAS timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
katcipis committed Sep 15, 2018
1 parent 913f3fd commit 8be56d7
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
# Release 0.12.1

This release just increases the timeout of the read
grant access when copying snapshots to guarantee we won't
have problems with copying big snapshots.

# Release 0.12.0

This release breaks compatibility of the vm package.
Expand Down
5 changes: 3 additions & 2 deletions azure/snapshot.sh
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,8 @@ fn azure_snapshot_copy(resgroup, location, sku, snapshots_ids) {
}

log("getting access rights to the snapshots")
sas_timeout_sec = "3600"
# Supposing it wont take more than a day to copy snapshots
sas_timeout_sec = "86400"
snapshots_ids_sas, err <= azure_snapshot_grant_access($snapshots_ids, $sas_timeout_sec)
if $err != "" {
return (), format("error granting access to snapshots: %s", $err)
Expand Down Expand Up @@ -359,4 +360,4 @@ fn _azure_snapshot_add_suffix(name) {
# Providing true uniqueness with the limits on the names is pretty hard :-)
s <= head -n1 /dev/urandom | md5sum | tr -dc A-Za-z0-9 | cut -b 1-10
return $name+$s
}
}

0 comments on commit 8be56d7

Please sign in to comment.