@Rodrigo, it might not be an actual charm bug; the charm doesn't specifically set up the variable that is mentioned in the error, and it being unset is necessary to start group replication in the first place.
It might be that removing a unit from a cluster fails even if it is set up without using charms (i.e. just manually using 3 machines, and installing the packages). i.e. there's some step that is missing, that we've not uncovered yet. However, that also doesn't mean that it's invalid. Also as the remove-instance is a charm action, then it probably ought to work.
I'm going to set it to triaged and medium as there is sort of a work around.
@Rodrigo, it might not be an actual charm bug; the charm doesn't specifically set up the variable that is mentioned in the error, and it being unset is necessary to start group replication in the first place.
It might be that removing a unit from a cluster fails even if it is set up without using charms (i.e. just manually using 3 machines, and installing the packages). i.e. there's some step that is missing, that we've not uncovered yet. However, that also doesn't mean that it's invalid. Also as the remove-instance is a charm action, then it probably ought to work.
I'm going to set it to triaged and medium as there is sort of a work around.