cloudbase-init/cloudbaseinit/tests/utils/windows
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
..
storage Adds plugin for setting SAN policy 2017-03-08 13:48:22 +02:00
__init__.py Move to the new oslo_config and oslo_log modules 2015-08-12 17:43:45 +03:00
test_bootconfig.py Add PyMI as requirement 2018-09-05 20:42:10 +03:00
test_disk.py Ironic config drive support 2015-10-10 17:57:22 +03:00
test_licensing.py Adds KMS and AVMA licensing automation 2017-02-22 09:39:42 +02:00
test_netlbfo.py network: add retries for MTU set and team creation 2019-09-04 15:46:52 +03:00
test_network.py Fix GetAdapterAddresses flags bug 2015-04-06 19:24:13 +03:00
test_powercfg.py Adds display idle timeout plugin 2017-02-21 20:47:17 +02:00
test_privilege.py Add a new cloud-config plugin for setting the timezone 2015-03-25 13:01:12 +02:00
test_rdp.py Adds two RDP settings plugins 2017-02-18 00:29:02 +02:00
test_security.py Adds plugin for setting SAN policy 2017-03-08 13:48:22 +02:00
test_timezone.py Add a new cloud-config plugin for setting the timezone 2015-03-25 13:01:12 +02:00
test_updates.py Implemented automatic updates plugin 2017-03-17 14:50:56 +02:00
test_vds.py Global mass refactor 2015-01-18 17:51:56 +02:00
test_vfat.py Check all configdrive types if one errors out 2019-10-28 15:54:28 +02:00
test_winrmconfig.py Update the WinRM Listener plugin 2017-03-08 18:17:40 +02:00
test_wmi_loader.py Add PyMI as requirement 2018-09-05 20:42:10 +03:00
test_ws2_32.py Global mass refactor 2015-01-18 17:51:56 +02:00
test_x509.py Return serialized certificate on certificate creation 2017-05-17 12:58:03 +00:00