2024年Devstack单节点环境实战配置_devstack local,2024年最新软件测试开发面试书籍推荐

img
img

网上学习资料一大堆,但如果学到的知识不成体系,遇到问题时只是浅尝辄止,不再深入研究,那么很难做到真正的技术提升。

需要这份系统化的资料的朋友,可以戳这里获取

一个人可以走的很快,但一群人才能走的更远!不论你是正从事IT行业的老鸟或是对IT行业感兴趣的新人,都欢迎加入我们的的圈子(技术交流、学习资源、职场吐槽、大厂内推、面试辅导),让我们一起学习成长!

use TryStack git mirror

GIT_BASE=http://git.trystack.cn
NOVNC_REPO=http://git.trystack.cn/kanaka/noVNC.git
SPICE_REPO=http://git.trystack.cn/git/spice/spice-html5.git

#OFFLINE=True
RECLONE=True

Define images to be automatically downloaded during the DevStack built process.

DOWNLOAD_DEFAULT_IMAGES=False
IMAGE_URLS=“http://images.trystack.cn/cirros/cirros-0.3.4-x86_64-disk.img”

HOST_IP=192.168.1.6

Credentials

DATABASE_PASSWORD=pass
ADMIN_PASSWORD=pass
SERVICE_PASSWORD=pass
SERVICE_TOKEN=pass
RABBIT_PASSWORD=pass

HORIZON_BRANCH=stable/mitaka
KEYSTONE_BRANCH=stable/mitaka
NOVA_BRANCH=stable/mitaka
NEUTRON_BRANCH=stable/mitaka
GLANCE_BRANCH=stable/mitaka
CINDER_BRANCH=stable/mitaka

#keystone
KEYSTONE_TOKEN_FORMAT=UUID

##Heat
HEAT_BRANCH=stable/mitaka
enable_service h-eng h-api h-api-cfn h-api-cw

Swift

SWIFT_BRANCH=stable/mitaka
ENABLED_SERVICES+=,s-proxy,s-object,s-container,s-account
SWIFT_REPLICAS=1
SWIFT_HASH=011688b44136573e209e

Enabling Neutron (network) Service

disable_service n-net
enable_service q-svc
enable_service q-agt
enable_service q-dhcp
enable_service q-l3
enable_service q-meta
enable_service q-metering
enable_service neutron

Neutron options

Q_USE_SECGROUP=True
FLOATING_RANGE=“192.168.1.0/24”
FIXED_RANGE=“10.0.0.0/24”
Q_FLOATING_ALLOCATION_POOL=start=192.168.1.10,end=192.168.1.20
PUBLIC_NETWORK_GATEWAY=“192.168.1.1”
Q_L3_ENABLED=True
PUBLIC_INTERFACE=eth0
Q_USE_PROVIDERNET_FOR_PUBLIC=True
OVS_PHYSICAL_BRIDGE=br-ex
PUBLIC_BRIDGE=br-ex
OVS_BRIDGE_MAPPINGS=public:br-ex

#VLAN configuration.

Q_PLUGIN=ml2
ENABLE_TENANT_VLANS=True

Logging

LOGFILE=/opt/stack/logs/stack.sh.log
VERBOSE=True
LOG_COLOR=True
SCREEN_LOGDIR=/opt/stack/logs


以下配置文件出于测试阶段,部署在我笔记本上的时候还是有些问题。



[[local|localrc]]

use TryStack git mirror

GIT_BASE=http://git.trystack.cn
NOVNC_REPO=http://git.trystack.cn/kanaka/noVNC.git
SPICE_REPO=http://git.trystack.cn/git/spice/spice-html5.git

#Define branches
HORIZON_BRANCH=stable/mitaka
KEYSTONE_BRANCH=stable/mitaka
NOVA_BRANCH=stable/mitaka
NEUTRON_BRANCH=stable/mitaka
GLANCE_BRANCH=stable/mitaka
CINDER_BRANCH=stable/mitaka
CEILOMETER_BRANCH=stable/mitaka
SWIFT_BRANCH=stable/mitaka
#OFFLINE=True
RECLONE=True

#Directory
DEST=/var/openstack

#Define target server IP address
HOST_IP=192.168.1.6

Define images to be automatically downloaded during the DevStack built process.

DOWNLOAD_DEFAULT_IMAGES=False
IMAGE_URLS=“http://foo.bar.com/image.qcow,”
IMAGE_URLS+=“http://foo.bar.com/image2.qcow”
IMAGE_URLS+=“http://mirrors.aliyun.com/centos/7/isos/x86_64/CentOS-7-x86_64-Minimal-1511.iso”

Credentials

DATABASE_PASSWORD=pass
ADMIN_PASSWORD=pass
SERVICE_PASSWORD=pass
SERVICE_TOKEN=pass
RABBIT_PASSWORD=pass

Logging

LOGFILE= D E S T / l o g s / s t a c k . s h . l o g L O G D A Y S = 1 L O G D I R = DEST/logs/stack.sh.log LOGDAYS=1 LOGDIR= DEST/logs/stack.sh.logLOGDAYS=1LOGDIR=DEST/logs
SYSLOG=True
SYSLOG_HOST=$HOST_IP
SYSLOG_PORT=516
VERBOSE=True
LOG_COLOR=True
SCREEN_LOGDIR=/opt/stack/logs

#Python option
USE_VENV=True
PIP_UPGRADE=True
PROJECT_VENV[“glance”]= G L A N C E D I R . V E N V P R O J E C T V E N V [ " n o v a " ] = {GLANCE_DIR}.VENV PROJECT_VENV["nova"]= GLANCEDIR.VENVPROJECTVENV["nova"]={NOVA_DIR}.VENV
PROJECT_VENV[“keystone”]= K E Y S T O N E D I R . V E N V P R O J E C T V E N V [ " n e u t r o n " ] = {KEYSTONE_DIR}.VENV PROJECT_VENV["neutron"]= KEYSTONEDIR.VENVPROJECTVENV["neutron"]={NEUTRON_DIR}.VENV
PROJECT_VENV[“cinder”]= C I N D E R D I R . V E N V P R O J E C T V E N V [ " s w i f t " ] = {CINDER_DIR}.VENV PROJECT_VENV["swift"]= CINDERDIR.VENVPROJECTVENV["swift"]={SWIFT_DIR}.VENV
PROJECT_VENV[“glance”]= G L A N C E D I R . V E N V P R O J E C T V E N V [ " h e a t " ] = {GLANCE_DIR}.VENV PROJECT_VENV["heat"]= GLANCEDIR.VENVPROJECTVENV["heat"]={HEAT_DIR}.VENV
ADDITIONAL_VENV_PACKAGES=“python-foo,python-bar”

#Define default instance standard
DEFAULT_INSTANCE_TYPE=m1.tiny

#keystone
KEYSTONE_TOKEN_FORMAT=UUID
KEYSTONE_USE_MOD_WSGI=“True”
ENABLE_IDENTITY_V2=False

##vnc
ENABLED_SERVICES+=,n-spice,n-novnc,n-xvnc

##Glance
ENABLED_SERVICES+=,g-api.g-reg

##Heat
HEAT_BRANCH=stable/mitaka
enable_service h-eng h-api h-api-cfn h-api-cw h-eng
Heat_USE_MOD_WSGI=“True”

Swift

SWIFT_BRANCH=stable/mitaka
ENABLED_SERVICES+=,s-proxy,s-object,s-container,s-account
SWIFT_REPLICAS=1
SWIFT_HASH=011688b44136573e209e
SWIFT_USE_MOD_WSGI=“True”

Enabling Neutron (network) Service

disable_service n-net ##Do not use nova network
enable_service q-svc
enable_service q-agt
enable_service q-dhcp
enable_service q-l3
enable_service q-meta
enable_service q-metering
enable_service neutron

Neutron options

Q_USE_SECGROUP=True
FLOATING_RANGE=“192.168.1.0/24”
FIXED_RANGE=“10.0.0.0/24”
Q_FLOATING_ALLOCATION_POOL=start=192.168.1.10,end=192.168.1.20
PUBLIC_NETWORK_GATEWAY=“192.168.1.1”
Q_L3_ENABLED=True
PUBLIC_INTERFACE=eth0
Q_USE_PROVIDERNET_FOR_PUBLIC=True
OVS_PHYSICAL_BRIDGE=br-ex
PUBLIC_BRIDGE=br-ex
OVS_BRIDGE_MAPPINGS=public:br-ex

#VLAN configuration.

Q_PLUGIN=ml2
ENABLE_TENANT_VLANS=True

##Cinder
ENABLED_SERVICES+=,cinder,c-api,c-vol,c-sch,c-bak
CINDER_USE_MOD_WSGI=“True”
VOLUME_GROUP=“stack-volumes”
VOLUME_NAME_PREFIX=“volume-”
VOLUME_BACKING_FILE_SIZE=10250M

##Ceilometer
ENABLED_SERVICES+=,ceilometer-acomputer,ceilometer-acentral,ceilometer-collector,ceilometer-api
ENABLED_SERVICES+=,ceilometer-alarm-notify,ceilometer-alarm-eval
ENABLED_SERVICES+=,trove,tr-api,tr-tmgr,tc-cond

#Apache
APACHE_ENABLED_SERVICES+=,keystone


## 6 后话


如果在一开始配置文件中没有注明各项密码的话,/stack.sh会交互式让你输入密码。而且密码最好写在配置文件靠前的位置,我尝试写在靠后的位置还是会一样提示让我输入密码。   
 ENTER A PASSWORD TO USE FOR THE DATABASE.   
 This value will be written to /var/download/devstack/.localrc.password file so you don’t have to enter it   
 again. Use only alphanumeric characters.   
 If you leave this blank, a random default value will be used.   
 Enter a password now:   
 提示输入rabbit密码:


ENTER A PASSWORD TO USE FOR RABBIT.


This value will be written to /var/download/devstack/.localrc.password file so you don’t have to enter it   
 again. Use only alphanumeric characters.   
 If you leave this blank, a random default value will be used.   
 Enter a password now:


![img](https://img-blog.csdnimg.cn/img_convert/8022e1f1998a6871a54cd3262d2e6d18.png)
![img](https://img-blog.csdnimg.cn/img_convert/8cc0af094009e84ccb36f38002665f37.png)
![img](https://img-blog.csdnimg.cn/img_convert/c0c8bd0d254008129914aa4e78f23b2e.png)

**既有适合小白学习的零基础资料,也有适合3年以上经验的小伙伴深入学习提升的进阶课程,涵盖了95%以上软件测试知识点,真正体系化!**

**由于文件比较多,这里只是将部分目录截图出来,全套包含大厂面经、学习笔记、源码讲义、实战项目、大纲路线、讲解视频,并且后续会持续更新**

**[需要这份系统化的资料的朋友,可以戳这里获取](https://bbs.csdn.net/forums/4f45ff00ff254613a03fab5e56a57acb)**

AOnJo-1715108029949)]

**既有适合小白学习的零基础资料,也有适合3年以上经验的小伙伴深入学习提升的进阶课程,涵盖了95%以上软件测试知识点,真正体系化!**

**由于文件比较多,这里只是将部分目录截图出来,全套包含大厂面经、学习笔记、源码讲义、实战项目、大纲路线、讲解视频,并且后续会持续更新**

**[需要这份系统化的资料的朋友,可以戳这里获取](https://bbs.csdn.net/forums/4f45ff00ff254613a03fab5e56a57acb)**

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值