gushiren

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

2018年8月21日

摘要: 参考: https://github.com/csmart/ironic-python-agent/tree/buildroot/imagebuild/buildroot#buildroot-ironic-python-agent https://github.com/csmart/ipa-buil 阅读全文
posted @ 2018-08-21 18:43 gushiren 阅读(411) 评论(0) 推荐(0)

摘要: 查看readme To embed the oem/ directory into a CoreOS pxe image: Note: In order to have the ability to ssh into the created image, you need to pass ssh k 阅读全文
posted @ 2018-08-21 18:43 gushiren 阅读(288) 评论(0) 推荐(0)

摘要: Supported Distributions Distributions which are supported as a build host: Centos 6, 7 Debian 8 (“jessie”) Fedora 20, 21, 22 RHEL 6, 7 Ubuntu 14.04 (“ 阅读全文
posted @ 2018-08-21 18:40 gushiren 阅读(509) 评论(0) 推荐(0)

摘要: 环境ironic-api ironic-conductor,ironicclient均升级为Queens版本 官网说明API版本为1.38才支持rescue/unrescue,所以修改下openrc文件 export OS_PROJECT_DOMAIN_NAME=default export OS_ 阅读全文
posted @ 2018-08-21 17:59 gushiren 阅读(573) 评论(0) 推荐(0)

摘要: 一,Ironic简述 简而言之,OpenStack Ironic就是一个进行裸机部署安装的项目。 所谓裸机,就是指没有配置操作系统的计算机。从裸机到应用还需要进行以下操作: (1)硬盘RAID、分区和格式化; (2)安装操作系统、驱动程序; (3)安装应用程序。 Ironic实现的功能,就是可以很方 阅读全文
posted @ 2018-08-21 17:50 gushiren 阅读(7763) 评论(0) 推荐(0)

摘要: inspect阶段 执行inspect后ironic会发送PUT请求到 /v1/nodes/{node_ident}/provision , ironic-api 收到这个请求后会根据 body 的 target 字段做处理: class NodeStatesController(rest.Rest 阅读全文
posted @ 2018-08-21 17:49 gushiren 阅读(1147) 评论(0) 推荐(0)

摘要: IPA使用lookup和hearteat机制与Ironic Conductor进行交互,启动时agent给Conductor的vendor_passthru lookup endpoint(地址为/v1/drivers/{driver}/vendor_passthru/lookup)发送一个硬件的p 阅读全文
posted @ 2018-08-21 17:46 gushiren 阅读(855) 评论(0) 推荐(0)

摘要: 参考: https://docs.openstack.org/ironic/latest/contributor/states.html https://docs.openstack.org/ironic/latest/contributor/states.html enroll-manageabl 阅读全文
posted @ 2018-08-21 17:45 gushiren 阅读(479) 评论(0) 推荐(0)

摘要: 1、用户调用Nova的rescue函数 nova/virt/ironic/driver.py class IronicDriver(virt_driver.ComputeDriver): ...... ...... #导入ironicclient模块 def __init__(self, virta 阅读全文
posted @ 2018-08-21 17:43 gushiren 阅读(312) 评论(0) 推荐(0)

摘要: clean的动作会在provide和delete阶段才会触发 从代码分析: 对节点执行的node provide/deleted/clean会先发送到ironicclient ironicclient.call("node.set_provision_state", node.uuid,"delet 阅读全文
posted @ 2018-08-21 17:41 gushiren 阅读(862) 评论(0) 推荐(0)

摘要: 参考: http://blog.csdn.net/wanghuiict/article/details/52757359 ironic 整个部署流程中有两组映像,分别是 deploy 映像和 user 映像, 其中 deploy 映像用在 inspector 和 部署阶段, user 映像是用户需要 阅读全文
posted @ 2018-08-21 17:40 gushiren 阅读(1323) 评论(0) 推荐(0)

摘要: Ironic-Python-Agent 在PXE部署环境中,deploy模块是通过打开一个iSCSI设备,ironic-conductro将OS的镜像文件写到iSCSI的设备,所以deploy_ramdisk只是完成了iSCSI部署的工作,但开发者觉得既然已经把kernel和ramdisk传过去了, 阅读全文
posted @ 2018-08-21 17:39 gushiren 阅读(2208) 评论(0) 推荐(0)

摘要: 翻译官网救援/取消救援标准流程 1、用户在节点上调用Nova rescue 2、Nova ComputeManager调用virt驱动程序的rescue()方法,传入rescue_password作为参数 3、Virt驱动程序调用node.set_provision_state(RESCUE),并以 阅读全文
posted @ 2018-08-21 17:37 gushiren 阅读(313) 评论(0) 推荐(0)

摘要: https://linux.die.net/man/1/lshw lshw(Hardware Lister)是另外一个可以查看硬件信息的工具,不仅如此,它还可以用来做一些硬件的benchmark。 这个工具其实就是用/proc里面读取一些文件来显示相关的信息,它用到了如下文件和目录(下的文件): / 阅读全文
posted @ 2018-08-21 17:36 gushiren 阅读(468) 评论(0) 推荐(0)

摘要: 参考: http://blog.csdn.net/zhonglinzhang/article/details/74202562 http://blog.csdn.net/wanghuiict/article/details/52757359 http://blog.csdn.net/dingding 阅读全文
posted @ 2018-08-21 17:36 gushiren 阅读(316) 评论(0) 推荐(0)

摘要: 参考:https://cloud.tencent.com/document/product/213/12587使用以下命令下载 cloud-init 源码包 官网下载地址:https://launchpad.net/cloud-init/+download 安装 cloud-init 依赖包 安装 阅读全文
posted @ 2018-08-21 17:34 gushiren 阅读(1363) 评论(0) 推荐(0)

摘要: Retrieving the IPA logs will differ depending on which base image was used. Operating system that do not use systemd (ie Ubuntu 14.04) logs will be fo 阅读全文
posted @ 2018-08-21 17:34 gushiren 阅读(143) 评论(0) 推荐(0)

摘要: 1、ubuntu14.04和ubuntu16.04在裸机下启动cloud-init获取不到meta-data问题 目前裸机服务有八块网卡,四块千兆以太网卡,四块万兆光纤网卡,系统启动后,network-manager识别出网卡名,但是并未写入到/etc/network/interfaces网卡配置文 阅读全文
posted @ 2018-08-21 17:32 gushiren 阅读(114) 评论(0) 推荐(0)

摘要: 一、Ubuntu16.04 intel_rapl : no valid rapl domains found in packge0 echo 'blacklist intel_rapl' >> /etc/modprobe.d/modprobe.conf 二、Ubuntu12.04云主机重启后停留在g 阅读全文
posted @ 2018-08-21 17:30 gushiren 阅读(209) 评论(0) 推荐(0)

摘要: 一、CentOS7.1查看ip route有两条路由规则 1、metric值是指到达目的地需要的跳数,是表达该条路由连接质量的指标。当有多条到达相同目的地的路由记录时,路由器会采用metric值小的那条路由。 所以这两条相同路由规则,会采用上面一条(metric为0),不会对实际产生影响。 2、此问 阅读全文
posted @ 2018-08-21 17:27 gushiren 阅读(897) 评论(0) 推荐(0)

摘要: 一、NetworkManager启动问题 1、由于以后要支持e1000版虚拟化网卡,所有centos6镜像均按照NetworkManager服务,并设置开机自启动 2、虚机启动时,默认是NetworkManager服务先启动,后续启动cloud-init,但是NetworkManager启动过程中还 阅读全文
posted @ 2018-08-21 17:26 gushiren 阅读(685) 评论(0) 推荐(0)

摘要: 1、远程桌面开启,应预先开启windows防火墙,并放行“远程桌面”(TCP 3389)端口,防止用户自行开启防火墙时操作错误。 2、防火墙高级安全-需放行ICMP 3、补丁更新,更新完重启 4、本地安全策略-安全审核 5、日志大小限制,应用程序为16M,安全性为80M 6、本地安全策略-密码策略 阅读全文
posted @ 2018-08-21 17:22 gushiren 阅读(276) 评论(0) 推荐(0)

摘要: @echo off title Auto Install color 1F ::CloudBase-Init echo. msiexec /i \\192.168.122.47\cloudbase\Cloud0911.msi /qb if %errorlevel%==0 (echo CloudBase-Init --OK ) else (echo Cloudbase-Init -- err... 阅读全文
posted @ 2018-08-21 17:17 gushiren 阅读(584) 评论(0) 推荐(0)

摘要: 【Windows 添加自定义服务方法】: 1、使用Windows服务工具instsrv.exe与srvany.exe: 参考:https://wenku.baidu.com/view/44a6e6f8941ea76e58fa045a.html 2、SC命令创建、开启、配置、关闭服务: 参考:http 阅读全文
posted @ 2018-08-21 17:16 gushiren 阅读(6108) 评论(0) 推荐(0)

摘要: 静默安装又称为无人值守安装,软件以默认值自动进行安装。将软件包放在共享,编写批处理可批量自动安装网络上的软件,重装系统后一键装机!实现原理很简单,就是软件打包程序预留了安装参数,安装时可加上。当查不到或没预留静默安装参数时,只能手动点击下一步进行安装。查看安装参数与查看dos命令帮助相同 阅读全文
posted @ 2018-08-21 17:16 gushiren 阅读(2762) 评论(0) 推荐(0)

摘要: 目前所支持的windows镜像都是未激活状态,未激活状态下很多功能无法使用。 以后将要实现的功能是,windows虚机启动后,网络正常后能与KMS服务器通信,自动激活key 目前想到两种办法: 1、bat批处理脚本,开启自动运行,利用slmgr激活 2、cloudbase-init的LocalScr 阅读全文
posted @ 2018-08-21 17:15 gushiren 阅读(596) 评论(0) 推荐(0)

摘要: 1.CPU架构 可见链接:glance 修改虚拟机CPU的架构,以满足特殊要求 目的:修改虚拟机CPU架构 方法:创建虚拟机之前,编辑虚拟机使用的Image 可以设置的架构可参考QEMU支持的架构类型 2.磁盘总线类型 OpenStack默认使用virtio的磁盘总线类型,但对于部分较老的操作系统版 阅读全文
posted @ 2018-08-21 17:12 gushiren 阅读(528) 评论(0) 推荐(0)

摘要: &(逻辑与) & (大于) > "(双引号) " '(单引号) ' [/size] 阅读全文
posted @ 2018-08-21 17:12 gushiren 阅读(260) 评论(0) 推荐(0)

摘要: 1、固件类型 OpenStack虚拟机默认使用BIOS方式的启动方式,可以设置使用UEFI的固件类型,支持更多的功能 UEFI介绍 UEFI 目的:使用UEFI方式启动虚拟机 方法: (1)制作可以在UEFI模式下启动的镜像 (2)在计算节点上安装支持UEFI的软件包 (3)上传镜像并设置属性 2、 阅读全文
posted @ 2018-08-21 17:10 gushiren 阅读(1059) 评论(0) 推荐(0)

摘要: 1、计算节点执行,intances-0000xxxx可替换为id,依靠qga传入新密码,立即生效,KVM自带 virsh set-user-password instance-0000xxxx --user root --password 123456 立即生效 2、控制节点执行,更新元数据,此方法 阅读全文
posted @ 2018-08-21 17:08 gushiren 阅读(53) 评论(0) 推荐(0)

摘要: UEFI,全称Unified Extensible Firmware Interface,即“统一的可扩展固件接口”,是一种详细描述全新类型接口的标准,是适用于电脑的标准固件接口,旨在代替BIOS(基本输入/输出系统)。此标准由UEFI联盟中的140多个技术公司共同创建,其中包括微软公司。UEFI旨 阅读全文
posted @ 2018-08-21 17:08 gushiren 阅读(613) 评论(0) 推荐(0)

摘要: #!/bin/bash version=0.1 get_highest_mask() { cpu_nums=$1 if [ $cpu_nums -gt 32 ]; then mask_tail="" mask_low32="00000000" idx=$((cpu_nums/32)) cpu_res 阅读全文
posted @ 2018-08-21 17:03 gushiren 阅读(34) 评论(0) 推荐(0)

摘要: deb http://debian.ustc.edu.cn/ubuntu/ xenial main multiverse restricted universe deb http://debian.ustc.edu.cn/ubuntu/ xenial-backports main multivers 阅读全文
posted @ 2018-08-21 17:02 gushiren 阅读(129) 评论(0) 推荐(0)

摘要: deb http://debian.ustc.edu.cn/ubuntu/ trusty main multiverse restricted universe deb http://debian.ustc.edu.cn/ubuntu/ trusty-backports main multivers 阅读全文
posted @ 2018-08-21 17:02 gushiren 阅读(139) 评论(0) 推荐(0)

摘要: deb http://debian.ustc.edu.cn/ubuntu/ precise main multiverse restricted universe deb http://debian.ustc.edu.cn/ubuntu/ precise-backports main multive 阅读全文
posted @ 2018-08-21 17:01 gushiren 阅读(130) 评论(0) 推荐(0)

摘要: deb http://mirrors.ustc.edu.cn/debian/ jessie main contrib non-free deb-src http://mirrors.ustc.edu.cn/debian/ jessie main contrib non-free deb http://mirrors.ustc.edu.cn/debian/ jessie-updates mai... 阅读全文
posted @ 2018-08-21 17:00 gushiren 阅读(264) 评论(0) 推荐(0)

摘要: #!/bin/bash sed -i 's/PermitRootLogin without-password/PermitRootLogin yes/g' /etc/ssh/sshd_config sed -i 's/#PasswordAuthentication yes/PasswordAuthe 阅读全文
posted @ 2018-08-21 17:00 gushiren 阅读(131) 评论(0) 推荐(0)

摘要: #!/bin/bash sed -i 's/#PermitRootLogin yes/PermitRootLogin yes/g' /etc/ssh/sshd_config sed -i 's/#UseDNS no/UseDNS no/g' /etc/ssh/sshd_config sed -i 's/GSSAPIAuthentication yes/GSSAPIAuthentication n... 阅读全文
posted @ 2018-08-21 16:59 gushiren 阅读(106) 评论(0) 推荐(0)

摘要: # $OpenBSD: sshd_config,v 1.80 2008/07/02 02:24:18 djm Exp $ # This is the sshd server system-wide configuration file. See # sshd_config(5) for more i 阅读全文
posted @ 2018-08-21 16:59 gushiren 阅读(368) 评论(0) 推荐(0)

摘要: #!/bin/bash sed -i 's/PermitRootLogin without-password/PermitRootLogin yes/g' /etc/ssh/sshd_config sed -i 's/#PasswordAuthentication yes/PasswordAuthentication yes/g' /etc/ssh/sshd_config sed -i 's/#... 阅读全文
posted @ 2018-08-21 16:58 gushiren 阅读(102) 评论(0) 推荐(0)

摘要: #!/bin/bash sed -i 's/PermitRootLogin without-password/PermitRootLogin yes/g' /etc/ssh/sshd_config sed -i 's/#PasswordAuthentication yes/PasswordAuthentication yes/g' /etc/ssh/sshd_config sed -i 's/#... 阅读全文
posted @ 2018-08-21 16:58 gushiren 阅读(77) 评论(0) 推荐(0)

摘要: #!/bin/bash sed -i 's/PermitRootLogin prohibit-password/PermitRootLogin yes/g' /etc/ssh/sshd_config sed -i 's/#PasswordAuthentication yes/PasswordAuthentication yes/g' /etc/ssh/sshd_config sed -i 's/... 阅读全文
posted @ 2018-08-21 16:58 gushiren 阅读(100) 评论(0) 推荐(0)

摘要: #!/bin/bash sed -i 's/#PermitRootLogin yes/PermitRootLogin yes/g' /etc/ssh/sshd_config sed -i 's/#UseDNS yes/UseDNS no/g' /etc/ssh/sshd_config sed -i 's/GSSAPIAuthentication yes/GSSAPIAuthentication ... 阅读全文
posted @ 2018-08-21 16:57 gushiren 阅读(143) 评论(0) 推荐(0)

摘要: 最近在研究虚拟机的镜像格式,就写个笔记记录一下这些东东。 在linux下,虚拟机的选择方式有很多,比如vmware for linux,virtual box,还有qemu,在以前,使用qemu的人不多,主要是使用起来有些麻烦,但现在随着Openstack的兴起,qemu也得到了很大的发展,现在在F 阅读全文
posted @ 2018-08-21 16:56 gushiren 阅读(1740) 评论(0) 推荐(0)

摘要: 此tdl和auto文件只可定义windows disk bus以ide模式启动,不支持virtio。 <template> <name>Windows-gushiren</name> <os> <name>Windows</name> <version>2008</version> <arch>x8 阅读全文
posted @ 2018-08-21 16:53 gushiren 阅读(455) 评论(7) 推荐(0)

摘要: 参考链接: http://blog.csdn.net/gcogle/article/details/52767135http://tlinux.blog.51cto.com/7288656/1749749/http://blog.csdn.net/coolper/article/details/51 阅读全文
posted @ 2018-08-21 16:51 gushiren 阅读(215) 评论(0) 推荐(0)

摘要: <template> <name>Debian8.7-zxy</name> <os> <name>Debian</name> <version>8</version> <arch>x86_64</arch> <install type='iso'> <iso>file:///data/md0/DVD 阅读全文
posted @ 2018-08-21 16:48 gushiren 阅读(178) 评论(0) 推荐(0)

摘要: 参考链接: https://github.com/clalancette/oz/wiki/Oz-template-description-language https://github.com/clalancette/oz/wiki/oz-install http://dl528888.blog.5 阅读全文
posted @ 2018-08-21 16:37 gushiren 阅读(518) 评论(0) 推荐(0)

摘要: 参考 http://linuxblind.blog.51cto.com/7616603/1655550/ http://www.chenshake.com/oz-making-centos-mirror/ http://www.bubuko.com/infodetail-2167558.html h 阅读全文
posted @ 2018-08-21 16:28 gushiren 阅读(214) 评论(0) 推荐(0)

摘要: 执行成功 错误信息解决办法 libvirt.libvirtError: Failed to connect socket to '/var/run/libvirt/libvirt-sock': No such file or directory 解决方法: 查看libvirt进程是否启动: ps - 阅读全文
posted @ 2018-08-21 16:24 gushiren 阅读(607) 评论(0) 推荐(0)

摘要: 1、之前通过修改auto文件和windows.py文件可实现自动安装OS,但是disk bus只能以IDE模式启动,进入系统自动下载运行bat文件,安装cloudbase-init和qga,及清理日志等操作 2、winodws2008.tdl无法定义file注入系统 3、通过Oz官方社区了解到,之前 阅读全文
posted @ 2018-08-21 16:23 gushiren 阅读(289) 评论(0) 推荐(0)

摘要: 参考:https://www.douban.com/note/270359374/?type=likehttp://blog.51cto.com/molinux/548247http://debugo.com/kickstart-install-centos/https://www.cnblogs.com/zwei0227/p/6561897.htmlhttp://blog.51cto.com/c... 阅读全文
posted @ 2018-08-21 16:22 gushiren 阅读(793) 评论(0) 推荐(0)

摘要: @echo off title Auto Install color 1F ::CloudBase-Init echo. msiexec /i \\192.168.122.47\cloudbase\Cloud0911.msi /qb if %errorlevel%==0 (echo CloudBase-Init --OK ) else (echo Cloudbase-Init -- err... 阅读全文
posted @ 2018-08-21 16:21 gushiren 阅读(203) 评论(0) 推荐(0)

摘要: centos7GRUB_TIMEOUT=5 GRUB_DEFAULT=saved GRUB_DISABLE_SUBMENU=true GRUB_TERMINAL_OUTPUT="console" GRUB_CMDLINE_LINUX="crashkernel=auto console=tty0 console=ttyS0,115200n8" GRUB_DISABLE_RECOVERY="true... 阅读全文
posted @ 2018-08-21 16:20 gushiren 阅读(238) 评论(0) 推荐(0)

摘要: network: {config: disabled} 阅读全文
posted @ 2018-08-21 16:19 gushiren 阅读(519) 评论(0) 推荐(0)

摘要: 阅读全文
posted @ 2018-08-21 16:19 gushiren 阅读(221) 评论(0) 推荐(0)

摘要: user: default disable_root: false preserve_hostname: false cloud_init_modules: - bootcmd - resizefs - set_hostname #- update_hostname - update_etc_hosts - ca-certs - rsyslog - ssh cloud_co... 阅读全文
posted @ 2018-08-21 16:18 gushiren 阅读(432) 评论(0) 推荐(0)

摘要: users: - default disable_root: 0 ssh_pwauth: 1 locale_configfile: /etc/sysconfig/i18n mount_default_fields: [~, ~, 'auto', 'defaults,nofail', '0', '2'] resize_rootfs_tmp: /dev ssh_deletekeys: ... 阅读全文
posted @ 2018-08-21 16:16 gushiren 阅读(566) 评论(0) 推荐(0)

摘要: 1、云计算的本质在于将硬件资源软件化,以达到快速按需交付的效果,最基本的计算、存储和网络基础元素并没有因此改变。就计算而言,CPU、RAM 和 DISK等依旧是必不可少的核心资源。 从源代码和数据库相关表可以得出,Nova 统计计算节点的四类计算资源: CPU: 包括 vcpus(节点物理 cpu 阅读全文
posted @ 2018-08-21 16:15 gushiren 阅读(1765) 评论(0) 推荐(0)

摘要: #!/bin/sh echo $# [ $# < 4 ] && { echo "error" exit 1 } instance_name=$1 instance_ip=$2 vdb_volume_id=$3 hypervisor_host=$4 flavor_id=026a4f21-d047-4aa2-aeab-a0708b70fa10 first_net_... 阅读全文
posted @ 2018-08-21 16:15 gushiren 阅读(166) 评论(0) 推荐(0)

摘要: 今天在WingIDE下写了个脚本,传到服务器执行后提示: 分析:这是不同系统编码格式引起的:在windows系统中编辑的.sh .py文件可能有不可见字符,所以在Linux系统下执行会报以上异常信息。一般是因为windows行结尾和linux行结尾标识不同造成的。解决:1)在windows下转换:  阅读全文
posted @ 2018-08-21 15:48 gushiren 阅读(301) 评论(0) 推荐(0)

摘要: 查看浮动ip的id [root@10e131e69e14 oz]# openstack floating ip show 36.111.0.197 +---------------------+--------------------------------------+ | Field | Value |... 阅读全文
posted @ 2018-08-21 15:47 gushiren 阅读(836) 评论(0) 推荐(0)

摘要: http://www.cnblogs.com/chenjiahe/category/845519.html resize convert 阅读全文
posted @ 2018-08-21 15:45 gushiren 阅读(227) 评论(0) 推荐(0)

摘要: 安装 导入 阅读全文
posted @ 2018-08-21 15:43 gushiren 阅读(215) 评论(0) 推荐(0)

摘要: 1、查看原有网卡信息 2、临时添加新网卡 3、查看 #virsh domiflist snale Interface Type Source Model MAC vnet0 bridge br0 virtio 52:54:00:8c:b8:60 vnet1 bridge br0 - 52:54:00 阅读全文
posted @ 2018-08-21 15:42 gushiren 阅读(1270) 评论(0) 推荐(0)

摘要: slmgr /skms 106.0.6.209 slmgr /ato 1、查看当前系统是否永久激活,命令的作用是查看当前许可证状态的截止日期 slmgr.vbs -xpr 查看Windows正式版产品密钥及证书信息 slmgr.vbs -dli 显示详细的激活信息,包括:系统版本、激活ID、安装ID、部分产品密钥、许可证状态、剩余 Windows 重置计数等 slmgr.vbs -d... 阅读全文
posted @ 2018-08-21 15:40 gushiren 阅读(895) 评论(0) 推荐(0)

摘要: 编排 编排,顾名思义,就是按照一定的目的依次排列。在 IT 的世界里头,一个完整的编排一般包括设置服务器上机器、安装 CPU、内存、硬盘、通电、插入网络接口、安装操作系统、配置操作系统、安装中间件、配置中间件、安装应用程序、配置应用发布程序。对于复杂的需要部署在多台服务器上的应用,需要重复这个过程, 阅读全文
posted @ 2018-08-21 15:38 gushiren 阅读(1724) 评论(0) 推荐(0)

摘要: 作为OpenStack中的编排引擎,Heat能够出色的完成编排任务,井井有条地管理编排出来的资源。但同时,Heat也是一个出色的应用部署引擎,它提供了一套内置的框架去完成一系列复杂的应用部署任务。 使用Heat来部署应用的优势 Heat是OpenStack里面的原生服务,大部分的发行版都会提供这个服 阅读全文
posted @ 2018-08-21 15:37 gushiren 阅读(364) 评论(0) 推荐(0)

摘要: 可以用自带的模板生成一个实例,实例包含一些软件,比如WordPress博客系统等 阅读全文
posted @ 2018-08-21 15:35 gushiren 阅读(169) 评论(0) 推荐(0)

摘要: Heat 目前支持两种格式的模板,一种是基于 JSON 格式的 CFN 模板;另外一种是基于 YAML 格式的 HOT 模板。CFN 模板主要是为了保持对 AWS 的兼容性。HOT 模板是 Heat 自有的,资源类型更加丰富,更能体现出 Heat 特点的模板。 一个典型的 HOT 模板由下列元素构成 阅读全文
posted @ 2018-08-21 15:35 gushiren 阅读(750) 评论(0) 推荐(0)

摘要: 在包含Orchestration服务的环境中,可以创建启动实例的堆栈 创建yam文件 阅读全文
posted @ 2018-08-21 15:34 gushiren 阅读(204) 评论(0) 推荐(0)

摘要: Heat 是一个基于模板来编排复合云应用的服务。 它目前支持亚马逊的 CloudFormation 模板格式,也支持 Heat 自有的 Hot 模板格式。模板的使用简化了复杂基础设施,服务和应用的定义和部署。模板支持丰富的资源类型,不仅覆盖了常用的基础架构,包括计算、网络、存储、镜像,还覆盖了像 C 阅读全文
posted @ 2018-08-21 15:32 gushiren 阅读(1786) 评论(0) 推荐(0)

摘要: 虚机all in one环境测试安装heat 阅读全文
posted @ 2018-08-21 15:31 gushiren 阅读(344) 评论(0) 推荐(0)

摘要: glance image-create --name "centos68-test" --file centos68.dsk \ --disk-format raw --container-format bare --visibility public --progress \ --property hw_qemu_guest_agent=yes \ --property os_type="l... 阅读全文
posted @ 2018-08-21 15:30 gushiren 阅读(3195) 评论(0) 推荐(0)

摘要: Image service property keys https://docs.openstack.org/python-glanceclient/latest/cli/property-keys.html 阅读全文
posted @ 2018-08-21 15:29 gushiren 阅读(342) 评论(0) 推荐(0)

摘要: cobbler 安装 一:定义yum源 wget -c -O CentOS-Base.repo http://mirrors.163.com/.help/CentOS6-Base-163.repo rpm -Uvh http://mirrors.ustc.edu.cn/fedora/epel/6/x 阅读全文
posted @ 2018-08-21 15:28 gushiren 阅读(220) 评论(0) 推荐(0)

摘要: 由于 http://1.2.3.4 不是一个有效的 apt 源,安装肯定会失败,我们可以在 /var/log/cloud-init.log 看到失败的信息。 cloud-init 默认会将 instance 的名字设置为 hostname。但这样不太方便,有时希望能够将二者分开,可利用 cloud- 阅读全文
posted @ 2018-08-21 15:26 gushiren 阅读(813) 评论(0) 推荐(0)

摘要: Cloudinit通过云平台的metadata服务或ConfigDrive等数据源拿到该userdata后,首先会对其进行切分,并分别供各模块处理。Cloud中所有模块都放在/usr/lib/python2.6/site-packages/cloudinit/config。有配置文件可知主要分为如下 阅读全文
posted @ 2018-08-21 15:24 gushiren 阅读(2301) 评论(0) 推荐(0)

摘要: cloud-init 是 linux 的一个工具,当系统启动时,cloud-init 可从 nova metadata 服务或者 config drive 中获取 metadata,完成包括但不限于下面的定制化工作: 设置 default locale 设置 hostname 添加 ssh keys 阅读全文
posted @ 2018-08-21 15:23 gushiren 阅读(327) 评论(0) 推荐(0)

摘要: 源码流程说明 - 程序首先判断操作系统类型,加载对应的模块 - 加载服务,服务共分为四种: 'cloudbaseinit.metadata.services.httpservice.HttpService', 'cloudbaseinit.metadata.services.configdrive. 阅读全文
posted @ 2018-08-21 15:21 gushiren 阅读(4118) 评论(0) 推荐(0)

摘要: https://www.ibm.com/developerworks/cn/cloud/library/1509_liukg_openstackmeta/ http://mathslinux.org/?p=591 http://blog.csdn.net/dingdingwolf/article/d 阅读全文
posted @ 2018-08-21 15:14 gushiren 阅读(1008) 评论(0) 推荐(0)

摘要: 1、Centos和redhat,Fedora等版本无须设置,直接在cloud.cfg指定,默认是EC2 datasource_list: ['ConfigDrive','OpenStack'] 2、ubuntu和debian,suse等版本需要dpkg设置 dpkg-reconfigure clou 阅读全文
posted @ 2018-08-21 14:42 gushiren 阅读(807) 评论(0) 推荐(0)

摘要: 官方下载:https://launchpad.net/cloud-utils rpm包下载地址:http://rpmfind.net/linux/rpm2html/search.php?query=cloud-utils This package provides a useful set of u 阅读全文
posted @ 2018-08-21 14:41 gushiren 阅读(1349) 评论(0) 推荐(0)

摘要: 新做的centos7.4镜像的cloud-init安装好之后,修改密码失败,但是同样的配置文件在7.2上的是正常的,对比了一下版本,centos7.4上的是0.7.9,7.2上的是0.7.5,经过调试发现是0.7.9版本的cloud-init有bug导致的,发现问题之后通过降级到0.7.5版本解决。 阅读全文
posted @ 2018-08-21 14:40 gushiren 阅读(2566) 评论(0) 推荐(0)

摘要: http://cloudinit.readthedocs.io/en/latest/topics/examples.html介绍: cloud-init是专为云环境中虚拟机的初始化而开发的工具,它从各种数据源读取相关数据并据此对虚拟机进行配置。 向一台数据服务器获取元数据(meta data)和用户 阅读全文
posted @ 2018-08-21 14:40 gushiren 阅读(28052) 评论(0) 推荐(0)

摘要: element proliant-tools会在ipa ramdisk中安装一个rpm包hpssacli(HP的RAID管理工具),和一个python module proliantutils(里面ProliantHardwareManager继承了ironic_python_agent.hardw 阅读全文
posted @ 2018-08-21 14:31 gushiren 阅读(418) 评论(0) 推荐(0)

摘要: 新浪大神推荐使用element proliant-tools制作deploy image。element proliant-tools会在ipa ramdisk中安装一个rpm包hpssacli(HP的RAID管理工具),和一个python module proliantutils(里面Prolia 阅读全文
posted @ 2018-08-21 14:29 gushiren 阅读(1046) 评论(0) 推荐(0)

摘要: http://www.cnblogs.com/zhangxinglong/p/5585139.html 阅读全文
posted @ 2018-08-21 14:27 gushiren 阅读(1123) 评论(0) 推荐(0)

摘要: hp机器均已在装OS之前划好raid,统一规格为2*480G SSD, 12*4T SATA ,2*1.6T SSD,其中2*480G SSD做系统盘,划分raid1 已知disk controller为 那么target_raid_config可以配置为 切换节点装到manageable状态,然后 阅读全文
posted @ 2018-08-21 11:15 gushiren 阅读(232) 评论(0) 推荐(0)

摘要: 常用查看命令:待有dell裸机环境会详细列出 参考: https://www.cnblogs.com/yjken/articles/3843216.htmlhttp://blog.51cto.com/chaichuan/2094148https://www.cnblogs.com/zyd112/p/ 阅读全文
posted @ 2018-08-21 11:13 gushiren 阅读(245) 评论(0) 推荐(0)

摘要: 基于官方的coreos ramdisk安装dell raid管理工具,其版本为debian8 jessie 阅读全文
posted @ 2018-08-21 11:12 gushiren 阅读(320) 评论(0) 推荐(0)

摘要: 基于官方的coreos ramdisk安装hp raid管理工具,其版本为debian8 或者编译安装 参考: https://lvii.gitbooks.io/handbook/content/rackserver/hp.htmlhttps://lvii.gitbooks.io/handbook/ 阅读全文
posted @ 2018-08-21 11:11 gushiren 阅读(804) 评论(0) 推荐(0)

摘要: 本节内容 元组 元组其实跟列表差不多,也是存一组数,只不是它一旦创建,便不能再修改,所以又叫只读列表 字符串操作 特性:不可修改 字典操作 字典一种key - value 的数据类型,使用就像我们上学用的字典,通过笔划、字母来查对应页的详细内容。 阅读全文
posted @ 2018-08-21 10:55 gushiren 阅读(193) 评论(0) 推荐(0)