-
Notifications
You must be signed in to change notification settings - Fork 9
Open
Description
Environment
- Vispana Version: v0.0.1-SNAPSHOT (latest Docker image
vispana/vispana:latest
) - Vespa Version: 8.521.17
- Deployment: Kubernetes cluster
Problem Description
Vispana fails to load with a 404 error when connecting to a standard Vespa cluster due to a hardcoded assumption about schema file names.
Error Details
Error Message:
404 Not Found: {"error-code":"NOT_FOUND","message":"Session 4 does not contain a file at path '/schemas/cluster-controllers.sd'"}
Full Stack Trace:
org.springframework.web.client.HttpClientErrorException$NotFound: 404 Not Found: "{"error-code":"NOT_FOUND","message":"Session 4 does not contain a file at path '/schemas/cluster-controllers.sd'"}"
at org.springframework.web.client.HttpClientErrorException.create(HttpClientErrorException.java:112)
at com.vispana.vespa.state.helpers.Request.requestGet(Request.java:10)
at com.vispana.vespa.state.assemblers.ContentAssembler.lambda$fetchSchemaContent$2(ContentAssembler.java:87)
at com.vispana.vespa.state.assemblers.ContentAssembler.fetchSchemaContent(ContentAssembler.java:97)
at com.vispana.vespa.state.assemblers.ContentAssembler.lambda$assemble$0(ContentAssembler.java:71)
at com.vispana.vespa.state.assemblers.ContentAssembler.assemble(ContentAssembler.java:76)
at com.vispana.vespa.state.VespaStateClient.lambda$vespaState$8(VespaStateClient.java:47)
Root Cause
The issue is in ConfigNodesAssembler.java
line 20:
private final static String CLUSTER_CONTROLLERS_SCHEMA = "cluster-controllers";
Workaround Attempted
We tried creating a dummy cluster-controllers.sd
schema file, but Vespa doesn't allow hyphens in schema names (requires underscores), creating an incompatibility between Vispana's expectation (cluster-controllers
) and Vespa's requirements (cluster_controllers
).
Metadata
Metadata
Assignees
Labels
No labels