Closed lixuna closed 3 years ago
--
master
branchshards install
crystal spec
cnf-conformance volume_memory_emptydir_found
command the sample "good" CNF should PASS test successfully:./cnf-conformance setup
./cnf-conformance sample_coredns_setup
./cnf-conformance volume_memory_emptydir_found
crystal spec --tag
volume_memory_emptydir_found`` command the sample "good" CNF should PASS and the "bad example CNF" should FAIL test:crystal spec --tag volume_localstorage_not_found
statelessness
)./cnf-conformance sample_coredns_setup
./cnf-conformance statelessness
all
)./cnf-conformance sample_coredns_setup
./cnf-conformance all
@denverwilliams @wavell this looks like a test that would give positive points if found and 0 points if not found. memory backed emptyDir means the application should be designed to handle that temporary storage disappearing if the pod is "deleted" or the node goes down.
Not using memory backed storage does not indicate anything is wrong.
I do not see the counter where using memory backed storage would be negative regarding cloud native principles.
Reference:
1) We need to check if you are expecting the memory volumes to be persistent a) if memory volumes are expected to be persistent, and the user is using non-cloud native memory volumes then fail test 2) (alternative) If ignoring (1) and testing the integrity of the system by reseting a memory volume node, we will need to have a way to see if the data is corrupted. a) this would require something more than the readiness and liveness tests (requires and integration or probe test)
Points awarded if the memory volume is mounted and no other volume is mounted. This ensures that the volume is being used
Test outcome: If your application is using in memory volumes, is it stateless?
docker run --name test -ti debian:latest /bin/bash
echo 'test' > test.file
exit
docker start test
docker exec -ti test cat /test.file
You'll notice that the data is still there, so by default 'without' a memory volume you can still write temporary files that will survive a Pod reboot, but be lost on the Pod deletion or when rescheduled.Agreed to close this. cc: @lixuna
Acceptance Criteria - TBD, to be based on 159
Statelessness test: Does the CNF use a non-cloud native data store: memory volumes found?
Short Description:
Reference:
Test Category:
Type of test (static or runtime)
Scoring:
Are there any pre-requisites?
Command name:
Tasks:
Proof of concept tasks:
Code implementation tasks:
Documentation tasks:
QA tasks
Dev Review:
Needs Peer Review
columnPeer review:
Reviewer Approved
column