-
Notifications
You must be signed in to change notification settings - Fork 88
Open
Description
Bug
Symptom
Running the API server in k8s helm setup fails, with the following message:
Error: Config file /etc/clp-config.yaml does not exist
Caused by:
0: `serde_yaml::Error`: database.name: invalid type: map, expected a string at line 32 column 5
1: database.name: invalid type: map, expected a string at line 32 column 5
Analysis
- I think
/etc/clp-config.yaml does not existis a misleading message. The file actually exists, but the parsing fails. - The root cause is that feat(clp-package)!: Add Spider config interfaces; Integrate Spider compression orchestration into the Docker Compose project. #1606 introduced breaking change in the config interface, i.e.
database.namestring changes todatabase.namesmap to support multiple database names. However, theclp_config::package::config::Config::Databaseinclp-rust-utils, and the subsequently uses of the class, is still using the old format.
Fix
- Fix the error message.
- Change the
Databasestruct inclp-rust-utils, and the uses of it.
CLP version
Environment
Ubuntu 22.04 host, helm char dev branch. I haven't tried it with existing docker compose workflow in main branch, but I think it contains the same bug.
Reproduction steps
Run test.sh in the tools/deployment/package-helm.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working