~openstack-charm-testers/openstack-charm-testing/percona-split-net

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
OpenStack w/ LXD Hypervisor Scenario
=====================================
An OpenStack-on-OpenStack example exercise.


### Get o-c-t bundle and scripts
```
mkdir -p ~/tools
bzr branch lp:openstack-charm-testing ~/tools/openstack-charm-testing
cd ~/./tools/openstack-charm-testing
```

### Deploy
Bootstrap, then deploy Wily + Liberty.
```
juju-deployer -vdB -c bundles/lxd/next.yaml xenial-mitaka
```

### Configure 
Add images, add 2nd NIC to neutron-gateway instance, create images, tenant, tenant router, networks.
```
./configure lxd
```

### Source the deployed overcloud nova credentials
```
. ~/tools/openstack-charm-testing/novarc
```

### Inspect and confirm the deployed cloud

```
glance image-list
```

```
nova hypervisor-list
```

```
nova service-list
```

```
neutron net-list
```

### Shrink flavors
Not required, but useful when testing density.
```
./tools/flavor_shrink.sh
```

### Set quotas really high
Not required, but allows drastic resource overcommits.
```
./tools/quota_million.sh
```

### Set security groups + MTU
Very permissive secgroups for testing, and lower instance MTU due to nested tunnels in cloud-on-cloud scenarios.
```
./tools/sec_groups.sh
```

### Create 3 new Trusty and 3 new Xenial lxd instances
```
./tools/instance_launch.sh 3 trusty-lxd
./tools/instance_launch.sh 3 xenial-lxd
```

### Watch the instances go ACTIVE
```
watch nova list
```

### Assign floating IP addresses
```
./tools/float_all.sh 
```

### Confirm floating IPs
```
nova list
```

### Confirm SSH access & connectivity to new instances
```
ssh -i ~/testkey.pem ubuntu@n.n.n.n "uname -a"
```