上一页 1 2 3 4 5 6 7 8 9 10 ··· 14 下一页
摘要: 一、简介 openstack的各个模块中,都有相应的客户端模块实现,其作用是为用户访问具体模块提供了接口,并且也作为模块之间相互访问的途径。Cinder也一样,有着自己的cinder-client。 二、argparse简单介绍 argparse是python用于解析命令行参数和选项的标准模块,作为 阅读全文
posted @ 2020-05-20 15:57 一切都是当下 阅读(597) 评论(0) 推荐(0) 编辑
摘要: 一般情况下,在函数中可以使用一个装饰器,但是有时也会有两个或两个以上的装饰器。多个装饰器装饰的顺序是从里到外(就近原则),而调用的顺序是从外到里(就远原则) 样例: def func1(func): print(1) def inner1(*args, **kwargs): print(2) res 阅读全文
posted @ 2020-05-19 17:13 一切都是当下 阅读(431) 评论(0) 推荐(0) 编辑
摘要: The environ dictionary is required to contain these CGI environment variables, as defined by the Common Gateway Interface specificationThe following v 阅读全文
posted @ 2020-05-15 11:05 一切都是当下 阅读(746) 评论(0) 推荐(0) 编辑
摘要: Openstack的开发,基本都使用这个image来测试,因为他比较小,只有10M。 镜像介绍 镜像的地址: https://launchpad.net/cirros/trunk/0.3.0/+download/cirros-0.3.0-x86_64-disk.img Cirros,是可以使用用户名 阅读全文
posted @ 2020-04-24 17:04 一切都是当下 阅读(5925) 评论(0) 推荐(1) 编辑
摘要: sudo dd if=/dev/zero of=/tmp/zero.img status=progresslinux下显示dd命令的进度:dd if=/dev/zero of=/tmp/zero.img bs=10M count=100000想要查看上面的dd命令的执行进度,可以使用下面几种方法:比 阅读全文
posted @ 2020-04-23 10:39 一切都是当下 阅读(3122) 评论(0) 推荐(0) 编辑
摘要: 一、cinder-api服务的入口函数 D:\code-program\cinder-ocata_cinder\cinder\api\contrib\admin_actions.py from cinder import volume self.volume_api = volume.API() c 阅读全文
posted @ 2020-04-08 16:17 一切都是当下 阅读(479) 评论(0) 推荐(0) 编辑
摘要: 一、cinder-api服务入口 D:\code-program\cinder-codejuno\api\contrib\admin_actions.py from cinder import volume class VolumeAdminController(AdminController): 阅读全文
posted @ 2020-04-07 22:58 一切都是当下 阅读(579) 评论(0) 推荐(0) 编辑
摘要: 以juno版本为基础,主要从消息的生产者-消费者模型及rpc client/server模型来分析cinder-volume是如何跟cinder-scheduler服务进行rpc通信的 1、cinder-scheduler服务的启动入口 cat /usr/bin/cinder-scheduler f 阅读全文
posted @ 2020-04-02 00:14 一切都是当下 阅读(643) 评论(0) 推荐(0) 编辑
摘要: 1. 前言首先尝试mount和umount文件系统,以便重放日志,修复文件系统,如果不行,再进行如下操作。fdisk -l 查看硬盘分区情况mount -l 查看文件系统挂载情况df -h 查看文件系统挂载和占有情况2. 检查文件系统做此步之前确保分区处于umount状态xfs_check /dev 阅读全文
posted @ 2020-03-16 16:31 一切都是当下 阅读(7200) 评论(0) 推荐(0) 编辑
摘要: 1、问题现象 生产环境上,对计算节点文件系统修复,导致某些虚机的镜像文件数据丢失,出现异常,最终造成虚机无法启动,查看对应计算节点的nova日志,报如下错误 nova-compute: File "/usr/lib/python2.7/site-packages/nova/virt/libvirt/ 阅读全文
posted @ 2020-03-16 15:24 一切都是当下 阅读(3465) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 9 10 ··· 14 下一页