apiVersion: batch/v1
kind: Job
metadata:
  annotations:
    helm.sh/hook: post-install,post-upgrade
    helm.sh/hook-weight: "-6"
  creationTimestamp: "2026-02-26T16:56:36Z"
  generation: 1
  labels:
    application: nova
    component: storage-init
    release_group: nova
  name: nova-storage-init
  namespace: openstack
  resourceVersion: "15575"
  uid: e99434bc-7c8d-4529-a876-518bd497eca9
spec:
  backoffLimit: 6
  completionMode: NonIndexed
  completions: 1
  parallelism: 1
  selector:
    matchLabels:
      batch.kubernetes.io/controller-uid: e99434bc-7c8d-4529-a876-518bd497eca9
  suspend: false
  template:
    metadata:
      creationTimestamp: null
      labels:
        application: nova
        batch.kubernetes.io/controller-uid: e99434bc-7c8d-4529-a876-518bd497eca9
        batch.kubernetes.io/job-name: nova-storage-init
        component: storage-init
        controller-uid: e99434bc-7c8d-4529-a876-518bd497eca9
        job-name: nova-storage-init
        release_group: nova
    spec:
      containers:
      - command:
        - /tmp/storage-init.sh
        env:
        - name: NAMESPACE
          valueFrom:
            fieldRef:
              apiVersion: v1
              fieldPath: metadata.namespace
        - name: STORAGE_BACKEND
          value: rbd
        - name: RBD_POOL_NAME
          value: vms
        - name: RBD_POOL_APP_NAME
          value: nova-vms
        - name: RBD_POOL_USER
          value: cinder
        - name: RBD_POOL_CRUSH_RULE
          value: replicated_rule
        - name: RBD_POOL_REPLICATION
          value: "1"
        - name: RBD_POOL_CHUNK_SIZE
          value: "8"
        image: harbor.atmosphere.dev/ghcr.io/vexxhost/heat:main@sha256:3be2b3d1ab07714491f915307416d288783e484669a4b58a8fe3b7412b97044c
        imagePullPolicy: IfNotPresent
        name: nova-storage-init
        resources: {}
        terminationMessagePath: /dev/termination-log
        terminationMessagePolicy: File
        volumeMounts:
        - mountPath: /tmp
          name: pod-tmp
        - mountPath: /tmp/storage-init.sh
          name: nova-bin
          readOnly: true
          subPath: storage-init.sh
        - mountPath: /etc/ceph
          name: etcceph
        - mountPath: /etc/ceph/ceph.conf
          name: ceph-etc
          readOnly: true
          subPath: ceph.conf
        - mountPath: /tmp/client-keyring
          name: ceph-keyring
          readOnly: true
          subPath: key
      dnsPolicy: ClusterFirst
      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
        - name: DEPENDENCY_DAEMONSET
        - name: DEPENDENCY_CONTAINER
        - name: DEPENDENCY_POD_JSON
        - name: DEPENDENCY_CUSTOM_RESOURCE
        image: harbor.atmosphere.dev/ghcr.io/vexxhost/kubernetes-entrypoint:edge
        imagePullPolicy: IfNotPresent
        name: init
        resources: {}
        securityContext:
          allowPrivilegeEscalation: false
          readOnlyRootFilesystem: true
          runAsUser: 65534
        terminationMessagePath: /dev/termination-log
        terminationMessagePolicy: File
      - command:
        - /tmp/ceph-admin-keyring.sh
        image: harbor.atmosphere.dev/ghcr.io/vexxhost/heat:main@sha256:3be2b3d1ab07714491f915307416d288783e484669a4b58a8fe3b7412b97044c
        imagePullPolicy: IfNotPresent
        name: ceph-keyring-placement
        resources: {}
        securityContext:
          runAsUser: 0
        terminationMessagePath: /dev/termination-log
        terminationMessagePolicy: File
        volumeMounts:
        - mountPath: /tmp
          name: pod-tmp
        - mountPath: /etc/ceph
          name: etcceph
        - mountPath: /tmp/ceph-admin-keyring.sh
          name: nova-bin
          readOnly: true
          subPath: ceph-admin-keyring.sh
        - mountPath: /tmp/client-keyring
          name: ceph-keyring
          readOnly: true
          subPath: key
      nodeSelector:
        openstack-control-plane: enabled
      restartPolicy: OnFailure
      schedulerName: default-scheduler
      securityContext:
        runAsUser: 42424
      serviceAccount: nova-storage-init
      serviceAccountName: nova-storage-init
      terminationGracePeriodSeconds: 30
      volumes:
      - emptyDir: {}
        name: pod-tmp
      - configMap:
          defaultMode: 365
          name: nova-bin
        name: nova-bin
      - emptyDir: {}
        name: etcceph
      - configMap:
          defaultMode: 292
          name: ceph-etc
        name: ceph-etc
      - name: ceph-keyring
        secret:
          defaultMode: 420
          secretName: pvc-ceph-client-key
status:
  conditions:
  - lastProbeTime: "2026-02-26T17:02:19Z"
    lastTransitionTime: "2026-02-26T17:02:19Z"
    message: Job has reached the specified backoff limit
    reason: BackoffLimitExceeded
    status: "True"
    type: Failed
  failed: 1
  ready: 0
  startTime: "2026-02-26T16:56:36Z"
  uncountedTerminatedPods: {}
