-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathreinstall
More file actions
executable file
·31 lines (24 loc) · 912 Bytes
/
reinstall
File metadata and controls
executable file
·31 lines (24 loc) · 912 Bytes
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
aptitude -y purge nova-common keystone rabbitmq-server libvirt-bin
killall dnsmasq
vgremove nova-volumes
pvremove /dev/loop4
sleep 10
losetup -d /dev/loop4
rm -rf /var/lib/nova
rm -rf /var/lib/libvirtd
rm -rf /var/lib/keystone
rm -rf /var/log/nova
rm -rf /var/log/libvirtd
rm -rf /var/log/keystone
rm -rf /etc/libvirt
aptitude update
aptitude -y install nova-common nova-cert nova-api nova-scheduler nova-compute nova-network nova-volume keystone rabbitmq-server euca2ools
cp -rf /_DATA/etc.nova/* /etc/nova
cp -rf /_DATA/etc.keystone/* /etc/keystone
service nova-api restart
service nova-compute restart
service nova-scheduler restart
service nova-volume restart
service nova-cert restart
##nova-manage network create --label mynet1 --bridge_interface=eth0 --vlan=111 --fixed_range_v4 10.10.100.0/24
nova-manage flavor create --name='m1.test' --flavor=6 --memory=512 --root_gb=2 --cpu=1 --ephemeral_gb=2