|
|
openstack compute service list/ i! e' o& ?- G. i) I0 ~3 p
+----+------------------+-------------+----------+---------+-------+------------+- m. k3 ~; g, `1 ^0 Z* Y
| ID | Binary | Host | Zone | Status | State | Updated At |; Z) N9 t& }6 y* Y& b4 _) Z8 Q
+----+------------------+-------------+----------+---------+-------+------------+
8 n) V+ j* b0 K, {0 V| 1 | nova-consoleauth | controller1 | internal | enabled | down | None |
% O a3 H3 x' [0 l# @3 S" c| 2 | nova-scheduler | controller1 | internal | enabled | down | None |3 N# f; X% P8 q I% n
| 3 | nova-conductor | controller1 | internal | enabled | down | None |$ u n; z- d' F7 d/ w
+----+------------------+-------------+----------+---------+-------+------------+
9 k, u/ W) ]8 e# N6 {+ e, k+ u: O- G- I# u
服务都启动正常,为什么state状态为down状态呢?
7 n$ \& y' Y6 T) v s# bnetstat -tnlp4 I/ g, X: X) ~5 }0 V6 C: O
Active Internet connections (only servers), A% c. ~$ w# l4 y% f# L$ U8 g$ S
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
$ z& @4 g1 t+ h: g, @8 Vtcp 0 0 192.168.90.65:15672 0.0.0.0:* LISTEN 12097/beam.smp
- Z& I t$ l) p8 Z \2 ~tcp 0 0 192.168.90.65:11211 0.0.0.0:* LISTEN 4894/memcached
: W; E$ Q# [3 Y7 ^) X$ R! P0 \; htcp6 0 0 ::1:11211 :::* LISTEN 4894/memcached E. {; k& H' C2 \! [* j
发现这个又出现绑定端口的时候,这个服务启动状态,看来是memcached缓存数据库连接不上导致的: h) k7 G) f+ N
修改6 E! {, x' J1 y6 W; ^5 L6 k. D4 v
vim /etc/sysconfig/memcached
3 q8 D0 Q/ c( l/ b! UOPTIONS="-l 127.0.0.1,::1,0.0.0.0"
4 I2 |2 @6 x. F0 P5 B2 S; M
9 l7 h8 R- M9 B( t* \; G& Z重新启动memcached服务。4 r3 b v; K1 F) o4 ]5 X' n
systemctl restart memcached.service6 _1 Q4 z' R/ I+ K& @
再次观察服务状态:
& {8 o4 G4 t- ^2 y6 h! Jopenstack compute service list4 { l* M/ }) j) x4 \
+----+------------------+-------------+----------+---------+-------+----------------------------+
+ D5 J6 j$ e' u' R. T8 F| ID | Binary | Host | Zone | Status | State | Updated At |: z$ p9 \0 |6 y7 ?
+----+------------------+-------------+----------+---------+-------+----------------------------+0 ~6 |6 w" L# K9 N, l6 A
| 1 | nova-consoleauth | controller1 | internal | enabled | up | 2018-09-05T13:00:58.000000 |
. @+ J4 O" P6 G7 o t, ?| 2 | nova-scheduler | controller1 | internal | enabled | up | 2018-09-05T13:00:58.000000 |. Y' r8 A+ v2 P' E. y
| 3 | nova-conductor | controller1 | internal | enabled | up | 2018-09-05T13:00:57.000000 |
j$ R" e3 l4 h. @| 7 | nova-compute | compute1 | nova | enabled | up | 2018-09-05T13:00:59.000000 |
" H3 p3 _0 f) C6 ~# r: m9 q+----+------------------+-------------+----------+---------+-------+----------------------------+- s& v0 s; i8 Y
H. s& I- c' }! k* @$ w; e& r9 y: j状态up了。这是什么情况?
4 c+ d6 X. t. j( S2 f% d还是公版安装包邮问题了,不能绑定ip端口,在haproxy中很不好弄,感觉好坑人。哎,什么时候才能学习bclinux那样,ip绑定端口后,like这样:/ L8 T6 a" I1 u. ?% ]
netstat -tnlp s& s8 g& B* I( z7 T; `
Active Internet connections (only servers)
" q2 a" `; D, o8 }( u$ UProto Recv-Q Send-Q Local Address Foreign Address State PID/Program name ; h# F$ Z3 D, w( e- X. e# ]
1 G7 O8 S2 P! M& j; ?8 h8 ~tcp 0 0 192.168.90.65:11211 0.0.0.0:* LISTEN 4894/memcached , o! u* ~* l6 [3 ]# W
tcp 0 0 192.168.90.70:11211 0.0.0.0:* LISTEN haproxy/ q) k, j4 \5 _' K5 m* }
% R9 W5 K- m7 V, | j/ l
而公版的,就必须要0.0.0.0才可以。 |
|