|
|
openstack compute service list
+ N/ k6 v. z' C) V5 s; x+----+------------------+-------------+----------+---------+-------+------------+% ^3 p! t' j7 j% D, h
| ID | Binary | Host | Zone | Status | State | Updated At |# y M6 i W7 X, j1 ^
+----+------------------+-------------+----------+---------+-------+------------+* `, P8 Y7 k7 e) k- L
| 1 | nova-consoleauth | controller1 | internal | enabled | down | None |
0 a+ ]# X4 F h% `/ D/ T| 2 | nova-scheduler | controller1 | internal | enabled | down | None |6 A' U1 i8 u: }
| 3 | nova-conductor | controller1 | internal | enabled | down | None | z8 j' _) x0 x; {9 R6 |
+----+------------------+-------------+----------+---------+-------+------------+
3 R) H( ~# }- c% c8 ^
5 ^. f! k8 G' _6 R+ K服务都启动正常,为什么state状态为down状态呢?
3 \# {) u. }+ {- W9 V7 dnetstat -tnlp
6 a( i$ d5 @, q) [+ H8 PActive Internet connections (only servers)! ?+ T6 f2 S7 H* W! y7 K z7 a5 `
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
1 b p7 I7 j) Y; ptcp 0 0 192.168.90.65:15672 0.0.0.0:* LISTEN 12097/beam.smp 5 W7 \- x- a# A4 `% y
tcp 0 0 192.168.90.65:11211 0.0.0.0:* LISTEN 4894/memcached 6 i2 O/ T3 h9 j; w
tcp6 0 0 ::1:11211 :::* LISTEN 4894/memcached
" a9 ^- u: ~) c+ \2 J0 Z2 e: R发现这个又出现绑定端口的时候,这个服务启动状态,看来是memcached缓存数据库连接不上导致的
+ s9 o8 j1 c( e5 ?$ A) G修改) c9 W2 _' i' P
vim /etc/sysconfig/memcached
6 q+ p, ]1 p, E6 c+ v9 LOPTIONS="-l 127.0.0.1,::1,0.0.0.0"$ W0 H u2 x4 s: p
/ {# P! g+ B4 v0 J$ n& j0 x重新启动memcached服务。3 p7 ?$ G2 q N8 t
systemctl restart memcached.service
3 S u. j+ t9 p! s7 ~再次观察服务状态:! u+ J& t5 ]( v; v
openstack compute service list
$ f, ?1 g3 S% ?0 G) O/ D$ s: K+----+------------------+-------------+----------+---------+-------+----------------------------+7 n! f& `7 k) a3 ]3 i, B
| ID | Binary | Host | Zone | Status | State | Updated At |
! l5 p1 a: J; N! n% }% c% L+----+------------------+-------------+----------+---------+-------+----------------------------++ x9 S. z; G4 a1 |" c( ^. ^
| 1 | nova-consoleauth | controller1 | internal | enabled | up | 2018-09-05T13:00:58.000000 |5 U9 V) i! Q* w
| 2 | nova-scheduler | controller1 | internal | enabled | up | 2018-09-05T13:00:58.000000 |1 Q: l' ^* m9 B$ m1 y& q" G
| 3 | nova-conductor | controller1 | internal | enabled | up | 2018-09-05T13:00:57.000000 |
# {" [' l& g K0 @, T3 a| 7 | nova-compute | compute1 | nova | enabled | up | 2018-09-05T13:00:59.000000 |
/ ]9 _* H/ G3 @8 D/ l h( e+----+------------------+-------------+----------+---------+-------+----------------------------+
5 H8 { |. _ `6 |: L: l* n2 [: G" h6 n- p% j/ m
状态up了。这是什么情况?
# h, @8 M( A: v$ x' ]+ g; A还是公版安装包邮问题了,不能绑定ip端口,在haproxy中很不好弄,感觉好坑人。哎,什么时候才能学习bclinux那样,ip绑定端口后,like这样:
. M. Y- ]- y: q netstat -tnlp
) y$ E: m( S$ A5 A4 {Active Internet connections (only servers)
: N" F6 r2 T: X& [5 d. |# SProto Recv-Q Send-Q Local Address Foreign Address State PID/Program name 6 _, S0 A) {5 o7 j5 r B
0 l4 ~+ K- m. D
tcp 0 0 192.168.90.65:11211 0.0.0.0:* LISTEN 4894/memcached ( p* p+ `$ W: E
tcp 0 0 192.168.90.70:11211 0.0.0.0:* LISTEN haproxy) W2 D6 j a5 X3 e
# C5 q& }. n. M9 E, R- v1 g
而公版的,就必须要0.0.0.0才可以。 |
|