Adrian Vladu 5dba5c60f6 Check all configdrive types if one errors out
By default, all config drive types are checked.
But if somehow, the implementation of each type
fails, the metadata service errors out and does not
check for the next type.

The issue was reported here:
https://ask.cloudbase.it/question/3094/windows-server-2016-extendvolumespluginp-doesnt-work/

In that case, in the method is_vfat_drive:
  match = VOLUME_LABEL_REGEX.search(out)
  return match.group(1) in CONFIG_DRIVE_LABELS

if match value is None, the return line throws an error:
  AttributeError: 'NoneType' object has no attribute 'group'

To make sure that no other implementation will bubble up
the error, we catch the error in the config_drive metadata
service.

Catching the error will allow that the next config_drive
type will be checked for metadata.

Change-Id: I0d9967ec6a81214c7d78be667cffa4a98758587a
2019-10-28 15:54:28 +02:00
2019-10-18 13:40:02 +03:00
2014-02-09 21:41:45 +02:00
2018-09-03 13:11:06 +03:00
2019-04-19 19:51:38 +00:00
2014-10-05 22:20:58 +03:00
2019-07-12 08:46:35 +02:00
2013-10-04 00:07:58 +03:00
2015-10-19 01:17:26 +03:00
2018-09-05 20:42:10 +03:00
2019-07-12 08:46:35 +02:00
2017-05-23 13:45:54 +03:00
Description
Cross-platform instance initialization
Readme 8.4 MiB
Languages
Python 100%