Skip to content

Instantly share code, notes, and snippets.

@myysophia
Created November 23, 2022 01:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save myysophia/ddd339fa0fa0ce3c80d14ff1ff71e224 to your computer and use it in GitHub Desktop.
Save myysophia/ddd339fa0fa0ce3c80d14ff1ff71e224 to your computer and use it in GitHub Desktop.
helm test debug info
[root@master2 /opt/helm/jira]# helm test chot-jira-dev -n jira --debug
client.go:310: [debug] Starting delete for "chot-jira-dev-application-status-test" Pod
client.go:128: [debug] creating 1 resource(s)
client.go:540: [debug] Watching for changes to Pod chot-jira-dev-application-status-test with timeout of 5m0s
client.go:568: [debug] Add/Modify event for chot-jira-dev-application-status-test: ADDED
client.go:627: [debug] Pod chot-jira-dev-application-status-test pending
client.go:568: [debug] Add/Modify event for chot-jira-dev-application-status-test: MODIFIED
client.go:627: [debug] Pod chot-jira-dev-application-status-test pending
client.go:568: [debug] Add/Modify event for chot-jira-dev-application-status-test: MODIFIED
client.go:627: [debug] Pod chot-jira-dev-application-status-test pending
client.go:568: [debug] Add/Modify event for chot-jira-dev-application-status-test: MODIFIED
client.go:627: [debug] Pod chot-jira-dev-application-status-test pending
client.go:568: [debug] Add/Modify event for chot-jira-dev-application-status-test: MODIFIED
client.go:627: [debug] Pod chot-jira-dev-application-status-test pending
client.go:568: [debug] Add/Modify event for chot-jira-dev-application-status-test: MODIFIED
client.go:627: [debug] Pod chot-jira-dev-application-status-test pending
client.go:568: [debug] Add/Modify event for chot-jira-dev-application-status-test: MODIFIED
NAME: chot-jira-dev
LAST DEPLOYED: Tue Nov 22 22:12:55 2022
NAMESPACE: jira
STATUS: deployed
REVISION: 1
TEST SUITE: chot-jira-dev-application-status-test
Last Started: Wed Nov 23 09:07:13 2022
Last Completed: Wed Nov 23 09:07:17 2022
Phase: Failed
USER-SUPPLIED VALUES:
null
COMPUTED VALUES:
additionalContainers: []
additionalFiles: []
additionalInitContainers: []
additionalLabels: {}
affinity: {}
common:
global: {}
database:
credentials:
passwordSecretKey: DBUser.DBA
secretName: null
usernameSecretKey: dbuser_dba
driver: org.postgresql.Driver
type: null
url: jdbc:postgresql://10.50.10.25:5432/meta
fluentd:
command: null
customConfigFile: false
elasticsearch:
enabled: true
hostname: elasticsearch
indexNamePrefix: jira
enabled: false
extraVolumes: []
fluentdCustomConfig: {}
httpPort: 9880
imageRepo: fluent/fluentd-kubernetes-daemonset
imageTag: v1.11.5-debian-elasticsearch7-1.2
image:
pullPolicy: IfNotPresent
repository: 10.50.10.185/jira/atlassian/jira-software
tag: latest
ingress:
annotations: {}
className: nginx
create: false
host: null
https: true
maxBodySize: 250m
nginx: true
path: null
proxyConnectTimeout: 60
proxyReadTimeout: 60
proxySendTimeout: 60
tlsSecretName: null
jira:
accessLog:
localHomeSubPath: log
mountPath: /opt/atlassian/jira/logs
additionalBundledPlugins: []
additionalEnvironmentVariables: []
additionalJvmArgs: []
additionalLibraries: []
additionalPorts:
- containerPort: 30104
name: jmx
protocol: TCP
additionalVolumeClaimTemplates: []
additionalVolumeMounts: []
clustering:
enabled: false
containerSecurityContext: {}
forceConfigUpdate: false
ports:
ehcache: 40001
ehcacheobject: 40011
http: 8080
readinessProbe:
failureThreshold: 30
initialDelaySeconds: 10
periodSeconds: 5
resources:
container:
limits:
cpu: "2"
memory: 2G
requests:
cpu: "2"
memory: 2G
jvm:
maxHeap: 768m
minHeap: 384m
reservedCodeCache: 512m
securityContext:
fsGroup: 2001
securityContextEnabled: true
service:
annotations: {}
contextPath: null
loadBalancerIP: null
nodePort: 30103
port: 80
type: NodePort
setPermissions: true
shutdown:
command: /shutdown-wait.sh
terminationGracePeriodSeconds: 30
topologySpreadConstraints: []
nodeSelector: {}
podAnnotations: {}
podLabels: {}
replicaCount: 1
schedulerName: null
serviceAccount:
annotations: {}
create: true
imagePullSecrets: []
name: null
tolerations: []
volumes:
additional: []
localHome:
customVolume: {}
mountPath: /var/atlassian/application-data/jira
persistentVolumeClaim:
create: true
resources:
requests:
storage: 10Gi
storageClassName: managed-nfs-storage
sharedHome:
customVolume: {}
mountPath: /var/atlassian/application-data/shared-home
nfsPermissionFixer:
command: null
enabled: false
imageRepo: alpine
imageTag: 3.15.4
mountPath: /shared-home
persistentVolumeClaim:
create: true
resources:
requests:
storage: 10Gi
storageClassName: managed-nfs-storage
subPath: null
HOOKS:
---
# Source: jira/templates/tests/test-application-status.yaml
apiVersion: v1
kind: Pod
metadata:
name: "chot-jira-dev-application-status-test"
annotations:
"helm.sh/hook": test
"helm.sh/hook-delete-policy": "before-hook-creation,hook-succeeded"
labels:
helm.sh/chart: jira-1.7.1
app.kubernetes.io/name: jira
app.kubernetes.io/instance: chot-jira-dev
app.kubernetes.io/version: "8.20.13"
app.kubernetes.io/managed-by: Helm
spec:
containers:
- name: test
image: 10.50.10.185/harbortest/alpine:3.15.4
imagePullPolicy: IfNotPresent
env:
- name: STATUS_URL
value: "http://chot-jira-dev:80/status"
command:
- /bin/sh
- -ec
- |
apk add -q jq curl
STATUS=$(curl -s "$STATUS_URL")
echo "Verifying application state is RUNNING or FIRST_RUN: $STATUS"
echo $STATUS | jq -e '.state|test("RUNNING|FIRST_RUN")'
restartPolicy: Never
---
# Source: jira/templates/tests/test-shared-home-permissions.yaml
apiVersion: v1
kind: Pod
metadata:
name: "chot-jira-dev-shared-home-permissions-test"
annotations:
"helm.sh/hook": test
"helm.sh/hook-delete-policy": "before-hook-creation,hook-succeeded"
labels:
helm.sh/chart: jira-1.7.1
app.kubernetes.io/name: jira
app.kubernetes.io/instance: chot-jira-dev
app.kubernetes.io/version: "8.20.13"
app.kubernetes.io/managed-by: Helm
spec:
containers:
- name: test
image: debian:stable-slim
imagePullPolicy: IfNotPresent
securityContext:
# We assume that the UID and GID used by the product images are the same, which in practice they are
runAsUser: 2001
runAsGroup: 2001
volumeMounts:
- name: shared-home
mountPath: /shared-home
command:
- /bin/sh
- -ec
- |
ls -ld /shared-home
echo "Creating temporary file in shared home as user $(id -u):$(id -g)"
touch /shared-home/permissions-test
ls -l /shared-home/permissions-test
rm /shared-home/permissions-test
volumes:
- name: shared-home
persistentVolumeClaim:
claimName: chot-jira-dev-shared-home
restartPolicy: Never
MANIFEST:
---
# Source: jira/templates/serviceaccount.yaml
apiVersion: v1
kind: ServiceAccount
metadata:
name: chot-jira-dev
labels:
helm.sh/chart: jira-1.7.1
app.kubernetes.io/name: jira
app.kubernetes.io/instance: chot-jira-dev
app.kubernetes.io/version: "8.20.13"
app.kubernetes.io/managed-by: Helm
---
# Source: jira/templates/config-jvm.yaml
apiVersion: v1
kind: ConfigMap
metadata:
name: chot-jira-dev-jvm-config
labels:
helm.sh/chart: jira-1.7.1
app.kubernetes.io/name: jira
app.kubernetes.io/instance: chot-jira-dev
app.kubernetes.io/version: "8.20.13"
app.kubernetes.io/managed-by: Helm
data:
additional_jvm_args: >-
-Datlassian.logging.cloud.enabled=false
-XX:ActiveProcessorCount=2
max_heap: 768m
min_heap: 384m
reserved_code_cache: 512m
---
# Source: jira/templates/shared-home-pvc.yaml
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: chot-jira-dev-shared-home
labels:
helm.sh/chart: jira-1.7.1
app.kubernetes.io/name: jira
app.kubernetes.io/instance: chot-jira-dev
app.kubernetes.io/version: "8.20.13"
app.kubernetes.io/managed-by: Helm
spec:
accessModes:
- ReadWriteMany
storageClassName: "managed-nfs-storage"
resources:
requests:
storage: 10Gi
---
# Source: jira/templates/service.yaml
apiVersion: v1
kind: Service
metadata:
name: chot-jira-dev
labels:
helm.sh/chart: jira-1.7.1
app.kubernetes.io/name: jira
app.kubernetes.io/instance: chot-jira-dev
app.kubernetes.io/version: "8.20.13"
app.kubernetes.io/managed-by: Helm
annotations:
spec:
type: NodePort
ports:
- port: 80
targetPort: http
protocol: TCP
name: http
selector:
app.kubernetes.io/name: jira
app.kubernetes.io/instance: chot-jira-dev
---
# Source: jira/templates/statefulset.yaml
apiVersion: apps/v1
kind: StatefulSet
metadata:
name: chot-jira-dev
labels:
helm.sh/chart: jira-1.7.1
app.kubernetes.io/name: jira
app.kubernetes.io/instance: chot-jira-dev
app.kubernetes.io/version: "8.20.13"
app.kubernetes.io/managed-by: Helm
spec:
replicas: 1
serviceName: chot-jira-dev
selector:
matchLabels:
app.kubernetes.io/name: jira
app.kubernetes.io/instance: chot-jira-dev
template:
metadata:
annotations:
checksum/config-jvm: 6e11ab428b2d77970dc71215013f33a2d1a7dce772f14f69a748439a8125d2de
labels:
app.kubernetes.io/name: jira
app.kubernetes.io/instance: chot-jira-dev
spec:
serviceAccountName: chot-jira-dev
terminationGracePeriodSeconds: 30
securityContext:
fsGroup: 2001
initContainers:
containers:
- name: jira
image: "10.50.10.185/jira/atlassian/jira-software:latest"
imagePullPolicy: IfNotPresent
env:
- name: ATL_TOMCAT_SCHEME
value: "https"
- name: ATL_TOMCAT_SECURE
value: "true"
- name: ATL_TOMCAT_PORT
value: "8080"
- name: ATL_DB_DRIVER
value: "org.postgresql.Driver"
- name: ATL_JDBC_URL
value: "jdbc:postgresql://10.50.10.25:5432/meta"
- name: SET_PERMISSIONS
value: "true"
- name: JIRA_SHARED_HOME
value: "/var/atlassian/application-data/shared-home"
- name: JVM_SUPPORT_RECOMMENDED_ARGS
valueFrom:
configMapKeyRef:
key: additional_jvm_args
name: chot-jira-dev-jvm-config
- name: JVM_MINIMUM_MEMORY
valueFrom:
configMapKeyRef:
key: min_heap
name: chot-jira-dev-jvm-config
- name: JVM_MAXIMUM_MEMORY
valueFrom:
configMapKeyRef:
key: max_heap
name: chot-jira-dev-jvm-config
- name: JVM_RESERVED_CODE_CACHE_SIZE
valueFrom:
configMapKeyRef:
key: reserved_code_cache
name: chot-jira-dev-jvm-config
ports:
- name: http
containerPort: 8080
protocol: TCP
- name: ehcache
containerPort: 40001
protocol: TCP
- name: ehcacheobject
containerPort: 40011
protocol: TCP
- containerPort: 30104
name: jmx
protocol: TCP
readinessProbe:
httpGet:
port: 8080
path: /status
initialDelaySeconds: 10
periodSeconds: 5
failureThreshold: 30
resources:
limits:
cpu: "2"
memory: 2G
requests:
cpu: "2"
memory: 2G
volumeMounts:
- name: local-home
mountPath: "/var/atlassian/application-data/jira"
- name: local-home
mountPath: "/opt/atlassian/jira/logs"
subPath: "log"
- name: shared-home
mountPath: "/var/atlassian/application-data/shared-home"
lifecycle:
preStop:
exec:
command: ["sh", "-c", "/shutdown-wait.sh"]
volumes:
- name: shared-home
persistentVolumeClaim:
claimName: chot-jira-dev-shared-home
volumeClaimTemplates:
- metadata:
name: local-home
spec:
accessModes: [ "ReadWriteOnce" ]
storageClassName: "managed-nfs-storage"
resources:
requests:
storage: 10Gi
NOTES:
Thank you for installing Jira.
Your release is named chot-jira-dev, and resides in namespace jira.
Please run sanity tests against the release to verify it's healthy:
$ helm test chot-jira-dev -n jira
If the Kubernetes resources in the release are still starting up, then the tests may fail, so it
is advisable to wait for the tests to pass before continuing.
To see the custom values you used for this release:
$ helm get values chot-jira-dev -n jira
Get the Jira URL by running these commands in the same shell:
export NODE_PORT=$(kubectl get --namespace jira -o jsonpath="{.spec.ports[0].nodePort}" services chot-jira-dev)
export NODE_IP=$(kubectl get nodes --namespace jira -o jsonpath="{.items[0].status.addresses[0].address}")
echo http://$NODE_IP:$NODE_PORT
For further documentation, see https://atlassian.github.io/data-center-helm-charts/
Error: pod chot-jira-dev-application-status-test failed
helm.go:84: [debug] pod chot-jira-dev-application-status-test failed
helm.sh/helm/v3/pkg/kube.(*Client).waitForPodSuccess
helm.sh/helm/v3/pkg/kube/client.go:625
helm.sh/helm/v3/pkg/kube.(*Client).watchUntilReady.func1
helm.sh/helm/v3/pkg/kube/client.go:573
k8s.io/client-go/tools/watch.UntilWithoutRetry
k8s.io/client-go@v0.24.2/tools/watch/until.go:80
k8s.io/client-go/tools/watch.UntilWithSync
k8s.io/client-go@v0.24.2/tools/watch/until.go:151
helm.sh/helm/v3/pkg/kube.(*Client).watchUntilReady
helm.sh/helm/v3/pkg/kube/client.go:558
helm.sh/helm/v3/pkg/kube.(*Client).WatchUntilReady.func1
helm.sh/helm/v3/pkg/kube/client.go:347
helm.sh/helm/v3/pkg/kube.batchPerform.func1
helm.sh/helm/v3/pkg/kube/client.go:419
runtime.goexit
runtime/asm_amd64.s:1581
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment