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

srsran-project deployment.yaml: Issues when debugging is enabled #4

Open
hudouseko opened this issue Sep 11, 2024 · 0 comments
Open
Assignees

Comments

@hudouseko
Copy link

Hi, when I tried to deploy with enabled debugging in custom values.yaml:

debugging:
  enabled: true
  storageCapacity: "100Mi"
  hostPath: "/mnt/debugging-logs"
  containerPath: "/tmp"

deployment was failing with the following error message (as shown by kubectl events -n srsran):
32m (x8 over 33m) Warning Failed Pod/srsran-project-cudu-chart-75995dccf9-cz4vd Error: Error response from daemon: invalid volume specification: '/mnt/debugging-logs/2024-09-11--09:59:23:/tmp'

I see 2 potential causes in corresponding deployment.yaml:

  1. It seems that some component in the chain, at least on my system, doesn't like column in the host path (even though directory itself was created correctly in the host file system):
        {{- if .Values.debugging.enabled }}
        - name: srs-host-volume
          hostPath:
            path: {{ .Values.debugging.hostPath }}/{{ now | date "2006-01-02--15:04:05" }}
            type: DirectoryOrCreate
        {{- end }}

Avoiding columns helped:

       {{- if .Values.debugging.enabled }}
        - name: srs-host-volume
          hostPath:
            path: {{ .Values.debugging.hostPath }}/{{ now | date "20060102-150405" }}
            type: DirectoryOrCreate
        {{- end }}
  1. In the containers: section there seems to be swapped name and mountPath for the debugging log volume:
            {{- if .Values.debugging.enabled }}
            - mountPath: {{ .Values.debugging.containerPath }}
              name: srs-host-volume
            {{- end }}

I would assume the following is correct:

            {{- if .Values.debugging.enabled }}
            - name: srs-host-volume
              mountPath: {{ .Values.debugging.containerPath }} 
            {{- end }}

Once I applied those 2 fixes, deployment went through including debugging logs volume and I can now access gnb.log on host.

hudouseko added a commit to hudouseko/srsRAN_Project_helm that referenced this issue Sep 12, 2024
Fix for volume issue occuring when debugging is on, see srsran#4
@ninjab3s ninjab3s self-assigned this Sep 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants