找回密码
 注册
查看: 2225|回复: 0

openstack install Horizon 安装dashboard界面

[复制链接]

1

主题

0

回帖

12

积分

管理员

积分
12
QQ
发表于 2021-7-18 23:12:52 | 显示全部楼层 |阅读模式
Install and configure components
) }! z! B  Z0 b# X# ~  n
0 q) D% q& U6 E- D% }Note# V4 k+ u2 q, I( l$ o+ S7 v
Default configuration files vary by distribution. You might need to add these sections and options rather than modifying existing sections and options. Also, an ellipsis (...) in the configuration snippets indicates potential default configuration options that you should retain.

1 e4 M- @2 t( u- S" G6 N' C
  • Install the packages:
    # yum install openstack-dashboard0 G+ r7 o- J5 _4 j) l
    # i, a2 S! U+ h! S8 n$ T2 Y
  • Edit the /etc/openstack-dashboard/local_settings file and complete the following actions:
    • Configure the dashboard to use OpenStack services on the controller node:
      OPENSTACK_HOST = "controller"+ I/ L7 [& y; x/ p+ t
      . X0 ~. Y' n# Z' J/ R) o! Q0 {
    • Allow your hosts to access the dashboard:
      ALLOWED_HOSTS = ['one.example.com', 'two.example.com'
      0 }1 v" g* k( e  F# h4 Y
      ' ?- o/ x* E  h; w" B* c& S, w' R* b* ^/ l# w8 r1 C
        Q: q( o9 y$ D. A' L6 g5 E. Y
      Note
      $ b8 |0 X2 h; y) e6 N" |
      ALLOWED_HOSTS can also be [‘*’] to accept all hosts. This may be useful for development work, but is potentially insecure and should not be used in production. See https://docs.djangoproject.com/en/dev/ref/settings/#allowed-hosts for further information.

      5 W: j9 _, P" g# ~& `' d9 v
    • Configure the memcached session storage service:
      SESSION_ENGINE = 'django.contrib.sessions.backends.cache'CACHES = {    'default': {         'BACKEND': 'django.core.cache.backends.memcached.MemcachedCache',         'LOCATION': 'controller:11211',    }}
      + _" Z1 [  l# F/ }
      . d! y- a' O( w' R6 `9 G) M' |+ ^; A5 [, y3 Z! J2 D

      0 ^9 r% D) S6 Y! |Note# D% @3 c( B' m8 L& O" |2 o
      Comment out any other session storage configuration.
      8 k8 U+ u2 E9 {6 \
    • Enable the Identity API version 3:
      OPENSTACK_KEYSTONE_URL = "http://%s/identity/v3" % OPENSTACK_HOST
      $ T9 k& [& A  L- T: Q! F
      , ]1 L% E( V; l3 m
    • Enable support for domains:
      OPENSTACK_KEYSTONE_MULTIDOMAIN_SUPPORT = True8 B5 N5 b  K. l; f2 Z3 M$ @

      1 M% F/ W: |8 s- U
    • Configure API versions:
      OPENSTACK_API_VERSIONS = {    "identity": 3,    "image": 2,    "volume": 3,}4 d. q; d) x9 Y5 P3 E( M6 y6 S. g

      6 S7 S; F* e8 Y6 e
    • Configure Default as the default domain for users that you create via the dashboard:
      OPENSTACK_KEYSTONE_DEFAULT_DOMAIN = "Default"
      # |2 w  n! R( d8 T% L- L' ^' G/ Q" {8 l3 \" {7 L* m" a& E
    • Configure user as the default role for users that you create via the dashboard:
      OPENSTACK_KEYSTONE_DEFAULT_ROLE = "user"7 M+ b  P0 v  V6 q6 Z* B, `
      ; ^& a/ e! ~, h$ X1 K0 e9 S
    • If you chose networking option 1, disable support for layer-3 networking services:
      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,}+ l5 B* v6 Q, i' x' T+ U# \- x
      2 l$ i$ M$ E- P) t1 Z- S
    • Optionally, configure the time zone:
      TIME_ZONE = "TIME_ZONE"
      , r7 A- w" B- B8 ^4 S; n- b) X2 \5 U5 N- N+ {
      Replace TIME_ZONE with an appropriate time zone identifier. For more information, see the list of time zones.

      # M$ s  n- k' Y8 p* e$ L( V9 c& b/ t
  • Add the following line to /etc/httpd/conf.d/openstack-dashboard.conf if not included.
    WSGIApplicationGroup %{GLOBAL}
    2 n3 g5 E8 L# k7 w9 M2 P% O' {7 B+ l$ [3 a

    % ^' E# ?( b) s+ [3 v& ^
5 @6 Z3 z; `1 x' }
Finalize installation
  • Restart the web server and session storage service:
    # systemctl restart httpd.service memcached.service' K  ?2 I  h5 R

    / M" c8 Z3 L3 F* O" j& m. x2 E9 H/ |7 c& Q0 G( P
    & \! ~  D  @$ _
    Note  m) y: s& V" {/ a5 f
    The systemctl restart command starts each service if not currently running.

    ' H3 A  ?9 G) i9 c
    . X# q1 w& P/ A3 K3 ^; z6 s7 P
* j, _" A7 X" g

. S& g3 q& f* x' ~
您需要登录后才可以回帖 登录 | 注册

本版积分规则

返回首页|Archiver|手机版|小黑屋|易陆发现技术论坛 ( 蜀ICP备2026014127号-1 )

GMT+8, 2026-6-12 02:05 , Processed in 0.022936 second(s), 23 queries .

Powered by Discuz! X5.0

© 2001-2026 Discuz! Team.

快速回复 返回顶部 返回列表