components/python/oslo.db/patches/mysql_cluster_support.patch
author david.comay@oracle.com
Fri, 09 Sep 2016 16:31:02 -0700
changeset 6878 252671ed151a
parent 6866 4c1935f5ec9a
permissions -rw-r--r--
24617715 'mysql_storage_engine' option's help message could be improved

This patchset is for bug:

24409419 Mitaka oslo.db should support MySQL Cluster

This fixes the following aspects of oslo.db:

1. Implementation of an oslo.db configuration parameter to specify the MySQL
   storage engine (mysql_storage_engine).

This has not been committed upstream, but has been filed in launchpad:

https://bugs.launchpad.net/oslo.db/+bug/1564110

--- oslo.db-4.7.0/oslo_db/options.py.~1~	2016-03-27 20:04:48.000000000 +0000
+++ oslo.db-4.7.0/oslo_db/options.py	2016-09-08 23:03:23.562323080 +0000
@@ -48,6 +48,13 @@ database_opts = [
                     'server-set SQL mode. To use whatever SQL mode '
                     'is set by the server configuration, '
                     'set this to no value. Example: mysql_sql_mode='),
+    cfg.StrOpt('mysql_storage_engine',
+               default='InnoDB',
+               help='This configures the MySQL storage engine. '
+                    'This allows for OpenStack to support different storage '
+                    'engine such as InnoDB, NDB, etc. By default, '
+                    'this value will be set to InnoDB. For MySQL Cluster, '
+                    'set to NDBCLUSTER. Example: mysql_storage_engine='),
     cfg.IntOpt('idle_timeout',
                default=3600,
                deprecated_opts=[cfg.DeprecatedOpt('sql_idle_timeout',