kubernets master node can not access http://controller (from manual)

Bug #1702706 reported by Alexander Chumakov
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Magnum
New
Undecided
Unassigned

Bug Description

Magnum installed by official Ubuntu guide https://docs.openstack.org/project-install-guide/container-infrastructure-management/ocata/ on Ubuntu 16.04

Updated 1 July to latest repo's versions.

$ magnum --version
2.5.0

$ magnum cluster-template-create \
--image coreos_2017-07-05 \
--keypair osfleet \
--external-network provider \
--flavor k8s-node \
--master-flavor k8s-master \
--docker-volume-size 32 \
--network-driver flannel \
--coe kubernetes \
--volume-driver cinder \
--name k8s-cluster-template

$ magnum cluster-create --name k8s-cluster --cluster-template k8s-cluster-template --node-count 4 --master-count 1

(inside master node)
k8-q4etl26yyv-0-kuwjxjtl744v-kube-master-gnwptj7humfr core # cat /tmp/heat-params
...
export MAGNUM_URL="http://controller:9511/v1"
...
export WAIT_CURL="curl -i -X POST -H 'X-Auth-Token: gAAAAABZXi6F_fUd7oivY_aFMRd2v3a3UuyD9w7nald71wuf26udVD78dK1QmL0f3xaHyi07ijB_KELOxkkf92kZC0YBHIgwICLuxf1CIIuEc2fmLyu6DoxT7ClMFTjtJDUI4NlLk0eqBq9_ngf6t6U7va7R8NtL1tBIODk3BLEXO2pAo8oKVjo' -H 'Content-Type: application/json' -H 'Accept: application/json' http://192.168.72.51:8004/v1/4088af73b3394724a407b8c3b8338560/stacks/k8s-cluster-qwezfvwyfjx7-kube_masters-kpq4etl26yyv-0-kuwjxjtl744v/13fafdc4-6ccb-4917-baf5-cbaf3085e117/resources/master_wait_handle/signal"
...
export AUTH_URL="http://controller:5000/v3"
...

== Possible fix ==
$ openstack endpoint set --url http://192.168.72.51:5000/v3/ b77fef3ecd0049948d06615578232d34
$ openstack endpoint set --url http://192.168.72.51:9511/v1 79948f338d974ff197af38f0ebdb5bf9

# vim /etc/magnum/magnum.conf
...
host = 0.0.0.0
...
auth_uri = http://192.168.72.51:5000/v3

Revision history for this message
Spyros Trigazis (strigazi) wrote :

As per documentation you need to register the endpoint using the CONTROLLER_IP or a dns name that the vms can find route to.

http://git.openstack.org/cgit/openstack/magnum/tree/install-guide/source/common/prerequisites.rst?h=stable%2Focata#n141

Please check this note too:
http://git.openstack.org/cgit/openstack/magnum/tree/install-guide/source/install.rst?h=stable/ocata#n41

I need to update it to mention that, keystone, nova, heat and magnum must be reachable from the vms.

Revision history for this message
Alexander Chumakov (delfer) wrote :

Thank you.
Yes, I think it is problem in Ubuntu Guide: https://docs.openstack.org/ocata/install-guide-ubuntu/keystone-openrc.html

export OS_AUTH_URL=http://controller:35357/v3

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.