zoukankan      html  css  js  c++  java
  • 使用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将会安装 keystoneglancenovacinderneutronhorizon组件;当然,浮动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@*"
      1 [stack@10-9-157-7 devstack]$ sudo systemctl status "devstack@*"
      2 ● devstack@keystone.service - Devstack devstack@keystone.service
      3    Loaded: loaded (/etc/systemd/system/devstack@keystone.service; enabled; vendor preset: disabled)
      4    Active: active (running) since Mon 2017-06-05 18:37:16 CST; 15h ago
      5  Main PID: 20203 (uwsgi)
      6    Status: "uWSGI is ready"
      7    CGroup: /system.slice/system-devstack.slice/devstack@keystone.service
      8            ├─20203 /usr/bin/uwsgi --ini /etc/keystone/keystone-uwsgi-public.ini
      9            ├─20204 /usr/bin/uwsgi --ini /etc/keystone/keystone-uwsgi-public.ini
     10            └─20205 /usr/bin/uwsgi --ini /etc/keystone/keystone-uwsgi-public.ini
     11 
     12 Jun 05 19:18:21 10-9-157-7 devstack@keystone.service[20203]: [pid: 20205|app: 0|req: 483/967] 10.9.157.7 () {58 vars in 985 byt...re 0)
     13 Jun 05 19:18:21 10-9-157-7 devstack@keystone.service[20203]: DEBUG keystone.middleware.auth [None req-391582e4-c995-4711-8ed9-1...401}}
     14 Jun 05 19:18:21 10-9-157-7 devstack@keystone.service[20203]: DEBUG keystone.common.fernet_utils [None req-391582e4-c995-4711-8ed9-12...
     15 Jun 05 19:18:21 10-9-157-7 devstack@keystone.service[20203]: DEBUG keystone.middleware.auth [None req-909f5d93-2529-4600-92ae-9...domai
     16 Jun 05 19:18:21 10-9-157-7 devstack@keystone.service[20203]: INFO keystone.common.wsgi [None req-909f5d93-2529-4600-92ae-97a17b...okens
     17 Jun 05 19:18:21 10-9-157-7 devstack@keystone.service[20203]: DEBUG keystone.common.authorization [None req-909f5d93-2529-4600-9...136}}
     18 Jun 05 19:18:21 10-9-157-7 devstack@keystone.service[20203]: DEBUG keystone.common.fernet_utils [None req-909f5d93-2529-4600-92ae-97...
     19 Jun 05 19:18:21 10-9-157-7 devstack@keystone.service[20203]: DEBUG keystone.policy.backends.rules [None req-909f5d93-2529-4600-...u'ser
     20 Jun 05 19:18:22 10-9-157-7 devstack@keystone.service[20203]: DEBUG keystone.common.authorization [None req-909f5d93-2529-4600-9...240}}
     21 Jun 05 19:18:22 10-9-157-7 devstack@keystone.service[20203]: [pid: 20204|app: 0|req: 485/968] 10.9.157.7 () {58 vars in 1286 by...re 0)
     22 
     23 ● devstack@q-svc.service - Devstack devstack@q-svc.service
     24    Loaded: loaded (/etc/systemd/system/devstack@q-svc.service; enabled; vendor preset: disabled)
     25    Active: active (running) since Mon 2017-06-05 19:16:26 CST; 15h ago
     26  Main PID: 30831 (neutron-server)
     27    CGroup: /system.slice/system-devstack.slice/devstack@q-svc.service
     28            ├─30831 /usr/bin/python /usr/bin/neutron-server --config-file /etc/neutron/neutron.conf --config-file /etc/neutron/plugin...
     29            ├─30930 /usr/bin/python /usr/bin/neutron-server --config-file /etc/neutron/neutron.conf --config-file /etc/neutron/plugin...
     30            ├─30931 /usr/bin/python /usr/bin/neutron-server --config-file /etc/neutron/neutron.conf --config-file /etc/neutron/plugin...
     31            ├─30932 /usr/bin/python /usr/bin/neutron-server --config-file /etc/neutron/neutron.conf --config-file /etc/neutron/plugin...
     32            └─30933 /usr/bin/python /usr/bin/neutron-server --config-file /etc/neutron/neutron.conf --config-file /etc/neutron/plugin...
     33 
     34 Jun 06 10:17:33 10-9-157-7 neutron-server[30831]: DEBUG neutron.db.agents_db [None req-fc563d66-dc14-4c13-8961-d0a086d3be5c No...:281}}
     35 Jun 06 10:17:37 10-9-157-7 neutron-server[30831]: DEBUG neutron_lib.callbacks.manager [None req-54bab38b-b000-46e8-8373-54ee66349b8b...
     36 Jun 06 10:17:40 10-9-157-7 neutron-server[30831]: DEBUG neutron_lib.callbacks.manager [None req-dfbbf8d1-b695-491c-b401-b8c226ef64f6...
     37 Jun 06 10:17:40 10-9-157-7 neutron-server[30831]: DEBUG neutron_lib.callbacks.manager [None req-023e2af5-8717-4b22-8397-ea414553f8d2...
     38 Jun 06 10:17:44 10-9-157-7 neutron-server[30831]: DEBUG neutron_lib.callbacks.manager [None req-89a6005a-5e99-42ed-88e2-6e7439ed7606...
     39 Jun 06 10:18:07 10-9-157-7 neutron-server[30831]: DEBUG neutron_lib.callbacks.manager [None req-3f6ced09-6ac2-4cca-a62e-4e1c3fa674c8...
     40 Jun 06 10:18:10 10-9-157-7 neutron-server[30831]: DEBUG neutron_lib.callbacks.manager [None req-0a5febbe-f80a-4cce-9ae1-810d0814d6c6...
     41 Jun 06 10:18:10 10-9-157-7 neutron-server[30831]: DEBUG neutron_lib.callbacks.manager [None req-023e2af5-8717-4b22-8397-ea414553f8d2...
     42 Jun 06 10:18:10 10-9-157-7 neutron-server[30831]: DEBUG neutron.db.agents_db [None req-fc563d66-dc14-4c13-8961-d0a086d3be5c No...:281}}
     43 Jun 06 10:18:14 10-9-157-7 neutron-server[30831]: DEBUG neutron_lib.callbacks.manager [None req-89a6005a-5e99-42ed-88e2-6e7439ed7606...
     44 
     45 ● devstack@q-agt.service - Devstack devstack@q-agt.service
     46    Loaded: loaded (/etc/systemd/system/devstack@q-agt.service; enabled; vendor preset: disabled)
     47    Active: active (running) since Mon 2017-06-05 19:16:32 CST; 15h ago
     48  Main PID: 31238 (neutron-openvsw)
     49    CGroup: /system.slice/system-devstack.slice/devstack@q-agt.service
     50            ├─31238 /usr/bin/python /usr/bin/neutron-openvswitch-agent --config-file /etc/neutron/neutron.conf --config-file /etc/neu...
     51            ├─32286 sudo /usr/bin/neutron-rootwrap-daemon /etc/neutron/rootwrap.conf
     52            ├─32287 /usr/bin/python /usr/bin/neutron-rootwrap-daemon /etc/neutron/rootwrap.conf
     53            └─32300 ovsdb-client monitor tcp:127.0.0.1:6640 Interface name,ofport,external_ids --format=json
     54 
     55 Jun 06 10:18:14 10-9-157-7 neutron-openvswitch-agent[31238]: DEBUG neutron.plugins.ml2.drivers.openvswitch.agent.ovs_neutron_agent [...
     56 Jun 06 10:18:15 10-9-157-7 neutron-openvswitch-agent[31238]: DEBUG ovsdbapp.backend.ovs_idl.vlog [-] [POLLIN] on fd 7 {{(pid=31...246}}
     57 Jun 06 10:18:16 10-9-157-7 neutron-openvswitch-agent[31238]: DEBUG ovsdbapp.backend.ovs_idl.vlog [-] [POLLIN] on fd 7 {{(pid=31...246}}
     58 Jun 06 10:18:16 10-9-157-7 neutron-openvswitch-agent[31238]: DEBUG neutron.plugins.ml2.drivers.openvswitch.agent.ovs_neutron_ag...949}}
     59 Jun 06 10:18:16 10-9-157-7 neutron-openvswitch-agent[31238]: DEBUG neutron.plugins.ml2.drivers.openvswitch.agent.openflow.nativ...ask=0
     60 Jun 06 10:18:16 10-9-157-7 neutron-openvswitch-agent[31238]: DEBUG neutron.plugins.ml2.drivers.openvswitch.agent.ovs_neutron_agent [...
     61 Jun 06 10:18:18 10-9-157-7 neutron-openvswitch-agent[31238]: DEBUG neutron.plugins.ml2.drivers.openvswitch.agent.ovs_neutron_ag...949}}
     62 Jun 06 10:18:18 10-9-157-7 neutron-openvswitch-agent[31238]: DEBUG neutron.plugins.ml2.drivers.openvswitch.agent.openflow.nativ...ask=0
     63 Jun 06 10:18:18 10-9-157-7 neutron-openvswitch-agent[31238]: DEBUG neutron.plugins.ml2.drivers.openvswitch.agent.ovs_neutron_agent [...
     64 Jun 06 10:18:20 10-9-157-7 neutron-openvswitch-agent[31238]: DEBUG ovsdbapp.backend.ovs_idl.vlog [-] [POLLIN] on fd 7 {{(pid=31...246}}
     65 
     66 ● devstack@etcd.service - Devstack devstack@etcd.service
     67    Loaded: loaded (/etc/systemd/system/devstack@etcd.service; enabled; vendor preset: disabled)
     68    Active: active (running) since Mon 2017-06-05 18:37:06 CST; 15h ago
     69  Main PID: 19647 (etcd)
     70    CGroup: /system.slice/system-devstack.slice/devstack@etcd.service
     71            └─19647 /opt/stack/bin/etcd --name 10-9-157-7 --data-dir /opt/stack/data/etcd --initial-cluster-state new --initial-clust...
     72 
     73 Jun 05 18:37:06 10-9-157-7 etcd[19647]: a4fe70b684112214 received MsgVoteResp from a4fe70b684112214 at term 2
     74 Jun 05 18:37:06 10-9-157-7 etcd[19647]: a4fe70b684112214 became leader at term 2
     75 Jun 05 18:37:06 10-9-157-7 etcd[19647]: raft.node: a4fe70b684112214 elected leader a4fe70b684112214 at term 2
     76 Jun 05 18:37:06 10-9-157-7 etcd[19647]: published {Name:10-9-157-7 ClientURLs:[http://10.9.157.7:2379]} to cluster b034ace61d50180c
     77 Jun 05 18:37:06 10-9-157-7 etcd[19647]: setting up the initial cluster version to 3.1
     78 Jun 05 18:37:06 10-9-157-7 etcd[19647]: ready to serve client requests
     79 Jun 05 18:37:06 10-9-157-7 systemd[1]: Started Devstack devstack@etcd.service.
     80 Jun 05 18:37:06 10-9-157-7 etcd[19647]: serving insecure client requests on 10.9.157.7:2379, this is strongly discouraged!
     81 Jun 05 18:37:06 10-9-157-7 etcd[19647]: set the initial cluster version to 3.1
     82 Jun 05 18:37:06 10-9-157-7 etcd[19647]: enabled capabilities for version 3.1
     83 
     84 ● devstack@n-api.service - Devstack devstack@n-api.service
     85    Loaded: loaded (/etc/systemd/system/devstack@n-api.service; enabled; vendor preset: disabled)
     86    Active: active (running) since Mon 2017-06-05 19:16:14 CST; 15h ago
     87  Main PID: 30243 (nova-api)
     88    CGroup: /system.slice/system-devstack.slice/devstack@n-api.service
     89            ├─30243 /usr/bin/python /usr/bin/nova-api
     90            ├─30414 /usr/bin/python /usr/bin/nova-api
     91            ├─30415 /usr/bin/python /usr/bin/nova-api
     92            ├─30452 /usr/bin/python /usr/bin/nova-api
     93            └─30459 /usr/bin/python /usr/bin/nova-api
     94 
     95 Jun 05 19:16:25 10-9-157-7 nova-api[30243]: DEBUG oslo_service.service [None req-944db535-ccdd-4455-855e-40d96950aa93 None No...:2795}}
     96 Jun 05 19:16:25 10-9-157-7 nova-api[30243]: DEBUG oslo_service.service [None req-944db535-ccdd-4455-855e-40d96950aa93 None No...:2795}}
     97 Jun 05 19:16:25 10-9-157-7 nova-api[30243]: DEBUG oslo_service.service [None req-944db535-ccdd-4455-855e-40d96950aa93 None No...:2795}}
     98 Jun 05 19:16:25 10-9-157-7 nova-api[30243]: INFO nova.metadata.wsgi.server [None req-40d26358-b219-43ba-aab6-539c764be0a9 Non....0:8775
     99 Jun 05 19:16:25 10-9-157-7 nova-api[30243]: DEBUG oslo_service.service [None req-944db535-ccdd-4455-855e-40d96950aa93 None No...:2795}}
    100 Jun 05 19:16:25 10-9-157-7 nova-api[30243]: DEBUG oslo_service.service [None req-944db535-ccdd-4455-855e-40d96950aa93 None No...:2795}}
    101 Jun 05 19:16:25 10-9-157-7 nova-api[30243]: DEBUG oslo_service.service [None req-944db535-ccdd-4455-855e-40d96950aa93 None No...:2795}}
    102 Jun 05 19:16:25 10-9-157-7 nova-api[30243]: DEBUG oslo_service.service [None req-944db535-ccdd-4455-855e-40d96950aa93 None No...:2795}}
    103 Jun 05 19:16:25 10-9-157-7 nova-api[30243]: DEBUG oslo_service.service [None req-944db535-ccdd-4455-855e-40d96950aa93 None No...:2795}}
    104 Jun 05 19:16:25 10-9-157-7 nova-api[30243]: DEBUG oslo_service.service [None req-944db535-ccdd-4455-855e-40d96950aa93 None No...:2797}}
    105 
    106 ● devstack@dstat.service - Devstack devstack@dstat.service
    107    Loaded: loaded (/etc/systemd/system/devstack@dstat.service; enabled; vendor preset: disabled)
    108    Active: active (running) since Mon 2017-06-05 18:36:28 CST; 15h ago
    109  Main PID: 18958 (dstat.sh)
    110    CGroup: /system.slice/system-devstack.slice/devstack@dstat.service
    111            ├─18958 /bin/bash /opt/stack/devstack/tools/dstat.sh /opt/stack/logs
    112            ├─18959 /usr/bin/python /usr/bin/dstat -tcmndrylpg --tcp --output /opt/stack/logs/dstat-csv.log
    113            └─18960 /usr/bin/python /usr/bin/dstat -tcmndrylpg --top-cpu-adv --top-io-adv --top-mem --swap --tcp
    114 
    115 Jun 06 10:18:11 10-9-157-7 dstat.sh[18958]: 06-06 10:18:11|  3   1  95   1   0   0|2878M 1320k 3582M 1361M|   0     0 |   0  ...  4   0
    116 Jun 06 10:18:12 10-9-157-7 dstat.sh[18958]: 06-06 10:18:12|  2   1  98   0   0   0|2878M 1320k 3582M 1361M|  90B   90B|   0  ...  4   0
    117 Jun 06 10:18:13 10-9-157-7 dstat.sh[18958]: 06-06 10:18:13|  1   1  98   0   0   0|2878M 1320k 3582M 1361M| 118B  240B|   0  ...  4   0
    118 Jun 06 10:18:14 10-9-157-7 dstat.sh[18958]: 06-06 10:18:14|  2   0  98   0   0   0|2878M 1320k 3582M 1361M|   0    66B|   0  ...  4   0
    119 Jun 06 10:18:15 10-9-157-7 dstat.sh[18958]: 06-06 10:18:15|  2   1  97   0   0   0|2878M 1320k 3582M 1361M|   0     0 |   0  ...  2   0
    120 Jun 06 10:18:16 10-9-157-7 dstat.sh[18958]: 06-06 10:18:16|  2   0  98   0   0   0|2878M 1320k 3582M 1361M|   0     0 |   0  ...  3   0
    121 Jun 06 10:18:17 10-9-157-7 dstat.sh[18958]: 06-06 10:18:17|  1   1  98   0   0   0|2879M 1320k 3582M 1361M|  42B   90B|   0  ...  3   0
    122 Jun 06 10:18:18 10-9-157-7 dstat.sh[18958]: 06-06 10:18:18|  1   0  98   0   0   0|2878M 1320k 3582M 1361M|  42B   42B|   0  ...  3   0
    123 Jun 06 10:18:19 10-9-157-7 dstat.sh[18958]: 06-06 10:18:19|  2   1  98   0   0   0|2878M 1320k 3582M 1361M|   0     0 |   0  ...  3   0
    124 Jun 06 10:18:20 10-9-157-7 dstat.sh[18958]: 06-06 10:18:20|  1   1  98   0   0   0|2878M 1320k 3582M 1361M| 274B  242B|   0  ...  3   0
    125 
    126 ● devstack@g-reg.service - Devstack devstack@g-reg.service
    127    Loaded: loaded (/etc/systemd/system/devstack@g-reg.service; enabled; vendor preset: disabled)
    128    Active: active (running) since Mon 2017-06-05 19:13:09 CST; 15h ago
    129  Main PID: 29282 (glance-registry)
    130    CGroup: /system.slice/system-devstack.slice/devstack@g-reg.service
    131            ├─29282 /usr/bin/python /usr/bin/glance-registry --config-file=/etc/glance/glance-registry.conf
    132            ├─29650 /usr/bin/python /usr/bin/glance-registry --config-file=/etc/glance/glance-registry.conf
    133            └─29651 /usr/bin/python /usr/bin/glance-registry --config-file=/etc/glance/glance-registry.conf
    134 
    135 Jun 05 19:13:12 10-9-157-7 glance-registry[29282]: DEBUG glance.common.config [-] image_format.disk_formats      = ['ami', 'ar...2795}}
    136 Jun 05 19:13:12 10-9-157-7 glance-registry[29282]: DEBUG glance.common.config [-] oslo_policy.policy_default_rule = default {{...2795}}
    137 Jun 05 19:13:12 10-9-157-7 glance-registry[29282]: DEBUG glance.common.config [-] oslo_policy.policy_dirs        = ['policy.d'...2795}}
    138 Jun 05 19:13:12 10-9-157-7 glance-registry[29282]: DEBUG glance.common.config [-] oslo_policy.policy_file        = policy.json...2795}}
    139 Jun 05 19:13:12 10-9-157-7 glance-registry[29282]: DEBUG glance.common.config [-] ********************************************...2797}}
    140 Jun 05 19:13:12 10-9-157-7 glance-registry[29282]: INFO glance.common.wsgi [-] Starting 2 workers
    141 Jun 05 19:13:12 10-9-157-7 glance-registry[29282]: INFO eventlet.wsgi.server [-] (29650) wsgi starting up on http://0.0.0.0:9191
    142 Jun 05 19:13:12 10-9-157-7 glance-registry[29282]: INFO glance.common.wsgi [-] Started child 29650
    143 Jun 05 19:13:12 10-9-157-7 glance-registry[29282]: INFO eventlet.wsgi.server [-] (29651) wsgi starting up on http://0.0.0.0:9191
    144 Jun 05 19:13:12 10-9-157-7 glance-registry[29282]: INFO glance.common.wsgi [-] Started child 29651
    145 
    146 ● devstack@q-l3.service - Devstack devstack@q-l3.service
    147    Loaded: loaded (/etc/systemd/system/devstack@q-l3.service; enabled; vendor preset: disabled)
    148    Active: active (running) since Mon 2017-06-05 19:16:33 CST; 15h ago
    149  Main PID: 31812 (neutron-l3-agen)
    150    CGroup: /system.slice/system-devstack.slice/devstack@q-l3.service
    151            ├─  756 haproxy -f /opt/stack/data/neutron/ns-metadata-proxy/973cd91c-e43d-4b3b-b9b0-80201aa20c16.conf
    152            ├─ 1106 radvd -C /opt/stack/data/neutron/ra/973cd91c-e43d-4b3b-b9b0-80201aa20c16.radvd.conf -p /opt/stack/data/neutron/ex...
    153            ├─ 1108 radvd -C /opt/stack/data/neutron/ra/973cd91c-e43d-4b3b-b9b0-80201aa20c16.radvd.conf -p /opt/stack/data/neutron/ex...
    154            ├─31812 /usr/bin/python /usr/bin/neutron-l3-agent --config-file /etc/neutron/neutron.conf --config-file /etc/neutron/l3_a...
    155            ├─32351 sudo /usr/bin/neutron-rootwrap-daemon /etc/neutron/rootwrap.conf
    156            └─32352 /usr/bin/python /usr/bin/neutron-rootwrap-daemon /etc/neutron/rootwrap.conf
    157 
    158 Jun 06 10:18:00 10-9-157-7 neutron-l3-agent[31812]: DEBUG ovsdbapp.backend.ovs_idl.vlog [-] [POLLIN] on fd 16 {{(pid=31812) __...:246}}
    159 Jun 06 10:18:04 10-9-157-7 neutron-l3-agent[31812]: DEBUG ovsdbapp.backend.ovs_idl.vlog [-] [POLLIN] on fd 16 {{(pid=31812) __...:246}}
    160 Jun 06 10:18:05 10-9-157-7 neutron-l3-agent[31812]: DEBUG ovsdbapp.backend.ovs_idl.vlog [-] [POLLIN] on fd 16 {{(pid=31812) __...:246}}
    161 Jun 06 10:18:06 10-9-157-7 neutron-l3-agent[31812]: DEBUG oslo_service.periodic_task [None req-4eb01b82-7762-4c2c-b5d5-804088d...:215}}
    162 Jun 06 10:18:09 10-9-157-7 neutron-l3-agent[31812]: DEBUG ovsdbapp.backend.ovs_idl.vlog [-] [POLLIN] on fd 16 {{(pid=31812) __...:246}}
    163 Jun 06 10:18:10 10-9-157-7 neutron-l3-agent[31812]: DEBUG ovsdbapp.backend.ovs_idl.vlog [-] [POLLIN] on fd 16 {{(pid=31812) __...:246}}
    164 Jun 06 10:18:14 10-9-157-7 neutron-l3-agent[31812]: DEBUG ovsdbapp.backend.ovs_idl.vlog [-] [POLLIN] on fd 16 {{(pid=31812) __...:246}}
    165 Jun 06 10:18:15 10-9-157-7 neutron-l3-agent[31812]: DEBUG ovsdbapp.backend.ovs_idl.vlog [-] [POLLIN] on fd 16 {{(pid=31812) __...:246}}
    166 Jun 06 10:18:19 10-9-157-7 neutron-l3-agent[31812]: DEBUG ovsdbapp.backend.ovs_idl.vlog [-] [POLLIN] on fd 16 {{(pid=31812) __...:246}}
    167 Jun 06 10:18:20 10-9-157-7 neutron-l3-agent[31812]: DEBUG ovsdbapp.backend.ovs_idl.vlog [-] [POLLIN] on fd 16 {{(pid=31812) __...:246}}
    168 
    169 ● devstack@g-api.service - Devstack devstack@g-api.service
    170    Loaded: loaded (/etc/systemd/system/devstack@g-api.service; enabled; vendor preset: disabled)
    171    Active: active (running) since Mon 2017-06-05 19:13:10 CST; 15h ago
    172  Main PID: 29540 (glance-api)
    173    CGroup: /system.slice/system-devstack.slice/devstack@g-api.service
    174            ├─29540 /usr/bin/python /usr/bin/glance-api --config-file=/etc/glance/glance-api.conf
    175            ├─29662 /usr/bin/python /usr/bin/glance-api --config-file=/etc/glance/glance-api.conf
    176            └─29663 /usr/bin/python /usr/bin/glance-api --config-file=/etc/glance/glance-api.conf
    177 
    178 Jun 05 19:16:13 10-9-157-7 glance-api[29540]: DEBUG glance.api.middleware.version_negotiation [None req-5e8a342e-f228-423b-a262-d950...
    179 Jun 05 19:16:13 10-9-157-7 glance-api[29540]: DEBUG glance.api.middleware.version_negotiation [None req-5e8a342e-f228-423b-a26...y:57}}
    180 Jun 05 19:16:13 10-9-157-7 glance-api[29540]: DEBUG glance.api.middleware.version_negotiation [None req-5e8a342e-f228-423b-a26...y:69}}
    181 Jun 05 19:16:13 10-9-157-7 glance-api[29540]: DEBUG glance.api.middleware.version_negotiation [None req-5e8a342e-f228-423b-a26...y:70}}
    182 Jun 05 19:16:13 10-9-157-7 glance-api[29540]: INFO eventlet.wsgi.server [None req-52d31219-a528-4c75-b91c-ebe3f93b1e3d admin a...316104
    183 Jun 05 19:16:13 10-9-157-7 glance-api[29540]: DEBUG glance.api.middleware.version_negotiation [None req-52d31219-a528-4c75-b91...y:45}}
    184 Jun 05 19:16:13 10-9-157-7 glance-api[29540]: DEBUG glance.api.middleware.version_negotiation [None req-52d31219-a528-4c75-b91...y:57}}
    185 Jun 05 19:16:13 10-9-157-7 glance-api[29540]: DEBUG glance.api.middleware.version_negotiation [None req-52d31219-a528-4c75-b91...y:69}}
    186 Jun 05 19:16:13 10-9-157-7 glance-api[29540]: DEBUG glance.api.middleware.version_negotiation [None req-52d31219-a528-4c75-b91...y:70}}
    187 Jun 05 19:16:14 10-9-157-7 glance-api[29540]: INFO eventlet.wsgi.server [None req-bf512ad7-e6f0-4c1e-b484-051b527816f0 admin a...268637
    188 
    189 ● devstack@q-dhcp.service - Devstack devstack@q-dhcp.service
    190    Loaded: loaded (/etc/systemd/system/devstack@q-dhcp.service; enabled; vendor preset: disabled)
    191    Active: active (running) since Mon 2017-06-05 19:16:32 CST; 15h ago
    192  Main PID: 31508 (neutron-dhcp-ag)
    193    CGroup: /system.slice/system-devstack.slice/devstack@q-dhcp.service
    194            ├─  354 dnsmasq --no-hosts --strict-order --except-interface=lo --pid-file=/opt/stack/data/neutron/dhcp/ca2eedb8-4aed-4a0...
    195            ├─31508 /usr/bin/python /usr/bin/neutron-dhcp-agent --config-file /etc/neutron/neutron.conf --config-file /etc/neutron/dh...
    196            ├─32686 sudo /usr/bin/neutron-rootwrap-daemon /etc/neutron/rootwrap.conf
    197            └─32687 /usr/bin/python /usr/bin/neutron-rootwrap-daemon /etc/neutron/rootwrap.conf
    198 
    199 Jun 06 10:17:59 10-9-157-7 neutron-dhcp-agent[31508]: DEBUG ovsdbapp.backend.ovs_idl.vlog [-] [POLLIN] on fd 15 {{(pid=31508) ...:246}}
    200 Jun 06 10:18:00 10-9-157-7 neutron-dhcp-agent[31508]: DEBUG ovsdbapp.backend.ovs_idl.vlog [-] [POLLIN] on fd 15 {{(pid=31508) ...:246}}
    201 Jun 06 10:18:04 10-9-157-7 neutron-dhcp-agent[31508]: DEBUG ovsdbapp.backend.ovs_idl.vlog [-] [POLLIN] on fd 15 {{(pid=31508) ...:246}}
    202 Jun 06 10:18:05 10-9-157-7 neutron-dhcp-agent[31508]: DEBUG ovsdbapp.backend.ovs_idl.vlog [-] [POLLIN] on fd 15 {{(pid=31508) ...:246}}
    203 Jun 06 10:18:09 10-9-157-7 neutron-dhcp-agent[31508]: DEBUG ovsdbapp.backend.ovs_idl.vlog [-] [POLLIN] on fd 15 {{(pid=31508) ...:246}}
    204 Jun 06 10:18:10 10-9-157-7 neutron-dhcp-agent[31508]: DEBUG ovsdbapp.backend.ovs_idl.vlog [-] [POLLIN] on fd 15 {{(pid=31508) ...:246}}
    205 Jun 06 10:18:14 10-9-157-7 neutron-dhcp-agent[31508]: DEBUG ovsdbapp.backend.ovs_idl.vlog [-] [POLLIN] on fd 15 {{(pid=31508) ...:246}}
    206 Jun 06 10:18:15 10-9-157-7 neutron-dhcp-agent[31508]: DEBUG ovsdbapp.backend.ovs_idl.vlog [-] [POLLIN] on fd 15 {{(pid=31508) ...:246}}
    207 Jun 06 10:18:19 10-9-157-7 neutron-dhcp-agent[31508]: DEBUG ovsdbapp.backend.ovs_idl.vlog [-] [POLLIN] on fd 15 {{(pid=31508) ...:246}}
    208 Jun 06 10:18:20 10-9-157-7 neutron-dhcp-agent[31508]: DEBUG ovsdbapp.backend.ovs_idl.vlog [-] [POLLIN] on fd 15 {{(pid=31508) ...:246}}
    209 
    210 ● devstack@q-meta.service - Devstack devstack@q-meta.service
    211    Loaded: loaded (/etc/systemd/system/devstack@q-meta.service; enabled; vendor preset: disabled)
    212    Active: active (running) since Mon 2017-06-05 19:16:34 CST; 15h ago
    213  Main PID: 32079 (neutron-metadat)
    214    CGroup: /system.slice/system-devstack.slice/devstack@q-meta.service
    215            ├─32079 /usr/bin/python /usr/bin/neutron-metadata-agent --config-file /etc/neutron/neutron.conf --config-file /etc/neutro...
    216            ├─32265 /usr/bin/python /usr/bin/neutron-metadata-agent --config-file /etc/neutron/neutron.conf --config-file /etc/neutro...
    217            └─32266 /usr/bin/python /usr/bin/neutron-metadata-agent --config-file /etc/neutron/neutron.conf --config-file /etc/neutro...
    218 
    219 Jun 05 19:18:25 10-9-157-7 neutron-metadata-agent[32079]: hmac_keys = SECRET_KEY
    220 Jun 05 19:18:25 10-9-157-7 neutron-metadata-agent[32079]: sentinel_service_name = mymaster
    221 Jun 05 19:18:25 10-9-157-7 neutron-metadata-agent[32079]: socket_timeout = 0.1
    222 Jun 05 19:18:25 10-9-157-7 neutron-metadata-agent[32079]: trace_sqlalchemy = False
    223 Jun 05 19:18:25 10-9-157-7 neutron-metadata-agent[32079]: service_providers:
    224 Jun 05 19:18:25 10-9-157-7 neutron-metadata-agent[32079]: service_provider =
    225 Jun 05 19:18:25 10-9-157-7 neutron-metadata-agent[32079]: xenapi:
    226 Jun 05 19:18:25 10-9-157-7 neutron-metadata-agent[32079]: connection_password = ***
    227 Jun 05 19:18:25 10-9-157-7 neutron-metadata-agent[32079]: connection_url = None
    228 Jun 05 19:18:25 10-9-157-7 neutron-metadata-agent[32079]: connection_username = None
    229 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/

  • 相关阅读:
    Freemarker
    加解密算法、消息摘要、消息认证技术、数字签名与公钥证书
    Jenkins入门
    kafka实战
    多线程文件下载
    Excel操作报表
    @Pointcut 使用@annotation 带参数
    博客园设置
    Windows下 tensorboard显示No graph definition files were found的问题解决
    通过GitHub Desktop 上传代码到github 远程仓库
  • 原文地址:https://www.cnblogs.com/rysinal/p/6944769.html
Copyright © 2011-2022 走看看