Azure/Moodle

VMExtensionProvisioningError - 'Invalid fileServerType

Akshat-Kesarwani opened this issue · 23 comments

I am trying to install Moodle from the Fully configurable deployment template but its always failing at controllerTemplate deployment stage with the following error:
"code": "VMExtensionProvisioningError",
"message": "VM has reported a failure when processing extension 'install_moodle'. Error message: "Enable failed: failed to execute command: command terminated with exit status=1\n[stdout].........check_fileServerType_param\n+ local fileServerType=\n+ '[' '' '!=' gluster -a '' '!=' azurefiles -a '' '!=' nfs -a '' '!=' nfs-ha -a '' '!=' nfs-byo ']'\n+ echo 'Invalid fileServerType () given. Only '\''gluster'\'', '\''azurefiles'\'', '\''nfs'\'', '\''nfs-ha'\'' or '\''nfs-byo'\'' are allowed. Exiting'\n+ exit 1\n
I have tried different file server options like nfs, nfs-ha, azurefiles but none were successful and it always failes at this same step with this same message.
Is there something I am doing wrong or there some error in the deployment scripts.
Attached the a json file with the complete error message.

Just tried once again the deployment, this time with "gluster" as file server type option and still fails at the exact same step and message. Any help would be very much appreciated.

Can you please paste the entire error.it will give us better idea to debug

Can you also let us know what options you have selected to deploy using fully configurable deployment

We tried with the default values in Fully configurable deployment.It worked.Can you try and tell us.

I am just now trying a dully configurable deployment with default values. Once finished I will provide updates.

I actually uploaded the full error in a json file when I created the issue. Please confirm and if you cannot find it then I will past it here.

Was the deployment successful?I am not able to see the attachment

The deployment I did with all the default options was successful. I am going to try another deployment but now by changing the default options one by one and see what fails.

Below is the complete error that I was getting at controller template deployment step earlier when they were failing no matter what fileServerType option I selected.
{
"status": "Failed",
"error": {
"code": "ResourceDeploymentFailure",
"message": "The resource operation completed with terminal provisioning state 'Failed'.",
"details": [
{
"code": "VMExtensionProvisioningError",
"message": "VM has reported a failure when processing extension 'install_moodle'. Error message: "Enable failed: failed to execute command: command terminated with exit status=1\n[stdout]\n\n[stderr]\n"","nfsHaLbIP":"172.31.2.100","nfsHaExportPath":"/drbd/data","fileServerDiskSize":127},"phpProfile":{"phpVersion":"7.4"}}'\n+ export storageAccountType=\n+ storageAccountType=\n++ jq -r .fileServerProfile.fileServerDiskSize\n./helper_functions.sh: line 64: jq: command not found\n++ echo '{"siteProfile":{"siteURL":"www.mymoodleexample.mx","httpsTermination":"None","thumbprintSslCert":"None","thumbprintCaCert":"None"},"moodleProfile":{"version":"MOODLE_39_STABLE","dbName":"moodle","dbUser":"moodle","dbUserAzure":"moodle@mysql-xbvhey","dbPassword":"9#36^vheydku6ERCQ","adminPassword":"XLheydku6,18","storageAccountName":"absxbvheynaf","storageAccountKey":"ygACla3fcXAJ1WSPmez5NZ1gYdWhgqoMqEMNCmO+P7PyNacJEp2zVbgoglv2GpY9bkgEmblwjj7bma2IC0d0vQ==","storageAccountType":"Standard_LRS","redisDns":"redis-xbvhey.redis.cache.windows.net","redisKey":"nBD1tLkfzj3KSD7VA75129vCD6MU6de1OQl0NB3M9es=","elasticVm1IP":"172.31.5.20","installO365pluginsSwitch":false,"installObjectFsSwitch":true,"installGdprPluginsSwitch":false,"searchType":"azure","azureSearchKey":"3DABC45A63F283024F363A511BC2419D","azureSearchNameHost":"azure-search-xbvhey.search.windows.net","tikaVmIP":"none","syslogServer":"controller-vm-xbvhey","webServerType":"nginx","htmlLocalCopySwitch":true},"dbServerProfile":{"type":"mysql","fqdn":"mysql-xbvhey.mysql.database.azure.com","adminLogin":"moodledbadmin","adminLoginAzure":"moodledbadmin@mysql-xbvhey","adminPassword":"xxbvheydku67PFIWB","mssqlDbServiceObjectiveName":"S1","mssqlDbEdition":"Standard","mssqlDbSize":"40GB"},"fileServerProfile":{"type":"nfs-ha","nfsVmName":"controller-vm-xbvhey","glusterVmName":"gluster-vm-xbvhey0","glusterVolName":"data","nfsByoIpExportPath":"","nfsHaLbIP":"172.31.2.100","nfsHaExportPath":"/drbd/data","fileServerDiskSize":127},"phpProfile":{"phpVersion":"7.4"}}'\n+ export fileServerDiskSize=\n+ fileServerDiskSize=\n++ jq -r .phpProfile.phpVersion\n./helper_functions.sh: line 65: jq: command not found\n++ echo '{"siteProfile":{"siteURL":"www.mymoodleexample.mx","httpsTermination":"None","thumbprintSslCert":"None","thumbprintCaCert":"None"},"moodleProfile":{"version":"MOODLE_39_STABLE","dbName":"moodle","dbUser":"moodle","dbUserAzure":"moodle@mysql-xbvhey","dbPassword":"9#36^vheydku6ERCQ","adminPassword":"XLheydku6,18","storageAccountName":"absxbvheynaf","storageAccountKey":"ygACla3fcXAJ1WSPmez5NZ1gYdWhgqoMqEMNCmO+P7PyNacJEp2zVbgoglv2GpY9bkgEmblwjj7bma2IC0d0vQ==","storageAccountType":"Standard_LRS","redisDns":"redis-xbvhey.redis.cache.windows.net","redisKey":"nBD1tLkfzj3KSD7VA75129vCD6MU6de1OQl0NB3M9es=","elasticVm1IP":"172.31.5.20","installO365pluginsSwitch":false,"installObjectFsSwitch":true,"installGdprPluginsSwitch":false,"searchType":"azure","azureSearchKey":"3DABC45A63F283024F363A511BC2419D","azureSearchNameHost":"azure-search-xbvhey.search.windows.net","tikaVmIP":"none","syslogServer":"controller-vm-xbvhey","webServerType":"nginx","htmlLocalCopySwitch":true},"dbServerProfile":{"type":"mysql","fqdn":"mysql-xbvhey.mysql.database.azure.com","adminLogin":"moodledbadmin","adminLoginAzure":"moodledbadmin@mysql-xbvhey","adminPassword":"xxbvheydku67PFIWB","mssqlDbServiceObjectiveName":"S1","mssqlDbEdition":"Standard","mssqlDbSize":"40GB"},"fileServerProfile":{"type":"nfs-ha","nfsVmName":"controller-vm-xbvhey","glusterVmName":"gluster-vm-xbvhey0","glusterVolName":"data","nfsByoIpExportPath":"","nfsHaLbIP":"172.31.2.100","nfsHaExportPath":"/drbd/data","fileServerDiskSize":127},"phpProfile":{"phpVersion":"7.4"}}'\n+ export phpVersion=\n+ phpVersion=\n+ echo\n+ echo\n+ echo\n+ echo\n+ echo\n+ echo\n+ echo\n+ echo\n+ echo\n+ echo\n+ echo\n+ echo\n+ echo\n+ echo\n+ echo\n+ echo\n+ echo\n+ echo\n+ echo\n+ echo\n+ echo\n+ echo\n+ echo\n+ echo\n+ echo\n+ echo\n+ echo\n+ echo\n+ echo\n+ echo\n+ echo\n+ echo\n+ echo\n+ echo\n+ echo\n+ echo\n+ echo\n+ check_fileServerType_param\n+ local fileServerType=\n+ '[' '' '!=' gluster -a '' '!=' azurefiles -a '' '!=' nfs -a '' '!=' nfs-ha -a '' '!=' nfs-byo ']'\n+ echo 'Invalid fileServerType () given. Only '\''gluster'\'', '\''azurefiles'\'', '\''nfs'\'', '\''nfs-ha'\'' or '\''nfs-byo'\'' are allowed. Exiting'\n+ exit 1\n"\r\n\r\nMore information on troubleshooting is available at https://aka.ms/VMExtensionCSELinuxTroubleshoot "
}
]
}
}

We are good right.Lets us know if you find anything.

@ummadisudhakar I now tried the installation with the following changes to the default options:

  • Redis Deploy: true
  • Search Type: azure
  • Tika Service: tika
  • File Server Type: nfs-ha

With these changes, I am getting error in the nfsHaTemplate deployment step which fails with the following error:
"code": "VMExtensionProvisioningError",
"message": "VM has reported a failure when processing extension 'setup_nfs_ha'. Error message: "Enable failed: failed to execute command: command terminated with exit status=127\n[stdout]\nbd-utils/user/v84'\ninstall -d //var/lib/drbd\ninstall -d //var/run/drbd\ninstall -d //var/lock\ninstall -d //lib/drbd/\nif getent group haclient > /dev/null 2> /dev/null ; then\t\\n\tinstall -g haclient -m 4750 drbdsetup-84 //lib/drbd/ ;\t\\n\tinstall -m 755 drbdadm-84 //lib/drbd/ ;\t\t\\nelse\t\t\t\t\t\t\t\t\\n\tinstall -m 755 drbdsetup-84 //lib/drbd/ ;\t\t\\n\tinstall -m 755 drbdadm-84 //lib/drbd/ ; \t\t\\nfi\nmake[1]: Leaving directory '/tmp/drbd-utils/user/v84'\nmake[1]: Entering directory '/tmp/drbd-utils/user/drbdmon'\ninstall -m 755 drbdmon //usr/sbin\nmake[1]: Leaving directory '/tmp/drbd-utils/user/drbdmon'\n/var/lib/waagent/custom-script/download/0\nDisks are /dev/sdc /dev/sdd /dev/sde /dev/sdf \nDisk count is 4\nPackage: mdadm\nStatus: install ok installed\nPriority: optional\nSection: admin\nInstalled-Size: 1206\nMaintainer: Ubuntu Developers ubuntu-devel-discuss@lists.ubuntu.com\nArchitecture: amd64\nVersion: 4.1rc1-3ubuntu18.04.4\nDepends: libc6 (>= 2.27), udev, debconf (>= 0.5) | debconf-2.0, lsb-base, debconf\nRecommends: kmod | module-init-tools\nSuggests: default-mta | mail-transport-agent, dracut-core\nConffiles:\n /etc/cron.d/mdadm e2384a232bdaaf9ec65173d5282e40fe\n /etc/cron.daily/mdadm 04839987aec89ae101d5e1f47abd2be4\n /etc/init.d/mdadm efc6265fbfed68898f122344143747f9\n /etc/init.d/mdadm-waitidle 3fbdb2093dd0d373a923ad9983e3f75f\n /etc/logcheck/ignore.d.server/mdadm 5eeaf5c5c7dc0291a986e43004dfd495\n /etc/logcheck/violations.d/mdadm efd87cec251921ce0642171eae5f3b73\n /etc/modprobe.d/mdadm.conf d3be82c0f275d6c25b04d388baf9e836\nDescription: tool to administer Linux MD arrays (software RAID)\n The mdadm utility can be used to create, manage, and monitor MD\n (multi-disk) arrays for software RAID or multipath I/O.\n .\n This package automatically configures mdadm to assemble arrays during the\n system startup process. If not needed, this functionality can be disabled.\nHomepage: http://neil.brown.name/blog/mdadm\nOriginal-Maintainer: Debian mdadm maintainers pkg-mdadm-devel@lists.alioth.debian.org\nCreating raid0\nDisk (RAID if multiple unpartitioned disks, or as is if only one unpartitioned disk) is set up, and env var AZMDL_DISK is set to '/dev/md0' for later reference\n Physical volume "/dev/md0" successfully created.\n Volume group "drbdvg" successfully created\n Logical volume "drbdlv" created.\ninitializing activity log\nWriting meta data...\nNew drbd meta data block successfully created.\nazmdlr0 role:Secondary\n disk:Inconsistent\n peer connection:Connecting\n\nDiscarding device blocks: 4096/126441700\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b 528384/126441700\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b 6295552/126441700\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b 12062720/126441700\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b 18354176/126441700\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b 24645632/126441700\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b 29888512/126441700\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b 35655680/126441700\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b 41422848/126441700\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b 47714304/126441700\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b 53481472/126441700\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b 59772928/126441700\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b 65540096/126441700\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b 71307264/126441700\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b 76025856/126441700\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b 80744448/126441700\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b 87035904/126441700\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b 92803072/126441700\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b 98570240/126441700\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b104861696/126441700\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b110628864/126441700\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b116920320/126441700\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b122687488/126441700\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b \b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\bdone \nCreating filesystem with 126441700 4k blocks and 31612928 inodes\nFilesystem UUID: 1156d7c2-08d0-4611-8744-bfee24210ac6\nSuperblock backups stored on blocks: \n\t32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208, \n\t4096000, 7962624, 11239424, 20480000, 23887872, 71663616, 78675968, \n\t102400000\n\nAllocating group tables: 0/3859\b\b\b\b\b\b\b\b\b \b\b\b\b\b\b\b\b\bdone \nWriting inode tables: 0/3859\b\b\b\b\b\b\b\b\b \b\b\b\b\b\b\b\b\bdone \nCreating journal (262144 blocks): done\nWriting superblocks and filesystem accounting information: 0/3859\b\b\b\b\b\b\b\b\b 6/3859\b\b\b\b\b\b\b\b\b \b\b\b\b\b\b\b\b\bdone\n\n\n[stderr]\nu may safely ignore this warning when building from a tarball.\n+ make tools\nSubmodule 'drbd-headers' (https://github.com/LINBIT/drbd-headers.git) registered for path 'drbd-headers'\nCloning into '/tmp/drbd-utils/drbd-headers'...\n+ make install-tools\n+ cd ..\n+ rm -rf drbd-9.0 drbd-utils\n+ popd\n+ setup_raid_disk_and_filesystem None /dev/md0 None False\n+ local MOUNTPOINT=None\n+ local RAIDDISK=/dev/md0\n+ local RAIDPARTITION=None\n+ local CREATE_FILESYSTEM=False\n++ scan_for_new_disks '/dev/sda|/dev/sdb'\n++ local 'BLACKLIST=/dev/sda|/dev/sdb'\n++ declare -a RET\n+++ egrep -v '/dev/sda|/dev/sdb'\n+++ egrep -v '[0-9]$'\n+++ ls -1 /dev/sda /dev/sda1 /dev/sda14 /dev/sda15 /dev/sdb /dev/sdb1 /dev/sdc /dev/sdd /dev/sde /dev/sdf\n++ local 'DEVS=/dev/sdc\n/dev/sdd\n/dev/sde\n/dev/sdf'\n++ for DEV in ${DEVS}\n++ '[' '!' -b /dev/sdc1 ']'\n++ RET+='/dev/sdc '\n++ for DEV in ${DEVS}\n++ '[' '!' -b /dev/sdd1 ']'\n++ RET+='/dev/sdd '\n++ for DEV in ${DEVS}\n++ '[' '!' -b /dev/sde1 ']'\n++ RET+='/dev/sde '\n++ for DEV in ${DEVS}\n++ '[' '!' -b /dev/sdf1 ']'\n++ RET+='/dev/sdf '\n++ echo '/dev/sdc /dev/sdd /dev/sde /dev/sdf '\n+ local 'DISKS=/dev/sdc /dev/sdd /dev/sde /dev/sdf '\n+ echo 'Disks are /dev/sdc /dev/sdd /dev/sde /dev/sdf '\n+ declare -i DISKCOUNT\n++ wc -w\n++ echo '/dev/sdc /dev/sdd /dev/sde /dev/sdf '\n+ local DISKCOUNT=4\n+ echo 'Disk count is 4'\n+ '[' 4 = 0 ']'\n+ '[' 4 -gt 1 ']'\n+ create_raid0_ubuntu /dev/md0 128 4 /dev/sdc /dev/sdd /dev/sde /dev/sdf\n+ local RAIDDISK=/dev/md0\n+ local RAIDCHUNKSIZE=128\n+ local DISKCOUNT=4\n+ shift\n+ shift\n+ shift\n+ local 'DISKS=/dev/sdc /dev/sdd /dev/sde /dev/sdf'\n+ dpkg -s mdadm\n+ _RET=0\n+ '[' 0 -eq 1 ']'\n+ echo 'Creating raid0'\n+ udevadm control --stop-exec-queue\n+ mdadm --create /dev/md0 --name=data --level=0 --chunk=128 --raid-devices=4 /dev/sdc /dev/sdd /dev/sde /dev/sdf\n+ echo yes\nmdadm: Defaulting to version 1.2 metadata\nmdadm: array /dev/md0 started.\n+ udevadm control --start-exec-queue\n+ mdadm --detail --verbose --scan\n+ AZMDL_DISK=/dev/md0\n+ '[' -z False ']'\n+ echo 'Disk (RAID if multiple unpartitioned disks, or as is if only one unpartitioned disk) is set up, and env var AZMDL_DISK is set to '\''/dev/md0'\'' for later reference'\n+ '[' -z False ']'\n+ DRBD_RESOURCE_NAME=azmdlr0\n+ DRBD_DEVICE_PATH=/dev/drbd0\n+ DRBD_MOUNT_POINT=/drbd\n+ setup_drbd_with_disk /dev/md0 hanode0-ot4fvb 172.31.2.110 hanode1-ot4fvb 172.31.2.120 azmdlr0 /dev/drbd0 /drbd\n+ local disk=/dev/md0\n+ local node1name=hanode0-ot4fvb\n+ local node1ip=172.31.2.110\n+ local node2name=hanode1-ot4fvb\n+ local node2ip=172.31.2.120\n+ local drbd_resource_name=azmdlr0\n+ local drbd_device_path=/dev/drbd0\n+ local drbd_device_mount_point=/drbd\n+ local vgname=drbdvg\n+ local lvname=drbdlv\n+ wipefs -af /dev/md0\n+ pvcreate /dev/md0\n+ vgcreate drbdvg /dev/md0\n+ lvcreate -n drbdlv -l 95%VG drbdvg\n+ cat\n+ drbdadm create-md azmdlr0\ninitializing bitmap (15436 KB) to all zero\n+ drbdadm up azmdlr0\n+ drbdadm status\n+ '[' 172.31.2.110 = 172.31.2.110 ']'\n+ drbdadm primary azmdlr0 --force\n+ mkfs.ext4 /dev/drbd0\nmke2fs 1.44.1 (24-Mar-2018)\n+ mkdir -p /drbd\n+ mount /dev/drbd0 /drbd\n+ NFS_EXPORT_PATH=/drbd/data\n+ setup_corosync_and_pacemaker_for_nfs 172.31.2.110 172.31.2.120 azmdlr0 /dev/drbd0 /drbd /drbd/data 172.31.0.0/24\n+ local node1ip=172.31.2.110\n+ local node2ip=172.31.2.120\n+ local drbd_resource_name=azmdlr0\n+ local drbd_device_path=/dev/drbd0\n+ local drbd_mount_point=/drbd\n+ local nfs_export_path=/drbd/data\n+ local nfs_client_spec=172.31.0.0/24\n+ mv /etc/corosync/corosync.conf /etc/corosync/corosync.conf.orig\n+ local cluster_name=azmdl-cluster\n+ cat\n+ systemctl enable corosync pacemaker\nSynchronizing state of corosync.service with SysV service script with /lib/systemd/systemd-sysv-install.\nExecuting: /lib/systemd/systemd-sysv-install enable corosync\nSynchronizing state of pacemaker.service with SysV service script with /lib/systemd/systemd-sysv-install.\nExecuting: /lib/systemd/systemd-sysv-install enable pacemaker\n+ systemctl restart corosync pacemaker\n+ '[' 172.31.2.110 = 172.31.2.110 ']'\n+ mkdir -p /drbd/data\n+ crm configure\nsetup_nfs_ha.sh: line 194: crm: command not found\n"\r\n\r\nMore information on troubleshooting is available at https://aka.ms/VMExtensionCSELinuxTroubleshoot "

@Akshat-Kesarwani: Thank you for calling this out and helping with the investigation here. If you're looking for performant IO, I'd recommend looking at azurefiles for moodle content. It does have the performance from our load tests and is more affordable than glusterfs or nfs-ha (once you account for the VMs and all the needed disks). Still, we'll look into what's happening here.

I've seen your reply to Ross around NetApp. As I mentioned there, we had been looking at ANF but didn't pursue it hard enough from a bandwidth / prioritization perspective. Possible to share more about your requirements here so we can get a general idea? E.g.: number of concurrent Moodle users, size of your Moodle data/content share etc.

I will get the approximate size of the Moodle data/content but we are targeting this deployment for about 5 million users with approx. 80,000 concurrent users. I have been evaluating different options for data/content including NetApp and want to evaluate something with best possible performance.

@Akshat-Kesarwani We are looking into NFS-HA issue.Will update here once we have something concrete.

Sorry? Hi? how you fixed thisproblem& I'm trying in default settings, but iwas taken
{"code":"DeploymentFailed","message":"Как минимум одна операция развертывания ресурса не выполнена. Для получения сведений откройте список операций развертывания. Сведения об использовании: https://aka.ms/DeployOperations.","details":[{"code":"Conflict","message":"{\r\n \"status\": \"Failed\",\r\n \"error\": {\r\n \"code\": \"ResourceDeploymentFailure\",\r\n \"message\": \"Операция ресурса завершилась с окончательным состоянием подготовки \\\"Failed\\\".\",\r\n \"details\": [\r\n {\r\n \"code\": \"DeploymentFailed\",\r\n \"message\": \"Как минимум одна операция развертывания ресурса не выполнена. Для получения сведений откройте список операций развертывания. Сведения об использовании: https://aka.ms/DeployOperations.\",\r\n \"details\": [\r\n {\r\n \"code\": \"Conflict\",\r\n \"message\": \"{\\r\\n \\\"status\\\": \\\"Failed\\\",\\r\\n \\\"error\\\": {\\r\\n \\\"code\\\": \\\"ResourceDeploymentFailure\\\",\\r\\n \\\"message\\\": \\\"Операция ресурса завершилась с окончательным состоянием подготовки \\\\\\\"Failed\\\\\\\".\\\",\\r\\n \\\"details\\\": [\\r\\n {\\r\\n \\\"code\\\": \\\"VMExtensionProvisioningError\\\",\\r\\n \\\"message\\\": \\\"При обработке расширения \\\\\\\"install_moodle\\\\\\\" виртуальная машина сообщила об ошибке: \\\\\\\"Enable failed: failed to execute command: command terminated with exit status=1\\\\n[stdout]\\\\n\\\\n[stderr]\\\\nRAIDPARTITION=/dev/md1p1\\\\n+ local CREATE_FILESYSTEM=\\\\n++ scan_for_new_disks '/dev/sda|/dev/sdb'\\\\n++ local 'BLACKLIST=/dev/sda|/dev/sdb'\\\\n++ declare -a RET\\\\n+++ egrep -v '[0-9]$'\\\\n+++ egrep -v '/dev/sda|/dev/sdb'\\\\n+++ ls -1 /dev/sda /dev/sda1 /dev/sda14 /dev/sda15 /dev/sdb /dev/sdb1 /dev/sdc /dev/sdd /dev/sde /dev/sdf\\\\n++ local 'DEVS=/dev/sdc\\\\n/dev/sdd\\\\n/dev/sde\\\\n/dev/sdf'\\\\n++ for DEV in ${DEVS}\\\\n++ '[' '!' -b /dev/sdc1 ']'\\\\n++ RET+='/dev/sdc '\\\\n++ for DEV in ${DEVS}\\\\n++ '[' '!' -b /dev/sdd1 ']'\\\\n++ RET+='/dev/sdd '\\\\n++ for DEV in ${DEVS}\\\\n++ '[' '!' -b /dev/sde1 ']'\\\\n++ RET+='/dev/sde '\\\\n++ for DEV in ${DEVS}\\\\n++ '[' '!' -b /dev/sdf1 ']'\\\\n++ RET+='/dev/sdf '\\\\n++ echo '/dev/sdc /dev/sdd /dev/sde /dev/sdf '\\\\n+ local 'DISKS=/dev/sdc /dev/sdd /dev/sde /dev/sdf '\\\\n+ echo 'Disks are /dev/sdc /dev/sdd /dev/sde /dev/sdf '\\\\n+ declare -i DISKCOUNT\\\\n++ wc -w\\\\n++ echo '/dev/sdc /dev/sdd /dev/sde /dev/sdf '\\\\n+ local DISKCOUNT=4\\\\n+ echo 'Disk count is 4'\\\\n+ '[' 4 = 0 ']'\\\\n+ '[' 4 -gt 1 ']'\\\\n+ create_raid0_ubuntu /dev/md1 128 4 /dev/sdc /dev/sdd /dev/sde /dev/sdf\\\\n+ local RAIDDISK=/dev/md1\\\\n+ local RAIDCHUNKSIZE=128\\\\n+ local DISKCOUNT=4\\\\n+ shift\\\\n+ shift\\\\n+ shift\\\\n+ local 'DISKS=/dev/sdc /dev/sdd /dev/sde /dev/sdf'\\\\n+ dpkg -s mdadm\\\\n+ _RET=0\\\\n+ '[' 0 -eq 1 ']'\\\\n+ echo 'Creating raid0'\\\\n+ udevadm control --stop-exec-queue\\\\n+ mdadm --create /dev/md1 --name=data --level=0 --chunk=128 --raid-devices=4 /dev/sdc /dev/sdd /dev/sde /dev/sdf\\\\n+ echo yes\\\\nmdadm: Defaulting to version 1.2 metadata\\\\nmdadm: array /dev/md1 started.\\\\n+ udevadm control --start-exec-queue\\\\n+ mdadm --detail --verbose --scan\\\\n+ AZMDL_DISK=/dev/md1\\\\n+ '[' -z '' ']'\\\\n+ do_partition /dev/md1\\\\n+ local DISK=/dev/md1\\\\n+ echo 'Partitioning disk /dev/md1'\\\\n+ fdisk /dev/md1\\\\n+ echo -ne 'n\\\\\\\\np\\\\\\\\n1\\\\\\\\n\\\\\\\\n\\\\\\\\nw\\\\\\\\n'\\\\n+ '[' 0 -ne 0 ']'\\\\n+ local PARTITION=/dev/md1p1\\\\n+ echo 'Disk (RAID if multiple unpartitioned disks, or as is if only one unpartitioned disk) is set up, and env var AZMDL_DISK is set to '\\\\\\\\''/dev/md1'\\\\\\\\'' for later reference'\\\\n+ '[' -z '' ']'\\\\n+ echo 'Creating filesystem on /dev/md1p1.'\\\\n+ mkfs -t ext4 /dev/md1p1\\\\nmke2fs 1.44.1 (24-Mar-2018)\\\\n+ mkdir -p /moodle\\\\n++ tr -d '\\\\\\\"'\\\\n++ awk -F '[= ]' '{print $3}'\\\\n++ blkid -u filesystem /dev/md1p1\\\\n+ local UUID=7368ee36-54f0-43c3-8e3b-3db882109c11\\\\n+ add_local_filesystem_to_fstab 7368ee36-54f0-43c3-8e3b-3db882109c11 /moodle\\\\n+ local UUID=7368ee36-54f0-43c3-8e3b-3db882109c11\\\\n+ local MOUNTPOINT=/moodle\\\\n+ grep -q -s 7368ee36-54f0-43c3-8e3b-3db882109c11 /etc/fstab\\\\n+ _RET=1\\\\n+ '[' 1 -eq 0 ']'\\\\n+ LINE='\\\\\\\\nUUID=7368ee36-54f0-43c3-8e3b-3db882109c11 /moodle ext4 defaults,noatime 0 0'\\\\n+ echo -e '\\\\\\\\nUUID=7368ee36-54f0-43c3-8e3b-3db882109c11 /moodle ext4 defaults,noatime 0 0'\\\\n+ echo 'Mounting disk /dev/md1p1 on /moodle'\\\\n+ mount /moodle\\\\n+ configure_nfs_server_and_export /moodle\\\\n+ local MOUNTPOINT=/moodle\\\\n+ echo 'Installing nfs server...'\\\\n+ apt install -y nfs-kernel-server\\\\n\\\\nWARNING: apt does not have a stable CLI interface. Use with caution in scripts.\\\\n\\\\n+ echo 'Exporting /moodle...'\\\\n+ grep -q -s '^/moodle' /etc/exports\\\\n+ _RET=1\\\\n+ '[' 1 = 0 ']'\\\\n+ echo -e '\\\\\\\\n/moodle *(rw,sync,no_root_squash)'\\\\n+ systemctl restart nfs-kernel-server.service\\\\n+ sudo apt-get -y update\\\\n+ sudo apt-get -y --force-yes install rsyslog git\\\\nW: --force-yes is deprecated, use one of the options starting with --allow instead.\\\\n+ '[' nfs = gluster ']'\\\\n+ '[' nfs = azurefiles ']'\\\\n+ '[' mysql = mysql ']'\\\\n+ sudo apt-get -y --force-yes install mysql-client\\\\ndebconf: unable to initialize frontend: Dialog\\\\ndebconf: (Dialog frontend will not work on a dumb terminal, an emacs shell buffer, or without a controlling terminal.)\\\\ndebconf: falling back to frontend: Readline\\\\ndebconf: unable to initialize frontend: Readline\\\\ndebconf: (This frontend requires a controlling tty.)\\\\ndebconf: falling back to frontend: Teletype\\\\ndpkg-preconfigure: unable to re-open stdin: \\\\nW: --force-yes is deprecated, use one of the options starting with --allow instead.\\\\n+ '[' false = true -o nfs = azurefiles ']'\\\\n+ '[' nfs = gluster ']'\\\\n+ '[' nfs = nfs-ha ']'\\\\n+ '[' nfs = nfs-byo ']'\\\\n+ sudo add-apt-repository ppa:ubuntu-toolchain-r/ppa\\\\n+ sudo apt-get update\\\\n+ sudo apt-get install software-properties-common\\\\n\\\\\\\".\\\\r\\\\n\\\\r\\\\nДополнительные сведения об устранении неполадок: https://aka.ms/VMExtensionCSELinuxTroubleshoot. \\\"\\r\\n }\\r\\n ]\\r\\n }\\r\\n}\"\r\n }\r\n ]\r\n }\r\n ]\r\n }\r\n}"}]}
изображение

hi I'm having the same problem.

Enable failed: failed to execute command: command terminated with exit status=1 [stdout] [stderr] 1.5.20 + echo false + echo mysql + echo azurefiles + echo S1 + echo Standard + echo 250GB + echo false + echo false + echo None + echo None + echo elastic + echo None + echo azure-search-wspt5n.search.windows.net + echo none + echo + echo Premium_LRS + echo 1024 + echo 7.4 + check_fileServerType_param azurefiles + local fileServerType=azurefiles + '[' azurefiles '!=' gluster -a azurefiles '!=' azurefiles -a azurefiles '!=' nfs -a azurefiles '!=' nfs-ha -a azurefiles '!=' nfs-byo ']' + sudo add-apt-repository ppa:ondrej/php -y + sudo apt-get update + '[' mysql = mysql ']' + mysqlIP=mysql-wspt5n.mysql.database.azure.com + mysqladminlogin=dbadmin@mysql-wspt5n + mysqladminpass='lwspt5noiym*7PFIWB' + sudo apt-get -y update + sudo apt-get -y install unattended-upgrades fail2ban debconf: unable to initialize frontend: Dialog debconf: (Dialog frontend will not work on a dumb terminal, an emacs shell buffer, or without a controlling terminal.) debconf: falling back to frontend: Readline debconf: unable to initialize frontend: Readline debconf: (This frontend requires a controlling tty.) debconf: falling back to frontend: Teletype dpkg-preconfigure: unable to re-open stdin: + config_fail2ban + cat + mkdir -p /moodle + export DEBIAN_FRONTEND=noninteractive + DEBIAN_FRONTEND=noninteractive + '[' azurefiles = gluster ']' + '[' azurefiles = nfs ']' + sudo apt-get -y update + sudo apt-get -y --force-yes install rsyslog git W: --force-yes is deprecated, use one of the options starting with --allow instead. + '[' azurefiles = gluster ']' + '[' azurefiles = azurefiles ']' + sudo apt-get -y --force-yes install cifs-utils W: --force-yes is deprecated, use one of the options starting with --allow instead. + '[' mysql = mysql ']' + sudo apt-get -y --force-yes install mysql-client debconf: unable to initialize frontend: Dialog debconf: (Dialog frontend will not work on a dumb terminal, an emacs shell buffer, or without a controlling terminal.) debconf: falling back to frontend: Readline debconf: unable to initialize frontend: Readline debconf: (This frontend requires a controlling tty.) debconf: falling back to frontend: Teletype dpkg-preconfigure: unable to re-open stdin: W: --force-yes is deprecated, use one of the options starting with --allow instead. + '[' false = true -o azurefiles = azurefiles ']' + sudo tee /etc/apt/sources.list.d/azure-cli.list + echo 'deb [arch=amd64] https://packages.microsoft.com/repos/azure-cli/ wheezy main' + sudo apt-key add - + curl -L https://packages.microsoft.com/keys/microsoft.asc % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
100 983 100 983 0 0 39320 0 --:--:-- --:--:-- --:--:-- 39320 Warning: apt-key output should not be parsed (stdout is not a terminal) + sudo apt-get -y install apt-transport-https debconf: unable to initialize frontend: Dialog debconf: (Dialog frontend will not work on a dumb terminal, an emacs shell buffer, or without a controlling terminal.) debconf: falling back to frontend: Readline debconf: unable to initialize frontend: Readline debconf: (This frontend requires a controlling tty.) debconf: falling back to frontend: Teletype dpkg-preconfigure: unable to re-open stdin: + sudo apt-get -y update + sudo apt-get -y install azure-cli debconf: unable to initialize frontend: Dialog debconf: (Dialog frontend will not work on a dumb terminal, an emacs shell buffer, or without a controlling terminal.) debconf: falling back to frontend: Readline debconf: unable to initialize frontend: Readline debconf: (This frontend requires a controlling tty.) debconf: falling back to frontend: Teletype dpkg-preconfigure: unable to re-open stdin: + '[' Premium_LRS '!=' Premium_LRS ']' + '[' azurefiles = gluster ']' + '[' azurefiles = nfs-ha ']' + '[' azurefiles = nfs-byo ']' + sudo add-apt-repository ppa:ubuntu-toolchain-r/ppa + sudo apt-get update + sudo apt-get install software-properties-common

@scipiotech We will look into this and update.Its all default with Fully COnfigurable deployment right?

@scipiotech checking this one.

@scipiotech checking this one.

Thanks 🙏

@scipiotech you can try to install now

@scipiotech you can try to install now

IT WORKS WITH UBUNTU 16 THANKS.

Closing issue. @ummadisudhakar is looking at getting 100% deployment success with Ubuntu 18.04 as well.