Name:             nova-cell1-db-create-dp4gg
Namespace:        openstack
Priority:         0
Service Account:  galera-openstack-cell1
Node:             crc/192.168.126.11
Start Time:       Thu, 04 Dec 2025 13:50:24 +0000
Labels:           batch.kubernetes.io/controller-uid=1a78fcfb-8981-4921-847b-f5b4f7adec43
                  batch.kubernetes.io/job-name=nova-cell1-db-create
                  controller-uid=1a78fcfb-8981-4921-847b-f5b4f7adec43
                  job-name=nova-cell1-db-create
Annotations:      k8s.ovn.org/pod-networks:
                    {"default":{"ip_addresses":["10.217.1.146/23"],"mac_address":"0a:58:0a:d9:01:92","gateway_ips":["10.217.0.1"],"routes":[{"dest":"10.217.0....
                  k8s.v1.cni.cncf.io/network-status:
                    [{
                        "name": "ovn-kubernetes",
                        "interface": "eth0",
                        "ips": [
                            "10.217.1.146"
                        ],
                        "mac": "0a:58:0a:d9:01:92",
                        "default": true,
                        "dns": {}
                    }]
                  openshift.io/scc: anyuid
Status:           Succeeded
IP:               10.217.1.146
IPs:
  IP:           10.217.1.146
Controlled By:  Job/nova-cell1-db-create
Containers:
  mariadb-database-create:
    Container ID:  cri-o://b346b0d2d4683d8fd4be05f3f832e785b257d3b860ae5243111d70a7e742584d
    Image:         quay.io/podified-antelope-centos9/openstack-mariadb:current-podified
    Image ID:      quay.io/podified-antelope-centos9/openstack-mariadb@sha256:d9a2d8b19d3de4658dd26a2e781d00002e937738bfe6a1d0cf6c68c015085f4a
    Port:          <none>
    Host Port:     <none>
    Command:
      /bin/sh
      -c
      #!/bin/bash
      
      MYSQL_REMOTE_HOST=openstack-cell1.openstack.svc source /var/lib/operator-scripts/mysql_root_auth.sh
      
      mysql -h openstack-cell1.openstack.svc -u root -P 3306 -e "CREATE DATABASE IF NOT EXISTS nova_cell1; ALTER DATABASE nova_cell1 CHARACTER SET 'utf8' COLLATE 'utf8_general_ci';"
      
      if [[ "${DatabasePassword}" != "" ]]; then
          # legacy; create database with username
          mysql -h openstack-cell1.openstack.svc -u root -P 3306 -e "GRANT ALL PRIVILEGES ON nova_cell1.* TO 'nova_cell1'@'localhost' IDENTIFIED BY '$DatabasePassword';GRANT ALL PRIVILEGES ON nova_cell1.* TO 'nova_cell1'@'%' IDENTIFIED BY '$DatabasePassword';"
      fi
      
      # echo the SHOW CREATE to ensure db was created; will return nonzero error code if
      # DB does not exist
      mysql -h openstack-cell1.openstack.svc -u root -P 3306 -NB -e "SHOW CREATE DATABASE nova_cell1;"
      
    State:          Terminated
      Reason:       Completed
      Exit Code:    0
      Started:      Thu, 04 Dec 2025 13:50:30 +0000
      Finished:     Thu, 04 Dec 2025 13:50:33 +0000
    Ready:          False
    Restart Count:  0
    Environment:    <none>
    Mounts:
      /var/lib/operator-scripts from operator-scripts (ro)
      /var/run/secrets/kubernetes.io/serviceaccount from kube-api-access-jcwxl (ro)
Conditions:
  Type                        Status
  PodReadyToStartContainers   False 
  Initialized                 True 
  Ready                       False 
  ContainersReady             False 
  PodScheduled                True 
Volumes:
  operator-scripts:
    Type:      ConfigMap (a volume populated by a ConfigMap)
    Name:      openstack-cell1-scripts
    Optional:  false
  kube-api-access-jcwxl:
    Type:                    Projected (a volume that contains injected data from multiple sources)
    TokenExpirationSeconds:  3607
    ConfigMapName:           kube-root-ca.crt
    ConfigMapOptional:       <nil>
    DownwardAPI:             true
    ConfigMapName:           openshift-service-ca.crt
    ConfigMapOptional:       <nil>
QoS Class:                   BestEffort
Node-Selectors:              <none>
Tolerations:                 node.kubernetes.io/not-ready:NoExecute op=Exists for 300s
                             node.kubernetes.io/unreachable:NoExecute op=Exists for 300s
Events:
  Type    Reason          Age    From               Message
  ----    ------          ----   ----               -------
  Normal  Scheduled       4m10s  default-scheduler  Successfully assigned openstack/nova-cell1-db-create-dp4gg to crc
  Normal  AddedInterface  4m7s   multus             Add eth0 [10.217.1.146/23] from ovn-kubernetes
  Normal  Pulled          4m6s   kubelet            Container image "quay.io/podified-antelope-centos9/openstack-mariadb:current-podified" already present on machine
  Normal  Created         4m5s   kubelet            Created container mariadb-database-create
  Normal  Started         4m4s   kubelet            Started container mariadb-database-create
