Cause: Volume Tables were written in parallel with handling individual containers when attaching storage. They were not tested together and there was an issue when displaying each individual volume per container.
Consequence: Only the last container's volume showed in the table if the same volume name was used (over wrote the prior ones since name was not unique)
Fix: Properly index all volumes per container using volume name and container name as the key so all they show in the table.
Result: Every volume now shows for all containers
Created attachment 1592756[details]
volumes-in-yaml
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):
4.2.0-0.nightly-2019-07-23-002801
How reproducible:
Always
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.
3.
Actual results:
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。
Expected results:
3. Should show volumes for all containers.
Additional info:
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 ?
4.2.0-0.nightly-2019-07-24-220922
console image: quay.io/openshift-release-dev/ocp-v4.0-art-dev@sha256:d2e7b52b23c5755d0aa8e47e848049c188400e575a8678e175bd03130f4c766c
https://github.com/openshift/console/commit/1c78f00ce5e2a313e4dd673df240e438438d45b6
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.
https://access.redhat.com/errata/RHBA-2019:2922
Created attachment 1592756 [details] volumes-in-yaml 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): 4.2.0-0.nightly-2019-07-23-002801 How reproducible: Always 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. 3. Actual results: 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。 Expected results: 3. Should show volumes for all containers. Additional info: