openstack rocky 安装_通过DevStack最小化部署OpenStack

e6354d6f2fa14f294d5f99fd45ea42de.png

干货分享

OpenStack云计算平台,帮助服务商和企业内部实现类似于 Amazon EC2 和 S3 的云基础架构服务(Infrastructure as a Service, IaaS)。OpenStack 包含两个主要模块:Nova 和 Swift,前者是 NASA 开发的虚拟服务器部署和业务计算模块;后者是 Rackspace开发的分布式云存储模块,两者可以一起用,也可以分开单独用。OpenStack除了有 Rackspace 和 NASA 的大力支持外,还有包括 Dell、Citrix、 Cisco、 Canonical等重量级公司的贡献和支持,发展速度非常快,有取代另一个业界领先开源云平台 Eucalyptus 的态势。

下面我们通过DevStack在虚拟机中安装一个最小化的OpenStack来欣赏下OpenStack的精彩世界。


步骤一:在Linux系统中添加stack用户

DevStack需要非root用户来安装组件,但是需要赋予stack用户sudo权限

sudo useradd -s /bin/bash -d /opt/stack -m stack

赋予stack用户sudo权限

echo "stack ALL=(ALL) NOPASSWD: ALL" | sudo tee /etc/sudoers.d/stacksudo su - stack

步骤二:下载DevStack源代码,我们以目前稳定版本stable/rocky为例

git clone https://git.openstack.org/openstack-dev/devstackcd devstackgit checkout stable/rocky
[stack@devstack devstack]$ git branch -l master* stable/rocky

步骤三:配置DevStack Python的mirror

mkdir ~.pipvi ~.pip/pip.conf[global]index-url = https://pypi.tuna.tsinghua.edu.cn/simple[install]trusted-host=mirrors.aliyun.com

步骤四:准备DevStack安装配置文件

vi local.conf# Sample ``local.conf`` for user-configurable variables in ``stack.sh``# NOTE: Copy this file to the root DevStack directory for it to work properly.# ``local.conf`` is a user-maintained settings file that is sourced from ``stackrc``.# This gives it the ability to override any variables set in ``stackrc``.# Also, most of the settings in ``stack.sh`` are written to only be set if no# value has already been set; this lets ``local.conf`` effectively override the# default values.# This is a collection of some of the settings we have found to be useful# in our DevStack development environments. Additional settings are described# in https://docs.openstack.org/devstack/latest/configuration.html#local-conf# These should be considered as samples and are unsupported DevStack code.# The ``localrc`` section replaces the old ``localrc`` configuration file.# Note that if ``localrc`` is present it will be used in favor of this section.[[local|localrc]]# Minimal Contents# ----------------# While ``stack.sh`` is happy to run without ``localrc``, devlife is better when# there are a few minimal variables set:# If the ``*_PASSWORD`` variables are not set here you will be prompted to enter# values for them by ``stack.sh``and they will be added to ``local.conf``.#ADMIN_PASSWORD=nomoresecret#DATABASE_PASSWORD=stackdb#RABBIT_PASSWORD=stackqueue#SERVICE_PASSWORD=$ADMIN_PASSWORDADMIN_PASSWORD=devstackDATABASE_PASSWORD=$ADMIN_PASSWORDRABBIT_PASSWORD=$ADMIN_PASSWORDSERVICE_PASSWORD=$ADMIN_PASSWORD# ``HOST_IP`` and ``HOST_IPV6`` should be set manually for best results if# the NIC configuration of the host is unusual, i.e. ``eth1`` has the default# route but ``eth0`` is the public interface. They are auto-detected in# ``stack.sh`` but often is indeterminate on later runs due to the IP moving# from an Ethernet interface to a bridge on the host. Setting it here also# makes it available for ``openrc`` to include when setting ``OS_AUTH_URL``.# Neither is set by default.#HOST_IP=w.x.y.z#HOST_IPV6=2001:db8::7HOST_IP=10.0.0.20# Logging# -------# By default ``stack.sh`` output only goes to the terminal where it runs. It can# be configured to additionally log to a file by setting ``LOGFILE`` to the full# path of the destination log file. A timestamp will be appended to the given name.LOGFILE=$DEST/logs/stack.sh.log# Old log files are automatically removed after 7 days to keep things neat. Change# the number of days by setting ``LOGDAYS``.LOGDAYS=2# Nova logs will be colorized if ``SYSLOG`` is not set; turn this off by setting# ``LOG_COLOR`` false.#LOG_COLOR=False# Using milestone-proposed branches# ---------------------------------# Uncomment these to grab the milestone-proposed branches from the# repos:#CINDER_BRANCH=milestone-proposed#GLANCE_BRANCH=milestone-proposed#HORIZON_BRANCH=milestone-proposed#KEYSTONE_BRANCH=milestone-proposed#KEYSTONECLIENT_BRANCH=milestone-proposed#NOVA_BRANCH=milestone-proposed#NOVACLIENT_BRANCH=milestone-proposed#NEUTRON_BRANCH=milestone-proposed#SWIFT_BRANCH=milestone-proposed# Using git versions of clients# -----------------------------# By default clients are installed from pip. See LIBS_FROM_GIT in# stackrc for details on getting clients from specific branches or# revisions. e.g.# LIBS_FROM_GIT="python-ironicclient"# IRONICCLIENT_BRANCH=refs/changes/44/2.../1# Swift# -----# Swift is now used as the back-end for the S3-like object store. Setting the# hash value is required and you will be prompted for it if Swift is enabled# so just set it to something already:SWIFT_HASH=66a3d6b56c1f479c8b4e70ab5c2000f5# For development purposes the default of 3 replicas is usually not required.# Set this to 1 to save some resources:SWIFT_REPLICAS=1# The data for Swift is stored by default in (``$DEST/data/swift``),# or (``$DATA_DIR/swift``) if ``DATA_DIR`` has been set, and can be# moved by setting ``SWIFT_DATA_DIR``. The directory will be created# if it does not exist.SWIFT_DATA_DIR=$DEST/data

其中,

  1. ADMIN_PASSWORD,
  2. DATABASE_PASSWORD,
  3. RABBIT_PASSWORD,
  4. SERVICE_PASSWORD,
  5. HOST_IP

参数比较重要,其他参数保持默认即可。

为了加速下载OpenStack组件源代码,我们使用Github作为下载仓库

export GIT_BASE=https://github.com

步骤五:开始安装

./stack.sh

经过大概20到30分钟,视网络情况而定。

=========================DevStack Component Timing (times are in seconds) =========================run_process 18test_with_retry 2pip_install 140osc 99wait_for_service 15yum_install 79git_timed 604dbsync 10-------------------------Unaccounted time 396=========================Total runtime 1363This is your host IP address: 10.0.0.20This is your host IPv6 address: fd15:4ba5:5a2b:1002:250:56ff:fe32:32a0Horizon is now available at http://10.0.0.20/dashboardKeystone is serving at http://10.0.0.20/identity/The default users are: admin and demoThe password: devstackWARNING: Using lib/neutron-legacy is deprecated, and it will be removed in the futureServices are running under systemd unit files.For more information see: https://docs.openstack.org/devstack/latest/systemd.htmlDevStack Version: rockyChange: f22c497c237c5f71437e5c9c0ed0811d005f0f4d Remove fedora-latest nodeset from Rocky 2019-02-04 16:46:20 +1100OS Version: CentOS 7.6.1810 Core

整个安装结束后如果出现上面的日志信息,表示安装结束并且所有服务都处于Running状态。

步骤六:验证安装结果

curl 10.0.0.20curl: (7) Failed to connect to 10.0.0.20 port 80: Connection refused

如果出现上面错误信息,我们需要关闭Linux系统的防火墙

systemctl stop iptables.servicesystemctl disable iptables.service

然后在浏览器地址栏输入如下地址:

http://10.0.0.20/dashboard
776c83120803d8f38bd2759dc7c75039.png

openstack登陆界面

出现上面的登陆界面说明我们的horizon工作正常。

5dfaab647569bef4042298d5fbee8d23.png

验证结果

通过Linux的Systemd查看组件运行状态

systemctl status "devstack@*"● 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 四 2019-04-11 00:21:09 CST; 1h 58min ago Main PID: 40750 (neutron-server) CGroup: /system.slice/system-devstack.slice/devstack@q-svc.service ├─40750 /usr/bin/python /usr/bin/neutron-server --config-file /etc/neutron/neutron.conf --config-file /etc/neutron/plugins/ml2/ml2_conf.ini ├─40936 /usr/bin/python /usr/bin/neutron-server --config-file /etc/neutron/neutron.conf --config-file /etc/neutron/plugins/ml2/ml2_conf.ini ├─40937 /usr/bin/python /usr/bin/neutron-server --config-file /etc/neutron/neutron.conf --config-file /etc/neutron/plugins/ml2/ml2_conf.ini ├─40938 /usr/bin/python /usr/bin/neutron-server --config-file /etc/neutron/neutron.conf --config-file /etc/neutron/plugins/ml2/ml2_conf.ini └─40939 /usr/bin/python /usr/bin/neutron-server --config-file /etc/neutron/neutron.conf --config-file /etc/neutron/plugins/ml2/ml2_conf.ini4月 11 02:18:40 devstack neutron-server[40750]: DEBUG neutron.db.agents_db [None req-2db72f2a-830a-40c2-8cfa-78f06905b90e None None] Agent healthcheck: found ...b.py:326}}● 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 四 2019-04-11 00:21:18 CST; 1h 58min ago Main PID: 44509 (neutron-metadat) CGroup: /system.slice/system-devstack.slice/devstack@q-meta.service ├─44509 /usr/bin/python /usr/bin/neutron-metadata-agent --config-file /etc/neutron/neutron.conf --config-file /etc/neutron/metadata_agent.ini ├─44890 /usr/bin/python /usr/bin/neutron-metadata-agent --config-file /etc/neutron/neutron.conf --config-file /etc/neutron/metadata_agent.ini └─44891 /usr/bin/python /usr/bin/neutron-metadata-agent --config-file /etc/neutron/neutron.conf --config-file /etc/neutron/metadata_agent.ini4月 11 00:21:20 devstack neutron-metadata-agent[44509]: DEBUG oslo_service.service [None req-4b9d6663-587a-4274-9ac0-ebbe4cf6f8ae None None] AGENT.root_helper ...py:3028}}● devstack@dstat.service - Devstack devstack@dstat.service Loaded: loaded (/etc/systemd/system/devstack@dstat.service; enabled; vendor preset: disabled) Active: active (running) since 四 2019-04-11 00:17:08 CST; 2h 2min ago Main PID: 9147 (dstat.sh) CGroup: /system.slice/system-devstack.slice/devstack@dstat.service ├─9147 /bin/bash /opt/stack/devstack/tools/dstat.sh /opt/stack/logs ├─9148 /usr/bin/python /usr/bin/dstat -tcmndrylpg --tcp --output /opt/stack/logs/dstat-csv.log └─9149 /usr/bin/python /usr/bin/dstat -tcmndrylpg --top-cpu-adv --top-io-adv --top-mem --swap --tcp4月 11 02:19:27 devstack dstat.sh[9147]: 11-04 02:19:27| 2 1 97 0 0 0|5128M 20.0k 508M 151M| 0 0 | 0 334k| 0 16.0 | 946 1620 |0.19 0... 0 7 0● devstack@etcd.service - Devstack devstack@etcd.service Loaded: loaded (/etc/systemd/system/devstack@etcd.service; enabled; vendor preset: disabled) Active: active (running) since 四 2019-04-11 00:17:10 CST; 2h 2min ago Main PID: 10078 (etcd) CGroup: /system.slice/system-devstack.slice/devstack@etcd.service └─10078 /opt/stack/bin/etcd --name devstack --data-dir /opt/stack/data/etcd --initial-cluster-state new --initial-cluster-token etcd-cluster-01 --initial-clus...4月 11 00:17:10 devstack etcd[10078]: fd839366c57a6621 received MsgVoteResp from fd839366c57a6621 at term 2● 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 四 2019-04-11 00:21:17 CST; 1h 58min ago Main PID: 43882 (neutron-l3-agen) CGroup: /system.slice/system-devstack.slice/devstack@q-l3.service └─43882 /usr/bin/python /usr/bin/neutron-l3-agent --config-file /etc/neutron/neutron.conf --config-file /etc/neutron/l3_agent.ini4月 11 02:18:19 devstack neutron-l3-agent[43882]: DEBUG oslo_concurrency.lockutils [-] Lock "_check_child_processes" acquired by "neutron.agent.linux.external...s.py:273}}● devstack@c-api.service - Devstack devstack@c-api.service Loaded: loaded (/etc/systemd/system/devstack@c-api.service; enabled; vendor preset: disabled) Active: active (running) since 四 2019-04-11 00:22:08 CST; 1h 57min ago Main PID: 57039 (uwsgi) Status: "uWSGI is ready" CGroup: /system.slice/system-devstack.slice/devstack@c-api.service ├─57039 cinder-apiuWSGI master ├─57040 cinder-apiuWSGI worker 1 └─57041 cinder-apiuWSGI worker 24月 11 02:17:20 devstack devstack@c-api.service[57039]: INFO cinder.api.openstack.wsgi [None req-5fa73ba4-db5a-4f29-99b4-4ff4b7965519 demo admin] GET http://10.../volume//● devstack@n-api-meta.service - Devstack devstack@n-api-meta.service Loaded: loaded (/etc/systemd/system/devstack@n-api-meta.service; enabled; vendor preset: disabled) Active: active (running) since 四 2019-04-11 00:21:47 CST; 1h 57min ago Main PID: 51031 (uwsgi) Status: "uWSGI is ready" CGroup: /system.slice/system-devstack.slice/devstack@n-api-meta.service ├─51031 nova-api-metauWSGI master ├─51032 nova-api-metauWSGI worker 1 ├─51033 nova-api-metauWSGI worker 2 └─51034 nova-api-metauWSGI http 14月 11 00:21:50 devstack devstack@n-api-meta.service[51031]: DEBUG nova.api.openstack.wsgi_app [None req-17cdc34e-4ad1-40dd-8f3d-e440ba97c3c4 None None] upgrade...y:3028}}● 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 四 2019-04-11 00:21:00 CST; 1h 58min ago Main PID: 39687 (uwsgi) Status: "uWSGI is ready" CGroup: /system.slice/system-devstack.slice/devstack@n-api.service ├─39687 nova-apiuWSGI master ├─39688 nova-apiuWSGI worker 1 └─39689 nova-apiuWSGI worker 24月 11 02:17:20 devstack devstack@n-api.service[39687]: DEBUG oslo_concurrency.lockutils [None req-8e93d7a7-6384-4a21-80e6-e3c5c003a82e admin admin] Lock "e0002d04-c650...● devstack@keystone.service - Devstack devstack@keystone.service Loaded: loaded (/etc/systemd/system/devstack@keystone.service; enabled; vendor preset: disabled) Active: active (running) since 四 2019-04-11 00:17:15 CST; 2h 2min ago Main PID: 11224 (uwsgi) Status: "uWSGI is ready" CGroup: /system.slice/system-devstack.slice/devstack@keystone.service ├─11224 keystoneuWSGI master ├─11225 keystoneuWSGI worker 1 └─11226 keystoneuWSGI worker 24月 11 02:17:20 devstack devstack@keystone.service[11224]: DEBUG keystone.middleware.auth [None req-0cb6ade2-5c0d-48fd-a2c0-0be6a0762dcf None admin] Authentica....py:401}}● 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 四 2019-04-11 00:21:15 CST; 1h 58min ago Main PID: 42541 (neutron-openvsw) CGroup: /system.slice/system-devstack.slice/devstack@q-agt.service ├─42541 /usr/bin/python /usr/bin/neutron-openvswitch-agent --config-file /etc/neutron/neutron.conf --config-file /etc/neutron/plugins/ml2/ml2_conf.ini ├─44197 ovsdb-client monitor tcp:127.0.0.1:6640 Interface name,ofport,external_ids --format=json └─44231 ovsdb-client monitor tcp:127.0.0.1:6640 Bridge name --format=json4月 11 02:19:31 devstack neutron-openvswitch-agent[42541]: DEBUG neutron.agent.linux.utils [None req-3c399f15-c698-443c-8a9a-36b6a9639ca7 None None] Found cmdline ['ovs...● 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 四 2019-04-11 00:20:49 CST; 1h 58min ago Main PID: 38195 (uwsgi) Status: "uWSGI is ready" CGroup: /system.slice/system-devstack.slice/devstack@g-api.service ├─38195 glance-apiuWSGI master ├─38196 glance-apiuWSGI worker 1 └─38197 glance-apiuWSGI worker 24月 11 01:29:40 devstack devstack@g-api.service[38195]: DEBUG glance.api.middleware.version_negotiation [None req-0d37e581-1653-4895-8b1e-24bebbefcd43 demo adm...n.py:45}}● devstack@n-sch.service - Devstack devstack@n-sch.service Loaded: loaded (/etc/systemd/system/devstack@n-sch.service; enabled; vendor preset: disabled) Active: active (running) since 四 2019-04-11 00:21:46 CST; 1h 57min ago Main PID: 50274 (nova-scheduler) CGroup: /system.slice/system-devstack.slice/devstack@n-sch.service ├─50274 /usr/bin/python /usr/bin/nova-scheduler --config-file /etc/nova/nova.conf ├─51657 /usr/bin/python /usr/bin/nova-scheduler --config-file /etc/nova/nova.conf └─51658 /usr/bin/python /usr/bin/nova-scheduler --config-file /etc/nova/nova.conf4月 11 02:14:38 devstack nova-scheduler[50274]: DEBUG oslo_service.periodic_task [None req-6b776966-bde8-418a-a109-5e84dcb2b568 None None] Running periodic ta...k.py:215}}● devstack@n-cond-cell1.service - Devstack devstack@n-cond-cell1.service Loaded: loaded (/etc/systemd/system/devstack@n-cond-cell1.service; enabled; vendor preset: disabled) Active: active (running) since 四 2019-04-11 00:21:53 CST; 1h 57min ago Main PID: 54469 (nova-conductor) CGroup: /system.slice/system-devstack.slice/devstack@n-cond-cell1.service ├─54469 /usr/bin/python /usr/bin/nova-conductor --config-file /etc/nova/nova_cell1.conf ├─55976 /usr/bin/python /usr/bin/nova-conductor --config-file /etc/nova/nova_cell1.conf └─55977 /usr/bin/python /usr/bin/nova-conductor --config-file /etc/nova/nova_cell1.conf4月 11 00:21:55 devstack nova-conductor[54469]: DEBUG oslo_service.service [-] osapi_v21.project_id_regex = None {{(pid=54469) log_opt_values /usr/lib/pyt....py:3028}}● 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 四 2019-04-11 00:21:16 CST; 1h 58min ago Main PID: 43158 (neutron-dhcp-ag) CGroup: /system.slice/system-devstack.slice/devstack@q-dhcp.service └─43158 /usr/bin/python /usr/bin/neutron-dhcp-agent --config-file /etc/neutron/neutron.conf --config-file /etc/neutron/dhcp_agent.ini4月 11 02:15:17 devstack neutron-dhcp-agent[43158]: DEBUG oslo_concurrency.lockutils [-] Lock "_check_child_processes" acquired by "neutron.agent.linux.externa....py:273}}● devstack@placement-api.service - Devstack devstack@placement-api.service Loaded: loaded (/etc/systemd/system/devstack@placement-api.service; enabled; vendor preset: disabled) Active: active (running) since 四 2019-04-11 00:21:12 CST; 1h 58min ago Main PID: 41739 (uwsgi) Status: "uWSGI is ready" CGroup: /system.slice/system-devstack.slice/devstack@placement-api.service ├─41739 placementuWSGI master ├─41740 placementuWSGI worker 1 └─41741 placementuWSGI worker 24月 11 02:18:39 devstack devstack@placement-api.service[41739]: [pid: 41741|app: 0|req: 345/689] 10.0.0.20 () {64 vars in 1459 bytes} [Thu Apr 11 02:18:39 2019]... core 0)● devstack@n-cauth.service - Devstack devstack@n-cauth.service Loaded: loaded (/etc/systemd/system/devstack@n-cauth.service; enabled; vendor preset: disabled) Active: active (running) since 四 2019-04-11 00:21:48 CST; 1h 57min ago Main PID: 51639 (nova-consoleaut) CGroup: /system.slice/system-devstack.slice/devstack@n-cauth.service └─51639 /usr/bin/python /usr/bin/nova-consoleauth --config-file /etc/nova/nova.conf4月 11 00:21:51 devstack nova-consoleauth[51639]: DEBUG oslo_service.service [None req-95455404-277f-4761-a2f1-a202ceac0380 None None] key_manager.backend ....py:3028}}● devstack@n-super-cond.service - Devstack devstack@n-super-cond.service Loaded: loaded (/etc/systemd/system/devstack@n-super-cond.service; enabled; vendor preset: disabled) Active: active (running) since 四 2019-04-11 00:21:52 CST; 1h 57min ago Main PID: 53798 (nova-conductor) CGroup: /system.slice/system-devstack.slice/devstack@n-super-cond.service ├─53798 /usr/bin/python /usr/bin/nova-conductor --config-file /etc/nova/nova.conf ├─55790 /usr/bin/python /usr/bin/nova-conductor --config-file /etc/nova/nova.conf └─55795 /usr/bin/python /usr/bin/nova-conductor --config-file /etc/nova/nova.conf4月 11 00:21:54 devstack nova-conductor[53798]: DEBUG oslo_service.service [None req-b14c17ad-9f98-4ecf-bab9-12c9a3291a24 None None] upgrade_levels.network ....py:3028}}● devstack@c-vol.service - Devstack devstack@c-vol.service Loaded: loaded (/etc/systemd/system/devstack@c-vol.service; enabled; vendor preset: disabled) Active: active (running) since 四 2019-04-11 00:22:11 CST; 1h 57min ago Main PID: 58545 (cinder-volume) CGroup: /system.slice/system-devstack.slice/devstack@c-vol.service ├─58545 /usr/bin/python /usr/bin/cinder-volume --config-file /etc/cinder/cinder.conf └─58835 /usr/bin/python /usr/bin/cinder-volume --config-file /etc/cinder/cinder.conf4月 11 02:19:12 devstack cinder-volume[58545]: DEBUG oslo_concurrency.processutils [None req-6d3a5b2b-ddf5-4e4e-9b9d-a82a83475b73 None None] Running cmd (subprocess): s...● devstack@c-sch.service - Devstack devstack@c-sch.service Loaded: loaded (/etc/systemd/system/devstack@c-sch.service; enabled; vendor preset: disabled) Active: active (running) since 四 2019-04-11 00:22:10 CST; 1h 57min ago Main PID: 57798 (cinder-schedule) CGroup: /system.slice/system-devstack.slice/devstack@c-sch.service └─57798 /usr/bin/python /usr/bin/cinder-scheduler --config-file /etc/cinder/cinder.conf4月 11 02:10:13 devstack cinder-scheduler[57798]: DEBUG cinder.scheduler.host_manager [None req-cba7e20f-9e23-47e9-9b4d-50b47328736f None None] Received volum...volume_bac● devstack@n-novnc-cell1.service - Devstack devstack@n-novnc-cell1.service Loaded: loaded (/etc/systemd/system/devstack@n-novnc-cell1.service; enabled; vendor preset: disabled) Active: active (running) since 四 2019-04-11 00:21:50 CST; 1h 57min ago Main PID: 52543 (nova-novncproxy) CGroup: /system.slice/system-devstack.slice/devstack@n-novnc-cell1.service └─52543 /usr/bin/python /usr/bin/nova-novncproxy --config-file /etc/nova/nova_cell1.conf --web /opt/stack/noVNC4月 11 00:21:50 devstack systemd[1]: Started Devstack devstack@n-novnc-cell1.service.● devstack@n-cpu.service - Devstack devstack@n-cpu.service Loaded: loaded (/etc/systemd/system/devstack@n-cpu.service; enabled; vendor preset: disabled) Active: active (running) since 四 2019-04-11 00:21:54 CST; 1h 57min ago Main PID: 55846 (nova-compute) CGroup: /system.slice/system-devstack.slice/devstack@n-cpu.service └─55846 /usr/bin/python /usr/bin/nova-compute --config-file /etc/nova/nova-cpu.conf4月 11 02:18:47 devstack nova-compute[55846]: DEBUG nova.compute.manager [None req-ab70d05b-806b-4bdb-80eb-8000d0e1af79 None None] Rebuilding the list of inst....py:7103}}● 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 四 2019-04-11 00:20:48 CST; 1h 58min ago Main PID: 37447 (glance-registry) CGroup: /system.slice/system-devstack.slice/devstack@g-reg.service ├─37447 /usr/bin/python /usr/bin/glance-registry --config-file=/etc/glance/glance-registry.conf ├─38199 /usr/bin/python /usr/bin/glance-registry --config-file=/etc/glance/glance-registry.conf └─38200 /usr/bin/python /usr/bin/glance-registry --config-file=/etc/glance/glance-registry.conf4月 11 00:20:49 devstack glance-registry[37447]: DEBUG glance.common.config [-] oslo_policy.remote_ssl_ca_crt_file = None {{(pid=37447) log_opt_values /usr/li....py:3028}}

到此,一个最小化的OpenStack已经安装完成,我们可以通过horizon的Dashboar或者OpenStack的命令行创建虚拟机,网络或者存储等资源。


参考:

https://docs.openstack.org/devstack/latest/

https://docs.openstack.org/devstack/latest/systemd.html

文章如有不妥之处,欢迎指正!谢谢!

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值