@@ -12,24 +12,16 @@ With reasonably recent hardware—x86 CPU with RDRAND/RDSEED (Intel from 2012,
1212AMD from 2015) or ARM CPU with FEAT_RNG or FEAT_RNG_TRAP—and recent VM image—Linux
1313kernel 5.18 or higher—, there is (almost) nothing to be done.
1414
15- Only the flavor and image attributes required by the standard have to be set:
16-
17- - flavor extra_spec: ` hw_rng:allowed=True ` ,
18- - image property: ` hw_rng_model: virtio ` .
19-
2015## Automated tests
2116
2217The following testcases [ are implemented] ( https://github.com/SovereignCloudStack/standards/blob/main/Tests/iaas/openstack_test.py ) :
2318
24- - ` scs-0101-image-property ` ensures that each flavor has the extra spec ` hw_rng:allowed=True ` ,
25- - ` scs-0101-flavor-property ` ensures that each public image has the property ` hw_rng_model: virtio ` ,
26- - ` scs-0101-rngd ` ensures that the service ` rngd ` is present on a sample VM,
2719- ` scs-0101-entropy-avail ` ensures that the special file ` /proc/sys/kernel/random/entropy_avail ` contains
2820 the value 256 (pinned since kernel 5.18) on a sample VM,
2921- ` scs-0101-fips-test ` ensures that the number of FIPS 140-2 failures is below 5 out of 1000 blocks
3022 tested, as determined by ` cat /dev/random | rngtest -c 1000 ` on a sample VM.
3123
32- Note: The latter two items act as surrogates for the following item, which
24+ These testcases act as surrogates for the following item, which
3325cannot be detected directly:
3426
3527- CPU instructions for accessing entropy are available to the VMs.
@@ -39,6 +31,12 @@ checked, because of two reasons: (a) we already check the file `entropy_avail`
3931(see subsection on Errors), and (b) users can always choose a recent image,
4032as ensured by the image metadata standard.
4133
34+ Three further testcases are available, but currently unused:
35+
36+ - ` scs-0101-image-property ` ensures that each flavor has the extra spec ` hw_rng:allowed=True ` ,
37+ - ` scs-0101-flavor-property ` ensures that each public image has the property ` hw_rng_model: virtio ` ,
38+ - ` scs-0101-rngd ` ensures that the service ` rngd ` is present on a sample VM.
39+
4240## Manual tests
4341
4442None.
0 commit comments