Git Product home page Git Product logo

Comments (4)

garthy avatar garthy commented on July 19, 2024

OK I think I may have fixed this in a unrelated commit. So the docker service was being started but not being enabled. (Sorry found this and meant to split it out but went on holiday and forgot)

https://github.com/oracle/terraform-kubernetes-installer/pull/75/files#diff-e91822387365c76f9ce415a2ef3aa164R24

Can you please test again as they should all come up now.

from terraform-kubernetes-installer.

srirg avatar srirg commented on July 19, 2024

Sure, we will verify. The fix is just for etcd right?

from terraform-kubernetes-installer.

srirg avatar srirg commented on July 19, 2024

I have tested a reboot of the etcd node but the etcd docker service didn't come back up after the restart.

docker ps -a
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
d064acd5e8a5 quay.io/coreos/etcd:v3.2.2 "/usr/local/bin/et..." 2 hours ago Exited (255) About a minute ago gifted_swartz

so I tried manually starting it up
2018-01-04 16:16:43.482445 W | etcdmain: no data-dir provided, using default data-dir ./etcd-ad1-0.etcd
2018-01-04 16:16:43.482540 N | etcdmain: the server is already initialized as member before, starting as etcd member...
2018-01-04 16:16:43.482703 I | embed: listening for peers on http://0.0.0.0:2380
2018-01-04 16:16:43.482775 I | embed: listening for client requests on 10.0.20.2:2379
2018-01-04 16:16:43.482822 I | embed: listening for client requests on 127.0.0.1:2379
2018-01-04 16:16:43.483020 C | etcdmain: cannot access data directory: open etcd-ad1-0.etcd/.touch: permission denied

so we need to specify the etcd data directory as well for it to work, so I specified the etcd_iscsi_volume_create=true during creation but I don't see the docker etcd coming up with the restart of the etcd node instance.

so I tried again manually starting it up but now I get this
2018-01-04 18:41:44.182305 I | etcdmain: setting maximum number of CPUs to 4, total number of available CPUs is 4
2018-01-04 18:41:44.182324 I | etcdmain: advertising using detected default host "10.0.20.2"
2018-01-04 18:41:44.182338 W | etcdmain: no data-dir provided, using default data-dir ./etcd-ad1-0.etcd
2018-01-04 18:41:44.182397 C | etcdmain: error listing data dir: etcd-ad1-0.etcd

from terraform-kubernetes-installer.

garthy avatar garthy commented on July 19, 2024

OK this is due to selinux which we disable reenableing on reboot.

This should fix it.

#84

from terraform-kubernetes-installer.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.