摘要:import glob glob.glob(r'c:\program files\m*')
阅读全文
开源、架构、Linux C/C++/python AI BI 运维开发自动化运维。 春风桃李花 秋雨梧桐叶。“力尽不知热 但惜夏日长”。夏不惜,秋不获。@ruiY--秦瑞python爬虫,C编程,嵌入式开发.hadoop大数据,桉树,onenebula云计算架构.linux运维及驱动开发. |
02 2016 档案
摘要:import glob glob.glob(r'c:\program files\m*')
阅读全文
摘要:今天想debug一下nova-compute进程, 用devstack迅速安装之后, kill掉nova-compute进程,然后修改nova/cmd/__init__.py文件的 “eventlet.monkey_patch(os=False)”为“eventlet.monkey_patch(al
阅读全文
摘要:os.path.join 将多路径组合成目录 os.path.split完全分离给定的目录路径为目录 def split_fully(path): parent_path,name = os.path.split(path) if name == "": return (parrent_path,)
阅读全文
摘要:#!/bin/bash # To use an OpenStack cloud you need to authenticate against the Identity # service named keystone, which returns a **Token** and **Servic
阅读全文
摘要:/proc/sys/net/core/rmem_max 最大TCP接收窗口(字节)((134217728bytes)/1024kb)/1024MB =128/?MB/etc/sysctl.conf配置语句net.core.rmem_max =increase the length of the pr
阅读全文
摘要:net.nf_conntrack_max = 65536000net.netfilter.nf_conntrack_tcp_timeout_established = 1200net.ipv4.tcp_fin_timeout = 30net.ipv4.tcp_keepalive_time = 120
阅读全文
摘要:try语句设立了这样一种情形,其中try语句后面可以跟一个except语句每个except语句都处理错误,错误也被正式的称为异常,当python对try语句中的代码求值时会抛出异常,而不是是程序失败 首先使用except处理一种类型的错误列如在试图检查冰箱时得到的keyError有多种类型的异常,每
阅读全文
摘要:控制节点nova配置增加 vif_plugging_is_fatal = Falsevif_plugging_timeout = 0scheduler_default_filters = AllHostsFilter 计算节点nova start_guests_on_host_boot = True
阅读全文
摘要:Failed to allocate the network(s), not rescheduling 在计算节点的/etc/nova/nova.conf中添加下面两句 #Fail instance boot if vif plugging fails vif_plugging_is_fatal =
阅读全文
摘要:物理节点hosts解析配置 neutron网络 根据多套云平台架构搭建及运维知--openstack的管理网络流量非常较大!!! <二.>nova-network
阅读全文
摘要:conatenationconcatenation许多将不同的字符串串联起来的方法用print()函数连接字符串默认情况,当要在一个语句中打印多个字符串print()函数会周全的插入空格没有必要使用空格分隔符只需要将不同的字符串隔开syntaxError:invalid character in i
阅读全文
摘要:这几天在《云头条》上看到两篇关于安全的文章: 《云计算会革安全的命?》《Gartner认为安全性将取代成本和敏捷性成为政府部门采用云服务的首要原因》 对两篇文章的观点基本赞同: 云计算对网络厂商的冲击非常明显,思科最近一两年日子过的就很艰难,许多传统的安全产品,最终预计也会消失。 政府及传统行业,不
阅读全文
摘要:用import从外部模块获取函数并且为自己程序所用编写自己的模块模块是程序任何Python程序都可以作为模块导入名字很重要!syntaxError invalid syntax;我们只是告诉解释器 除了默认的目录中寻找 还需要目录中寻找模块导入自己的模块模块名是程序的 文件名.pyc为扩展名文件 平
阅读全文
摘要:ERROR (ClientException): Unexpected API Error
阅读全文
摘要:nova image-list ERROR (ClientException): Unexpected API Error. Please report this at http://bugs.launchpad.net/nova/ and attach the Nova API log if po
阅读全文
|