conjure-up / conjure-up

Deploying complex solutions, magically.
https://conjure-up.io
MIT License
452 stars 73 forks source link

Cant install kubernetes - --debug doesnt seem to do anything #1410

Closed magick93 closed 5 years ago

magick93 commented 6 years ago

Report

Unable to connect to any endpoint: 10.44.87.101:17070                                                                                 

                  Review log messages at /home/anton/.cache/conjure-up/conjure-up.log If appropriate, please submit a bug here:                        
                 https://github.com/conjure-up/conjure-up/issues/new    
Juju Controller is initializing. Please wait.                                            

                       Waiting...

Please provide the output of the following commands

which juju
/snap/bin/juju
juju version
2.3.5-artful-amd64

which conjure-up
/snap/bin/conjure-up
conjure-up --version
conjure-up 2.5.6

which lxc
/usr/bin/lxc

/snap/bin/lxc config show
config:
  core.https_address: '[::]:8443'
  core.trust_password: true

/snap/bin/lxc version
Client version: 3.0.0
Server version: 3.0.0

cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=17.10
DISTRIB_CODENAME=artful
DISTRIB_DESCRIPTION="Ubuntu 17.10"

Please attach tarball of ~/.cache/conjure-up:

tar cvzf conjure-up.tar.gz ~/.cache/conjure-up

Sosreport

Please attach a sosreport:

sudo apt install sosreport
sosreport

sosreport (version 3.5)

no valid plugins were enabled

The resulting output file can be attached to this issue.

What Spell was Selected?

conjure-up kubernetes

What provider (aws, maas, localhost, etc)?

localhost

Commands ran

conjure-up kubernetes

Additional Information

Im very interested to hear from anyone who has successfully installed kubernetes using conjure-up. Does this actually work?

Alternative solution? Is it possible to install Kubernetes on Ubuntu without using conjure-up? I understand that conjure-up is supposed to make the process easy. I have now wasted 2 days trying to get this to work. Are there any ansible roles, or other more stable methods to install kubernetes?

Ever wanted to get started with Kubernetes, Deep Learning, Big Data but didn't want to go through pages and pages of "Getting Started" documentation?

The getting started / install documentation for Kubernetes only gives the option (?) of using conjure-up to install on ubuntu. Is this really the only way? Surely there is a simpler way?

Verbose? Is it possible to run conjure-up and get some kind of output? It typically hangs - and there is no errors, or any useful output. Why is it on the screen that says the following, I am not able to see what is going on? What exactly initializing?

Juju Controller is initializing. Please wait.                                            

                       Waiting... 

Is it correct that you've made a cli application that has no verbose output, and no way to get an understanding of why it hangs?

conjure-up --help
usage: conjure-up [-h] [-d] [--show-env] [--registry REGISTRY]
                  [--cache-dir CACHE_DIR] [--spells-dir SPELLS_DIR]
                  [--conf-file CONF_FILE] [--apt-proxy APT_HTTP_PROXY]
                  [--apt-https-proxy APT_HTTPS_PROXY]
                  [--http-proxy HTTP_PROXY] [--https-proxy HTTPS_PROXY]
                  [--no-proxy NO_PROXY]
                  [--bootstrap-timeout BOOTSTRAP_TIMEOUT]
                  [--bootstrap-to <host>.maas] [--version] [--notrack]
                  [--noreport] [--nosync] [--color {auto,never,always}]
                  [--bundle-add BUNDLE_ADD] [--bundle-remove BUNDLE_REMOVE]
                  [--channel {stable,candidate,beta,edge}]
                  [spell] [cloud] [controller] [model]

positional arguments:
  spell                 The name ('openstack-nclxd') or location
                        ('githubusername/spellrepo') of a conjure-up spell, or
                        a keyword matching multiple spells ('openstack')
  cloud                 Name of a Juju cloud to target, such as ['aws',
                        'localhost' ...], optionally with a region, in the
                        form <cloud>/<region>. If no controller exists there,
                        one may be created
  controller            Name of a juju controller to target. If not provided,
                        a new one is created.
  model                 Name of a juju model to target. If not provided, a new
                        one is created.

optional arguments:
  -h, --help            show this help message and exit
  -d, --debug           Enable debug logging.
  --show-env            Shows what environment variables are used during post
                        deployment actions. This is useful for headless
                        installs allowing you to set those variables to
                        further customize your deployment.
  --registry REGISTRY   Spells Registry
  --cache-dir CACHE_DIR
                        Download directory for spells
  --spells-dir SPELLS_DIR
                        Location of conjure-up managed spells directory
  --conf-file CONF_FILE
                        Path to configuration file
  --apt-proxy APT_HTTP_PROXY
                        Specify APT proxy
  --apt-https-proxy APT_HTTPS_PROXY
                        Specify APT HTTPS proxy
  --http-proxy HTTP_PROXY
                        Specify HTTP proxy
  --https-proxy HTTPS_PROXY
                        Specify HTTPS proxy
  --no-proxy NO_PROXY   Comma separated list of IPs to not filter through a
                        proxy
  --bootstrap-timeout BOOTSTRAP_TIMEOUT
                        Amount of time to wait for initial controller
                        creation. Useful for slower network connections.
  --bootstrap-to <host>.maas
                        The MAAS node hostname to deploy to. Useful for using
                        lower end hardware as the Juju admin controller.
  --version             show program's version number and exit
  --notrack             Opt out of sending anonymous usage information to
                        Canonical.
  --noreport            Opt out of sending anonymous error reports to
                        Canonical.
  --nosync              Opt out of syncing with spells registry.
  --color {auto,never,always}
                        Whether to use colorized output in headless mode.
  --bundle-add BUNDLE_ADD
                        Path to a bundle fragment file which will be merged
                        with the spell's bundle
  --bundle-remove BUNDLE_REMOVE
                        Path to a bundle fragment file which will be
                        subtracted from the spell's bundle
  --channel {stable,candidate,beta,edge}
                        conjure-up spell from a release channel

I tried running with --debug flag, but didnt notice any difference. I'm completely at a lost as to what is going wrong - there is no feedback, no errors, no output in the terminal - which kind of defeats the benefit of a terminal application.

Which versions of Ubuntu are supported? I am trying to install kubernetes on a fresh install of 17.10.1 server. However its clearly not working. Am I supposed to use another version?

No timeout? I've been waiting for a few hours now, and still Juju Controller is initializing. Please wait. Perhaps an indication of how long I should have to wait, or a timeout.

adam-stokes commented 6 years ago

Can you attach the tarball of ~/.cache/conjure-up?

ffly827 commented 6 years ago

Exactly the same problem here. My tarball is attached. screenshot from 2018-06-13 11-01-19 Screenshot here. conjure-up.tar.gz

kinkerl commented 6 years ago

Also, exactly the same problem here. Clean install of Kubuntu 18.04

kinkerl commented 6 years ago

I was able to resolve the issue with a new lxd init and deactivate ipv6 networking in the lxd init wizzard. At the time of this writing, you also have to switch the storage backend from "zfs" - which is the default - to "dir".

adam-stokes commented 6 years ago

Which is all stated here: https://docs.conjure-up.io/stable/en/user-manual#users-of-lxd and https://docs.conjure-up.io/stable/en/spellbooks/kubernetes#limitations

stale[bot] commented 5 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.