Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tracetest server install issue on kubernetes #2519

Open
BartNetJS opened this issue May 10, 2023 · 12 comments
Open

tracetest server install issue on kubernetes #2519

BartNetJS opened this issue May 10, 2023 · 12 comments
Labels
bug Something isn't working triage requires triage user-request

Comments

@BartNetJS
Copy link

executing "tracetest server install"
select kubernetes

pod does not start with the log:

cannot read config file: open /app/config/config.yaml: no such file or directory
2023/05/10 15:54:13 Config file used: /app/config/config.yaml
2023/05/10 15:54:37 Config file used: /app/config/config.yaml

The reason is that config file is named tracetest-config1470662883 in the config map
It should be config.yaml

As a workaround I edited the CM with the correct config names.
The same for provisioning.

see the cm:

apiVersion: v1
kind: ConfigMap
metadata:
name: tracetest
namespace: tracetest
uid: 0b36545b-af6f-47ab-b483-8a0fcdfe16af
resourceVersion: '3484432'
creationTimestamp: '2023-05-10T15:53:31Z'
managedFields:
- manager: helm
operation: Update
apiVersion: v1
time: '2023-05-10T15:53:31Z'
fieldsType: FieldsV1
fieldsV1:
f:data: {}
- manager: kubectl-replace
operation: Update
apiVersion: v1
time: '2023-05-10T15:53:32Z'
fieldsType: FieldsV1
fieldsV1:
f:data:
f:tracetest-config1470662883: {}
f:tracetest-provisioning4237937856: {}
selfLink: /api/v1/namespaces/tracetest/configmaps/tracetest
data:
tracetest-config1470662883: |
postgres:
host: tracetest-postgresql
user: tracetest
password: not-secure-database-password
port: 5432
dbname: postgres
params: sslmode=disable
tracetest-provisioning4237937856: |+

---
type: Config
spec:
  analyticsEnabled: true
---
type: PollingProfile
spec:
  name: Custom Profile
  strategy: periodic
  default: true
  periodic:
    timeout: 2m
    retryDelay: 3s

binaryData: {}

@BartNetJS BartNetJS added bug Something isn't working triage requires triage labels May 10, 2023
@kdhamric
Copy link
Collaborator

Glad you had a workaround. Checking with the team to see if we can get it fixed.

@schoren
Copy link
Collaborator

schoren commented May 10, 2023

hey @BartNetJS, I'm trying to reproduce this issue without luck.
I'm using tracetest v0.11.8 (just released).

I tried to do a full install: (with all dependencies)
Screenshot 2023-05-10 at 17 16 08

also the more basic, only tracetest option:
Screenshot 2023-05-10 at 17 17 39

I'm also a bit curios about the filename tracetest-config1470662883 in the config map you reported. That looks kind of like a temp filename, or one of those you get when doing kubectl edit. IIRC the intstaller does not use those methods, so I'm trying to figure out how it could end up looking like that.

Can you please confirm:

  1. what version of tracetest cli are you running? (tracetest version)
  2. what install option did you use? (full or basic)
  3. what kind of k8s cluster are you using? (cloud, local, k3s, minikube, etc)
  4. did you start with a clean state? Mainly, not having a pre existing tracetest namespace.

thanks!

@BartNetJS
Copy link
Author

Hi @schoren

  1. I'm now using the latest version: 0.11.8

image
image
image
image
3. kubernetes in docker
4. yesterday a clean install, today just upgrading

@jorgeepc
Copy link
Contributor

jorgeepc commented May 11, 2023

Hey @BartNetJS @schoren we have two open issues regarding the same problem:

It occurs only on Windows.

@BartNetJS
Copy link
Author

If I can help to tackle the issue, let me know

@kdhamric
Copy link
Collaborator

@BartNetJS Can you confirm you were installing on Windows when you had this issue?

@bunkrur
Copy link

bunkrur commented May 13, 2023

I can say I am having the same issue from installing on Windows using v0.11.8.

tracetest server install completes, but the deployment on the pod is CrashLoopBackOff.

@BartNetJS
Copy link
Author

@kdhamric I'm indeed installing on Windows 11

@kdhamric
Copy link
Collaborator

Very helpful - thanks @BartNetJS.

@kdhamric
Copy link
Collaborator

@bunkrur Were you able to use the same workaround @BartNetJS described earlier to get Tracetest install on Kubernetes on Windows? Did you get it successfully installed?

@bunkrur
Copy link

bunkrur commented May 15, 2023

Yes, it worked. I also had to do the same workaround for a helm chart deployment.

@kdhamric
Copy link
Collaborator

@bunkrur Thanks.

@mathnogueira @schoren @danielbdias Thoughts on how difficult a correction / fix for this issue will be (or do we need time to dig into it to scope it?). There is a workaround, and we have a lot on our plate - just looking for a best guess so we can decide when to tackle this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working triage requires triage user-request
Projects
None yet
Development

No branches or pull requests

5 participants