Deploy of VM failed with error "Failed to add mdisk to userid XXXXXX"

Problem

Deploy of virtual machine failed with following kind of error:

    2020-08-06 23:58:38.531 19117 ERROR compute [req-e0301599-ab00-4bbb-aa25-8d4451e093f8 0688b01e6439ca32d698d20789d52169126fb41fb1a4ddafcebb97d854e836c9 769d3edee9a3456e8dee53c55e109d28 - default default] Deploy of virtual machine RHEL78-RDBK on host rdbkcic2 failed with exception: Build of instance c09d40dc-418a-4202-a531-051f10ed82bd was re-scheduled: zVM Cloud Connector request failed: {u'rs': 4, u'overallRC': 3, u'modID': 1, u'rc': 415, u'output': u'', u'errmsg': u'Failed to add mdisk to userid \'RDBK0001\'. SMT error: SMT request failed. RequestData: \'changevm RDBK0001 add3390 IBMCIC 0100 10g --mode MR --filesystem ext4\', Results: \'{\'rs\': 4, \'errno\': 0, \'strError\': \'\', \'overallRC\': 3, \'rc\': 415, \'response\': ["(Error) ULTVMU0415E Command failed: \'sudo /opt/zthin/bin/linkdiskandbringonline RDBK0001 0100 MR\', rc: 5 out: linkdiskandbringonline RDBK0001 start time: 2020-08-07-03:50:33.154", \'ERROR: Failed to connect disk: RDBK0001:0100 rc: 5\', \'  WARNING: Waiting on lock: /var/run/zthin_disk_connection_lock\', \'  WARNING: Waiting on lock: /var/run/zthin_disk_connection_lock\', \'  WARNING: Waiting on lock: /var/run/zthin_disk_connection_lock\', \'  WARNING: Waiting on lock: /var/run/zthin_disk_connection_lock\', "(Error) ULTVMU0415E Command failed: \'sudo /opt/zthin/bin/offlinediskanddetach RDBK0001 0100\', rc: 4 out: offlinediskanddetach RDBK0001 start time: 2020-08-07-03:52:33.674", \'ERROR: Failed to disconnect disk: RDBK0001:0100 rc: 4\', \'  WARNING: Waiting on lock: /var/run/zthin_disk_connection_lock\', \'  WARNING: Waiting on lock: /var/run/zthin_disk_connection_lock\', \'  WARNING: Waiting on lock: /var/run/zthin_disk_connection_lock\', \'  WARNING: Waiting on lock: /var/run/zthin_disk_connection_lock\', \'  WARNING: Waiting on lock: /var/run/zthin_disk_connection_lock\', \'  WARNING: Waiting on lock: /var/run/zthin_disk_connection_lock\', \'  WARNING: Waiting on lock: /var/run/zthin_disk_connection_lock\', \'  WARNING: Waiting on lock: /var/run/zthin_disk_connection_lock\', \'  WARNING: Waiting on lock: /var/run/zthin_disk_connection_lock\', \'  WARNING: Waiting on lock: /var/run/zthin_disk_connection_lock\', \'  WARNING: Waiting on lock: /var/run/zthin_disk_connection_lock\', \'  WARNING: Waiting on lock: /var/run/zthin_disk_connection_lock\']}\''}: RescheduledException: Build of instance c09d40dc-418a-4202-a531-051f10ed82bd was re-scheduled: zVM Cloud Connector request failed: {u'rs': 4, u'overallRC': 3, u'modID': 1, u'rc': 415, u'output': u'', u'errmsg': u'Failed to add mdisk to userid \'RDBK0001\'. SMT error: SMT request failed. RequestData: \'changevm RDBK0001 add3390 IBMCIC 0100 10g --mode MR --filesystem ext4\', Results: \'{\'rs\': 4, \'errno\': 0, \'strError\': \'\', \'overallRC\': 3, \'rc\': 415, \'response\': ["(Error) ULTVMU0415E Command failed: \'sudo /opt/zthin/bin/linkdiskandbringonline RDBK0001 0100 MR\', rc: 5 out: linkdiskandbringonline RDBK0001 start time: 2020-08-07-03:50:33.154", \'ERROR: Failed to connect disk: RDBK0001:0100 rc: 5\', \'  WARNING: Waiting on lock: /var/run/zthin_disk_connection_lock\', \'  WARNING: Waiting on lock: /var/run/zthin_disk_connection_lock\', \'  WARNING: Waiting on lock: /var/run/zthin_disk_connection_lock\', \'  WARNING: Waiting on lock: /var/run/zthin_disk_connection_lock\', "(Error) ULTVMU0415E Command failed: \'sudo /opt/zthin/bin/offlinediskanddetach RDBK0001 0100\', rc: 4 out: offlinediskanddetach RDBK0001 start time: 2020-08-07-03:52:33.674", \'ERROR: Failed to disconnect disk: RDBK0001:0100 rc: 4\', \'  WARNING: Waiting on lock: /var/run/zthin_disk_connection_lock\', \'  WARNING: Waiting on lock: /var/run/zthin_disk_connection_lock\', \'  WARNING: Waiting on lock: /var/run/zthin_disk_connection_lock\', \'  WARNING: Waiting on lock: /var/run/zthin_disk_connection_lock\', \'  WARNING: Waiting on lock: /var/run/zthin_disk_connection_lock\', \'  WARNING: Waiting on lock: /var/run/zthin_disk_connection_lock\', \'  WARNING: Waiting on lock: /var/run/zthin_disk_connection_lock\', \'  WARNING: Waiting on lock: /var/run/zthin_disk_connection_lock\', \'  WARNING: Waiting on lock: /var/run/zthin_disk_connection_lock\', \'  WARNING: Waiting on lock: /var/run/zthin_disk_connection_lock\', \'  WARNING: Waiting on lock: /var/run/zthin_disk_connection_lock\', \'  WARNING: Waiting on lock: /var/run/zthin_disk_connection_lock\']}\''}

Explanation

The EMSG ON setting of the compute userid is not set. IBM Cloud Infrastructure Center service relies on the z/VM® error code to be included in the error message for condition check.

Resolution

Refer to the Special settings for the compute user IDs to set the EMSG ON for the compute userid.