본문 바로가기

카테고리 없음

[Centos7/Openstack]Openstack Horizon

[root@controller ~]# yum install openstack-dashboard
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: mirror.navercorp.com
 * centos-ceph-nautilus: mirror.navercorp.com
 * centos-nfs-ganesha28: mirror.navercorp.com
 * centos-openstack-stein: mirror.navercorp.com
 * centos-qemu-ev: mirror.navercorp.com
 * extras: mirror.navercorp.com
 * updates: mirror.navercorp.com
base                                                                  | 3.6 kB  00:00:00
centos-ceph-nautilus                                                  | 3.0 kB  00:00:00
centos-nfs-ganesha28                                                  | 3.0 kB  00:00:00
centos-openstack-stein                                                | 3.0 kB  00:00:00
centos-qemu-ev                                                        | 3.0 kB  00:00:00
extras                                                                | 2.9 kB  00:00:00
updates                                                               | 2.9 kB  00:00:00

....생략.....

  xstatic-termjs-common.noarch 0:0.0.7.0-1.el7
  xstatic-tv4-common.noarch 0:1.2.7.0-0.1.pre_review.el7

Complete!
[root@controller ~]# systemctl status httpd.service memcached.service
● httpd.service - The Apache HTTP Server
   Loaded: loaded (/usr/lib/systemd/system/httpd.service; enabled; vendor preset: disabled)
  Drop-In: /usr/lib/systemd/system/httpd.service.d
           └─openstack-dashboard.conf
   Active: failed (Result: exit-code) since Sat 2023-10-07 11:34:58 KST; 13s ago
     Docs: man:httpd(8)
           man:apachectl(8)
  Process: 28379 ExecStop=/bin/kill -WINCH ${MAINPID} (code=exited, status=0/SUCCESS)
  Process: 1142 ExecStart=/usr/sbin/httpd $OPTIONS -DFOREGROUND (code=exited, status=0/SUCCESS)
  Process: 28393 ExecStartPre=/usr/bin/python2 /usr/share/openstack-dashboard/manage.py collectstatic --noinput --clear -v0 (code=exited, status=1/FAILURE)
 Main PID: 1142 (code=exited, status=0/SUCCESS)

Oct 07 11:34:58 controller python2[28393]: __import__(name)
Oct 07 11:34:58 controller python2[28393]: File "/usr/share/openstack-dashboard/openstac...e>
Oct 07 11:34:58 controller python2[28393]: from local.local_settings import *  # noqa: F...03
Oct 07 11:34:58 controller python2[28393]: File "/usr/share/openstack-dashboard/openstac...e>
Oct 07 11:34:58 controller python2[28393]: 'enable_quotas': Falsea,
Oct 07 11:34:58 controller python2[28393]: NameError: name 'Falsea' is not defined
Oct 07 11:34:58 controller systemd[1]: httpd.service: control process exited, code=exit...s=1
Oct 07 11:34:58 controller systemd[1]: Failed to start The Apache HTTP Server.
Oct 07 11:34:58 controller systemd[1]: Unit httpd.service entered failed state.
Oct 07 11:34:58 controller systemd[1]: httpd.service failed.

● memcached.service - memcached daemon
   Loaded: loaded (/usr/lib/systemd/system/memcached.service; enabled; vendor preset: disabled)
   Active: active (running) since Sat 2023-10-07 11:34:58 KST; 14s ago
 Main PID: 28392 (memcached)
   CGroup: /system.slice/memcached.service
           └─28392 /usr/bin/memcached -p 11211 -u memcached -m 64 -c 1024 -l 127.0.0.1,::1...

Oct 07 11:34:58 controller systemd[1]: Started memcached daemon.
Hint: Some lines were ellipsized, use -l to show in full.
[root@controller ~]# systemctl start httpd.service memcached.service
Job for httpd.service failed because the control process exited with error code. See "systemctl status httpd.service" and "journalctl -xe" for details.
[root@controller ~]# systemctl start httpd.service memcached.serviceclient_loop: send disconnect: Connection reset

C:\Users\user>ssh user@192.168.56.10
user@192.168.56.10's password:
Last login: Sat Oct  7 10:10:11 2023 from 192.168.56.101
[user@controller ~]$ su - root
Password:
Last login: Sat Oct  7 10:10:17 KST 2023 on pts/1
[root@controller ~]# systemctl status httpd.service memcached.service
● httpd.service - The Apache HTTP Server
   Loaded: loaded (/usr/lib/systemd/system/httpd.service; enabled; vendor preset: disabled)
  Drop-In: /usr/lib/systemd/system/httpd.service.d
           └─openstack-dashboard.conf
   Active: failed (Result: exit-code) since Sat 2023-10-07 11:35:37 KST; 44min ago
     Docs: man:httpd(8)
           man:apachectl(8)
  Process: 28379 ExecStop=/bin/kill -WINCH ${MAINPID} (code=exited, status=0/SUCCESS)
  Process: 1142 ExecStart=/usr/sbin/httpd $OPTIONS -DFOREGROUND (code=exited, status=0/SUCCESS)
  Process: 28465 ExecStartPre=/usr/bin/python2 /usr/share/openstack-dashboard/manage.py collectstatic --noinput --clear -v0 (code=exited, status=1/FAILURE)
 Main PID: 1142 (code=exited, status=0/SUCCESS)

Oct 07 11:35:37 controller python2[28465]: __import__(name)
Oct 07 11:35:37 controller python2[28465]: File "/usr/share/openstack-dashboard/openstac...e>
Oct 07 11:35:37 controller python2[28465]: from local.local_settings import *  # noqa: F...03
Oct 07 11:35:37 controller python2[28465]: File "/usr/share/openstack-dashboard/openstac...e>
Oct 07 11:35:37 controller python2[28465]: 'enable_quotas': Falsea,
Oct 07 11:35:37 controller python2[28465]: NameError: name 'Falsea' is not defined
Oct 07 11:35:37 controller systemd[1]: httpd.service: control process exited, code=exit...s=1
Oct 07 11:35:37 controller systemd[1]: Failed to start The Apache HTTP Server.
Oct 07 11:35:37 controller systemd[1]: Unit httpd.service entered failed state.
Oct 07 11:35:37 controller systemd[1]: httpd.service failed.

● memcached.service - memcached daemon
   Loaded: loaded (/usr/lib/systemd/system/memcached.service; enabled; vendor preset: disabled)
   Active: active (running) since Sat 2023-10-07 11:34:58 KST; 45min ago
 Main PID: 28392 (memcached)
   CGroup: /system.slice/memcached.service
           └─28392 /usr/bin/memcached -p 11211 -u memcached -m 64 -c 1024 -l 127.0.0.1,::1...

Oct 07 11:34:58 controller systemd[1]: Started memcached daemon.
Hint: Some lines were ellipsized, use -l to show in full.
[root@controller ~]# systemctl restart httpd.service memcached.service
Job for httpd.service failed because the control process exited with error code. See "systemctl status httpd.service" and "journalctl -xe" for details.
[root@controller ~]# systemctl status httpd.service memcached.service
● httpd.service - The Apache HTTP Server
   Loaded: loaded (/usr/lib/systemd/system/httpd.service; enabled; vendor preset: disabled)
  Drop-In: /usr/lib/systemd/system/httpd.service.d
           └─openstack-dashboard.conf
   Active: failed (Result: exit-code) since Sat 2023-10-07 12:20:16 KST; 1s ago
     Docs: man:httpd(8)
           man:apachectl(8)
  Process: 28379 ExecStop=/bin/kill -WINCH ${MAINPID} (code=exited, status=0/SUCCESS)
  Process: 1142 ExecStart=/usr/sbin/httpd $OPTIONS -DFOREGROUND (code=exited, status=0/SUCCESS)
  Process: 29581 ExecStartPre=/usr/bin/python2 /usr/share/openstack-dashboard/manage.py collectstatic --noinput --clear -v0 (code=exited, status=1/FAILURE)
 Main PID: 1142 (code=exited, status=0/SUCCESS)

Oct 07 12:20:16 controller python2[29581]: __import__(name)
Oct 07 12:20:16 controller python2[29581]: File "/usr/share/openstack-dashboard/openstac...e>
Oct 07 12:20:16 controller python2[29581]: from local.local_settings import *  # noqa: F...03
Oct 07 12:20:16 controller python2[29581]: File "/usr/share/openstack-dashboard/openstac...e>
Oct 07 12:20:16 controller python2[29581]: 'enable_quotas': Falsea,
Oct 07 12:20:16 controller python2[29581]: NameError: name 'Falsea' is not defined
Oct 07 12:20:16 controller systemd[1]: httpd.service: control process exited, code=exit...s=1
Oct 07 12:20:16 controller systemd[1]: Failed to start The Apache HTTP Server.
Oct 07 12:20:16 controller systemd[1]: Unit httpd.service entered failed state.
Oct 07 12:20:16 controller systemd[1]: httpd.service failed.

● memcached.service - memcached daemon
   Loaded: loaded (/usr/lib/systemd/system/memcached.service; enabled; vendor preset: disabled)
   Active: active (running) since Sat 2023-10-07 12:20:15 KST; 2s ago
 Main PID: 29585 (memcached)
   CGroup: /system.slice/memcached.service
           └─29585 /usr/bin/memcached -p 11211 -u memcached -m 64 -c 1024 -l 127.0.0.1,::1...

Oct 07 12:20:15 controller systemd[1]: Started memcached daemon.
Hint: Some lines were ellipsized, use -l to show in full.
[root@controller ~]#  vi /etc/openstack-dashboard/local_settings
[root@controller ~]# [root@controller ~]# [root@controller ~]#  vi /etc/openstack-dashboard/local_settings
[root@controller ~]# systemctl restart httpd.service memcached.serviced/local_settings
[root@controller ~]# systemctl status httpd.service memcached.service
● httpd.service - The Apache HTTP Server
   Loaded: loaded (/usr/lib/systemd/system/httpd.service; enabled; vendor preset: disabled)
  Drop-In: /usr/lib/systemd/system/httpd.service.d
           └─openstack-dashboard.conf
   Active: active (running) since Sat 2023-10-07 12:23:02 KST; 2s ago
     Docs: man:httpd(8)
           man:apachectl(8)
  Process: 28379 ExecStop=/bin/kill -WINCH ${MAINPID} (code=exited, status=0/SUCCESS)
  Process: 29765 ExecStartPre=/usr/bin/python2 /usr/share/openstack-dashboard/manage.py compress --force -v0 (code=exited, status=0/SUCCESS)
  Process: 29733 ExecStartPre=/usr/bin/python2 /usr/share/openstack-dashboard/manage.py collectstatic --noinput --clear -v0 (code=exited, status=0/SUCCESS)
 Main PID: 29789 (httpd)
   Status: "Processing requests..."
   CGroup: /system.slice/httpd.service
           ├─29789 /usr/sbin/httpd -DFOREGROUND
           ├─29791 /usr/sbin/httpd -DFOREGROUND
           ├─29792 (wsgi:keystone- -DFOREGROUND
           ├─29793 (wsgi:keystone- -DFOREGROUND
           ├─29794 (wsgi:keystone- -DFOREGROUND
           ├─29795 (wsgi:keystone- -DFOREGROUND
           ├─29796 (wsgi:keystone- -DFOREGROUND
           ├─29797 /usr/sbin/httpd -DFOREGROUND
           ├─29798 /usr/sbin/httpd -DFOREGROUND
           ├─29799 /usr/sbin/httpd -DFOREGROUND
           ├─29800 /usr/sbin/httpd -DFOREGROUND
           └─29801 /usr/sbin/httpd -DFOREGROUND

Oct 07 12:22:44 controller systemd[1]: Starting The Apache HTTP Server...
Oct 07 12:23:02 controller python2[29765]: Compressing... done
Oct 07 12:23:02 controller python2[29765]: Compressed 7 block(s) from 4 template(s) for ...).
Oct 07 12:23:02 controller systemd[1]: Started The Apache HTTP Server.

● memcached.service - memcached daemon
   Loaded: loaded (/usr/lib/systemd/system/memcached.service; enabled; vendor preset: disabled)
   Active: active (running) since Sat 2023-10-07 12:22:44 KST; 20s ago
 Main PID: 29737 (memcached)
   CGroup: /system.slice/memcached.service
           └─29737 /usr/bin/memcached -p 11211 -u memcached -m 64 -c 1024 -l 127.0.0.1,::1...

Oct 07 12:22:44 controller systemd[1]: Started memcached daemon.
Hint: Some lines were ellipsized, use -l to show in full.
[root@controller ~]# tail /var/log/httpd/
tail: error reading ‘/var/log/httpd/’: Is a directory
[root@controller ~]# tail /var/log/httpd/
access_log           error_log            keystone_access.log  keystone.log
[root@controller ~]# tail /var/log/httpd/error_log
[Tue Oct 03 10:44:57.816552 2023] [suexec:notice] [pid 1142] AH01232: suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Tue Oct 03 10:44:57.886174 2023] [lbmethod_heartbeat:notice] [pid 1142] AH02282: No slotmem from mod_heartmonitor
[Tue Oct 03 10:44:57.930873 2023] [mpm_prefork:notice] [pid 1142] AH00163: Apache/2.4.6 (CentOS) mod_wsgi/3.4 Python/2.7.5 configured -- resuming normal operations
[Tue Oct 03 10:44:57.930915 2023] [core:notice] [pid 1142] AH00094: Command line: '/usr/sbin/httpd -D FOREGROUND'
[Sat Oct 07 11:34:56.851733 2023] [mpm_prefork:notice] [pid 1142] AH00170: caught SIGWINCH, shutting down gracefully
[Sat Oct 07 12:23:02.607184 2023] [core:notice] [pid 29789] SELinux policy enabled; httpd running as context system_u:system_r:httpd_t:s0
[Sat Oct 07 12:23:02.608228 2023] [suexec:notice] [pid 29789] AH01232: suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Sat Oct 07 12:23:02.617515 2023] [lbmethod_heartbeat:notice] [pid 29789] AH02282: No slotmem from mod_heartmonitor
[Sat Oct 07 12:23:02.622351 2023] [mpm_prefork:notice] [pid 29789] AH00163: Apache/2.4.6 (CentOS) mod_wsgi/3.4 Python/2.7.5 configured -- resuming normal operations
[Sat Oct 07 12:23:02.622381 2023] [core:notice] [pid 29789] AH00094: Command line: '/usr/sbin/httpd -D FOREGROUND'
[root@controller ~]#  vi /etc/openstack-dashboard/local_settings
[root@controller ~]#  vi /etc/openstack-dashboard/local_settingssettings
[root@controller ~]# systemctl restart httpd.service memcached.service
[root@controller ~]# systemctl status httpd.service memcached.service
● httpd.service - The Apache HTTP Server
   Loaded: loaded (/usr/lib/systemd/system/httpd.service; enabled; vendor preset: disabled)
  Drop-In: /usr/lib/systemd/system/httpd.service.d
           └─openstack-dashboard.conf
   Active: active (running) since Sat 2023-10-07 12:28:10 KST; 3s ago
     Docs: man:httpd(8)
           man:apachectl(8)
  Process: 30034 ExecStop=/bin/kill -WINCH ${MAINPID} (code=exited, status=0/SUCCESS)
  Process: 30076 ExecStartPre=/usr/bin/python2 /usr/share/openstack-dashboard/manage.py compress --force -v0 (code=exited, status=0/SUCCESS)
  Process: 30048 ExecStartPre=/usr/bin/python2 /usr/share/openstack-dashboard/manage.py collectstatic --noinput --clear -v0 (code=exited, status=0/SUCCESS)
 Main PID: 30102 (httpd)
   Status: "Processing requests..."
   CGroup: /system.slice/httpd.service
           ├─30102 /usr/sbin/httpd -DFOREGROUND
           ├─30104 /usr/sbin/httpd -DFOREGROUND
           ├─30105 (wsgi:keystone- -DFOREGROUND
           ├─30106 (wsgi:keystone- -DFOREGROUND
           ├─30107 (wsgi:keystone- -DFOREGROUND
           ├─30108 (wsgi:keystone- -DFOREGROUND
           ├─30109 (wsgi:keystone- -DFOREGROUND
           ├─30110 /usr/sbin/httpd -DFOREGROUND
           ├─30111 /usr/sbin/httpd -DFOREGROUND
           ├─30112 /usr/sbin/httpd -DFOREGROUND
           ├─30113 /usr/sbin/httpd -DFOREGROUND
           └─30114 /usr/sbin/httpd -DFOREGROUND

Oct 07 12:27:52 controller systemd[1]: Starting The Apache HTTP Server...
Oct 07 12:28:09 controller python2[30076]: Compressing... done
Oct 07 12:28:09 controller python2[30076]: Compressed 7 block(s) from 4 template(s) for ...).
Oct 07 12:28:10 controller systemd[1]: Started The Apache HTTP Server.

● memcached.service - memcached daemon
   Loaded: loaded (/usr/lib/systemd/system/memcached.service; enabled; vendor preset: disabled)
   Active: active (running) since Sat 2023-10-07 12:27:52 KST; 21s ago
 Main PID: 30047 (memcached)
   CGroup: /system.slice/memcached.service
           └─30047 /usr/bin/memcached -p 11211 -u memcached -m 64 -c 1024 -l 127.0.0.1,::1...

Oct 07 12:27:52 controller systemd[1]: Started memcached daemon.
Hint: Some lines were ellipsized, use -l to show in full.
[root@controller ~]# firewall-cmd --add-service={http,https} --permanent
success
[root@controller ~]# firewall-cmd --reload
success
[root@controller ~]# firewall-cmd --add-service={http,https} --permanent ^C
[root@controller ~]# openstack network agent list
Missing value auth-url required for auth plugin password
[root@controller ~]# . admin-openrc
[root@controller ~]# openstack network agent list
+--------------------------------------+----------------+------------+-------------------+-------+-------+------------------------+
| ID                                   | Agent Type     | Host       | Availability Zone | Alive | State | Binary                 |
+--------------------------------------+----------------+------------+-------------------+-------+-------+------------------------+
| a13bd3f8-85a0-4b5b-924a-65d37071eed9 | DHCP agent     | controller | nova              | :-)   | UP    | neutron-dhcp-agent     |
| a3eb781e-30de-4a98-8111-08d6f0de432e | Metadata agent | controller | None              | :-)   | UP    | neutron-metadata-agent |
+--------------------------------------+----------------+------------+-------------------+-------+-------+------------------------+
[root@controller ~]# openstack compute service list
+----+----------------+------------+----------+---------+-------+----------------------------+
| ID | Binary         | Host       | Zone     | Status  | State | Updated At                 |
+----+----------------+------------+----------+---------+-------+----------------------------+
|  1 | nova-scheduler | controller | internal | enabled | up    | 2023-10-07T03:33:03.000000 |
|  2 | nova-conductor | controller | internal | enabled | up    | 2023-10-07T03:33:02.000000 |
|  6 | nova-compute   | compute1   | nova     | enabled | up    | 2023-10-07T03:33:04.000000 |
+----+----------------+------------+----------+---------+-------+----------------------------+
[root@controller ~]# client_loop: send disconnect: Connection reset