七、OpenStack—dashboard组件安装

时间:2023-05-17 19:53:32

1、安装包
# yum install openstack-dashboard
2、编辑 /etc/openstack-dashboard/local_settings 文件

需要更改的几处内容如下:

)OPENSTACK_HOST = "controller"
)ALLOWED_HOSTS = ['one.example.com', 'two.example.com','*']
)SESSION_ENGINE = 'django.contrib.sessions.backends.cache'
)CACHES = {
'default': {
'BACKEND': 'django.core.cache.backends.memcached.MemcachedCache',
'LOCATION': 'controller:11211',
}
}
)OPENSTACK_KEYSTONE_URL = "http://%s:5000/v3" % OPENSTACK_HOST
)OPENSTACK_KEYSTONE_DEFAULT_DOMAIN = "Default"
)OPENSTACK_KEYSTONE_DEFAULT_ROLE = "user"
)
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,
}
)TIME_ZONE = "UTC"
10)OPENSTACK_API_VERSIONS = {
    "identity": 3,
"image": 2,
"volume": 2,
}

3、重新启动Web服务器和会话存储服务

# systemctl restart httpd.service memcached.service