Magnum puts subnet-name instead of subnet-id in kube_openstack_config
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Magnum |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
After creating a kubernetes cluster, config file /etc/kubernetes
This config is used to interact with openstack during creating external loadbalancer.
Config looks like:
[Global]
auth-url=https:/
ca-file=
user-id=
password=
trust-id=
[LoadBalancer]
subnet=
create-monitor=yes
monitor-delay=1m
monitor-timeout=30s
monitor-
Which results with error, when creating kuberntes service with type: loadbalancer.
Error message which can be found in logs:
Nov 24 10:06:28 mo-xalmqagc5x-
Config should contain subnet-id not subnet name as a value.
Working example:
[Global]
auth-url=https:/
ca-file=
user-id=
password=
trust-id=
[LoadBalancer]
subnet-
create-monitor=yes
monitor-delay=1m
monitor-timeout=30s
monitor-
After this change service with external loadbalancer is created properly.
Changed in magnum: | |
status: | New → Confirmed |
How did you install magnum and configured kube_openstack_ config. Looking at the code it set's subnet-id only: https:/ /github. com/openstack/ magnum/ blob/master/ magnum/ drivers/ common/ templates/ kubernetes/ fragments/ write-kube- os-config. sh#L16