Skip to content

Certificate validation issues when provisioning with version > v1.10.18 of this cookbook #32

@jperville

Description

@jperville

Hello @IshentRas and @ianmiell ,

As promised in #29 (comment) , here is the bug report for the issue I'm having with this cookbook since v1.10.19. This is becoming critical, since I now have to chose between staying on v1.10.18 (and backporting my fixes by hand) and enjoying the new features added since v1.10.20.

I have a Vagrantfile featuring several VMs (master and minion); the ipaddress of the openshift master and nodes are stored in role attributes as needed by this cookbook (see demo project Vagrantfile below). Before v1.10.18, I could provision just fine (even if the first run would fail because origin-master service not restarted yet after configuring, a second chef-run finishes the job). Since v1.10.19, I run into certificate validation issues which makes the origin-node service on the master VM fail forever with the following message in the journal:

Dec 18 18:36:18 master systemd[1]: Starting Origin Node...
Dec 18 18:36:18 master origin-node[24838]: F1218 18:36:18.150550   24838 start_node.go:126] cannot fetch "default" cluster network: Get https://192.168.33.220.xip.io:8443/oapi/v1/clusternetworks/default: x509: certificate signed by unknown authority
Dec 18 18:36:18 master systemd[1]: origin-node.service: main process exited, code=exited, status=255/n/a
Dec 18 18:36:18 master systemd[1]: Failed to start Origin Node.
Dec 18 18:36:18 master systemd[1]: Unit origin-node.service entered failed state.
Dec 18 18:36:18 master systemd[1]: origin-node.service failed.

The origin-master journal is spammed with messages like this:

Dec 18 18:50:10 master origin-master[24505]: I1218 18:50:10.486666   24505 nodecontroller.go:609] NodeController is entering network segmentation mode.
Dec 18 18:50:13 master origin-master[24505]: I1218 18:50:13.262304   24505 server.go:2161] http: TLS handshake error from 192.168.33.220:38170: remote error: bad certificate

This problem is 100% reproducible. I have prepared a demo project to reproduce the issue here: https://github.com/PerfectMemory/origin-provision-bug-demo .. Just git clone and then run vagrant provision master (I assume that you have the tool installed). I use the latest stable version of Vagrant, Virtualbox and chef-dk.

I also included a full log of vagrant up master on my system here: https://github.com/PerfectMemory/origin-provision-bug-demo/blob/master/vagrant-master.log

Thank you in advance.

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions