openstack-tools:使用clientlib进行一些操作的小脚本

时间:2021-05-14 01:52:24
【文件属性】:
文件名称:openstack-tools:使用clientlib进行一些操作的小脚本
文件大小:9KB
文件格式:ZIP
更新时间:2021-05-14 01:52:24
Python OpenStack工具 使用clientlib进行一些操作的小脚本 #快照 ## snapshot.py 先决条件 apt-get install git python-cinderclient python-novaclient 设置保留时间以保持 IMAGE_RET=7 # kepp 7 latest snapshot (nova) VOLUME_RET=7 # kepp 7 latest snapshot volume (cinder) VOLUMEFROMSNAP_RET=1 # kepp 1 latest volume from volumesnapshot (cinder) 使用crontab运行 # Create snapshot (instances and volumes) all days at 3h00 0 3 * * * python /opt/opens
【文件预览】:
openstack-tools-master
----snapshot()
--------snapshot.py(15KB)
----README.md(3KB)
----nova()
--------attach_floating.py(3KB)
--------floating_usages.py(4KB)
--------get_nova_config.py(4KB)

网友评论