From da8f422e3b5db74b787b6f6dafdfd887b79f8584 Mon Sep 17 00:00:00 2001 From: Takashi Kajinami Date: Wed, 17 Aug 2022 13:33:56 +0900 Subject: [PATCH] Ubuntu: Use utf8mb3_general_ci collate in MySQL Currently idempotency in Ubuntu is broken because of the below change detected in collate in MySQL. ``` /Stage[main]/Keystone::Db::Mysql/Openstacklib::Db::Mysql[keystone]/ Mysql_database[keystone]/collate: collate changed 'utf8mb3_general_ci' to 'utf8_general_ci' ``` Similarly to what we observed in the past about charset[1], it seems MySQL in Ubuntu is automatically converting the collate value and that is causing the "unexpected" change detected in the 2nd puppet run. This fixes the idempotency by using utf8mb3_general_ci in Ubuntu to avoid the mismatch caused by internal translation. [1] 697cbb83dbd538c7f51638f50531dac6a4b518c0 Change-Id: I20dfe31776251be63eac1b69501f1714fdae40d7 --- spec/acceptance/mysql_spec.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/spec/acceptance/mysql_spec.rb b/spec/acceptance/mysql_spec.rb index 21147768..8286782f 100644 --- a/spec/acceptance/mysql_spec.rb +++ b/spec/acceptance/mysql_spec.rb @@ -17,6 +17,7 @@ describe 'openstacklib mysql' do openstacklib::db::mysql { 'ci': charset => $charset, + collate => "${charset}_general_ci", password_hash => mysql::password('keystone'), allowed_hosts => '127.0.0.1', }