Closed waleedhammam closed 4 years ago
This breaks the storclient interface, the fix done in this commit needs to be refactored to keep all the storclients consistent with the interface:
https://github.com/threefoldtech/jumpscaleX_core/commit/e8ca3d939aa98472300afdcd482e48d8fe38f442
Where is the storclient interface defined ?
Fixed: commits: cad68ae7c52ee4f54965453238bebef36c80f76c https://github.com/threefoldtech/jumpscaleX_threebot/commit/60793aceabe356725408f38048fe8ead7abfb9d6
threebot_zdb_sonic_start
to be start_servers_threebot_zdb_sonic
.Verified on unstable branch.
Scenarios 1 export and import database
Scenarios 2 change in bcdb and export then import
Start 3bot server j.servers.threebot.start(background=True)
Export bcdb j.data.bcdb.export()
close threebot server
Import bcdb j.data.bcdb.import_(path="/sandbox/var/bcdb_exports/15_Mar_2020_09_28_07/")
Start 3bot server j.servers.threebot.start(background=True)
Add package
gedis = j.clients.gedis.get("pm", port=8901, package_name="zerobot.packagemanager")
gedis.actors.package_manager.package_add(path="/sandbox/code/github/threefoldtech/jumpscaleX_threebot/ThreeBotPackages/tfgrid/registrygeneric")
do an export
j.data.bcdb.export()
close threebot server
Import bcdb j.data.bcdb.import_(path="/sandbox/var/bcdb_exports/15_Mar_2020_09_38_07/")
check the existence of data
j.data.bcdb.instances.registry.get_all()
How to reproduce
Start 3bot server
create some nodes
do an export
close threebot server
do an import example:
after @zaibon suggested adding https://github.com/threefoldtech/jumpscaleX_core/blob/9bada8d884a4e07f2118e91f89d4a9ced0c7f713/JumpscaleCore/data/bcdb/BCDB.py#L566
you will get the following error