Name:             keystone-db-create-d4mcn
Namespace:        barbican-kuttl-tests
Priority:         0
Service Account:  galera-openstack
Node:             crc/192.168.126.11
Start Time:       Sat, 04 Oct 2025 05:12:12 +0000
Labels:           batch.kubernetes.io/controller-uid=a15eb960-7e3a-4f3d-82c3-9fc6dae6658f
                  batch.kubernetes.io/job-name=keystone-db-create
                  controller-uid=a15eb960-7e3a-4f3d-82c3-9fc6dae6658f
                  job-name=keystone-db-create
Annotations:      k8s.ovn.org/pod-networks:
                    {"default":{"ip_addresses":["10.217.0.80/23"],"mac_address":"0a:58:0a:d9:00:50","gateway_ips":["10.217.0.1"],"routes":[{"dest":"10.217.0.0...
                  k8s.v1.cni.cncf.io/network-status:
                    [{
                        "name": "ovn-kubernetes",
                        "interface": "eth0",
                        "ips": [
                            "10.217.0.80"
                        ],
                        "mac": "0a:58:0a:d9:00:50",
                        "default": true,
                        "dns": {}
                    }]
                  openshift.io/scc: anyuid
Status:           Succeeded
IP:               10.217.0.80
IPs:
  IP:           10.217.0.80
Controlled By:  Job/keystone-db-create
Containers:
  mariadb-database-create:
    Container ID:  cri-o://270bc1f6f0fe9914b373dc764bb57d6f7418ff4a182f116833c26f637b0a4cca
    Image:         quay.io/podified-antelope-centos9/openstack-mariadb@sha256:5d10c016b13499110b5f9ca2bccfaf6d2fd4298c9f02580d7208fe91850da0a6
    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.barbican-kuttl-tests.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.barbican-kuttl-tests.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.barbican-kuttl-tests.svc -u root -P 3306 -NB -e "SHOW CREATE DATABASE keystone;"
      
    State:          Terminated
      Reason:       Completed
      Exit Code:    0
      Started:      Sat, 04 Oct 2025 05:12:13 +0000
      Finished:     Sat, 04 Oct 2025 05:12:13 +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-9wjl9 (ro)
Conditions:
  Type                        Status
  PodReadyToStartContainers   False 
  Initialized                 True 
  Ready                       False 
  ContainersReady             False 
  PodScheduled                True 
Volumes:
  kube-api-access-9wjl9:
    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       9m40s  default-scheduler  Successfully assigned barbican-kuttl-tests/keystone-db-create-d4mcn to crc
  Normal  AddedInterface  9m40s  multus             Add eth0 [10.217.0.80/23] from ovn-kubernetes
  Normal  Pulled          9m40s  kubelet            Container image "quay.io/podified-antelope-centos9/openstack-mariadb@sha256:5d10c016b13499110b5f9ca2bccfaf6d2fd4298c9f02580d7208fe91850da0a6" already present on machine
  Normal  Created         9m40s  kubelet            Created container mariadb-database-create
  Normal  Started         9m40s  kubelet            Started container mariadb-database-create
