使用DevStack安装openstack(单机环境)
DevStack是一系列可扩展的脚本,用于根据git master的最新版本快速启动完整的OpenStack环境。它以交互方式用作开发环境,并作为OpenStack项目功能测试的基础。
参考源码。
警告:DevStack will make substantial changes to your system during installation. Only run DevStack on servers or virtual machines that are dedicated to this purpose.
一、支持环境
支持系统 | 支持版本 |
Ubuntu | 16.04/17.04 |
Fedora | 24/25 |
CentOS/RHEL | 7 |
Debian | |
OpenSUSE |
官方建议Ubuntu 16.04系统。
二、安装准备
Devstack应该作为一个非root用户运行,并且启用sudo权限。。
1. 添加stack用户
$ sudo useradd -s /bin/bash -d /opt/stack -m stack
2. 更改用户权限
由于此用户将对系统进行许多更改,因此应具有sudo权限:
$ echo "stack ALL=(ALL) NOPASSWD: ALL" | sudo tee /etc/sudoers.d/stack
$ sudo su - stack
三、下载安装DevStack
1. 下载安装仓库
devstack 仓库包含一个安装OpenStack的脚本和配置文件的模板
$ git clone https://git.openstack.org/openstack-dev/devstack
$ cd devstack
2. 新建/修改配置文件
创建配置文件local.conf并写入4个密码预设:
[[local|localrc]]
ADMIN_PASSWORD=secret
DATABASE_PASSWORD=$ADMIN_PASSWORD
RABBIT_PASSWORD=$ADMIN_PASSWORD
SERVICE_PASSWORD=$ADMIN_PASSWORD
这是开始使用DevStack所需的最低配置。
3. 开始安装
./stack.sh
这将需要15 - 20分钟,主要取决于您的互联网连接的速度。在此过程中将安装许多仓库树和包。单机(2核4G)实际测试安装近两个小时,所以大家可以启动后台进程安装:
nohup ./stack.sh &
查看安装日志位置:
/opt/stack/logs
后台进程安装时,查看安装shell输出记录:
/opt/stack/devstack/nohup.out
四、说明
1. DevStack将会安装 keystone
, glance
, nova
, cinder
, neutron
和horizon组件;当然,浮动IP也可以使用。
2. 您可以访问horizon以体验OpenStack的Web界面,并从中管理vms,网络,卷和图像。
3. 您可以在shell中输入以下命令 ,然后使用openstack命令行工具来管理您的devstack
source openrc
4. 您可以进入以下目录, 然后运行临时测试。
cd /opt/stack/tempest
5. 您可以检查DevStack服务的状态
# 大部分devStack服务运行在系统的名称为:devstack@$servicename.service,您可以使用以下方法
sudo systemctl status "devstack@*"
[stack@--- devstack]$ sudo systemctl status "devstack@*"
● devstack@keystone.service - Devstack devstack@keystone.service
Loaded: loaded (/etc/systemd/system/devstack@keystone.service; enabled; vendor preset: disabled)
Active: active (running) since Mon -- :: CST; 15h ago
Main PID: (uwsgi)
Status: "uWSGI is ready"
CGroup: /system.slice/system-devstack.slice/devstack@keystone.service
├─ /usr/bin/uwsgi --ini /etc/keystone/keystone-uwsgi-public.ini
├─ /usr/bin/uwsgi --ini /etc/keystone/keystone-uwsgi-public.ini
└─ /usr/bin/uwsgi --ini /etc/keystone/keystone-uwsgi-public.ini Jun :: --- devstack@keystone.service[]: [pid: |app: |req: /] 10.9.157.7 () { vars in byt...re )
Jun :: --- devstack@keystone.service[]: DEBUG keystone.middleware.auth [None req-391582e4-c995--8ed9-...}}
Jun :: --- devstack@keystone.service[]: DEBUG keystone.common.fernet_utils [None req-391582e4-c995--8ed9-...
Jun :: --- devstack@keystone.service[]: DEBUG keystone.middleware.auth [None req-909f5d93---92ae-...domai
Jun :: --- devstack@keystone.service[]: INFO keystone.common.wsgi [None req-909f5d93---92ae-97a17b...okens
Jun :: --- devstack@keystone.service[]: DEBUG keystone.common.authorization [None req-909f5d93---...}}
Jun :: --- devstack@keystone.service[]: DEBUG keystone.common.fernet_utils [None req-909f5d93---92ae-...
Jun :: --- devstack@keystone.service[]: DEBUG keystone.policy.backends.rules [None req-909f5d93---...u'ser
Jun :: --- devstack@keystone.service[]: DEBUG keystone.common.authorization [None req-909f5d93---...}}
Jun :: --- devstack@keystone.service[]: [pid: |app: |req: /] 10.9.157.7 () { vars in by...re ) ● devstack@q-svc.service - Devstack devstack@q-svc.service
Loaded: loaded (/etc/systemd/system/devstack@q-svc.service; enabled; vendor preset: disabled)
Active: active (running) since Mon -- :: CST; 15h ago
Main PID: (neutron-server)
CGroup: /system.slice/system-devstack.slice/devstack@q-svc.service
├─ /usr/bin/python /usr/bin/neutron-server --config-file /etc/neutron/neutron.conf --config-file /etc/neutron/plugin...
├─ /usr/bin/python /usr/bin/neutron-server --config-file /etc/neutron/neutron.conf --config-file /etc/neutron/plugin...
├─ /usr/bin/python /usr/bin/neutron-server --config-file /etc/neutron/neutron.conf --config-file /etc/neutron/plugin...
├─ /usr/bin/python /usr/bin/neutron-server --config-file /etc/neutron/neutron.conf --config-file /etc/neutron/plugin...
└─ /usr/bin/python /usr/bin/neutron-server --config-file /etc/neutron/neutron.conf --config-file /etc/neutron/plugin... Jun :: --- neutron-server[]: DEBUG neutron.db.agents_db [None req-fc563d66-dc14-4c13--d0a086d3be5c No...:}}
Jun :: --- neutron-server[]: DEBUG neutron_lib.callbacks.manager [None req-54bab38b-b000-46e8--54ee66349b8b...
Jun :: --- neutron-server[]: DEBUG neutron_lib.callbacks.manager [None req-dfbbf8d1-b695-491c-b401-b8c226ef64f6...
Jun :: --- neutron-server[]: DEBUG neutron_lib.callbacks.manager [None req-023e2af5--4b22--ea414553f8d2...
Jun :: --- neutron-server[]: DEBUG neutron_lib.callbacks.manager [None req-89a6005a-5e99-42ed-88e2-6e7439ed7606...
Jun :: --- neutron-server[]: DEBUG neutron_lib.callbacks.manager [None req-3f6ced09-6ac2-4cca-a62e-4e1c3fa674c8...
Jun :: --- neutron-server[]: DEBUG neutron_lib.callbacks.manager [None req-0a5febbe-f80a-4cce-9ae1-810d0814d6c6...
Jun :: --- neutron-server[]: DEBUG neutron_lib.callbacks.manager [None req-023e2af5--4b22--ea414553f8d2...
Jun :: --- neutron-server[]: DEBUG neutron.db.agents_db [None req-fc563d66-dc14-4c13--d0a086d3be5c No...:}}
Jun :: --- neutron-server[]: DEBUG neutron_lib.callbacks.manager [None req-89a6005a-5e99-42ed-88e2-6e7439ed7606... ● devstack@q-agt.service - Devstack devstack@q-agt.service
Loaded: loaded (/etc/systemd/system/devstack@q-agt.service; enabled; vendor preset: disabled)
Active: active (running) since Mon -- :: CST; 15h ago
Main PID: (neutron-openvsw)
CGroup: /system.slice/system-devstack.slice/devstack@q-agt.service
├─ /usr/bin/python /usr/bin/neutron-openvswitch-agent --config-file /etc/neutron/neutron.conf --config-file /etc/neu...
├─ sudo /usr/bin/neutron-rootwrap-daemon /etc/neutron/rootwrap.conf
├─ /usr/bin/python /usr/bin/neutron-rootwrap-daemon /etc/neutron/rootwrap.conf
└─ ovsdb-client monitor tcp:127.0.0.1: Interface name,ofport,external_ids --format=json Jun :: --- neutron-openvswitch-agent[]: DEBUG neutron.plugins.ml2.drivers.openvswitch.agent.ovs_neutron_agent [...
Jun :: --- neutron-openvswitch-agent[]: DEBUG ovsdbapp.backend.ovs_idl.vlog [-] [POLLIN] on fd {{(pid=...}}
Jun :: --- neutron-openvswitch-agent[]: DEBUG ovsdbapp.backend.ovs_idl.vlog [-] [POLLIN] on fd {{(pid=...}}
Jun :: --- neutron-openvswitch-agent[]: DEBUG neutron.plugins.ml2.drivers.openvswitch.agent.ovs_neutron_ag...}}
Jun :: --- neutron-openvswitch-agent[]: DEBUG neutron.plugins.ml2.drivers.openvswitch.agent.openflow.nativ...ask=
Jun :: --- neutron-openvswitch-agent[]: DEBUG neutron.plugins.ml2.drivers.openvswitch.agent.ovs_neutron_agent [...
Jun :: --- neutron-openvswitch-agent[]: DEBUG neutron.plugins.ml2.drivers.openvswitch.agent.ovs_neutron_ag...}}
Jun :: --- neutron-openvswitch-agent[]: DEBUG neutron.plugins.ml2.drivers.openvswitch.agent.openflow.nativ...ask=
Jun :: --- neutron-openvswitch-agent[]: DEBUG neutron.plugins.ml2.drivers.openvswitch.agent.ovs_neutron_agent [...
Jun :: --- neutron-openvswitch-agent[]: DEBUG ovsdbapp.backend.ovs_idl.vlog [-] [POLLIN] on fd {{(pid=...}} ● devstack@etcd.service - Devstack devstack@etcd.service
Loaded: loaded (/etc/systemd/system/devstack@etcd.service; enabled; vendor preset: disabled)
Active: active (running) since Mon -- :: CST; 15h ago
Main PID: (etcd)
CGroup: /system.slice/system-devstack.slice/devstack@etcd.service
└─ /opt/stack/bin/etcd --name --- --data-dir /opt/stack/data/etcd --initial-cluster-state new --initial-clust... Jun :: --- etcd[]: a4fe70b684112214 received MsgVoteResp from a4fe70b684112214 at term
Jun :: --- etcd[]: a4fe70b684112214 became leader at term
Jun :: --- etcd[]: raft.node: a4fe70b684112214 elected leader a4fe70b684112214 at term
Jun :: --- etcd[]: published {Name:--- ClientURLs:[http://10.9.157.7:2379]} to cluster b034ace61d50180c
Jun :: --- etcd[]: setting up the initial cluster version to 3.1
Jun :: --- etcd[]: ready to serve client requests
Jun :: --- systemd[]: Started Devstack devstack@etcd.service.
Jun :: --- etcd[]: serving insecure client requests on 10.9.157.7:, this is strongly discouraged!
Jun :: --- etcd[]: set the initial cluster version to 3.1
Jun :: --- etcd[]: enabled capabilities for version 3.1 ● devstack@n-api.service - Devstack devstack@n-api.service
Loaded: loaded (/etc/systemd/system/devstack@n-api.service; enabled; vendor preset: disabled)
Active: active (running) since Mon -- :: CST; 15h ago
Main PID: (nova-api)
CGroup: /system.slice/system-devstack.slice/devstack@n-api.service
├─ /usr/bin/python /usr/bin/nova-api
├─ /usr/bin/python /usr/bin/nova-api
├─ /usr/bin/python /usr/bin/nova-api
├─ /usr/bin/python /usr/bin/nova-api
└─ /usr/bin/python /usr/bin/nova-api Jun :: --- nova-api[]: DEBUG oslo_service.service [None req-944db535-ccdd--855e-40d96950aa93 None No...:}}
Jun :: --- nova-api[]: DEBUG oslo_service.service [None req-944db535-ccdd--855e-40d96950aa93 None No...:}}
Jun :: --- nova-api[]: DEBUG oslo_service.service [None req-944db535-ccdd--855e-40d96950aa93 None No...:}}
Jun :: --- nova-api[]: INFO nova.metadata.wsgi.server [None req-40d26358-b219-43ba-aab6-539c764be0a9 Non....:
Jun :: --- nova-api[]: DEBUG oslo_service.service [None req-944db535-ccdd--855e-40d96950aa93 None No...:}}
Jun :: --- nova-api[]: DEBUG oslo_service.service [None req-944db535-ccdd--855e-40d96950aa93 None No...:}}
Jun :: --- nova-api[]: DEBUG oslo_service.service [None req-944db535-ccdd--855e-40d96950aa93 None No...:}}
Jun :: --- nova-api[]: DEBUG oslo_service.service [None req-944db535-ccdd--855e-40d96950aa93 None No...:}}
Jun :: --- nova-api[]: DEBUG oslo_service.service [None req-944db535-ccdd--855e-40d96950aa93 None No...:}}
Jun :: --- nova-api[]: DEBUG oslo_service.service [None req-944db535-ccdd--855e-40d96950aa93 None No...:}} ● devstack@dstat.service - Devstack devstack@dstat.service
Loaded: loaded (/etc/systemd/system/devstack@dstat.service; enabled; vendor preset: disabled)
Active: active (running) since Mon -- :: CST; 15h ago
Main PID: (dstat.sh)
CGroup: /system.slice/system-devstack.slice/devstack@dstat.service
├─ /bin/bash /opt/stack/devstack/tools/dstat.sh /opt/stack/logs
├─ /usr/bin/python /usr/bin/dstat -tcmndrylpg --tcp --output /opt/stack/logs/dstat-csv.log
└─ /usr/bin/python /usr/bin/dstat -tcmndrylpg --top-cpu-adv --top-io-adv --top-mem --swap --tcp Jun :: --- dstat.sh[]: - ::| |2878M 1320k 3582M 1361M| | ...
Jun :: --- dstat.sh[]: - ::| |2878M 1320k 3582M 1361M| 90B 90B| ...
Jun :: --- dstat.sh[]: - ::| |2878M 1320k 3582M 1361M| 118B 240B| ...
Jun :: --- dstat.sh[]: - ::| |2878M 1320k 3582M 1361M| 66B| ...
Jun :: --- dstat.sh[]: - ::| |2878M 1320k 3582M 1361M| | ...
Jun :: --- dstat.sh[]: - ::| |2878M 1320k 3582M 1361M| | ...
Jun :: --- dstat.sh[]: - ::| |2879M 1320k 3582M 1361M| 42B 90B| ...
Jun :: --- dstat.sh[]: - ::| |2878M 1320k 3582M 1361M| 42B 42B| ...
Jun :: --- dstat.sh[]: - ::| |2878M 1320k 3582M 1361M| | ...
Jun :: --- dstat.sh[]: - ::| |2878M 1320k 3582M 1361M| 274B 242B| ... ● devstack@g-reg.service - Devstack devstack@g-reg.service
Loaded: loaded (/etc/systemd/system/devstack@g-reg.service; enabled; vendor preset: disabled)
Active: active (running) since Mon -- :: CST; 15h ago
Main PID: (glance-registry)
CGroup: /system.slice/system-devstack.slice/devstack@g-reg.service
├─ /usr/bin/python /usr/bin/glance-registry --config-file=/etc/glance/glance-registry.conf
├─ /usr/bin/python /usr/bin/glance-registry --config-file=/etc/glance/glance-registry.conf
└─ /usr/bin/python /usr/bin/glance-registry --config-file=/etc/glance/glance-registry.conf Jun :: --- glance-registry[]: DEBUG glance.common.config [-] image_format.disk_formats = ['ami', 'ar...2795}}
Jun :: --- glance-registry[]: DEBUG glance.common.config [-] oslo_policy.policy_default_rule = default {{...}}
Jun :: --- glance-registry[]: DEBUG glance.common.config [-] oslo_policy.policy_dirs = ['policy.d'...}}
Jun :: --- glance-registry[]: DEBUG glance.common.config [-] oslo_policy.policy_file = policy.json...}}
Jun :: --- glance-registry[]: DEBUG glance.common.config [-] ********************************************...}}
Jun :: --- glance-registry[]: INFO glance.common.wsgi [-] Starting workers
Jun :: --- glance-registry[]: INFO eventlet.wsgi.server [-] () wsgi starting up on http://0.0.0.0:9191
Jun :: --- glance-registry[]: INFO glance.common.wsgi [-] Started child
Jun :: --- glance-registry[]: INFO eventlet.wsgi.server [-] () wsgi starting up on http://0.0.0.0:9191
Jun :: --- glance-registry[]: INFO glance.common.wsgi [-] Started child ● devstack@q-l3.service - Devstack devstack@q-l3.service
Loaded: loaded (/etc/systemd/system/devstack@q-l3.service; enabled; vendor preset: disabled)
Active: active (running) since Mon -- :: CST; 15h ago
Main PID: (neutron-l3-agen)
CGroup: /system.slice/system-devstack.slice/devstack@q-l3.service
├─ haproxy -f /opt/stack/data/neutron/ns-metadata-proxy/973cd91c-e43d-4b3b-b9b0-80201aa20c16.conf
├─ radvd -C /opt/stack/data/neutron/ra/973cd91c-e43d-4b3b-b9b0-80201aa20c16.radvd.conf -p /opt/stack/data/neutron/ex...
├─ radvd -C /opt/stack/data/neutron/ra/973cd91c-e43d-4b3b-b9b0-80201aa20c16.radvd.conf -p /opt/stack/data/neutron/ex...
├─ /usr/bin/python /usr/bin/neutron-l3-agent --config-file /etc/neutron/neutron.conf --config-file /etc/neutron/l3_a...
├─ sudo /usr/bin/neutron-rootwrap-daemon /etc/neutron/rootwrap.conf
└─ /usr/bin/python /usr/bin/neutron-rootwrap-daemon /etc/neutron/rootwrap.conf Jun :: --- neutron-l3-agent[]: DEBUG ovsdbapp.backend.ovs_idl.vlog [-] [POLLIN] on fd {{(pid=) __...:}}
Jun :: --- neutron-l3-agent[]: DEBUG ovsdbapp.backend.ovs_idl.vlog [-] [POLLIN] on fd {{(pid=) __...:}}
Jun :: --- neutron-l3-agent[]: DEBUG ovsdbapp.backend.ovs_idl.vlog [-] [POLLIN] on fd {{(pid=) __...:}}
Jun :: --- neutron-l3-agent[]: DEBUG oslo_service.periodic_task [None req-4eb01b82--4c2c-b5d5-804088d...:}}
Jun :: --- neutron-l3-agent[]: DEBUG ovsdbapp.backend.ovs_idl.vlog [-] [POLLIN] on fd {{(pid=) __...:}}
Jun :: --- neutron-l3-agent[]: DEBUG ovsdbapp.backend.ovs_idl.vlog [-] [POLLIN] on fd {{(pid=) __...:}}
Jun :: --- neutron-l3-agent[]: DEBUG ovsdbapp.backend.ovs_idl.vlog [-] [POLLIN] on fd {{(pid=) __...:}}
Jun :: --- neutron-l3-agent[]: DEBUG ovsdbapp.backend.ovs_idl.vlog [-] [POLLIN] on fd {{(pid=) __...:}}
Jun :: --- neutron-l3-agent[]: DEBUG ovsdbapp.backend.ovs_idl.vlog [-] [POLLIN] on fd {{(pid=) __...:}}
Jun :: --- neutron-l3-agent[]: DEBUG ovsdbapp.backend.ovs_idl.vlog [-] [POLLIN] on fd {{(pid=) __...:}} ● devstack@g-api.service - Devstack devstack@g-api.service
Loaded: loaded (/etc/systemd/system/devstack@g-api.service; enabled; vendor preset: disabled)
Active: active (running) since Mon -- :: CST; 15h ago
Main PID: (glance-api)
CGroup: /system.slice/system-devstack.slice/devstack@g-api.service
├─ /usr/bin/python /usr/bin/glance-api --config-file=/etc/glance/glance-api.conf
├─ /usr/bin/python /usr/bin/glance-api --config-file=/etc/glance/glance-api.conf
└─ /usr/bin/python /usr/bin/glance-api --config-file=/etc/glance/glance-api.conf Jun :: --- glance-api[]: DEBUG glance.api.middleware.version_negotiation [None req-5e8a342e-f228-423b-a262-d950...
Jun :: --- glance-api[]: DEBUG glance.api.middleware.version_negotiation [None req-5e8a342e-f228-423b-a26...y:}}
Jun :: --- glance-api[]: DEBUG glance.api.middleware.version_negotiation [None req-5e8a342e-f228-423b-a26...y:}}
Jun :: --- glance-api[]: DEBUG glance.api.middleware.version_negotiation [None req-5e8a342e-f228-423b-a26...y:}}
Jun :: --- glance-api[]: INFO eventlet.wsgi.server [None req-52d31219-a528-4c75-b91c-ebe3f93b1e3d admin a...
Jun :: --- glance-api[]: DEBUG glance.api.middleware.version_negotiation [None req-52d31219-a528-4c75-b91...y:}}
Jun :: --- glance-api[]: DEBUG glance.api.middleware.version_negotiation [None req-52d31219-a528-4c75-b91...y:}}
Jun :: --- glance-api[]: DEBUG glance.api.middleware.version_negotiation [None req-52d31219-a528-4c75-b91...y:}}
Jun :: --- glance-api[]: DEBUG glance.api.middleware.version_negotiation [None req-52d31219-a528-4c75-b91...y:}}
Jun :: --- glance-api[]: INFO eventlet.wsgi.server [None req-bf512ad7-e6f0-4c1e-b484-051b527816f0 admin a... ● devstack@q-dhcp.service - Devstack devstack@q-dhcp.service
Loaded: loaded (/etc/systemd/system/devstack@q-dhcp.service; enabled; vendor preset: disabled)
Active: active (running) since Mon -- :: CST; 15h ago
Main PID: (neutron-dhcp-ag)
CGroup: /system.slice/system-devstack.slice/devstack@q-dhcp.service
├─ dnsmasq --no-hosts --strict-order --except-interface=lo --pid-file=/opt/stack/data/neutron/dhcp/ca2eedb8-4aed-4a0...
├─ /usr/bin/python /usr/bin/neutron-dhcp-agent --config-file /etc/neutron/neutron.conf --config-file /etc/neutron/dh...
├─ sudo /usr/bin/neutron-rootwrap-daemon /etc/neutron/rootwrap.conf
└─ /usr/bin/python /usr/bin/neutron-rootwrap-daemon /etc/neutron/rootwrap.conf Jun :: --- neutron-dhcp-agent[]: DEBUG ovsdbapp.backend.ovs_idl.vlog [-] [POLLIN] on fd {{(pid=) ...:}}
Jun :: --- neutron-dhcp-agent[]: DEBUG ovsdbapp.backend.ovs_idl.vlog [-] [POLLIN] on fd {{(pid=) ...:}}
Jun :: --- neutron-dhcp-agent[]: DEBUG ovsdbapp.backend.ovs_idl.vlog [-] [POLLIN] on fd {{(pid=) ...:}}
Jun :: --- neutron-dhcp-agent[]: DEBUG ovsdbapp.backend.ovs_idl.vlog [-] [POLLIN] on fd {{(pid=) ...:}}
Jun :: --- neutron-dhcp-agent[]: DEBUG ovsdbapp.backend.ovs_idl.vlog [-] [POLLIN] on fd {{(pid=) ...:}}
Jun :: --- neutron-dhcp-agent[]: DEBUG ovsdbapp.backend.ovs_idl.vlog [-] [POLLIN] on fd {{(pid=) ...:}}
Jun :: --- neutron-dhcp-agent[]: DEBUG ovsdbapp.backend.ovs_idl.vlog [-] [POLLIN] on fd {{(pid=) ...:}}
Jun :: --- neutron-dhcp-agent[]: DEBUG ovsdbapp.backend.ovs_idl.vlog [-] [POLLIN] on fd {{(pid=) ...:}}
Jun :: --- neutron-dhcp-agent[]: DEBUG ovsdbapp.backend.ovs_idl.vlog [-] [POLLIN] on fd {{(pid=) ...:}}
Jun :: --- neutron-dhcp-agent[]: DEBUG ovsdbapp.backend.ovs_idl.vlog [-] [POLLIN] on fd {{(pid=) ...:}} ● devstack@q-meta.service - Devstack devstack@q-meta.service
Loaded: loaded (/etc/systemd/system/devstack@q-meta.service; enabled; vendor preset: disabled)
Active: active (running) since Mon -- :: CST; 15h ago
Main PID: (neutron-metadat)
CGroup: /system.slice/system-devstack.slice/devstack@q-meta.service
├─ /usr/bin/python /usr/bin/neutron-metadata-agent --config-file /etc/neutron/neutron.conf --config-file /etc/neutro...
├─ /usr/bin/python /usr/bin/neutron-metadata-agent --config-file /etc/neutron/neutron.conf --config-file /etc/neutro...
└─ /usr/bin/python /usr/bin/neutron-metadata-agent --config-file /etc/neutron/neutron.conf --config-file /etc/neutro... Jun :: --- neutron-metadata-agent[]: hmac_keys = SECRET_KEY
Jun :: --- neutron-metadata-agent[]: sentinel_service_name = mymaster
Jun :: --- neutron-metadata-agent[]: socket_timeout = 0.1
Jun :: --- neutron-metadata-agent[]: trace_sqlalchemy = False
Jun :: --- neutron-metadata-agent[]: service_providers:
Jun :: --- neutron-metadata-agent[]: service_provider =
Jun :: --- neutron-metadata-agent[]: xenapi:
Jun :: --- neutron-metadata-agent[]: connection_password = ***
Jun :: --- neutron-metadata-agent[]: connection_url = None
Jun :: --- neutron-metadata-agent[]: connection_username = None
Hint: Some lines were ellipsized, use -l to show in full.
更多服务使用方法参考 https://docs.openstack.org/developer/devstack/systemd.html
6. 如果更改了组件配置,可以使用以下命令使之生效:
# 例如更改了 /opt/stack/$service 代码后(假设服务名称为n-cpu),使用
sudo systemctl restart devstack@n-cpu.service
# 如果您的更改影响多个守护程序,您可以通过通配符重新启动。
sudo systemctl restart "devstack@n-*"
更多DevStack使用说明请参考 https://docs.openstack.org/developer/devstack/development.html
文档翻译参考:https://docs.openstack.org/developer/devstack/
使用DevStack安装openstack(单机环境)的更多相关文章
- 使用devstack安装openstack
使用devstack安装openstack 环境介绍,宿主机器 Fedora release 29 (Twenty Nine) 40核心cpu,32g内存 设想, 在fedora中安装kvm,虚拟出U ...
- Vmware虚拟机Devstack安装openstack(All in one)
Vmware虚拟机Devstack安装openstack(All in one) 博客园第一篇博客,先练习一下. 官方文档 环境 Vmware虚拟机 OS : Ubuntu 14.04 Nat网络,D ...
- devstack安装openstack newton版本
准备使用devstack安装openstack N版,搞一套开发环境出来.一连整了4天,遇到各种问题,各种错误,一直到第4天下午4点多才算完成. 在这个过程中感觉到使用devstack搭建openst ...
- DevStack部署OpenStack开发环境 - 问题总结
建议在使用DevStack搭建OpenStack开发环境前,先安装好开发工具包组.特别是gcc,主要一定是在yum update -y 之前,否则更新完系统后,在安装开发工具包会出现很多依赖包因为版本 ...
- ubuntu18.04系统下用devstack安装openstack(最新版)
ubuntu18.04系统下用devstack安装openstack(最新版) 2018年12月14日 16:34:14 Cherls 阅读数:427 前期准备: 安装git,升级pip,其他 s ...
- Devstack 安装OpenStack Pike版本(单机环境)
问题背景 最近在研究OpenStack的时候,需要对其源代码进行调试,公司服务器上部署的OpenStack环境又不能随意的进行折腾,为了研究的持续性和方便性,就决定再自己的虚拟机上面使用Devstac ...
- devstack安装openstack
devstack是目前安装OpenStack最为方便的工具,一般用于开发和测试OpenStack.如果想在生产环境安装的话,需要对 devstack做很多定制,或者使用puppet/chef等更成熟的 ...
- 体验devstack安装openstack
由于公司制度,工作环境是不能直接上网的,所以在工作时间从没有体验过devstack或者其他联网方式安装openstack. 因自己购置了一台不错的主机,因而决定尝试安装一番,经过一段为期不短的内心极度 ...
- ubuntu14.0.4.3 devstack 安装openstack
参考网址: http://www.chenshake.com/install-ubuntu-14-04-devstack/ 现在装完一切正常,就是不能重启,一旦重启VM,会导致给br-ex设置的IP地 ...
随机推荐
- Django 之Ajax
必备知识:json 什么是json 定义 JSON(JavaScript Object Notation, JS 对象标记) 是一种轻量级的数据交换格式. 它基于 ECMAScript (w3c制定的 ...
- (九)jsMath
1.Math对象 作用:用于执行数学任务,把Math作为对象就可以调用其方法和属性. eg: typeof Math); 2.Math属性 PI:圆周率(约等于 3.1415926); ...
- 数据库需要支持emoji表情
由于需要实现emoji表情评论的功能,所以数据库需要支持emoji表情的存储,根据查询的资料最终实现了该功能,现将实现的过程以及过程遇到的一些问题记录下来,供大家参考和交流. mysql的utf8编码 ...
- 深入理解java虚拟机-第七章
第7章 虚拟机类加载机制 类的加载的时机 加载 Loading, 连接 Linking(验证 Verfiication, 准备Preparation, 解析 Resolution) 初始化 Initi ...
- 处理get中文乱码
package com.servlet; import java.io.IOException; import java.io.PrintWriter; ...
- LeetCode Replace Words
原题链接在这里:https://leetcode.com/problems/replace-words/description/ 题目: In English, we have a concept c ...
- LG2120 [ZJOI2007]仓库建设
题意 L公司有N个工厂,由高到底分布在一座山上. 工厂1在山顶,工厂N在山脚. 由于这座山处于高原内陆地区(干燥少雨),L公司一般把产品直接堆放在露天,以节省费用. 突然有一天,L公司的总裁L先生接到 ...
- AVAWEB学习笔记 ---- 系列文章
[JAVAWEB学习笔记]网上商城实战5:后台的功能模块 [JAVAWEB学习笔记]网上商城实战4:订单模块 [JAVAWEB学习笔记]网上商城实战3:购物模块和订单模块 [JAVAWEB学习笔记]网 ...
- Linux多网卡的时候执行机器Ip
在Linux部署的时候,经常会有多网卡的情况出现,这时候项目又需要指定Ip.在这种情况下,要配置linux机子的host,指定里头要使用的ip地址,否则linux机子不知道去找哪个ip. 一.查看本机 ...
- ajax同步异步
test.html <a href="javascript:void(0)" onmouseover="testAsync()"> asy.js f ...