You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug locals.tf calculates apt_sku with a dynamic lookup from the selected image. The configuration for custom images provides no mechanism for passing a value for this. Attempting to boot custom images therefore fails before terraform manages to do anything.
Steps to reproduce
Define custom images in your TRE
Attempt to boot a custom Linux VM
Wait for the failure message referring to apt_sku
In the past, there was a line checking to see if apt_sku was defined on the selected image, and substituting unknown_sku if it wasn't. Restoring this line resolves the terraform problem, and the machine will boot:
However, that leads to another problem. The value of apt_sku is used to configure Nexus to point to the correct Ubuntu repository, being instantiated by using apt-sources_config.yml as a template.
A robust way to fix this is to use the VERSION_ID from /etc/os-release at boot-time to correct the unknown_sku:
vscode ➜ .../guacamole/user_resources/guacamole-azure-linuxvm/terraform (main) $ git diff vm_config.sh
diff --git a/templates/workspace_services/guacamole/user_resources/guacamole-azure-linuxvm/terraform/vm_config.sh b/templates/workspace_services/guacamole/user_resources/guacamole-azure-linuxvm/terraform/vm_config.sh
index 1c1f918f..4a2da16e 100644
--- a/templates/workspace_services/guacamole/user_resources/guacamole-azure-linuxvm/terraform/vm_config.sh
+++ b/templates/workspace_services/guacamole/user_resources/guacamole-azure-linuxvm/terraform/vm_config.sh
@@ -9,6 +9,10 @@ set -o xtrace
# Remove apt sources not included in sources.list file
sudo rm -f /etc/apt/sources.list.d/*
+# Fix Ubuntu version in APT sources for custom images
+. /etc/os-release
+sed -i "s%unknown_sku%$VERSION_ID%" /etc/apt/sources.list
+
# Update apt packages from configured Nexus sources
echo "init_vm.sh: START"
sudo apt update || true
Azure TRE release version (e.g. v0.14.0 or main):
Head as of middle of last week.
Deployed Azure TRE components - click the (i) in the UI:
UI Version: 0.6.3
API Version: 0.20.3
The text was updated successfully, but these errors were encountered:
Describe the bug
locals.tf
calculatesapt_sku
with a dynamic lookup from the selected image. The configuration for custom images provides no mechanism for passing a value for this. Attempting to boot custom images therefore fails before terraform manages to do anything.Steps to reproduce
apt_sku
In the past, there was a line checking to see if
apt_sku
was defined on the selected image, and substitutingunknown_sku
if it wasn't. Restoring this line resolves the terraform problem, and the machine will boot:However, that leads to another problem. The value of
apt_sku
is used to configure Nexus to point to the correct Ubuntu repository, being instantiated by usingapt-sources_config.yml
as a template.A robust way to fix this is to use the
VERSION_ID
from/etc/os-release
at boot-time to correct theunknown_sku
:Azure TRE release version (e.g. v0.14.0 or main):
Head as of middle of last week.
Deployed Azure TRE components - click the (i) in the UI:
UI Version: 0.6.3
API Version: 0.20.3
The text was updated successfully, but these errors were encountered: