Your message dated Sat, 21 Nov 2020 00:14:34 +0100 with message-id <[email protected]> and subject line I still think this bug shall be closed has caused the Debian Bug report #971996, regarding gnocchi-common: Default install of gnocchi-common fails "No 'gnocchi.indexer' driver found, looking for 'sqlite'" to be marked as done.
This means that you claim that the problem has been dealt with. If this is not the case it is now your responsibility to reopen the Bug report if necessary, and/or fix the problem forthwith. (NB: If you are a system administrator and have no idea what this message is talking about, this may indicate a serious mail system misconfiguration somewhere. Please contact [email protected] immediately.) -- 971996: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=971996 Debian Bug Tracking System Contact [email protected] with problems
--- Begin Message ---Package: gnocchi-common Version: 4.3.1-3 Severity: important I first installed mariadb-server and mariadb-client on a test VM. I then ran "apt install gnocchi-common" selected MySQL and no keystone, then the /var/lib/dpkg/info/gnocchi-common.postinst gave the following error: 2020-10-11 12:56:35,415 [6782] WARNING stevedore.named: Could not load sqlite 2020-10-11 12:56:35,424 [6782] ERROR gnocchi.utils: Unable to initialize indexer driver Traceback (most recent call last): File "/usr/lib/python3/dist-packages/tenacity/__init__.py", line 333, in call result = fn(*args, **kwargs) File "/usr/lib/python3/dist-packages/gnocchi/indexer/__init__.py", line 107, in get_driver split.scheme).driver File "/usr/lib/python3/dist-packages/stevedore/driver.py", line 61, in __init__ warn_on_missing_entrypoint=warn_on_missing_entrypoint File "/usr/lib/python3/dist-packages/stevedore/named.py", line 89, in __init__ self._init_plugins(extensions) File "/usr/lib/python3/dist-packages/stevedore/driver.py", line 113, in _init_plugins (self.namespace, name)) stevedore.exception.NoMatches: No 'gnocchi.indexer' driver found, looking for 'sqlite' It repeated that error many times and did not progress. I tried installing sqlite3 and python-sqlite but that made no difference. Is there a missing dependency on some other sqlite related package? -- System Information: Debian Release: 10.6 APT prefers stable-updates APT policy: (500, 'stable-updates'), (500, 'stable') Architecture: amd64 (x86_64) Kernel: Linux 5.8.0-2-amd64 (SMP w/2 CPU cores) Locale: LANG=C.UTF-8, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE=C.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /usr/bin/dash Init: systemd (via /run/systemd/system) LSM: SELinux: enabled - Mode: Permissive - Policy name: default Versions of packages gnocchi-common depends on: ii adduser 3.118 ii dbconfig-common 2.0.11+deb10u1 ii debconf [debconf-2.0] 1.5.71 ii python3-gnocchi 4.3.1-3 gnocchi-common recommends no packages. gnocchi-common suggests no packages. -- debconf information: gnocchi-common/app-password-confirm: (password omitted) gnocchi-common/pgsql/admin-pass: (password omitted) gnocchi/ksat-admin-password: (password omitted) gnocchi-common/mysql/app-pass: (password omitted) gnocchi/ksat-service-password: (password omitted) gnocchi-common/mysql/admin-pass: (password omitted) gnocchi-common/password-confirm: (password omitted) gnocchi-common/pgsql/app-pass: (password omitted) gnocchi-common/upgrade-backup: true gnocchi-common/pgsql/no-empty-passwords: gnocchi-common/dbconfig-reinstall: false gnocchi-common/install-error: abort gnocchi/ksat-admin-project-name: admin gnocchi-common/pgsql/authmethod-user: password gnocchi-common/mysql/method: Unix socket gnocchi/ksat-service-username: * gnocchi-common/dbconfig-install: true gnocchi/ksat-public-url: http://localhost:5000 gnocchi-common/internal/skip-preseed: false gnocchi-common/upgrade-error: abort * gnocchi/configure_ksat: false gnocchi-common/pgsql/manualconf: gnocchi/ksat-service-project-name: service * gnocchi-common/database-type: mysql * gnocchi/configure_db: true gnocchi-common/db/app-user: gnocchi-common@localhost gnocchi-common/missing-db-package-error: abort gnocchi-common/pgsql/authmethod-admin: ident gnocchi/ksat-region: regionOne gnocchi-common/remote/port: gnocchi/ksat-admin-username: admin gnocchi-common/remove-error: abort gnocchi-common/db/basepath: gnocchi-common/passwords-do-not-match: gnocchi-common/purge: false gnocchi-common/db/dbname: gnocchidb gnocchi-common/remote/newhost: gnocchi-common/pgsql/method: TCP/IP gnocchi/ksat-admin-url: http://localhost:35357 gnocchi-common/dbconfig-remove: true gnocchi-common/internal/reconfiguring: false gnocchi-common/remote/host: localhost gnocchi-common/pgsql/changeconf: false * gnocchi-common/mysql/admin-user: root gnocchi/ksat-create-service-user: true gnocchi-common/dbconfig-upgrade: true gnocchi-common/pgsql/admin-user: postgres
--- End Message ---
--- Begin Message ---Hi, > sqlite should work if it's going to be the default. Really it should > work in any case. The default is *not* SQLite, the default is ... *nothing* ! :) Indeed, in non-interactive, the Gnocchi db will not be setup at all. > If it's not going to work then an error message that gives some clue > as to why would be appropriate. Probably true, however Gnocchi uses the same configuration interface as the rest of OpenStack, and I don't think it's a good idea to write a special case that will mean translations should be rewrote, etc. > If it can't work then the code that sets up MySQL for the connection > should also set it for the url. I don't understand this part... Note that I am closing this bug not because I think you're wrong, but because I don't think anyone will take the time to fix this corner case, and I'm myself not interested in addressing it. I however, added a README.Debian explaining Gnocchi doesn't support SQLite. I hope that's fine enough. I would accept a patch to fix the way you wrote above, which would be nicer indeed. Cheers, Thomas Goirand (zigo)
--- End Message ---

