From 86ebb018fc0a80e9fc5a5b6d4af391bf444b665b Mon Sep 17 00:00:00 2001 From: Jeremy Stanley Date: Thu, 2 Apr 2015 23:08:13 +0000 Subject: [PATCH] Switch nodepool from MySQL-python to PyMySQL PyMySQL, unlike MySQL-python, is a pure-python implementation with support for Py3K. Change-Id: I19e94e7d384d6d18410fe1fcded14a52ac62c840 Depends-On: I110c85fa7d57a6ab121437f93238cf931a8f2d74 --- .../openstack_project/templates/nodepool/nodepool-dev.yaml.erb | 2 +- modules/openstack_project/templates/nodepool/nodepool.yaml.erb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/openstack_project/templates/nodepool/nodepool-dev.yaml.erb b/modules/openstack_project/templates/nodepool/nodepool-dev.yaml.erb index 75b18b873a..af15fa24fb 100644 --- a/modules/openstack_project/templates/nodepool/nodepool-dev.yaml.erb +++ b/modules/openstack_project/templates/nodepool/nodepool-dev.yaml.erb @@ -1,5 +1,5 @@ script-dir: /etc/nodepool/scripts -dburi: 'mysql://nodepool:<%= mysql_password %>@localhost/nodepool' +dburi: 'mysql+pymysql://nodepool:<%= mysql_password %>@localhost/nodepool' cron: cleanup: '*/5 * * * *' diff --git a/modules/openstack_project/templates/nodepool/nodepool.yaml.erb b/modules/openstack_project/templates/nodepool/nodepool.yaml.erb index a857dc212d..932bc94acc 100644 --- a/modules/openstack_project/templates/nodepool/nodepool.yaml.erb +++ b/modules/openstack_project/templates/nodepool/nodepool.yaml.erb @@ -1,7 +1,7 @@ script-dir: /etc/nodepool/scripts elements-dir: /etc/nodepool/elements images-dir: /opt/nodepool_dib -dburi: 'mysql://nodepool:<%= mysql_password %>@localhost/nodepool' +dburi: 'mysql+pymysql://nodepool:<%= mysql_password %>@localhost/nodepool' cron: cleanup: '*/1 * * * *'