<div dir="ltr">This discussion went off-list while I asked Matt and Phil some follow-up questions. Looping -docs back in as a solution has been found.<div><br></div><div>I was using a mix of both utf8_unicode_ci and utf8_general_ci. Both the MySQL server and the Cinder database itself *must* be configured only for utf8_general_ci. A mix of both or using just utf8_unicode_ci will not work.</div>
</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Sat, Mar 22, 2014 at 6:18 PM, Phil Hopkins <span dir="ltr"><<a href="mailto:phil.hopkins@rackspace.com" target="_blank">phil.hopkins@rackspace.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">



<div dir="auto">
<div>I was able to get it to run on both RHEL and ubuntu.</div>
<div><br>
</div>
<div>Phil<br>
<br>
Sent from my iPhone</div><div><div class="h5">
<div><br>
On Mar 22, 2014, at 7:00 PM, "Matt Kassawara" <<a href="mailto:mkassawara@gmail.com" target="_blank">mkassawara@gmail.com</a>> wrote:<br>
<br>
</div>
<blockquote type="cite">
<div>
<div dir="ltr">The Cinder db sync works for me on Ubuntu Icehouse milestone 3 with a fresh database:
<div><br>
</div>
<div>
<div>root@hst-osctl6:/etc/cinder# cinder-manage db sync</div>
<div>2014-03-22 17:53:<a href="tel:47.878%2014209" value="+14787814209" target="_blank">47.878 14209</a> INFO migrate.versioning.api [-] 0 -> 1...</div>
<div>2014-03-22 17:53:<a href="tel:48.078%2014209" value="+14807814209" target="_blank">48.078 14209</a> INFO migrate.versioning.api [-] done</div>
<div>2014-03-22 17:53:<a href="tel:48.078%2014209" value="+14807814209" target="_blank">48.078 14209</a> INFO migrate.versioning.api [-] 1 -> 2...</div>
<div>2014-03-22 17:53:48.336 14209 INFO migrate.versioning.api [-] done</div>
<div>2014-03-22 17:53:48.337 14209 INFO migrate.versioning.api [-] 2 -> 3...</div>
<div>2014-03-22 17:53:48.349 14209 INFO migrate.versioning.api [-] done</div>
<div>2014-03-22 17:53:48.349 14209 INFO migrate.versioning.api [-] 3 -> 4...</div>
<div>2014-03-22 17:53:48.392 14209 INFO 004_volume_type_to_uuid [-] Created foreign key volume_type_extra_specs_ibfk_1</div>
<div>2014-03-22 17:53:48.395 14209 INFO migrate.versioning.api [-] done</div>
<div>2014-03-22 17:53:48.395 14209 INFO migrate.versioning.api [-] 4 -> 5...</div>
<div>2014-03-22 17:53:48.410 14209 INFO migrate.versioning.api [-] done</div>
<div>2014-03-22 17:53:48.410 14209 INFO migrate.versioning.api [-] 5 -> 6...</div>
<div>2014-03-22 17:53:<a href="tel:48.423%2014209" value="+14842314209" target="_blank">48.423 14209</a> INFO migrate.versioning.api [-] done</div>
<div>2014-03-22 17:53:<a href="tel:48.423%2014209" value="+14842314209" target="_blank">48.423 14209</a> INFO migrate.versioning.api [-] 6 -> 7...</div>
<div>2014-03-22 17:53:<a href="tel:48.437%2014209" value="+14843714209" target="_blank">48.437 14209</a> INFO migrate.versioning.api [-] done</div>
<div>2014-03-22 17:53:<a href="tel:48.438%2014209" value="+14843814209" target="_blank">48.438 14209</a> INFO migrate.versioning.api [-] 7 -> 8...</div>
<div>2014-03-22 17:53:<a href="tel:48.449%2014209" value="+14844914209" target="_blank">48.449 14209</a> INFO migrate.versioning.api [-] done</div>
<div>2014-03-22 17:53:<a href="tel:48.449%2014209" value="+14844914209" target="_blank">48.449 14209</a> INFO migrate.versioning.api [-] 8 -> 9...</div>
<div>2014-03-22 17:53:<a href="tel:48.463%2014209" value="+14846314209" target="_blank">48.463 14209</a> INFO migrate.versioning.api [-] done</div>
<div>2014-03-22 17:53:<a href="tel:48.464%2014209" value="+14846414209" target="_blank">48.464 14209</a> INFO migrate.versioning.api [-] 9 -> 10...</div>
<div>2014-03-22 17:53:<a href="tel:48.481%2014209" value="+14848114209" target="_blank">48.481 14209</a> INFO migrate.versioning.api [-] done</div>
<div>2014-03-22 17:53:48.482 14209 INFO migrate.versioning.api [-] 10 -> 11...</div>
<div>2014-03-22 17:53:48.507 14209 INFO migrate.versioning.api [-] done</div>
<div>2014-03-22 17:53:48.507 14209 INFO migrate.versioning.api [-] 11 -> 12...</div>
<div>2014-03-22 17:53:48.524 14209 INFO migrate.versioning.api [-] done</div>
<div>2014-03-22 17:53:48.524 14209 INFO migrate.versioning.api [-] 12 -> 13...</div>
<div>2014-03-22 17:53:48.542 14209 INFO migrate.versioning.api [-] done</div>
<div>2014-03-22 17:53:48.543 14209 INFO migrate.versioning.api [-] 13 -> 14...</div>
<div>2014-03-22 17:53:48.561 14209 INFO migrate.versioning.api [-] done</div>
<div>2014-03-22 17:53:48.561 14209 INFO migrate.versioning.api [-] 14 -> 15...</div>
<div>2014-03-22 17:53:48.571 14209 INFO migrate.versioning.api [-] done</div>
<div>2014-03-22 17:53:48.571 14209 INFO migrate.versioning.api [-] 15 -> 16...</div>
<div>2014-03-22 17:53:48.594 14209 INFO migrate.versioning.api [-] done</div>
<div>2014-03-22 17:53:48.595 14209 INFO migrate.versioning.api [-] 16 -> 17...</div>
<div>2014-03-22 17:53:48.636 14209 INFO migrate.versioning.api [-] done</div>
<div>2014-03-22 17:53:48.637 14209 INFO migrate.versioning.api [-] 17 -> 18...</div>
<div>2014-03-22 17:53:48.662 14209 INFO migrate.versioning.api [-] done</div>
<div>2014-03-22 17:53:48.662 14209 INFO migrate.versioning.api [-] 18 -> 19...</div>
<div>2014-03-22 17:53:48.679 14209 INFO migrate.versioning.api [-] done</div>
<div>2014-03-22 17:53:48.680 14209 INFO migrate.versioning.api [-] 19 -> 20...</div>
<div>2014-03-22 17:53:48.695 14209 INFO migrate.versioning.api [-] done</div>
<div>2014-03-22 17:53:48.695 14209 INFO migrate.versioning.api [-] 20 -> 21...</div>
<div>2014-03-22 17:53:48.707 14209 INFO 021_add_default_quota_class [-] Added default quota class data into the DB.</div>
<div>2014-03-22 17:53:48.711 14209 INFO migrate.versioning.api [-] done</div>
<div>2014-03-22 17:53:48.711 14209 INFO migrate.versioning.api [-] 21 -> 22...</div>
<div>2014-03-22 17:53:48.725 14209 INFO migrate.versioning.api [-] done</div>
</div>
<div><br>
</div>
</div>
<div class="gmail_extra"><br>
<br>
<div class="gmail_quote">On Sat, Mar 22, 2014 at 5:28 PM, Joe Topjian <span dir="ltr">
<<a href="mailto:joe@topjian.net" target="_blank">joe@topjian.net</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr">Hello,
<div><br>
</div>
<div>I saw the note about MySQL and UTF-8 in Anne's "What's Up Doc?" email. I'm coincidentally setting up a new OpenStack cloud and am running into an issue related to this.</div>
<div><br>
</div>
<div>Matt, with reference to your <a href="https://review.openstack.org/#/c/80799/" target="_blank">
patch</a>, can you confirm that you were able to run "cinder-manage db sync" without error?</div>
<div><br>
</div>
<div>When I run this command, it fails on both:</div>
<div><br>
</div>
<div>/usr/lib/python2.7/dist-packages/cinder/db/sqlalchemy/migrate_repo/versions/003_glance_metadata.py</div>
<div><br>
</div>
<div>and</div>
<div><br>
</div>
<div>009_add_snapshot_metadata_table.py</div>
<div><br>
</div>
<div>I have to add:</div>
<div><br>
</div>
<div>mysql_charset='utf8' </div>
<div><br>
</div>
<div>below </div>
<div><br>
</div>
<div>mysql_engine='InnoDB'</div>
<div><br>
</div>
<div>for both files in order for the db sync command to work without error.</div>
<div><br>
</div>
<div>This is with Havana, but I checked <a href="https://github.com/openstack/cinder/blob/master/cinder/db/sqlalchemy/migrate_repo/versions/003_glance_metadata.py" target="_blank">
both</a> <a href="https://github.com/openstack/cinder/blob/master/cinder/db/sqlalchemy/migrate_repo/versions/009_add_snapshot_metadata_table.py" target="_blank">
py</a> files in HEAD and they haven't changed, so I'm assuming I'll run into the same issue in Icehouse.</div>
<div><br>
</div>
<div>I also see that other <a href="https://github.com/openstack/cinder/tree/master/cinder/db/sqlalchemy/migrate_repo/versions" target="_blank">
files</a> already have the "mysql_charset" setting in place, and I also see a <a href="https://bugs.launchpad.net/cinder/+bug/1233861" target="_blank">
similar bug</a> opened for another migrate file. Perhaps 003 and 009 also need bugs opened?</div>
<div><br>
</div>
<div>Let me know if you are not running into this issue and I'll repost this question to one of the other OpenStack lists for bug confirmation. I figured I'd post here first to see if we can work out the issue and quickly append the docs and/or open a bug report.</div>

<div><br>
</div>
<div>Thanks,</div>
<div>Joe </div>
</div>
<br>
_______________________________________________<br>
Openstack-docs mailing list<br>
<a href="mailto:Openstack-docs@lists.openstack.org" target="_blank">Openstack-docs@lists.openstack.org</a><br>
<a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-docs" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-docs</a><br>
<br>
</blockquote>
</div>
<br>
</div>
</div>
</blockquote>
<blockquote type="cite">
<div><span>_______________________________________________</span><br>
<span>Openstack-docs mailing list</span><br>
<span><a href="mailto:Openstack-docs@lists.openstack.org" target="_blank">Openstack-docs@lists.openstack.org</a></span><br>
<span><a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-docs" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-docs</a></span><br>
</div>
</blockquote>
</div></div></div>

</blockquote></div><br></div>