manila-mange fails to change column 'id'
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Shared File Systems Service (Manila) |
Triaged
|
Medium
|
Goutham Pacha Ravi |
Bug Description
OS Rocky 9.3
Openstack Bobcat
Installing manila. Running manila-mange db sync. Fails: CRITICAL manila [-] Unhandled error: sqlalchemy.
Full log:
su -s /bin/bash manila -c "manila-manage db sync"
2024-01-26 14:36:40.868 17225 INFO alembic.
2024-01-26 14:36:40.870 17225 INFO alembic.
2024-01-26 14:36:41.006 17225 INFO alembic.
2024-01-26 14:36:43.187 17225 CRITICAL manila [-] Unhandled error: sqlalchemy.
[SQL: ALTER TABLE volume_types CONVERT TO CHARACTER SET utf8]
(Background on this error at: https:/
2024-01-26 14:36:43.187 17225 ERROR manila Traceback (most recent call last):
2024-01-26 14:36:43.187 17225 ERROR manila File "/usr/lib64/
2024-01-26 14:36:43.187 17225 ERROR manila self.dialect.
2024-01-26 14:36:43.187 17225 ERROR manila File "/usr/lib64/
2024-01-26 14:36:43.187 17225 ERROR manila cursor.
2024-01-26 14:36:43.187 17225 ERROR manila File "/usr/lib/
2024-01-26 14:36:43.187 17225 ERROR manila result = self._query(query)
2024-01-26 14:36:43.187 17225 ERROR manila File "/usr/lib/
2024-01-26 14:36:43.187 17225 ERROR manila conn.query(q)
2024-01-26 14:36:43.187 17225 ERROR manila File "/usr/lib/
2024-01-26 14:36:43.187 17225 ERROR manila self._affected_rows = self._read_
2024-01-26 14:36:43.187 17225 ERROR manila File "/usr/lib/
2024-01-26 14:36:43.187 17225 ERROR manila result.read()
2024-01-26 14:36:43.187 17225 ERROR manila File "/usr/lib/
2024-01-26 14:36:43.187 17225 ERROR manila first_packet = self.connection
2024-01-26 14:36:43.187 17225 ERROR manila File "/usr/lib/
2024-01-26 14:36:43.187 17225 ERROR manila packet.
2024-01-26 14:36:43.187 17225 ERROR manila File "/usr/lib/
2024-01-26 14:36:43.187 17225 ERROR manila err.raise_
2024-01-26 14:36:43.187 17225 ERROR manila File "/usr/lib/
2024-01-26 14:36:43.187 17225 ERROR manila raise errorclass(errno, errval)
2024-01-26 14:36:43.187 17225 ERROR manila pymysql.
2024-01-26 14:36:43.187 17225 ERROR manila
2024-01-26 14:36:43.187 17225 ERROR manila The above exception was the direct cause of the following exception:
2024-01-26 14:36:43.187 17225 ERROR manila
2024-01-26 14:36:43.187 17225 ERROR manila Traceback (most recent call last):
2024-01-26 14:36:43.187 17225 ERROR manila File "/bin/manila-
2024-01-26 14:36:43.187 17225 ERROR manila sys.exit(main())
2024-01-26 14:36:43.187 17225 ERROR manila File "/usr/lib/
2024-01-26 14:36:43.187 17225 ERROR manila fn(*fn_args)
2024-01-26 14:36:43.187 17225 ERROR manila File "/usr/lib/
2024-01-26 14:36:43.187 17225 ERROR manila return migration.
2024-01-26 14:36:43.187 17225 ERROR manila File "/usr/lib/
2024-01-26 14:36:43.187 17225 ERROR manila return IMPL.upgrade(
2024-01-26 14:36:43.187 17225 ERROR manila File "/usr/lib/
2024-01-26 14:36:43.187 17225 ERROR manila return alembic.
2024-01-26 14:36:43.187 17225 ERROR manila File "/usr/lib/
2024-01-26 14:36:43.187 17225 ERROR manila script.run_env()
2024-01-26 14:36:43.187 17225 ERROR manila File "/usr/lib/
2024-01-26 14:36:43.187 17225 ERROR manila util.load_
2024-01-26 14:36:43.187 17225 ERROR manila File "/usr/lib/
2024-01-26 14:36:43.187 17225 ERROR manila module = load_module_
2024-01-26 14:36:43.187 17225 ERROR manila File "/usr/lib/
2024-01-26 14:36:43.187 17225 ERROR manila spec.loader.
2024-01-26 14:36:43.187 17225 ERROR manila File "<frozen importlib.
2024-01-26 14:36:43.187 17225 ERROR manila File "<frozen importlib.
2024-01-26 14:36:43.187 17225 ERROR manila File "/usr/lib/
2024-01-26 14:36:43.187 17225 ERROR manila run_migrations_
2024-01-26 14:36:43.187 17225 ERROR manila File "/usr/lib/
2024-01-26 14:36:43.187 17225 ERROR manila context.
2024-01-26 14:36:43.187 17225 ERROR manila File "<string>", line 8, in run_migrations
2024-01-26 14:36:43.187 17225 ERROR manila File "/usr/lib/
2024-01-26 14:36:43.187 17225 ERROR manila self.get_
2024-01-26 14:36:43.187 17225 ERROR manila File "/usr/lib/
2024-01-26 14:36:43.187 17225 ERROR manila step.migration_
2024-01-26 14:36:43.187 17225 ERROR manila File "/usr/lib/
2024-01-26 14:36:43.187 17225 ERROR manila migrate_
2024-01-26 14:36:43.187 17225 ERROR manila File "<string>", line 2, in execute
2024-01-26 14:36:43.187 17225 ERROR manila File "/usr/lib64/
2024-01-26 14:36:43.187 17225 ERROR manila return fn(*args, **kwargs)
2024-01-26 14:36:43.187 17225 ERROR manila File "/usr/lib64/
2024-01-26 14:36:43.187 17225 ERROR manila return connection.
2024-01-26 14:36:43.187 17225 ERROR manila File "/usr/lib64/
2024-01-26 14:36:43.187 17225 ERROR manila return self._exec_
2024-01-26 14:36:43.187 17225 ERROR manila File "/usr/lib64/
2024-01-26 14:36:43.187 17225 ERROR manila ret = self._execute_
2024-01-26 14:36:43.187 17225 ERROR manila File "/usr/lib64/
2024-01-26 14:36:43.187 17225 ERROR manila self._handle_
2024-01-26 14:36:43.187 17225 ERROR manila File "/usr/lib64/
2024-01-26 14:36:43.187 17225 ERROR manila util.raise_
2024-01-26 14:36:43.187 17225 ERROR manila File "/usr/lib64/
2024-01-26 14:36:43.187 17225 ERROR manila raise exception
2024-01-26 14:36:43.187 17225 ERROR manila File "/usr/lib64/
2024-01-26 14:36:43.187 17225 ERROR manila self.dialect.
2024-01-26 14:36:43.187 17225 ERROR manila File "/usr/lib64/
2024-01-26 14:36:43.187 17225 ERROR manila cursor.
2024-01-26 14:36:43.187 17225 ERROR manila File "/usr/lib/
2024-01-26 14:36:43.187 17225 ERROR manila result = self._query(query)
2024-01-26 14:36:43.187 17225 ERROR manila File "/usr/lib/
2024-01-26 14:36:43.187 17225 ERROR manila conn.query(q)
2024-01-26 14:36:43.187 17225 ERROR manila File "/usr/lib/
2024-01-26 14:36:43.187 17225 ERROR manila self._affected_rows = self._read_
2024-01-26 14:36:43.187 17225 ERROR manila File "/usr/lib/
2024-01-26 14:36:43.187 17225 ERROR manila result.read()
2024-01-26 14:36:43.187 17225 ERROR manila File "/usr/lib/
2024-01-26 14:36:43.187 17225 ERROR manila first_packet = self.connection
2024-01-26 14:36:43.187 17225 ERROR manila File "/usr/lib/
2024-01-26 14:36:43.187 17225 ERROR manila packet.
2024-01-26 14:36:43.187 17225 ERROR manila File "/usr/lib/
2024-01-26 14:36:43.187 17225 ERROR manila err.raise_
2024-01-26 14:36:43.187 17225 ERROR manila File "/usr/lib/
2024-01-26 14:36:43.187 17225 ERROR manila raise errorclass(errno, errval)
2024-01-26 14:36:43.187 17225 ERROR manila sqlalchemy.
2024-01-26 14:36:43.187 17225 ERROR manila [SQL: ALTER TABLE volume_types CONVERT TO CHARACTER SET utf8]
2024-01-26 14:36:43.187 17225 ERROR manila (Background on this error at: https:/
2024-01-26 14:36:43.187 17225 ERROR manila
I was following the instructions for installing manila in an Openstack Bobcat installation on ~CentOS 9 @ https:/
This issue is stalling the creation of a manila/shared file service. I have trawled here and the internet and found no solution. Any suggestions. I have also seen this on Openstack Yoga on Rocky 9 as well, I had tried an older version because of other issues, now resolved.
None of the 'openstack share commands are working at this stage of the installation. I suspect because of a krook Database.
The DB Syncs for other products i.e. nova, cinder etc all worked.
The network is Neutron with Geneve.
Guy
Changed in manila: | |
milestone: | caracal-3 → dalmation-1 |
Changed in manila: | |
milestone: | dalmatian-1 → dalmatian-3 |
Probably related to this one: https:/ /jira.mariadb. org/browse/ MDEV-31987? jql=text% 20~%20% 22set_foreign_ key_Check% 22