one-shot-ha specs have hard-coded VIPs (need to consume network env vars)
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Openstack Mojo Testing |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
The one-shot specs are hard-coded to 10.5.0.0/16, rather than consuming the VIP and other network env vars that are passed by the test environment. This means that they can only be executed within a bastion instance wired to that subnet, and the spec cannot be automated until this is resolved.
In this example, Glance tries to connect to mysql on an IP which does not exist in the deployment on an address that is not part of the connected networks:
2015-12-15 15:29:41 INFO shared-
Note, that in this test run, the network for the deployed units was 172.17.107.0/24
mysql/0 active idle 1.25.0 18 172.17.107.197 Unit is ready
mysql-hacluster/0 active idle 1.25.0 172.17.107.197 Unit is ready and clustered
These are the environment variables that were passed to the mojo job. Be aware that there are 20+ different networks, one per jenkins slave, and the mojo spec will need to consume and apply them accordingly.
00:03:40.021 + Setting network env vars:
00:03:40.021 NET_ID: a705dd0f-
00:03:40.021 GATEWAY: 172.17.107.1
00:03:40.021 NAME_SERVER: 10.5.8.242
00:03:40.021 CIDR_EXT: 172.17.107.0/24
00:03:40.021 FIP_RANGE: 172.17.
00:03:40.021 AMULET_OS_VIP: 172.17.107.250
00:03:40.021 AMULET_OS_VIP00: 172.17.107.250
00:03:40.021 AMULET_OS_VIP01: 172.17.107.251
00:03:40.021 AMULET_OS_VIP02: 172.17.107.252
00:03:40.021 AMULET_OS_VIP03: 172.17.107.253
More detail @:
http://
This dynamic variable consumption is already implemented by the non-HA specs which are in automation (full_stack/next, etc). The get_network_
Related branches
- Ryan Beisner: Approve
-
Diff: 676 lines (+121/-56)16 files modifiedhelper/bundles/cephradosgw-ha.yaml (+1/-1)
helper/bundles/ha-next.yaml (+9/-9)
helper/bundles/ha.yaml (+9/-9)
helper/bundles/haphase1-next.yaml (+9/-9)
helper/bundles/haphase1.yaml (+9/-9)
helper/bundles/haphase2-next.yaml (+9/-9)
helper/bundles/haphase2.yaml (+9/-9)
helper/bundles/swift-ha-proxy-phase1.yaml (+1/-1)
helper/setup/preflight.py (+44/-0)
specs/full_stack/next_ha_oneshot/icehouse/manifest (+3/-0)
specs/full_stack/next_ha_oneshot/kilo/manifest (+3/-0)
specs/full_stack/next_ha_oneshot/liberty/manifest (+3/-0)
specs/full_stack/next_ha_oneshot/mitaka/manifest (+3/-0)
specs/full_stack/next_ha_oneshot/newton/manifest (+3/-0)
specs/full_stack/next_ha_oneshot/ocata/manifest (+3/-0)
specs/full_stack/next_ha_oneshot/pike/manifest (+3/-0)
description: | updated |
Changed in openstack-mojo-specs: | |
status: | New → Fix Released |
Given that the bundle for the spec uses 9 VIPs, we will need to carve out and pass additional VIP space from test automation.
ha.yaml: vip: 10.5.100.1
ha.yaml: vip: 10.5.100.2
ha.yaml: vip: 10.5.100.3
ha.yaml: vip: 10.5.100.4
ha.yaml: vip: 10.5.100.5
ha.yaml: vip: 10.5.100.9
ha.yaml: vip: 10.5.100.6
ha.yaml: vip: 10.5.100.7
ha.yaml: vip: 10.5.100.8