Hello all,
I am developing a networking product and want to add E2E testing for that. I was researching for some test setup options, where I can simulate different network scenarios like packet loss, multiple routes, mtu change etc.
I recently found incus, which looks like a excellent choice for my usecase.
I have created a network with multiple containers manually and caters for my testing. And it is working fine.
But I want to way to replicate this setup, i.e I want to dump the incus config and restore in CI machines to create the exact setup and run E2E on top of it.
I just want the containers to be created with all the profiles, and networks. I can run python script to push my software along with configuration in all the containers.
I found this document, which mentions I can backup and restore the sql for config:
I have taken the backup, but I am struggling to restore in the new machine.
maari@debian ~> sudo incus admin sql local - < incus.local.sql
Error: Failed to exec query: cannot start a transaction within a transaction
maari@debian ~ [1]> sudo incus admin sql local - < incus.local.sql
Error: Failed to exec query: cannot start a transaction within a transaction
maari@debian ~ [1]>
maari@debian ~ [1]> vim incus.local.sql
maari@debian ~> sudo incus admin sql local - < incus.local.sql
Error: Failed to exec query: table schema already exists
maari@debian ~ [1]>
Does backing up sql enough for my usecase, or is there any other way I can achieve the same ?