易陆发现互联网技术论坛

 找回密码
 开始注册
查看: 2224|回复: 0
收起左侧

openstack install Horizon 安装dashboard界面

[复制链接]
发表于 2021-7-18 23:12:52 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有账号?开始注册

x
Install and configure components+ Z7 y# F& O* y6 j! Z4 A) Z! Z3 {" h

2 t3 B% j' F: {# Q% ?" h% V! M1 R/ ^Note
# H" E$ ]. T5 ~" {# b7 A
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.
7 J. T9 {( W8 G! g! ~
  • Install the packages:
    # yum install openstack-dashboard, p, `# M: Y8 V6 L( ^. A+ ~4 y1 p
    1 {8 E- A3 _/ k6 ^
  • 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"4 j, v; h3 j: u8 B4 f
      4 s$ d* ~8 N: L$ n$ Z- U0 T
    • Allow your hosts to access the dashboard:
      ALLOWED_HOSTS = ['one.example.com', 'two.example.com'
      9 J0 F5 N' w6 w  q* |
      4 @. o7 _9 t% \" ~0 |) f* l
      ( a( ]" U/ D7 T5 X' A. f
      2 O: X: ^9 {. j0 V/ A& aNote
      5 r# X% J6 g1 n4 O1 d$ {0 _
      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.
      " w( I' x1 J9 B9 {  x8 m: T5 n
    • 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',    }}, l9 j# f9 Q$ ]

      6 c, \/ m2 _+ Q& m: Q4 W) C
        A  i% H' R& q# C8 n
      , i: [1 |$ L6 v. d8 S8 Y6 X$ {6 ?Note
      6 ?) ?& ~, H. S  H5 U# d: H9 `# ?
      Comment out any other session storage configuration.

      5 h4 B, x! E2 X
    • Enable the Identity API version 3:
      OPENSTACK_KEYSTONE_URL = "http://%s/identity/v3" % OPENSTACK_HOST
      / \! T: i% a- ^" o3 k7 ~, V: n
      & `( y; ~% X5 a0 t
    • Enable support for domains:
      OPENSTACK_KEYSTONE_MULTIDOMAIN_SUPPORT = True
      ( R( F( C  ~$ C4 u# v1 O3 _  r! U4 X
    • Configure API versions:
      OPENSTACK_API_VERSIONS = {    "identity": 3,    "image": 2,    "volume": 3,}
      5 X& a. H( \" F8 s2 O5 O6 j" C& d8 n: U5 r) p! f
    • Configure Default as the default domain for users that you create via the dashboard:
      OPENSTACK_KEYSTONE_DEFAULT_DOMAIN = "Default"$ v4 S" _" H/ w
      " O8 A3 U) r+ _( S  Z4 j
    • Configure user as the default role for users that you create via the dashboard:
      OPENSTACK_KEYSTONE_DEFAULT_ROLE = "user"0 I2 ^! L: e+ _/ z
      + n8 w8 N) u8 a
    • 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,}. {" g0 I: z* W4 K
      ! c" S' Q2 q% S  y
    • Optionally, configure the time zone:
      TIME_ZONE = "TIME_ZONE"
      9 ~7 w. z4 H/ n$ H* F  B
      # s  G/ x2 }4 o
      Replace TIME_ZONE with an appropriate time zone identifier. For more information, see the list of time zones.
      : {; x' M( I& b. E0 M- k: q6 V/ v
  • Add the following line to /etc/httpd/conf.d/openstack-dashboard.conf if not included.
    WSGIApplicationGroup %{GLOBAL}) X" o0 e8 ^* D6 N$ m

    ' [, x! o# B" a6 j! J5 [$ n. ?' v3 t/ G
) N7 _( `0 I% @& N7 J
Finalize installation
  • Restart the web server and session storage service:
    # systemctl restart httpd.service memcached.service" k# w- x  V, \! y* J7 j" U

    & E. H0 L3 A1 E' B& L' U6 u. a3 Y
    5 H6 w) O9 h- e' c  ?+ d7 j/ D3 T9 r" F8 J- p6 L8 ?$ y
    Note
    " p( v+ [' [! s$ J9 N& ?8 t
    The systemctl restart command starts each service if not currently running.

    ' e/ |$ J' l6 l. E+ \! C1 A  [0 f/ @& X  l$ ]# D& Z

3 u; q  t' ]& f+ D
3 U# m6 O5 _* @7 E0 U: x  T
您需要登录后才可以回帖 登录 | 开始注册

本版积分规则

关闭

站长推荐上一条 /4 下一条

北京云银创陇科技有限公司以云计算运维,代码开发

QQ|返回首页|Archiver|小黑屋|易陆发现技术论坛 ( 蜀ICP备2026014127号-1 )点击这里给我发消息

GMT+8, 2026-4-8 21:23 , Processed in 0.048594 second(s), 22 queries .

Powered by Discuz! X3.4 Licensed

© 2012-2025 Discuz! Team.

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