Closed shay-berman closed 6 years ago
Still don't have unittesting for the ScbeRestClient. I pushed a refactor so the RestClient.Get will return also the interface{}, so it will be easier to unit test it with mocking.
This unit testing is still work in progress(has some casting issue need to address) on different branch for now.
Fixed some activation in ubiquity service + update README files and then I manually tested the provision\delete successfully :
Plugin side - create volume
[root@docker1 ~]# docker volume create --driver=ubiquity --name first_ubiquity_volume_on_A9000 --opt size=10 --opt profile=gold first_ubiquity_volume_on_A9000 [root@docker1 ~]# docker volume ls DRIVER VOLUME NAME ubiquity first_ubiquity_volume_on_A9000
Storage side - view the created volume
root@nextra-ID-module-1:~# xcli.py vol_list pool=gold_pool_ubiquity_scbe Name Size (GB) Master Name Consistency Group Pool Creator Written (GB) u_ubiquity_instance1_first_ubiquity_volume_on_A9000 10 gold_pool_ubiquity_scbe admin 0
Plugin side - delete the volume
root@docker1
~]# docker volume rm first_ubiquity_volume_on_A9000
first_ubiquity_volume_on_A9000
`
Storage side - view deleted volume
root@nextra-ID-module-1:~# xcli.py vol_list pool=gold_pool_ubiquity_scbe No volumes match the given criteria
not sure why this ticket still in backlog while i already finished it. anyway move it to the waiting for testing
Implement Ubiquity interface for CreateVolume on SCBE backend.
So eventually the end user will be able to provision volume via docker cli as follow :
docker volume create --driver=ubiquity --name vol --opt size=10g --opt profile=gold
where gold is SCBE service that uses capacity from IBM Block storage(e.g IBM Flashsystem A9000\R system).