Bug 1955657

Summary: ImageStatus request got "Manifest does not match provided manifest" when digest is not equal to the sha256 id in name under /var/lib/containers/storage/overlay-images/images.json
Product: OpenShift Container Platform Reporter: Shawn Hurley <shurley>
Component: NodeAssignee: Peter Hunt <pehunt>
Node sub component: CRI-O QA Contact: Weinan Liu <weinliu>
Status: CLOSED NOTABUG Docs Contact:
Severity: high    
Priority: high CC: amurdaca, aos-bugs, dwalsh, eparis, jhonce, jnovy, lsm5, mitr, mmccomas, mpatel, nalin, pehunt, rjohnson, sponnaga, tsweeney, umohnani, wabouham, walters, wjiang, xtian, xxia, yinzhou
Version: 3.11.0   
Target Milestone: ---   
Target Release: 3.11.z   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: cri-o-1.11.16-0.15.rhaos3.11.git5218c73.el7_9 or newer Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 1669096 Environment:
Last Closed: 2022-11-02 09:24:48 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1669096    
Bug Blocks:    

Comment 34 Weinan Liu 2022-11-02 09:24:48 UTC
Fixed on # oc version
oc v3.11.784
kubernetes v1.11.0+d4cacc0
features: Basic-Auth GSSAPI Kerberos SPNEGO

Server https://ip-172-18-1-85.ec2.internal:8443
openshift v3.11.784
kubernetes v1.11.0+d4cacc0

# cat /etc/os-release
NAME="Red Hat Enterprise Linux Server"
VERSION="7.8 (Maipo)"
ID="rhel"
ID_LIKE="fedora"
VARIANT="Server"
VARIANT_ID="server"
VERSION_ID="7.8"
PRETTY_NAME="Red Hat Enterprise Linux Server 7.8 (Maipo)"
ANSI_COLOR="0;31"
CPE_NAME="cpe:/o:redhat:enterprise_linux:7.8:GA:server"
HOME_URL="https://www.redhat.com/"
BUG_REPORT_URL="https://bugzilla.redhat.com/"

REDHAT_BUGZILLA_PRODUCT="Red Hat Enterprise Linux 7"
REDHAT_BUGZILLA_PRODUCT_VERSION=7.8
REDHAT_SUPPORT_PRODUCT="Red Hat Enterprise Linux"
REDHAT_SUPPORT_PRODUCT_VERSION="7.8"
[root@ip-172-18-1-85 ~]# rpm -qa|grep -i cri-o
cri-o-1.11.16-0.18.rhaos3.11.git6e806b1.el7.x86_64
# cat /var/lib/containers/storage/overlay-images/images.json |python -m json.tool
<------------snip--------->
<------------snip--------->  
        },
        "created": "2022-08-30T21:38:19.484768821Z",
        "digest": "sha256:963c8a7c692828eaaf2c1f896f8d2978f69883a69d9faea3c0cd98b262b67715",
        "id": "b0c25f9589fa1ff6a9f187c44e9c57165bf929894c53c329a0603a10c3c338f6",
        "layer": "44772695fd24f12bb5f49ce775d7c355671979246c4ddffacf11bdae8a65147e",
        "metadata": "{}",
        "names": [
            "registry.redhat.io/openshift3/ose-template-service-broker:v3.11"
        ]
    }
]

# crictl -D inspecti registry.redhat.io/openshift3/ose-pod:v3.11
DEBU[0000] ImageStatusRequest: &ImageStatusRequest{Image:&ImageSpec{Image:registry.redhat.io/openshift3/ose-pod:v3.11,},Verbose:true,}
DEBU[0000] ImageStatusResponse: &ImageStatusResponse{Image:&Image{Id:5a117db789a788ed6f1f9a1fc51961adf3ff35c3c37f2944daa524d7501408d6,RepoTags:[registry.redhat.io/openshift3/ose-pod:v3.11],RepoDigests:[registry.redhat.io/openshift3/ose-pod@sha256:413999fc4e0b76b2c63fb3d9ddba80646514b481a496b155f8599aa084d957cd],Size_:265725866,Uid:&Int64Value{Value:1001,},Username:,},Info:map[string]string{},}
{
  "status": {
    "id": "5a117db789a788ed6f1f9a1fc51961adf3ff35c3c37f2944daa524d7501408d6",
    "repoTags": [
      "registry.redhat.io/openshift3/ose-pod:v3.11"
    ],
    "repoDigests": [
      "registry.redhat.io/openshift3/ose-pod@sha256:413999fc4e0b76b2c63fb3d9ddba80646514b481a496b155f8599aa084d957cd"
    ],
    "size": "265725866",
    "uid": {
      "value": "1001"
    },
    "username": ""
  }
}

Comment 35 Red Hat Bugzilla 2023-09-18 00:26:18 UTC
The needinfo request[s] on this closed bug have been removed as they have been unresolved for 120 days