inveniosoftware / inveniosoftware/invenio-cli
Unable to setup services with non-RDM records packages
- Dominant language
- Python
- Stars
- 14
- Forks
- 49
- PR merge metrics
- No merged PRs in 30d
Description
Package version (if known): 1.0.4
## Describe the bug
Invenio-CLI indirectly depends on [invenio-rdm-records](https://github.com/inveniosoftware/invenio-rdm-records), package.
When used on an Invenio site with a different records package, `invenio-cli services setup` always fails as it tries to call
`rdm-records` command (even with the --no-demo-data` option).
## Steps to Reproduce
- install your own records package instead of `invenio-rdm-records`
- run `invenio-cli services setup -N`
## Expected behavior
The command finishes setting up services without a failure
## Additional context
```
$ invenio-cli services setup -N
Making sure containers are up...
redis up and running!
postgresql up and running!
es up and running!
Containers started and healthy.
Checking services are not setup...
Services setup status consistent.
Creating database...
[2022-06-24 15:05:58,914] WARNING in ext: JSONSCHEMAS_HOST is set to localhost
[2022-06-24 15:05:59,369] WARNING in ext: JSONSCHEMAS_HOST is set to localhost
Creating database postgresql+psycopg2://my-site:***@localhost/my-site
Creating all tables!
[####################################] 100%
INFO [alembic.runtime.migration] Context impl PostgresqlImpl.
INFO [alembic.runtime.migration] Will assume transactional DDL.
Created all tables!
Creating files location...
[2022-06-24 15:06:04,601] WARNING in ext: JSONSCHEMAS_HOST is set to localhost
[2022-06-24 15:06:07,228] WARNING in ext: JSONSCHEMAS_HOST is set to localhost
Location default-location .../var/instance/data as default True stored in database
Creating admin role...
[2022-06-24 15:06:10,826] WARNING in ext: JSONSCHEMAS_HOST is set to localhost
[2022-06-24 15:06:12,940] WARNING in ext: JSONSCHEMAS_HOST is set to localhost
Role "admin" created successfully.
Allowing superuser access to admin role...
[2022-06-24 15:06:17,643] WARNING in ext: JSONSCHEMAS_HOST is set to localhost
[2022-06-24 15:06:18,316] WARNING in ext: JSONSCHEMAS_HOST is set to localhost
Creating indices...
[2022-06-24 15:06:22,897] WARNING in ext: JSONSCHEMAS_HOST is set to localhost
[2022-06-24 15:06:23,227] WARNING in ext: JSONSCHEMAS_HOST is set to localhost
Creating indexes...
[####################################] 100%
Putting templates...
[####################################] 100%
Updating service setup status (True)...
Service setup status updated (new value True).
Creating fixtures...
[2022-06-24 15:06:28,529] WARNING in ext: JSONSCHEMAS_HOST is set to localhost
[2022-06-24 15:06:29,045] WARNING in ext: JSONSCHEMAS_HOST is set to localhost
Usage: invenio [OPTIONS] COMMAND [ARGS]...
Try 'invenio --help' for help.
Error: No such command 'rdm-records'.
Failed to setup services.
```
Contributor guide
Assessment
This issue has not been assessed yet.