magnum k8s cluster creation fails

Bug #1885877 reported by Jan Horstmann
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
kolla-ansible
In Progress
Undecided
Jan Horstmann

Bug Description

Hey,
it seems that
https://review.opendev.org/#/c/738253/1
broke k8s cluster creation via magnum for us.
With

"""
[magnum_client]
endpoint_type = internalURL
"""

software deployments inside instances fail because the internal endpoint cannot be reached:
"""
# openstack coe cluster create --cluster-template k8s-v1.17.8 --master-count 3 --node-count 3 --keypair k8s k8s-test
# openstack stack resource list -n 5 k8s-test-ic7y5s764wyf | grep 49532160-6248-4cd9-8acc-196cd1e5a044
| master_config_deployment | 49532160-6248-4cd9-8acc-196cd1e5a044 | OS::Heat::SoftwareDeployment | CREATE_FAILED | 2020-07-01T07:54:39Z | k8s-test-ic7y5s764wyf-kube_masters-ghhhqj6bnejr-0-nc7caclqhjaw |

# openstack software deployment output show --all --long 49532160-6248-4cd9-8acc-196cd1e5a044

[...]

    + curl -X GET -H 'X-Auth-Token: TOKEN' -H 'OpenStack-API-Version: container-infra latest' http://INTERNAL_IP:9511/v1/certificates/29495688-be31-4f2c-bbe3-a7081e1ae670
      % Total % Received % Xferd Average Speed Time Time Time Current
                                     Dload Upload Total Spent Left Speed

      0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
      0 0 0 0 0 0 0 0 --:--:-- 0:00:01 --:--:-- 0
      0 0 0 0 0 0 0 0 --:--:-- 0:00:02 --:--:-- 0
      0 0 0 0 0 0 0 0 --:--:-- 0:00:03 --:--:-- 0
      0 0 0 0 0 0 0 0 --:--:-- 0:00:04 --:--:-- 0
[...]
   curl: (28) Failed to connect to INTERNAL_IP port 9511: Connection timed out
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/usr/lib64/python3.8/json/__init__.py", line 293, in load
        return loads(fp.read(),
      File "/usr/lib64/python3.8/json/__init__.py", line 357, in loads
        return _default_decoder.decode(s)
      File "/usr/lib64/python3.8/json/decoder.py", line 337, in decode
        obj, end = self.raw_decode(s, idx=_w(s, 0).end())
      File "/usr/lib64/python3.8/json/decoder.py", line 355, in raw_decode
        raise JSONDecodeError("Expecting value", s, err.value) from None
    json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
  deploy_status_code: 1
"""

Overwriting "[magnum_client]endpoint_type" to "publicURL" makes cluster creation possible again.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to kolla-ansible (master)

Fix proposed to branch: master
Review: https://review.opendev.org/738760

Changed in kolla-ansible:
assignee: nobody → Jan Horstmann (janhorstmann)
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on kolla-ansible (master)

Change abandoned by Jan Horstmann (<email address hidden>) on branch: master
Review: https://review.opendev.org/738760

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.