The Openstack WebUI page cannot be opened, and the page reports a 500 error. Check the httpd->error_log
log and report the following error:
[Tue Apr 02 14:01:05.658276 2019] [:error] [pid 9245] File "/usr/lib/python2.7/site-packages/requests/sessions.py", line 518, in request
[Tue Apr 02 14:01:05.658280 2019] [:error] [pid 9245] File "/usr/lib/python2.7/site-packages/requests/sessions.py", line 639, in send
[Tue Apr 02 14:01:05.658284 2019] [:error] [pid 9245] File "/usr/lib/python2.7/site-packages/requests/adapters.py", line 438, in send
[Tue Apr 02 14:01:05.658287 2019] [:error] [pid 9245] File "/usr/lib/python2.7/site-packages/requests/packages/urllib3/connectionpool.py", line 588, in urlopen
[Tue Apr 02 14:01:05.658291 2019] [:error] [pid 9245] File "/usr/lib/python2.7/site-packages/requests/packages/urllib3/connectionpool.py", line 241, in _get_conn
[Tue Apr 02 14:01:05.658296 2019] [:error] [pid 9245] File "/usr/lib/python2.7/site-packages/requests/packages/urllib3/util/connection.py", line 27, in is_connection_dropped
[Tue Apr 02 14:01:05.658300 2019] [:error] [pid 9245] File "/usr/lib/python2.7/site-packages/requests/packages/urllib3/util/wait.py", line 33, in wait_for_read
[Tue Apr 02 14:01:05.658304 2019] [:error] [pid 9245] File "/usr/lib/python2.7/site-packages/requests/packages/urllib3/util/wait.py", line 22, in _wait_for_io_events
[Tue Apr 02 14:01:05.658308 2019] [:error] [pid 9245] File "/usr/lib/python2.7/site-packages/requests/packages/urllib3/util/selectors.py", line 581, in DefaultSelector
[Tue Apr 02 14:01:05.658312 2019] [:error] [pid 9245] File "/usr/lib/python2.7/site-packages/requests/packages/urllib3/util/selectors.py", line 394, in __init__
[Tue Apr 02 14:01:05.658316 2019] [:error] [pid 9245] IOError: [Errno 24] Too many open files
Modify the number of files opened by the operating system; log in to the Controller node and execute:
[root@controller ~]# ulimit -a
core file size (blocks, -c) 0
data seg size (kbytes, -d) unlimited
scheduling priority (-e) 0
file size (blocks, -f) unlimited
pending signals (-i) 60587
max locked memory (kbytes, -l) 64
max memory size (kbytes, -m) unlimited
open files (-n) 1024
pipe size (512 bytes, -p) 8
POSIX message queues (bytes, -q) 819200
real-time priority (-r) 0
stack size (kbytes, -s) 8192
cpu time (seconds, -t) unlimited
max user processes (-u) 60587
virtual memory (kbytes, -v) unlimited
file locks (-x) unlimited
The system default setting is 1024.
Use the command to view the number of currently open files:
[root@controller ~]# lsof | wc -l
174911
Modify vim /etc/security/limits.conf
and add the following information at the end of the file:
* soft nofile 1024000
* hard nofile 1024000
*
Means all users,
Restart the server after modification and the configuration will take effect.