Name:             keystone-db-create-twjnb
Namespace:        openstack
Priority:         0
Service Account:  galera-openstack
Node:             crc/192.168.126.11
Start Time:       Thu, 02 Oct 2025 16:56:28 +0000
Labels:           batch.kubernetes.io/controller-uid=99087e07-3a4d-4cf3-b5d8-33e25d486d33
                  batch.kubernetes.io/job-name=keystone-db-create
                  controller-uid=99087e07-3a4d-4cf3-b5d8-33e25d486d33
                  job-name=keystone-db-create
Annotations:      k8s.ovn.org/pod-networks:
                    {"default":{"ip_addresses":["10.217.0.115/23"],"mac_address":"0a:58:0a:d9:00:73","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.0.115"
                        ],
                        "mac": "0a:58:0a:d9:00:73",
                        "default": true,
                        "dns": {}
                    }]
                  openshift.io/scc: anyuid
Status:           Succeeded
IP:               10.217.0.115
IPs:
  IP:           10.217.0.115
Controlled By:  Job/keystone-db-create
Containers:
  mariadb-database-create:
    Container ID:  cri-o://1a8aed86891bb916834343bdd5ae0633a486bc125740a2ec7873690cdf85f01a
    Image:         quay.io/podified-antelope-centos9/openstack-mariadb:current-podified
    Image ID:      quay.io/podified-antelope-centos9/openstack-mariadb@sha256:5d10c016b13499110b5f9ca2bccfaf6d2fd4298c9f02580d7208fe91850da0a6
    Port:          <none>
    Host Port:     <none>
    Command:
      /bin/sh
      -c
      #!/bin/bash
      
      mysql -h openstack.openstack.svc -u root -P 3306 -e "CREATE DATABASE IF NOT EXISTS keystone; ALTER DATABASE keystone CHARACTER SET 'utf8' COLLATE 'utf8_general_ci';"
      
      if [[ "${DatabasePassword}" != "" ]]; then
          # legacy; create database with username
          mysql -h openstack.openstack.svc -u root -P 3306 -e "GRANT ALL PRIVILEGES ON keystone.* TO 'keystone'@'localhost' IDENTIFIED BY '$DatabasePassword';GRANT ALL PRIVILEGES ON keystone.* TO 'keystone'@'%' 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.openstack.svc -u root -P 3306 -NB -e "SHOW CREATE DATABASE keystone;"
      
    State:          Terminated
      Reason:       Completed
      Exit Code:    0
      Started:      Thu, 02 Oct 2025 16:56:29 +0000
      Finished:     Thu, 02 Oct 2025 16:56:29 +0000
    Ready:          False
    Restart Count:  0
    Environment:
      MYSQL_PWD:  <set to the key 'DbRootPassword' in secret 'osp-secret'>  Optional: false
    Mounts:
      /var/run/secrets/kubernetes.io/serviceaccount from kube-api-access-6wpbc (ro)
Conditions:
  Type                        Status
  PodReadyToStartContainers   False 
  Initialized                 True 
  Ready                       False 
  ContainersReady             False 
  PodScheduled                True 
Volumes:
  kube-api-access-6wpbc:
    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       6m51s  default-scheduler  Successfully assigned openstack/keystone-db-create-twjnb to crc
  Normal  AddedInterface  6m50s  multus             Add eth0 [10.217.0.115/23] from ovn-kubernetes
  Normal  Pulled          6m50s  kubelet            Container image "quay.io/podified-antelope-centos9/openstack-mariadb:current-podified" already present on machine
  Normal  Created         6m50s  kubelet            Created container mariadb-database-create
  Normal  Started         6m50s  kubelet            Started container mariadb-database-create
