Repository navigation
Conversation
Features: nvme Signed-off-by: Tom Nabarro <thomas.nabarro@hpe.com>
|
@NiuYawei @Michael-Hennecke any other test cases to cover? @daltonbohning @phender do the tests look okay? |
|
Test stage Functional on EL 9 completed with status UNSTABLE. https://jenkins-3.daos.hpc.amslabs.hpecorp.net/job/daos-stack/job/daos//view/change-requests/job/PR-19629/1/testReport/ |
|
Test stage Functional Cluster Box Medium MD on SSD completed with status FAILURE. https://jenkins-3.daos.hpc.amslabs.hpecorp.net//job/daos-stack/job/daos/view/change-requests/job/PR-19629/1/execution/node/1693/log |
|
Test stage Functional Hardware Large MD on SSD completed with status UNSTABLE. https://jenkins-3.daos.hpc.amslabs.hpecorp.net/job/daos-stack/job/daos//view/change-requests/job/PR-19629/1/testReport/ |
|
Test stage Functional Hardware Medium MD on SSD completed with status UNSTABLE. https://jenkins-3.daos.hpc.amslabs.hpecorp.net/job/daos-stack/job/daos//view/change-requests/job/PR-19629/1/testReport/ |
|
|
||
| pool: | ||
| size: 90% | ||
| svcn: 3 |
There was a problem hiding this comment.
Nit - I recommend leaving this out if not needed, since that is the default for 3 servers, right?
| file_oclass: EC_16P2GX | ||
| dir_oclass: EC_16P2GX |
There was a problem hiding this comment.
I recommend leaving the object class out of the container create since it is specified in the ior namespace. That way we don't have to worry about keeping it in sync
| repetitions: 1 | ||
| dfs_destroy: false |
There was a problem hiding this comment.
Recommend removing these since they are the defaults
| dfs_destroy: false | ||
| flags: "-w -F -k -G 1" | ||
| api: DFS | ||
| dfs_oclass: EC_16P2GX |
There was a problem hiding this comment.
16P2 will not run with 3 servers. The most we can do in CI is to run on HW Large with 7 servers, dual engine. So with 14 engines total you could use 8P2 or 8P3.
Or with 6 engines on HW Medium you could use up to 4P2
| aggregation: | ||
| test_with_aggregation: true | ||
|
|
||
| rebuild: | ||
| test_with_rebuild: true |
There was a problem hiding this comment.
Looks like this was copied form somewhere else and is unused in this test?
|
|
||
| Erases any existing SPDK blobstore/SMD metadata header so the device at pci_addr is | ||
| attached by the kernel nvme driver, is treated as blank/new when it is subsequently | ||
| rebound to the userspace driver, simulating a real drive replacement without requiring |
There was a problem hiding this comment.
wrong-spelling-in-docstring, Wrong spelling of a word 'userspace' in a docstring:
Probably can just split that into "user space" or add "userspace" to utils/cq/words.dict
| self.log_step(f"Rebinding device {pci_addr} to the userspace driver on {host}") | ||
| self.dmg.hostlist = NodeSet(host) | ||
| try: | ||
| get_dmg_response(self.dmg.storage_nvme_rebind, pci_address=pci_addr) |
There was a problem hiding this comment.
If you don't need to do anything with the response, we should just call the method directly
| get_dmg_response(self.dmg.storage_nvme_rebind, pci_address=pci_addr) | |
| self.dmg.storage_nvme_rebind(pci_address=pci_addr) |
| server_manager = self.server_managers[-1] | ||
| rank_to_host = server_manager.ranks | ||
| rank = sorted(rank_to_host)[0] | ||
| host = rank_to_host[rank] |
There was a problem hiding this comment.
The keys in rank_to_host are the ranks, and this sorts them, so rank here is always 0. I think this could either be simplified to
| server_manager = self.server_managers[-1] | |
| rank_to_host = server_manager.ranks | |
| rank = sorted(rank_to_host)[0] | |
| host = rank_to_host[rank] | |
| server_manager = self.server_managers[-1] | |
| rank_to_host = server_manager.ranks | |
| rank = 0 | |
| host = rank_to_host[rank] |
Or it could use some randomness
| server_manager = self.server_managers[-1] | |
| rank_to_host = server_manager.ranks | |
| rank = sorted(rank_to_host)[0] | |
| host = rank_to_host[rank] | |
| server_manager = self.server_managers[-1] | |
| rank_to_host = server_manager.ranks | |
| rank = self.random.choice(list(rank_to_host.keys())) | |
| host = rank_to_host[rank] |
|
|
||
| self.log.info("Test passed") | ||
|
|
||
| @fail_on(CommandFailure) |
There was a problem hiding this comment.
This is actually not necessary because any uncaught exception already becomes a failure
| 10. Reset the LED state of the replaced device. | ||
|
|
||
| :avocado: tags=all,full_regression | ||
| :avocado: tags=hw,large |
There was a problem hiding this comment.
Some of these tests are hw medium but some are hw large? but only with 3 servers?
Test-tag: NvmeHotplug Signed-off-by: Tom Nabarro <thomas.nabarro@hpe.com>
Features: nvme
Steps for the author:
After all prior steps are complete: