apiVersion: v1
kind: Pod
metadata:
  annotations:
    openstackhelm.openstack.org/release_uuid: ""
  creationTimestamp: "2026-05-26T14:17:42Z"
  generateName: nova-db-init-
  labels:
    application: nova
    batch.kubernetes.io/controller-uid: 04f1c84e-0dc7-4083-ac19-5e205ec920eb
    batch.kubernetes.io/job-name: nova-db-init
    component: db-init
    controller-uid: 04f1c84e-0dc7-4083-ac19-5e205ec920eb
    job-name: nova-db-init
    release_group: nova
  name: nova-db-init-wr6tn
  namespace: openstack
  ownerReferences:
  - apiVersion: batch/v1
    blockOwnerDeletion: true
    controller: true
    kind: Job
    name: nova-db-init
    uid: 04f1c84e-0dc7-4083-ac19-5e205ec920eb
  resourceVersion: "15027"
  uid: a993f1b6-bb0f-4663-9508-5a1b18bb8b8e
spec:
  containers:
  - command:
    - /tmp/db-init.py
    env:
    - name: ROOT_DB_CONNECTION
      valueFrom:
        secretKeyRef:
          key: DB_CONNECTION
          name: nova-db-admin
    - name: OPENSTACK_CONFIG_FILE
      value: /etc/nova/nova.conf
    - name: OPENSTACK_CONFIG_DB_SECTION
      value: database
    - name: OPENSTACK_CONFIG_DB_KEY
      value: connection
    image: harbor.atmosphere.dev/ghcr.io/vexxhost/heat:main@sha256:27a2d373cdb969647dc82683b6fea450a4da4676addec5ea60a5d49e4c5c2289
    imagePullPolicy: IfNotPresent
    name: nova-db-init-0
    resources: {}
    terminationMessagePath: /dev/termination-log
    terminationMessagePolicy: File
    volumeMounts:
    - mountPath: /tmp
      name: pod-tmp
    - mountPath: /tmp/db-init.py
      name: db-init-sh
      readOnly: true
      subPath: db-init.py
    - mountPath: /etc/nova
      name: etc-service
    - mountPath: /etc/nova/nova.conf
      name: db-init-conf
      readOnly: true
      subPath: nova.conf
    - mountPath: /etc/nova/logging.conf
      name: db-init-conf
      readOnly: true
      subPath: logging.conf
    - mountPath: /var/run/secrets/kubernetes.io/serviceaccount
      name: kube-api-access-xsx8x
      readOnly: true
  - command:
    - /tmp/db-init.py
    env:
    - name: ROOT_DB_CONNECTION
      valueFrom:
        secretKeyRef:
          key: DB_CONNECTION
          name: nova-db-admin
    - name: OPENSTACK_CONFIG_FILE
      value: /etc/nova/nova.conf
    - name: OPENSTACK_CONFIG_DB_SECTION
      value: api_database
    - name: OPENSTACK_CONFIG_DB_KEY
      value: connection
    image: harbor.atmosphere.dev/ghcr.io/vexxhost/heat:main@sha256:27a2d373cdb969647dc82683b6fea450a4da4676addec5ea60a5d49e4c5c2289
    imagePullPolicy: IfNotPresent
    name: nova-db-init-1
    resources: {}
    terminationMessagePath: /dev/termination-log
    terminationMessagePolicy: File
    volumeMounts:
    - mountPath: /tmp
      name: pod-tmp
    - mountPath: /tmp/db-init.py
      name: db-init-sh
      readOnly: true
      subPath: db-init.py
    - mountPath: /etc/nova
      name: etc-service
    - mountPath: /etc/nova/nova.conf
      name: db-init-conf
      readOnly: true
      subPath: nova.conf
    - mountPath: /etc/nova/logging.conf
      name: db-init-conf
      readOnly: true
      subPath: logging.conf
    - mountPath: /var/run/secrets/kubernetes.io/serviceaccount
      name: kube-api-access-xsx8x
      readOnly: true
  - command:
    - /tmp/db-init.py
    env:
    - name: ROOT_DB_CONNECTION
      valueFrom:
        secretKeyRef:
          key: DB_CONNECTION
          name: nova-db-admin
    - name: OPENSTACK_CONFIG_FILE
      value: /etc/nova/nova.conf
    - name: OPENSTACK_CONFIG_DB_SECTION
      value: cell0_database
    - name: OPENSTACK_CONFIG_DB_KEY
      value: connection
    image: harbor.atmosphere.dev/ghcr.io/vexxhost/heat:main@sha256:27a2d373cdb969647dc82683b6fea450a4da4676addec5ea60a5d49e4c5c2289
    imagePullPolicy: IfNotPresent
    name: nova-db-init-2
    resources: {}
    terminationMessagePath: /dev/termination-log
    terminationMessagePolicy: File
    volumeMounts:
    - mountPath: /tmp
      name: pod-tmp
    - mountPath: /tmp/db-init.py
      name: db-init-sh
      readOnly: true
      subPath: db-init.py
    - mountPath: /etc/nova
      name: etc-service
    - mountPath: /etc/nova/nova.conf
      name: db-init-conf
      readOnly: true
      subPath: nova.conf
    - mountPath: /etc/nova/logging.conf
      name: db-init-conf
      readOnly: true
      subPath: logging.conf
    - mountPath: /var/run/secrets/kubernetes.io/serviceaccount
      name: kube-api-access-xsx8x
      readOnly: true
  dnsPolicy: ClusterFirst
  enableServiceLinks: true
  initContainers:
  - command:
    - kubernetes-entrypoint
    env:
    - name: POD_NAME
      valueFrom:
        fieldRef:
          apiVersion: v1
          fieldPath: metadata.name
    - name: NAMESPACE
      valueFrom:
        fieldRef:
          apiVersion: v1
          fieldPath: metadata.namespace
    - name: INTERFACE_NAME
      value: eth0
    - name: PATH
      value: /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/
    - name: DEPENDENCY_SERVICE
      value: openstack:percona-xtradb-haproxy
    - name: DEPENDENCY_DAEMONSET
    - name: DEPENDENCY_CONTAINER
    - name: DEPENDENCY_POD_JSON
    - name: DEPENDENCY_CUSTOM_RESOURCE
    image: harbor.atmosphere.dev/ghcr.io/vexxhost/kubernetes-entrypoint:edge@sha256:8921b64b87af184a1421dd856b2703bcf3cff9f50863cd0d18371cf964a87bd3
    imagePullPolicy: IfNotPresent
    name: init
    resources: {}
    securityContext:
      allowPrivilegeEscalation: false
      readOnlyRootFilesystem: true
      runAsUser: 65534
    terminationMessagePath: /dev/termination-log
    terminationMessagePolicy: File
    volumeMounts:
    - mountPath: /var/run/secrets/kubernetes.io/serviceaccount
      name: kube-api-access-xsx8x
      readOnly: true
  nodeName: instance
  nodeSelector:
    openstack-control-plane: enabled
  preemptionPolicy: PreemptLowerPriority
  priority: 0
  restartPolicy: OnFailure
  schedulerName: default-scheduler
  securityContext: {}
  serviceAccount: nova-db-init
  serviceAccountName: nova-db-init
  terminationGracePeriodSeconds: 30
  tolerations:
  - effect: NoExecute
    key: node.kubernetes.io/not-ready
    operator: Exists
    tolerationSeconds: 300
  - effect: NoExecute
    key: node.kubernetes.io/unreachable
    operator: Exists
    tolerationSeconds: 300
  volumes:
  - emptyDir: {}
    name: pod-tmp
  - configMap:
      defaultMode: 365
      name: nova-bin
    name: db-init-sh
  - emptyDir: {}
    name: etc-service
  - name: db-init-conf
    secret:
      defaultMode: 292
      secretName: nova-etc
  - name: kube-api-access-xsx8x
    projected:
      defaultMode: 420
      sources:
      - serviceAccountToken:
          expirationSeconds: 3607
          path: token
      - configMap:
          items:
          - key: ca.crt
            path: ca.crt
          name: kube-root-ca.crt
      - downwardAPI:
          items:
          - fieldRef:
              apiVersion: v1
              fieldPath: metadata.namespace
            path: namespace
status:
  conditions:
  - lastProbeTime: null
    lastTransitionTime: "2026-05-26T14:17:46Z"
    reason: PodCompleted
    status: "True"
    type: Initialized
  - lastProbeTime: null
    lastTransitionTime: "2026-05-26T14:17:48Z"
    reason: PodCompleted
    status: "False"
    type: Ready
  - lastProbeTime: null
    lastTransitionTime: "2026-05-26T14:17:48Z"
    reason: PodCompleted
    status: "False"
    type: ContainersReady
  - lastProbeTime: null
    lastTransitionTime: "2026-05-26T14:17:42Z"
    status: "True"
    type: PodScheduled
  containerStatuses:
  - containerID: containerd://530f157886330fb51db0122e4509f608fc8e9096151c128a938bd219e1848d30
    image: sha256:cdd7dbf964d10858bd852509923a5b40181f340281760f788666986194aebf30
    imageID: harbor.atmosphere.dev/ghcr.io/vexxhost/heat@sha256:27a2d373cdb969647dc82683b6fea450a4da4676addec5ea60a5d49e4c5c2289
    lastState: {}
    name: nova-db-init-0
    ready: false
    restartCount: 0
    started: false
    state:
      terminated:
        containerID: containerd://530f157886330fb51db0122e4509f608fc8e9096151c128a938bd219e1848d30
        exitCode: 0
        finishedAt: "2026-05-26T14:17:47Z"
        reason: Completed
        startedAt: "2026-05-26T14:17:46Z"
  - containerID: containerd://591b2533f437ee67c145d70fd7e78990f6baa73c84549e7c9c4bdb51c60fcfb2
    image: sha256:cdd7dbf964d10858bd852509923a5b40181f340281760f788666986194aebf30
    imageID: harbor.atmosphere.dev/ghcr.io/vexxhost/heat@sha256:27a2d373cdb969647dc82683b6fea450a4da4676addec5ea60a5d49e4c5c2289
    lastState: {}
    name: nova-db-init-1
    ready: false
    restartCount: 0
    started: false
    state:
      terminated:
        containerID: containerd://591b2533f437ee67c145d70fd7e78990f6baa73c84549e7c9c4bdb51c60fcfb2
        exitCode: 0
        finishedAt: "2026-05-26T14:17:47Z"
        reason: Completed
        startedAt: "2026-05-26T14:17:46Z"
  - containerID: containerd://6459ae1fcc6138e389d21ef9b6a99fa2c4f97b94fd84f87b45d90ffa79e7fece
    image: sha256:cdd7dbf964d10858bd852509923a5b40181f340281760f788666986194aebf30
    imageID: harbor.atmosphere.dev/ghcr.io/vexxhost/heat@sha256:27a2d373cdb969647dc82683b6fea450a4da4676addec5ea60a5d49e4c5c2289
    lastState: {}
    name: nova-db-init-2
    ready: false
    restartCount: 0
    started: false
    state:
      terminated:
        containerID: containerd://6459ae1fcc6138e389d21ef9b6a99fa2c4f97b94fd84f87b45d90ffa79e7fece
        exitCode: 0
        finishedAt: "2026-05-26T14:17:47Z"
        reason: Completed
        startedAt: "2026-05-26T14:17:46Z"
  hostIP: 199.204.45.210
  initContainerStatuses:
  - containerID: containerd://99622096450851cb38846fe6a290966ced398685c38d44b1f9abedce74675ba1
    image: sha256:d656bd5737950b86b0ecff4b0206024769c78ea55e2f9f4c840c3cc2a10caaf8
    imageID: harbor.atmosphere.dev/ghcr.io/vexxhost/kubernetes-entrypoint@sha256:8921b64b87af184a1421dd856b2703bcf3cff9f50863cd0d18371cf964a87bd3
    lastState: {}
    name: init
    ready: true
    restartCount: 0
    started: false
    state:
      terminated:
        containerID: containerd://99622096450851cb38846fe6a290966ced398685c38d44b1f9abedce74675ba1
        exitCode: 0
        finishedAt: "2026-05-26T14:17:46Z"
        reason: Completed
        startedAt: "2026-05-26T14:17:43Z"
  phase: Succeeded
  podIP: 10.0.0.200
  podIPs:
  - ip: 10.0.0.200
  qosClass: BestEffort
  startTime: "2026-05-26T14:17:42Z"
