Name:             nova-cell1-4976-account-create-lskbv
Namespace:        openstack
Priority:         0
Service Account:  galera-openstack-cell1
Node:             crc/192.168.126.11
Start Time:       Thu, 02 Oct 2025 16:59:08 +0000
Labels:           batch.kubernetes.io/controller-uid=038379b1-48c8-481e-8655-5e286bcdd064
                  batch.kubernetes.io/job-name=nova-cell1-4976-account-create
                  controller-uid=038379b1-48c8-481e-8655-5e286bcdd064
                  job-name=nova-cell1-4976-account-create
Annotations:      k8s.ovn.org/pod-networks:
                    {"default":{"ip_addresses":["10.217.0.164/23"],"mac_address":"0a:58:0a:d9:00:a4","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.164"
                        ],
                        "mac": "0a:58:0a:d9:00:a4",
                        "default": true,
                        "dns": {}
                    }]
                  openshift.io/scc: anyuid
Status:           Succeeded
IP:               10.217.0.164
IPs:
  IP:           10.217.0.164
Controlled By:  Job/nova-cell1-4976-account-create
Containers:
  mariadb-account-create:
    Container ID:  cri-o://9febe6f90b26edcc63c1ec945e665d6ef621b9b737b6428b9e16ac75e6bc8dba
    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
      export DatabasePassword=${DatabasePassword:?"Please specify a DatabasePassword variable."}
      
      mysql -h openstack-cell1.openstack.svc -u root -P 3306 -e "GRANT ALL PRIVILEGES ON nova_cell1.* TO 'nova_cell1_4976'@'localhost' IDENTIFIED BY '$DatabasePassword';GRANT ALL PRIVILEGES ON nova_cell1.* TO 'nova_cell1_4976'@'%' IDENTIFIED BY '$DatabasePassword';"
      
      
      # search for the account.  not using SHOW CREATE USER to avoid displaying
      # password hash
      username=$(mysql -h openstack-cell1.openstack.svc -u root -P 3306 -NB -e "select user from mysql.user where user='nova_cell1_4976' and host='localhost';" )
      
      if [[ ${username} != "nova_cell1_4976" ]]; then
          exit 1
      fi
      
    State:          Terminated
      Reason:       Completed
      Exit Code:    0
      Started:      Thu, 02 Oct 2025 16:59:09 +0000
      Finished:     Thu, 02 Oct 2025 16:59:09 +0000
    Ready:          False
    Restart Count:  0
    Environment:
      MYSQL_PWD:         <set to the key 'DbRootPassword' in secret 'osp-secret'>              Optional: false
      DatabasePassword:  <set to the key 'DatabasePassword' in secret 'nova-cell1-db-secret'>  Optional: false
    Mounts:
      /var/run/secrets/kubernetes.io/serviceaccount from kube-api-access-fqwg6 (ro)
Conditions:
  Type                        Status
  PodReadyToStartContainers   False 
  Initialized                 True 
  Ready                       False 
  ContainersReady             False 
  PodScheduled                True 
Volumes:
  kube-api-access-fqwg6:
    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       4m14s  default-scheduler  Successfully assigned openstack/nova-cell1-4976-account-create-lskbv to crc
  Normal  AddedInterface  4m13s  multus             Add eth0 [10.217.0.164/23] from ovn-kubernetes
  Normal  Pulled          4m13s  kubelet            Container image "quay.io/podified-antelope-centos9/openstack-mariadb:current-podified" already present on machine
  Normal  Created         4m13s  kubelet            Created container mariadb-account-create
  Normal  Started         4m13s  kubelet            Started container mariadb-account-create
