Created attachment 1593215 [details]
'kubectl get pvc -o yaml' and 'kubect describe pvc' for both pvc and scratcg-pvc
Description of problem:
While importing qcow2 image, importing pvc is created on one node while scratch space pvc is created on a different node. importing fails.
This was found while running scratch_space automation tests.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1.Running the tests on ssh 10.0.152.170:
ssh firstname.lastname@example.org -i ~/.ssh/cnv-qe-jenkins.key
2.run the test:
pipenv run pytest /home/cnv-qe-jenkins/tzvika/cnv-tests/tests/storage/test_scratch_space.py --tc-file=tests/test-config.yaml --tc-format=yaml --log-level=INFO --log-cli-level=INFO -v --pdb -s
pvc and scratch-space pvc's are created on different nodes
both PVC's should be created on the same node
Could you check this bug?
Natalie, could you reproduce it?
This case can be confirmed by Dev and IMO doesn't need to be reproduced unless told otherwise.
I tried recreating the situation described with no success.
A few notes:
1. I used the test_scratch_space.py with a few modifications (the script doesn't work without these changes).
2. Used both import and upload scenarios.
3. Tried numerous times to catch the situation described in comment 0 (that the pvcs are created on different nodes) but when there are 2 pv's available, with the right size, on the same node always picks them (and not one here and one there).
4. I did see a situations where one pv is 25Gi and the other is 10Gi (just like in the attachments we see the pvc sizes), but again - they are both on the same node, resulting in a successful upload/import.
5. From the attachments I can't actually tell if the pvcs were created on different nodes, and there isn't any information about the availability of other pvs in the system.
Did you try to have three nodes, each one has 25Gi and 10Gi PV's? This I think was your setup when I encountered this....
You right, I forgot to show the PV's themselves in the attachment and the nodes they are attached to...
If you run the test I describe in my last comment and you do not fail, can you please try another one:
two nodes, each with 10G, and the another node (third) with 10G and 25G. If the import pvc is attached to to one of the PV's that exist on the first or the second node, the scratch pvc should be in pending as the node does not have another PV. if the pvc is attached to one of the PV's on the third node, we have reproduction.
Just noticed that the ip of the machine and description how to reproduce the issue are described in the bug.