Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions mlos_bench/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -104,8 +104,7 @@ This data produced in the `global_config_azure.jsonc` file is in the format that
```jsonc
{
"subscription": "some-guid",
"tenant": "some-other-guid",
"storageAccountKey": "some-base-64-encoded-key",
"tenant": "some-other-guid"
}
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@
"vmName",
"storageAccountName",
"storageFileShareName",
"storageAccountKey",
"mountPoint",
"experiment_id",
"trial_id"
Expand All @@ -63,7 +62,6 @@
"shell_env_params": [
"storageAccountName",
"storageFileShareName",
"storageAccountKey",
"mountPoint",
"experiment_id",
"trial_id"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@
"vmName",
"storageAccountName",
"storageFileShareName",
"storageAccountKey",
"mountPoint",
"experiment_id",
"trial_id"
Expand All @@ -65,7 +64,6 @@
"shell_env_params": [
"storageAccountName",
"storageFileShareName",
"storageAccountKey",
"mountPoint",
"experiment_id",
"trial_id"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,6 @@
"storageFileShareName": {
"description": "Azure storage file share name.",
"type": "string"
},
"storageAccountKey": {
"description": "Azure storage account key (typically provided in the global config in order to omit from source control).",
"type": "string"
}
},
"required": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
"class": "mlos_bench.services.remote.azure.AzureFileShareService",
"config": {
"storageAccountName": "PLACEHOLDER; e.g.: osatsharedstorage",
"storageFileShareName": "PLACEHOLDER; e.g.: os-autotune-file-share",
"storageAccountKey": "PLACEHOLDER; comes from global config"
"storageFileShareName": "PLACEHOLDER; e.g.: os-autotune-file-share"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
// FIXME: The setup ubuntu configs currently use these values in their mounting scripts.
// We should abstract that out so those details are only needed when a service that uses those is used.
"storageAccountName": "foo",
"storageAccountKey": "bar",
"storageFileShareName": "baz",

// Assign some values to variadic tunables and required parameters present in the config examples.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
{
"class": "mlos_bench.services.remote.azure.AzureFileShareService",
"config": {
"storageAccountName": "storage-account-name",
//"storageFileShareName": "required param missing",
"storageAccountKey": "required param missing"
// "storageAccountName": "storage-account-name",
"storageFileShareName": "required param missing"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
"config": {
"storageAccountName": "storage-account-name",
"storageFileShareName": "file-share-name",
"storageAccountKey": "storage-account-key-blob",

"extra": "invalid"
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
// 3 unhandled config parameters:
"storageAccountName": "storage-account-name",
"storageFileShareName": "file-share-name",
"storageAccountKey": "storage-account-key-blob",

"requestTimeout": 20
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
"config": {
"storageAccountName": "storage-account-name",
"storageFileShareName": "file-share-name",
"storageAccountKey": "storage-account-key-blob",

"pollInterval": 1,
"pollTimeout": 10,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
{
"class": "mlos_bench.services.remote.azure.AzureFileShareService",
"config": {
//"storageAccountName": "storage-account-name",
//"storageAccountKey": "storage-account-key-blob",
// "storageAccountName": "storage-account-name",
"storageFileShareName": "file-share-name"
}
}
12 changes: 1 addition & 11 deletions scripts/generate-azure-credentials-config.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,4 @@ if (-not $AZURE_STORAGE_ACCOUNT_NAME) {
Write-Error "Missing default az storage account name config."
}

az account get-access-token `
--query "{tenant:tenant,subscription:subscription}" |
ConvertFrom-Json |
Add-Member "storageAccountKey" (
az storage account keys list `
--resource-group $AZURE_DEFAULTS_GROUP `
--account-name $AZURE_STORAGE_ACCOUNT_NAME `
--query "[0].value" `
--output tsv `
) -PassThru |
ConvertTo-Json
az account get-access-token --query "{tenant:tenant,subscription:subscription}"
8 changes: 1 addition & 7 deletions scripts/generate-azure-credentials-config.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,4 @@ AZURE_DEFAULTS_GROUP=${AZURE_DEFAULTS_GROUP:-$(az config get --local defaults.gr
AZURE_STORAGE_ACCOUNT_RG=${AZURE_STORAGE_ACCOUNT_RG:-$AZURE_DEFAULTS_GROUP}
AZURE_STORAGE_ACCOUNT_NAME=${AZURE_STORAGE_ACCOUNT_NAME:-$(az config get --local storage.account --query value -o tsv)}

az account get-access-token \
--query "{tenant:tenant,subscription:subscription}" |
jq ".storageAccountKey = `
az storage account keys list \
--resource-group $AZURE_STORAGE_ACCOUNT_RG \
--account-name $AZURE_STORAGE_ACCOUNT_NAME \
--query '[0].value'`"
az account get-access-token --query "{tenant:tenant,subscription:subscription}"
Loading