Name:             nova-api-13d7-account-create-update-jc8qq
Namespace:        openstack
Priority:         0
Service Account:  galera-openstack
Node:             crc/192.168.126.11
Start Time:       Tue, 03 Feb 2026 09:01:04 +0000
Labels:           batch.kubernetes.io/controller-uid=f9992bc1-8df1-471c-aeb3-ed6693f5ab5d
                  batch.kubernetes.io/job-name=nova-api-13d7-account-create-update
                  controller-uid=f9992bc1-8df1-471c-aeb3-ed6693f5ab5d
                  job-name=nova-api-13d7-account-create-update
Annotations:      k8s.ovn.org/pod-networks:
                    {"default":{"ip_addresses":["10.217.1.89/23"],"mac_address":"0a:58:0a:d9:01:59","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.1.89"
                        ],
                        "mac": "0a:58:0a:d9:01:59",
                        "default": true,
                        "dns": {}
                    }]
                  openshift.io/scc: anyuid
Status:           Succeeded
IP:               10.217.1.89
IPs:
  IP:           10.217.1.89
Controlled By:  Job/nova-api-13d7-account-create-update
Containers:
  mariadb-account-create-update:
    Container ID:  cri-o://0d7192364c123d3ec616888c63408e26da0a4d52e6d9646ecc38484da95a632b
    Image:         quay.rdoproject.org/podified-antelope-centos9/openstack-mariadb:cac82611632fe132c9e9b85f289b0dbc
    Image ID:      quay.rdoproject.org/podified-antelope-centos9/openstack-mariadb@sha256:193a75324141e642597fd253645b9f7c8afa228ede0a9a567e7bdc572663519e
    Port:          <none>
    Host Port:     <none>
    Command:
      /bin/sh
      -c
      #!/bin/bash
      
      MYSQL_REMOTE_HOST="openstack.openstack.svc" source /var/lib/operator-scripts/mysql_root_auth.sh
      
      export DatabasePassword=${DatabasePassword:?"Please specify a DatabasePassword variable."}
      
      MYSQL_CMD="mysql -h openstack.openstack.svc -u root -P 3306"
      
      if [ -n "nova_api" ]; then
          GRANT_DATABASE="nova_api"
      else
          GRANT_DATABASE="*"
      fi
      
      # going for maximum compatibility here:
      # 1. MySQL 8 no longer allows implicit create user when GRANT is used
      # 2. MariaDB has "CREATE OR REPLACE", but MySQL does not
      # 3. create user with CREATE but then do all password and TLS with ALTER to
      #    support updates
      
      $MYSQL_CMD <<EOF
      CREATE USER IF NOT EXISTS 'nova_api_13d7'@'localhost';
      CREATE USER IF NOT EXISTS 'nova_api_13d7'@'%';
      
      ALTER USER 'nova_api_13d7'@'localhost' IDENTIFIED BY '$DatabasePassword';
      ALTER USER 'nova_api_13d7'@'%'  IDENTIFIED BY '$DatabasePassword';
      
      GRANT ALL PRIVILEGES ON ${GRANT_DATABASE}.* TO 'nova_api_13d7'@'localhost';
      GRANT ALL PRIVILEGES ON ${GRANT_DATABASE}.* TO 'nova_api_13d7'@'%';
      EOF
      
      # If we just changed the root password, update MYSQL_CMD to use the new password
      if [ "nova_api_13d7" = "root" ]; then
          MYSQL_CMD="mysql -h openstack.openstack.svc -u root -p${DatabasePassword} -P 3306"
      fi
      
      # search for the account.  not using SHOW CREATE USER to avoid displaying
      # password hash
      username=$($MYSQL_CMD -NB -e "select user from mysql.user where user='nova_api_13d7' and host='localhost';" )
      
      if [[ ${username} != "nova_api_13d7" ]]; then
          exit 1
      fi
      
    State:          Terminated
      Reason:       Completed
      Exit Code:    0
      Started:      Tue, 03 Feb 2026 09:01:06 +0000
      Finished:     Tue, 03 Feb 2026 09:01:06 +0000
    Ready:          False
    Restart Count:  0
    Environment:
      DatabasePassword:  <set to the key 'DatabasePassword' in secret 'nova-api-db-secret'>  Optional: false
    Mounts:
      /var/lib/operator-scripts from operator-scripts (ro)
      /var/run/secrets/kubernetes.io/serviceaccount from kube-api-access-dz76b (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-dz76b:
    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       9m42s  default-scheduler  Successfully assigned openstack/nova-api-13d7-account-create-update-jc8qq to crc
  Normal  AddedInterface  9m40s  multus             Add eth0 [10.217.1.89/23] from ovn-kubernetes
  Normal  Pulled          9m40s  kubelet            Container image "quay.rdoproject.org/podified-antelope-centos9/openstack-mariadb:cac82611632fe132c9e9b85f289b0dbc" already present on machine
  Normal  Created         9m40s  kubelet            Created container mariadb-account-create-update
  Normal  Started         9m40s  kubelet            Started container mariadb-account-create-update
