Redoing the storage - 0-complexity/openvcloud GitHub Wiki
After redoing the storage on ovs execute the following
on any ovs master
Resyncing API keys
jspython /opt/code/github/0-complexity/openvcloud/scripts/ovs/alba-create-user.py
[+] managing users
[+] admin guid: 3d4d823b-cc9b-4e4f-b467-a303fc0a9aeb
[+] adding "alba" oauth2 client
[+] alba client id: 31cd8288-2a2f-4cbb-8a9d-292c19121bb2
[+] alba secret: 5KloVQ2YanxOZUZT4rvXPgTkW05TEzIk1W3ZhB1HOomy1KfU4Dxpu4UHyyqxuq6C
on all ovs masters
Resetting the ovs oauth
ays configure -n openvstorage_oauth
ays start -n nginx
on master
jspython /opt/code/github/0-complexity/openvcloud/scripts/dev/cleanup.py --images --acount
ays restart -n portal
Note: this script will remove all account/spaces/vms disks and images
Reenable images
On the git node check which ovs node the image was installed
root@ovcgit:/opt/code/github/gig-projects/env_be-g8-4/services# find | grep image
./jumpscale__location__be-g8-4/jumpscale__node.ssh__stor-05.be-g8-4/openvcloud__image_ubuntu-1604__main
./jumpscale__location__be-g8-4/jumpscale__node.ssh__stor-05.be-g8-4/openvcloud__image_ubuntu-1604__main/actions.py
./jumpscale__location__be-g8-4/jumpscale__node.ssh__stor-05.be-g8-4/openvcloud__image_ubuntu-1604__main/service.hrd
./jumpscale__location__be-g8-4/jumpscale__node.ssh__stor-05.be-g8-4/openvcloud__image_ubuntu-1604__main/actions.pyc
Switch to the storage node found above
root@stor-05:~# ays configure -n image_ubuntu-1604
qemu-img convert -O raw -p /opt/jumpscale7/var/tmp/templates/Ubuntu.1604.uefi.x64.qcow2 openvstorage+tcp:10.109.3.45:26209/templates/Ubuntu.1604.uefi.x64
(100.00/100%)
2017-01-10 09:54:32 23500 +0100 - stor-05.be-g8-4 - 31263/140319141951232 - lib/vdisk - 0 - INFO - Converting vDisk Ubuntu.1604.uefi.x64 into vTemplate