-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPackstack-Notes.txt
More file actions
107 lines (76 loc) · 3.82 KB
/
Packstack-Notes.txt
File metadata and controls
107 lines (76 loc) · 3.82 KB
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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
Packstack AIO
------------------------
http://www.admin-magazine.com/Archive/2018/46/OpenStack-installation-with-the-Packstack-installer
yum install -y centos-release-openstack-queens
yum update -y
yum install -y openstack-packstack
systemctl disable firewalld NetworkManager --now
systemctl enable network --now
#edit the answer file
packstack --gen-answer-file=answer-file
packstack --answer-file=$youranswerfilell
packstack --allinone --provision-demo=n \
--os-neutron-ovs-bridge-mappings=extnet:br-ex \
--os-neutron-ovs-bridge-interfaces=br-ex:eth0 \
--os-neutron-ml2-type-drivers=vxlan,flatid
//create and specify node addresses
packstack --install-hosts=<CONTROLLER_ADDRESS>,<NODE_ADDRESSES>
---/etc/nova/nova.conf----> virt_type=qemu
systemctl enable libvirtd openstack-nova-compute --now
systemctl restart libvirtd openstack-nova-compute
systemctl status libvirtd openstack-nova-compute
No floating IPs are created by default. You must first create a public network and subnet, defining the IP address range for floating IPs at that time.
source /root/keystonerc_admin
neutron net-create public --router:external
neutron subnet-create public 192.168.1.0/24 --name vlan --enable_dhcp=False --allocation_pool start=192.168.1.57,end=192.168.1.62 --gateway 192.168.1.1 (use your network gateway here - change the IP addresses in the allocation range to match what is available on your network)
neutron router-create router1 (router1 be replaced by the name of your router)
neutron router-gateway-set $router_id $vlan_id (use your router id and previous created vlan id)
neutron floatingip-create public (repeat as necessary)
openstack network create external_network //provider network mapping /etc/neutron/ml2/.conf
openstack network create internal_network
openstack network create
#!/bin/bash
sudo yum install -y httpd
echo "hello world from $hostname" > /etc/httpd/index.html
sudo systemctl enable httpd.service --now
sudo systemctl disable firewalld --now
openstack network create --external --provider-network-type flat --provider-physical-network extnet external-network
public 172.24.4.0/24 public_subnet 10.168.193.1
router1
internal 10.168.192.0/30, 10.168.193.0/24 internal_subnet 10.168.192.1
cirros1_instance 10.168.193.3
cirros2_instance 10.168.193.6
https://www.rdoproject.org/install/packstack/
https://www.rdoproject.org/networking/floating-ip-range/
https://www.rdoproject.org/networking/difference-between-floating-ip-and-private-ip/
------------------------------------------------------------------------------
sudo systemctl disable --now firewalld NetworkManager
sudo setenforce 0
sudo sed -i 's/^SELINUX=.*/SELINUX=permissive/g' /etc/selinux/config
sudo hostnamectl set-hostname packcloud --static
#etc/hosts and etc/hostname should have the same hostname in them
sudo yum -y update
sudo yum -y install vim wget curl telnet bash-completion
sudo reboot
yum install -y centos-release-openstack-rocky
sudo packstack --gen-answer-file /root/answers.txt
/--------------------Example Config file ---------------
CONFIG_NTP_SERVERS=0.pool.ntp.org,1.pool.ntp.org,2.pool.ntp.org
CONFIG_CONTROLLER_HOST=192.168.10.10
CONFIG_COMPUTE_HOSTS=192.168.10.10
CONFIG_NETWORK_HOSTS=192.168.10.10
CONFIG_STORAGE_HOST=192.168.10.10
CONFIG_KEYSTONE_ADMIN_PW=b29e883d82dd45f8
CONFIG_SWIFT_STORAGES=/dev/sdc2
CONFIG_PROVISION_DEMO=n
CONFIG_HEAT_INSTALL=y
CONFIG_HEAT_CFN_INSTALL=y
CONFIG_CEILOMETER_INSTALL=y
CONFIG_MAGNUM_INSTALL=y
CONFIG_LBAAS_INSTALL=y
CONFIG_CINDER_VOLUMES_CREATE=n
CONFIG_NOVA_SCHED_RAM_ALLOC_RATIO=3.0
CONFIG_NOVA_LIBVIRT_VIRT_TYPE=%{::default_hypervisor}
CONFIG_HORIZON_SSL=n
/------------------Change as needed --------------------
sudo packstack --answer-file /root/answers.txt --timeout=1500 | tee packstrack-output.txt