When setting --ssl and specifying unit count for a ha unit, the number of units defaults to 1
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
stsstack-bundles |
Fix Released
|
High
|
Edward Hope-Morley |
Bug Description
When specifying --ssl, then the number of units specified by a specific ha overlay is overwritten due to the line 338 in 01configure script and also adds --ha to the options. This in turn adds the cinder-ha, glance-ha, keystone-ha, neutron-api-ha, nova-cloud-
This was unexpected, as I only wanted to test ssl with keystone-ha
Here was my script
```
./generate-
-n ldap \
-s bionic \
--use-
--overlay-
--create-model \
--num-compute 3 \
--openstack-
--keystone-ha:3 \
--ssl \
--ldap
```
Below is my debugging to see the the units, and what was going on in the get_units function in helpers file
```
ubuntu@
+ rm -rf ./b/ldap
+ ./generate-
02configure ..... Using existing ssl certificates in ssl/openstack-ldap
--keystone-ha:3 __NUM_KEYSTONE_
--keystone-ha:3 __NUM_KEYSTONE_
REQUIRED: address of ldap server (leave blank to set later):
--ha:1 __NUM_HA_UNITS__ 3
--ha:1 __NUM_HA_UNITS__ 3
--cinder-ha:1 __NUM_CINDER_
--cinder-ha:1 __NUM_CINDER_
--glance-ha:1 __NUM_GLANCE_
--glance-ha:1 __NUM_GLANCE_
--keystone-ha:1 __NUM_KEYSTONE_
--keystone-ha:1 __NUM_KEYSTONE_
--neutron-api-ha:1 __NUM_NEUTRON_
--neutron-api-ha:1 __NUM_NEUTRON_
--nova-
--nova-
--openstack-
--openstack-
Juju model 'ldap' already exists and is the current context - skipping create
Created bionic-queens bundle and overlays (using stable charms):
+ neutron-
+ neutron-
+ mysql.yaml
+ openstack-
+ keystone-ha.yaml
+ ldap.yaml
+ ldap-test-
+ neutron-ml2dns.yaml
+ neutron-
+ neutron-
+ cinder-ha.yaml
+ glance-ha.yaml
+ neutron-api-ha.yaml
+ nova-cloud-
+ memcached.yaml
+ openstack-
Command to deploy:
juju deploy ./b/ldap/
./b/ldap/
p/o/neutron-
/b/ldap/
```
Related branches
- Arif Ali (community): Approve
- Jolly Bundlers: Pending requested
-
Diff: 73 lines (+22/-8)2 files modifiedcommon/helpers (+1/-1)
openstack/pipeline/02configure (+21/-7)
Changed in stsstack-bundles: | |
assignee: | nobody → Edward Hope-Morley (hopem) |
status: | New → In Progress |
importance: | Undecided → Critical |
importance: | Critical → High |
Changed in stsstack-bundles: | |
status: | In Progress → Fix Released |