<div dir="ltr">Thanks<div><br></div><div>Actually I have just realized that db_sync prints an error in the api.log:</div><div><br></div><div><br></div><div><div style="font-size:12.8px">2016-11-17 17:20:21.895 43516 CRITICAL glance [-] ValueError: Tables "task_info,tasks" have non utf8 collation, please make sure all tables are CHARSET=utf8</div></div><div><br></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">2016-11-17 18:21 GMT+01:00 Abel Lopez <span dir="ltr"><<a href="mailto:alopgeek@gmail.com" target="_blank">alopgeek@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">This is a manual step to load them. If your installation was complete, you should have a bunch of json files in /etc/glance/metadefs.<br>
You need to load them with glance-manage db_load_metadefs<br>
<div><div class="h5"><br>
> On Nov 17, 2016, at 9:12 AM, Massimo Sgaravatto <<a href="mailto:massimo.sgaravatto@gmail.com">massimo.sgaravatto@gmail.com</a>> wrote:<br>
><br>
> Hi<br>
><br>
> We have just done the update Kilo --> Liberty --> Mitaka  of our Cloud. We went through Liberty just for the migration of the databases.<br>
><br>
> In the updated (to Mitaka) installation, if I click "Update metadata" on a image, I am told:<br>
><br>
> Error: Unable to retrieve the namespaces.<br>
> In the glance api log file I see:<br>
><br>
> 2016-11-17 15:33:30.313 11829 ERROR glance.api.v2.metadef_<wbr>namespaces [req-81b31f76-f665-4933-805e-<wbr>3fd1d5e7c045 a1f915a7a36c471d87d6702255016d<wbr>f4 36b1<br>
> ddb5dab8404dbe7fc359ec95ecf5 - - -] (pymysql.err.ProgrammingError) (1146, u"Table 'glance_prod.metadef_resource_<wbr>types' doesn't exist") [SQL: u'SELECT <a href="http://metadef_resource_types.name" rel="noreferrer" target="_blank">metadef_resource_types.name</a> AS metadef_resource_types_name, metadef_namespace_resource_<wbr>types.namespace_id AS metadef_namespace_resource_<wbr>types_name<br>
> space_id \nFROM metadef_resource_types INNER JOIN metadef_namespace_resource_<wbr>types ON <a href="http://metadef_resource_types.id" rel="noreferrer" target="_blank">metadef_resource_types.id</a> = metadef_namespace_resource_<wbr>types.resource_type_id \nWHERE <a href="http://metadef_resource_types.name" rel="noreferrer" target="_blank">metadef_resource_types.name</a> IN (%s)'] [parameters: (u'OS::Glance::Image',)]<br>
><br>
><br>
> Indeed I don't have this table in my glance database:<br>
><br>
> mysql> show tables;<br>
> +-----------------------+<br>
> | Tables_in_glance_prod |<br>
> +-----------------------+<br>
> | image_locations       |<br>
> | image_members         |<br>
> | image_properties      |<br>
> | image_tags            |<br>
> | images                |<br>
> | migrate_version       |<br>
> | task_info             |<br>
> | tasks                 |<br>
> +-----------------------+<br>
> 8 rows in set (0.00 sec)<br>
><br>
> I didn't have any errors running db_sync, apart some deprecation messages (and the install guide says that they can be ignored):<br>
><br>
> su -s /bin/sh -c "glance-manage db_sync" glance<br>
> Option "verbose" from group "DEFAULT" is deprecated for removal.  Its value may be silently ignored in the future.<br>
> /usr/lib/python2.7/site-<wbr>packages/oslo_db/sqlalchemy/<wbr>enginefacade.py:1056: OsloDBDeprecationWarning: EngineFacade is deprecated; please use oslo_db.sqlalchemy.<wbr>enginefacade<br>
>   expire_on_commit=expire_on_<wbr>commit, _conf=conf)<br>
><br>
> Any hints ?<br>
><br>
> Thanks, Massimo<br>
</div></div>> ______________________________<wbr>_________________<br>
> OpenStack-operators mailing list<br>
> <a href="mailto:OpenStack-operators@lists.openstack.org">OpenStack-operators@lists.<wbr>openstack.org</a><br>
> <a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-operators" rel="noreferrer" target="_blank">http://lists.openstack.org/<wbr>cgi-bin/mailman/listinfo/<wbr>openstack-operators</a><br>
<br>
</blockquote></div><br></div>