Name:             watcher-db-create-pghpr
Namespace:        watcher-kuttl-default
Priority:         0
Service Account:  galera-openstack
Node:             crc/192.168.126.11
Start Time:       Fri, 05 Dec 2025 16:46:04 +0000
Labels:           batch.kubernetes.io/controller-uid=b3d46070-e6c9-49b5-b63c-92acc29a8c26
                  batch.kubernetes.io/job-name=watcher-db-create
                  controller-uid=b3d46070-e6c9-49b5-b63c-92acc29a8c26
                  job-name=watcher-db-create
Annotations:      k8s.ovn.org/pod-networks:
                    {"default":{"ip_addresses":["10.217.0.183/23"],"mac_address":"0a:58:0a:d9:00:b7","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.183"
                        ],
                        "mac": "0a:58:0a:d9:00:b7",
                        "default": true,
                        "dns": {}
                    }]
                  openshift.io/scc: anyuid
Status:           Succeeded
IP:               10.217.0.183
IPs:
  IP:           10.217.0.183
Controlled By:  Job/watcher-db-create
Containers:
  mariadb-database-create:
    Container ID:  cri-o://a3e7eb7460c4450190fa92a0d359ff7a3f0dc1f787fb0d7f3d5fb00a19b2ad74
    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.watcher-kuttl-default.svc source /var/lib/operator-scripts/mysql_root_auth.sh
      
      mysql -h openstack.watcher-kuttl-default.svc -u root -P 3306 -e "CREATE DATABASE IF NOT EXISTS watcher; ALTER DATABASE watcher CHARACTER SET 'utf8' COLLATE 'utf8_general_ci';"
      
      if [[ "${DatabasePassword}" != "" ]]; then
          # legacy; create database with username
          mysql -h openstack.watcher-kuttl-default.svc -u root -P 3306 -e "GRANT ALL PRIVILEGES ON watcher.* TO 'watcher'@'localhost' IDENTIFIED BY '$DatabasePassword';GRANT ALL PRIVILEGES ON watcher.* TO 'watcher'@'%' 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.watcher-kuttl-default.svc -u root -P 3306 -NB -e "SHOW CREATE DATABASE watcher;"
      
    State:          Terminated
      Reason:       Completed
      Exit Code:    0
      Started:      Fri, 05 Dec 2025 16:46:05 +0000
      Finished:     Fri, 05 Dec 2025 16:46:07 +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-l6kt6 (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-scripts
    Optional:  false
  kube-api-access-l6kt6:
    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       8m22s  default-scheduler  Successfully assigned watcher-kuttl-default/watcher-db-create-pghpr to crc
  Normal  AddedInterface  8m21s  multus             Add eth0 [10.217.0.183/23] from ovn-kubernetes
  Normal  Pulled          8m21s  kubelet            Container image "quay.io/podified-antelope-centos9/openstack-mariadb:current-podified" already present on machine
  Normal  Created         8m21s  kubelet            Created container mariadb-database-create
  Normal  Started         8m20s  kubelet            Started container mariadb-database-create
