首页 文章 精选 留言 我的

精选列表

搜索[AI测试],共10000篇文章
优秀的个人博客,低调大师

OpenStack入门修炼之neutron服务(计算节点)的部署与测试(13)

1.Neutron组件安装 [root@linux-node2 ~]# yum install -y openstack-neutron-linuxbridge ebtables ipset 2.配置通用组件 编辑/etc/neutron/neutron.conf文件并完成如下操作: [root@linux-node2 ~]# vim /etc/neutron/neutron.conf 在[DEFAULT]部分,配置RabbitMQ消息队列访问权限: [DEFAULT] ... transport_url = rabbit://openstack:openstack@192.168.56.11 在 “[DEFAULT]” 和 “[keystone_authtoken]” 部分,配置认证服务访问: [DEFAULT] ... auth_strategy = keystone [keystone_authtoken] ... auth_uri = http://192.168.56.11:5000 auth_url = http://192.168.56.11:35357 memcached_servers = 192.168.56.11:11211 auth_type = password project_domain_name = default user_domain_name = default project_name = service username = neutron password = neutron 在 [oslo_concurrency] 部分,配置锁路径: [oslo_concurrency] ... lock_path = /var/lib/neutron/tmp 查看所有配置项: [root@linux-node2 ~]# grep "^[a-z]" /etc/neutron/neutron.conf auth_strategy = keystone transport_url = rabbit://openstack:openstack@192.168.56.11 auth_uri = http://192.168.56.11:5000 auth_url = http://192.168.56.11:35357 memcached_servers = 192.168.56.11:11211 auth_type = password project_domain_name = default user_domain_name = default project_name = service username = neutron password = neutron lock_path = /var/lib/neutron/tmp 3.配置linuxbridge代理 控制节点的/etc/neutron/plugins/ml2/linuxbridge_agent.ini配置文件和计算节点是一样的,可以使用scp拷贝过去 [root@linux-node1 ~]# scp /etc/neutron/plugins/ml2/linuxbridge_agent.ini root@192.168.56.12:/etc/neutron/plugins/ml2/ 4.配置计算服务来使用网络服务 编辑/etc/nova/nova.conf文件并完成下面的操作: 在[neutron]部分,配置访问参数: [neutron] ... url = http://192.168.56.11:9696 auth_url = http://192.168.56.11:35357 auth_type = password project_domain_name = default user_domain_name = default region_name = RegionOne project_name = service username = neutron password = neutron 5.完成安装 重启计算服务: [root@linux-node2 ~]# systemctl restart openstack-nova-compute.service 启动Linuxbridge代理并配置它开机自启动: [root@linux-node2 ~]# systemctl enable neutron-linuxbridge-agent.service [root@linux-node2 ~]# systemctl start neutron-linuxbridge-agent.service 6.在node1上查看是否成功启用 [root@linux-node1 ~]# neutron agent-list [root@linux-node1 ~]# nova service-list 这两个出来的结果正常,才可以正常创建虚拟机 7.底层网络变化 使用brctl show查看此时node2上的虚拟机网络结构如下:linux-node2作为计算节点,对应的tap设备为:tap31d0e21e-bb,并且连接到bridge本文转自 IT_外卖小哥 51CTO博客,原文链接:http://blog.51cto.com/jinlong/2049695

优秀的个人博客,低调大师

OpenStack入门修炼之nova服务(计算节点)的部署与测试(11)

1.安装服务软件包 [root@linux-node2 ~]# yum install -y centos-release-openstack-newton [root@linux-node2 ~]# yum install -y openstack-nova-compute [root@linux-node2 ~]# yum install -y python-openstackclient [root@linux-node2 ~]# yum install -y openstack-selinux 2.修改配置文件 这里很多配置和node1上面的nova配置文件一样,所以我们先把node1上面的配置文件拷贝过来,然后再修改配置,具体执行过程如下: [root@linux-node1 ~]# scp /etc/nova/nova.conf 192.168.56.12:/etc/nova/ #注意权限,权限错误,服务会起不来 [root@linux-node2 ~]# vim /etc/nova/nova.conf 计算节点不需要使用数据库,此处删除数据库连接 connection=mysql+pymysql://nova:nova@192.168.56.11/nova_api connection=mysql+pymysql://nova:nova@192.168.56.11/nova 编辑/etc/nova/nova.conf文件并完成下面的操作: 在[vnc]部分,启用并配置远程控制台访问: [vnc] ... enabled = True vncserver_listen = 0.0.0.0 vncserver_proxyclient_address = 192.168.56.12 novncproxy_base_url = http://192.168.56.11:6080/vnc_auto.html 3.完成安装 (1)确定您的计算节点是否支持虚拟机的硬件加速。 [root@linux-node2 ~]# egrep -c '(vmx|svm)' /proc/cpuinfo 1 如果不支持,则显示为0 ,可以修改配置文件 1 #virt_type=kvm (2)启动计算服务及其依赖,并将其配置为随系统自动启动: [root@linux-node2 ~]# systemctl enable libvirtd.service openstack-nova-compute.service [root@linux-node2 ~]# systemctl start libvirtd.service openstack-nova-compute.service (3)在控制节点上(node1)查看 [root@linux-node1 ~]# source admin-openstack [root@linux-node1 ~]# nova service-list [root@linux-node1 ~]# openstack compute service list 版权声明:原创作品,谢绝转载。否则将追究法律责任 本文转自 IT_外卖小哥 51CTO博客,原文链接:http://blog.51cto.com/jinlong/2049661

优秀的个人博客,低调大师

关于项目自动化测试架构的改良计划 - DataProviderEngine架构

为了基于上文我们的xml文件的架构,对其进行解析,我自己写了一个DataProviderEngine作为解析xml文件的引擎,它主要的架构如下图: 具体细节如下,为了节省时间,我直接复制我的英文邮件内容了: Step 1: The XMLReader read the raw test suite xml file (now we adopt the xml file ,since it is not binary file and easy to edit and version control) Step 2: After reading ,XMLReader store the xml string into a string variable named “ originalXmlString “, this is our starting point. Step 3: The XIncludeConverter read the originalXmlString ,and resolve the XInclude namespace ,when it resolve this file ,it will replace all the <xi:include href> element with the actual xml fragments one by one. Step 4: After replacing all <xi:include> ,XIncludeConverter will store the new xml string into string variable named “convertedXmlString”. Step 5: The XMLManipulator read the convertedXmlString ,and remove all the user configuration part from such as <add_elements>,<update_elements>,<remove_elements> ,since these information is used for letting test case end user configure how to operate the base data to meet special requirements,so these part shouldn’t exist in final data. Step 6:After removing all config elements ,The XMLManipulator store the xml string into a new string variable named “ removeAllConfXmlString” Step 7:Since the configuration information are removed in Step 5-6 ,but they still exist in original xml string ,so XMLModifyInfoExtractor read all the <add_elements>,<update_elements>,<remove_elements> part from original xml string ,and smartly match which corresponding testcase data it will operate . Step 8:After analyzing all the user modification requirement ,the XMLModifyInfoExtractor store these modification info into 3 arraylists , addElementInfoList,updateElementInfoList,removeElementInfoList. Step 9:Now it is time to begin modifying the xml ,so the XMLManipulator read the “removeAllConfXmlString” in Step 6 . Step 10:Then XMLManipulator use all the modification info in Step 8 ,and do modification operation one by one : addElementToXML() ,updateElementFromXML(),removeElementFromXML() Step 11: after finish all the modification ,XMLManipulator store the final xml string into string variable named “modifiedXmlString” Step 12: Finally it convert the xml formatted string to a jsonobject and it now can be used as a data provider which can be consumed in each test case. 本文转自 charles_wang888 51CTO博客,原文链接:http://blog.51cto.com/supercharles888/1221708,如需转载请自行联系原作者

优秀的个人博客,低调大师

C++、Java、Objective-C、Swift 二进制兼容测试

鉴于目前动态库在iOS App中使用越来越广泛,二进制的兼容问题可能会成为一个令人头疼的问题。本文主要对比一下C++、Java、Objecive-C和Swift的二进制兼容问题。 iOS端动态库使用情况 iOS 8开始支持App使用动态库。 苹果对提交的App的__TEXT__段大小是有限制的,很多巨无霸App容易超出这个限制。iOS9之前每个架构的__TEXT__段比较小,iOS9放大到了500MB。详细情况请看:To submit an app for review。 开源库只能通过Podfile做源码引入,源码依赖,编译非常慢。 可持续构建也需要基于苹果的环境,比如使用Mac Pro/Mac Mini构建。Mac Pro比较昂贵,Mac mini性能不行,构建一次需要花费大量时间。 大型App为了加快编译速度,可以维护自己的私有仓库,把

资源下载

更多资源
Mario

Mario

马里奥是站在游戏界顶峰的超人气多面角色。马里奥靠吃蘑菇成长,特征是大鼻子、头戴帽子、身穿背带裤,还留着胡子。与他的双胞胎兄弟路易基一起,长年担任任天堂的招牌角色。

腾讯云软件源

腾讯云软件源

为解决软件依赖安装时官方源访问速度慢的问题,腾讯云为一些软件搭建了缓存服务。您可以通过使用腾讯云软件源站来提升依赖包的安装速度。为了方便用户自由搭建服务架构,目前腾讯云软件源站支持公网访问和内网访问。

Nacos

Nacos

Nacos /nɑ:kəʊs/ 是 Dynamic Naming and Configuration Service 的首字母简称,一个易于构建 AI Agent 应用的动态服务发现、配置管理和AI智能体管理平台。Nacos 致力于帮助您发现、配置和管理微服务及AI智能体应用。Nacos 提供了一组简单易用的特性集,帮助您快速实现动态服务发现、服务配置、服务元数据、流量管理。Nacos 帮助您更敏捷和容易地构建、交付和管理微服务平台。

Rocky Linux

Rocky Linux

Rocky Linux(中文名:洛基)是由Gregory Kurtzer于2020年12月发起的企业级Linux发行版,作为CentOS稳定版停止维护后与RHEL(Red Hat Enterprise Linux)完全兼容的开源替代方案,由社区拥有并管理,支持x86_64、aarch64等架构。其通过重新编译RHEL源代码提供长期稳定性,采用模块化包装和SELinux安全架构,默认包含GNOME桌面环境及XFS文件系统,支持十年生命周期更新。

用户登录
用户注册
修改密码
忘记密码