-
Notifications
You must be signed in to change notification settings - Fork 0
/
DCND-OPENSTACK-LAB
56 lines (22 loc) · 1.74 KB
/
DCND-OPENSTACK-LAB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
#project list
ansible allservers -m shell -a "source /root/admin-openrc && openstack project list" -u root -i hosts
########## openstack nova services check #############
ansible allservers -m shell -a "source /root/admin-openrc && systemctl status openstack-nova-api.service \
openstack-nova-consoleauth.service openstack-nova-scheduler.service \
openstack-nova-conductor.service openstack-nova-novncproxy.service | grep 'Active\|openstack'
######## Openstack network agent list
ansible controller -m shell -a "source /root/admin-openrc && openstack network agent list" -u root -i hosts
#Openstack nova service list
ansible controller -m shell -a "source /root/admin-openrc && openstack compute service list " -u root -i hosts
######### Mariadb #############
ansible controller -m shell -a "systemctl start mariadb.service" -u root -i hosts
ansible controller -m shell -a "systemctl status mariadb.service | grep 'Active\|maraidb.service' " -u root -i hosts
######Rabbit - mq Status Check #####
ansible controller -m shell -a "source /root/admin-openrc && openstack compute service list " -u root -i hosts
ansible controller -m shell -a "systemctl status rabbitmq-server.service | grep 'Active\|rabbitmq-server.service - RabbitMQ broker'" -u root -i hosts
tail -f /var/log/{ceilometer,neutron,nova,openvswitch}/*.log /var/log/messages
######Troubleshooting logs using ansible ######
#Compute
ansible 10.44.104.207 -m shell -a "tail -n 200 /var/log/{ceilometer,neutron,nova,openvswitch}/*.log /var/log/messages" -u root -i hosts
#Controller
ansible 10.44.104.207 -m shell -a "tail -n 200 /var/log/{ceilometer,cinder,glance,keystone,mysql,neutron,nova,openvswitch,rabbitmq}/*.log /var/log/messages" -u root -i hosts