7、dashboard安装配置

1、创建虚拟机之前检查

nova service-list

+----+------------------+--------------------------+----------+---------+-------+----------------------------+-----------------+
| Id | Binary           | Host                     | Zone     | Status  | State | Updated_at                 | Disabled Reason |
+----+------------------+--------------------------+----------+---------+-------+----------------------------+-----------------+
| 1  | nova-consoleauth | openstack-node1          | internal | enabled | up    | 2018-12-17T07:03:16.000000 | -               |
| 2  | nova-conductor   | openstack-node1          | internal | enabled | up    | 2018-12-17T07:03:15.000000 | -               |
| 4  | nova-scheduler   | openstack-node1          | internal | enabled | up    | 2018-12-17T07:03:18.000000 | -                           |
| 11 | nova-compute     | computer-node1           | nova     | enabled | up    | 2018-12-17T07:03:17.000000 | -               |
+----+------------------+--------------------------+----------+---------+-------+----------------------------+-----------------+



neutron agent-list

+--------------------------------------+--------------------+-----------------+-------------------+-------+----------------+---------------------------+
| id                                   | agent_type         | host            | availability_zone | alive | admin_state_up | binary                    |
+--------------------------------------+--------------------+-----------------+-------------------+-------+----------------+---------------------------+
| 4d79e369-3206-431b-80df-501f44d9f9a5 | Metadata agent     | openstack-node1 |                   | :-)   | True           | neutron-metadata-agent    |
| 9fbd2288-35b0-4192-8c74-6c6d0864c2a7 | Linux bridge agent | computer-node1  |                   | :-)   | True           | neutron-linuxbridge-agent |
| c1d0fd88-825f-4297-8221-befd6b6bdf42 | Linux bridge agent | openstack-node1 |                   | :-)   | True           | neutron-linuxbridge-agent |
| d7acfde8-571a-4701-a8e9-7ae1da3e8fd9 | DHCP agent         | openstack-node1 | nova              | :-)   | True           | neutron-dhcp-agent        |
+--------------------------------------+--------------------+-----------------+-------------------+-------+----------------+---------------------------+

2、在node2上安装

yum install openstack-dashboard

3、配置/etc/openstack-dashboard/local_settings

  3.1 配置keystone连接

  

OPENSTACK_HOST = "192.168.90.254"

  3.2 配置允许使用的主机

ALLOWED_HOSTS = ['*',]

  3.3 配置会话存储服务

SESSION_ENGINE = 'django.contrib.sessions.backends.cache'

CACHES = {
    'default': {
         'BACKEND': 'django.core.cache.backends.memcached.MemcachedCache',
         'LOCATION': '192.168.90.254:11211',
    }
}

  3.4 启用第3版认证API

OPENSTACK_KEYSTONE_URL = "http://%s:5000/v3" % OPENSTACK_HOST

  3.5 启用对域的支持

OPENSTACK_KEYSTONE_MULTIDOMAIN_SUPPORT = True

  3.6 配置API版本

OPENSTACK_API_VERSIONS = {
    "identity": 3,
    "image": 2,
    "volume": 2,
}

  3.7 通过仪表盘创建用户时默认default

OPENSTACK_KEYSTONE_DEFAULT_DOMAIN = "Default"

  3.8 通过仪表盘创建的用户默认角色配置为 user

OPENSTACK_KEYSTONE_DEFAULT_ROLE = "user"

  3.9 如果您选择flat网络,禁用支持3层网络服务

OPENSTACK_NEUTRON_NETWORK = {
    ...
    'enable_router': False,
    'enable_quotas': False,
    'enable_distributed_router': False,
    'enable_ha_router': False,
    'enable_lb': False,
    'enable_firewall': False,
    'enable_vpn': False,
    'enable_fip_topology_check': False,
}

  3.10 配置时区

TIME_ZONE = "TIME_ZONE"

4、重启服务

systemctl restart httpd.service memcached.service

猜你喜欢

转载自www.cnblogs.com/chuxiamoshang/p/10132817.html