juju deploy <bundle> twice removes the neutron ports from the openstack instances
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Canonical Juju |
Triaged
|
High
|
Unassigned |
Bug Description
When deploying for second time a bundle to add an application that was recently removed, the neutron ports of the existing OpenStack instances associated to the model are removed leaving the instances without connectivity.
This was observed originally in a 19 machines model where the model was adding a single application (single unit) all the existing machines were left with no ports attached.
[Test Case]
juju 2.9.14 -> juju show-controller -> http://
Provider: openstack
Network: 1 network with 2 subnets, for example: https:/
1) Bootstrap a new controller on a network with 2 subnets.
juju bootstrap --no-gui --model-default network=$NETWORK --config network=$NETWORK --debug serverstack multisubnet
juju model-config -m controller logging-
juju model-config logging-
2) Create 2 spaces
juju add-space main 10.0.0.0/24
juju add-space secondary 10.10.0.0/24
3) Deploy a 2 applications bundle, each application is a single unit
cat << EOF > /tmp/my-bundle.yaml
series: bionic
applications:
keystone:
charm: cs:keystone
num_units: 1
bindings:
"": main
percona-cluster:
constraints: "spaces=
charm: cs:percona-cluster
num_units: 1
bindings:
"": main
cluster: secondary
relations:
- - keystone:shared-db
- percona-
EOF
juju deploy /tmp/my-bundle.yaml
juju wait
4) Remove keystone application
juju remove-application keystone
juju wait
5) Re-deploy the same bundle
juju deploy /tmp/my-bundle.yaml
Expected result:
A new keystone application is deployed and related to percona-cluster.
Actual result:
A new keystone application is deployed and related to percona-cluster, but in the process the ports the neutron ports are removed from percona-cluster/0
$ juju status
Model Controller Cloud/Region Version SLA Timestamp
default multisubnet serverstack/
App Version Status Scale Charm Store Channel Rev OS Message
keystone 13.0.4 waiting 1 keystone charmstore stable 326 ubuntu Allowed_units list provided but this unit not present
percona-cluster 5.7.20 active 0/1 percona-cluster charmstore stable 299 ubuntu Unit is ready
Unit Workload Agent Machine Public address Ports Message
keystone/1* blocked idle 2 10.0.0.24 5000/tcp Incomplete relations: database, Allowed_units list provided but this unit not present
percona-cluster/0 unknown lost 1 10.0.0.130 3306/tcp agent lost, see 'juju show-status-log percona-cluster/0'
Machine State DNS Inst id Series AZ Message
1 down 10.0.0.130 7f3035d0-
2 started 10.0.0.24 ec50e9df-
$ openstack port list --server 7f3035d0-
$ openstack port list --network blue_network
+------
| ID | Name | MAC Address | Fixed IP Addresses | Status |
+------
| 26fc4b08-
| 3a939cb8-
| | | | ip_address=
| 4a0e8ffc-
| 740cf7f0-
| be368655-
| c1c17a4a-
+------
Changed in juju: | |
status: | Incomplete → New |
description: | updated |
Changed in juju: | |
status: | New → Triaged |
milestone: | none → 2.9-next |
Changed in juju: | |
milestone: | 2.9-next → none |
Crashdump for controller model: private- fileshare. canonical. com/~freyes/ juju-crashdump- c4b73f1b- 4288-4cfc- 90f5-4d4dcd1030 e1.tar. xz