Created attachment 1592756 [details]
Description of problem:
When attach storage to dc, choose to "use all containers", but only one volume is listed for the last container in "Volumes" part on the dc detail page.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1.Create dc with multiple containers in project.
2.Add storage to the dc, and choose "use all containers", click "Save". Check volumes.
2. There are volumes for all containers in yaml. But only the last container's volume is shown in the "Volumes" part on the dc detail page. Refer to attachments。
3. Should show volumes for all containers.
Created attachment 1592757 [details]
The Volumes table is showing all the claims that are mounted into any of the containers.
Since you created a single claim and attached it to all the containers it's still just
one PVC. The table is not showing the PVC's per container since in this case it would be a duplicate.
One thing that the table could show is all the containers that the PVC is attached to,
to make things more clear.
Sam what do you think ?
Yes, the table show be showing all containers. This is a bug.
Opened PR 2138 https://github.com/openshift/console/pull/2138 to address this.
console image: quay.io/openshift-release-dev/ocp-v4.0-art-dev@sha256:d2e7b52b23c5755d0aa8e47e848049c188400e575a8678e175bd03130f4c766c
Checked on ocp 4.2 with above version, now volumes for all containers are listed in "Volumes" table. The bug has been fixed.
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.
For information on the advisory, and where to find the updated
files, follow the link below.
If the solution does not work for you, open a new bug report.