Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed Installation on Ubuntu 18.04.3 LTS #381

Closed
bitvijays opened this issue Jan 20, 2020 · 4 comments
Closed

Failed Installation on Ubuntu 18.04.3 LTS #381

bitvijays opened this issue Jan 20, 2020 · 4 comments
Labels

Comments

@bitvijays
Copy link
Contributor

Describe the Bug

Trying to install kubernetes using puppetlabs-kubernetes on Ubuntu 18.04.3 LTS using Puppet.

Expected Behavior

Kubernetes getting installed.

Steps to Reproduce

Steps to reproduce the behavior:

  1. Try to install Kubernetes using Puppet. Below is the site.pp manifest file

Site.pp

class profile::kubernetes_server{
        class {'kubernetes':
           controller => true,
        }
}

node 'example.local'{
include profile::kubernetes_server }

  1. Run Puppet agent -t on example.local

Environment

  • Version [e.g. 1.27.0]
  • Platform: Ubuntu 18.04.3

Additional Context

Error Encountered.

Error: Could not set 'present' on ensure: The id in your manifest D0BC747FD8CAF7117500D6FA3746C208A7317B0F and the fingerprint from content/source don't match. Check for an error in the id and content/source is legitimate. (file: /etc/puppetlabs/code/environments/production/modules/apt/manifests/key.pp, line: 55)
Error: Could not set 'present' on ensure: The id in your manifest D0BC747FD8CAF7117500D6FA3746C208A7317B0F and the fingerprint from content/source don't match. Check for an error in the id and content/source is legitimate. (file: /etc/puppetlabs/code/environments/production/modules/apt/manifests/key.pp, line: 55)
Wrapped exception:
The id in your manifest D0BC747FD8CAF7117500D6FA3746C208A7317B0F and the fingerprint from content/source don't match. Check for an error in the id and content/source is legitimate.
Error: /Stage[main]/Kubernetes::Repos/Apt::Source[kubernetes]/Apt::Key[Add key: D0BC747FD8CAF7117500D6FA3746C208A7317B0F from Apt::Source kubernetes]/Apt_key[Add key: D0BC747FD8CAF7117500D6FA3746C208A7317B0F from Apt::Source kubernetes]/ensure: change from 'absent' to 'present' failed: Could not set 'present' on ensure: The id in your manifest D0BC747FD8CAF7117500D6FA3746C208A7317B0F and the fingerprint from content/source don't match. Check for an error in the id and content/source is legitimate. (file: /etc/puppetlabs/code/environments/production/modules/apt/manifests/key.pp, line: 55)
@bitvijays bitvijays added the bug label Jan 20, 2020
@carabasdaniel
Copy link
Contributor

Hi @bitvijays

Currently the kubernetes_apt_location parameter defaults to https://apt.kubernetes.io and as you can see from the error message this is an apt error. There are different workaround if you want to install Kubernetes on Ubuntu Bionic but, for now, this module is compatible with Ubuntu Xenial as shown in the metadata.json of this module.

@bitvijays
Copy link
Contributor Author

@carabasdaniel Hope you re doing well. Thank you for your response. My apologies, would it be possible for you to tell me a simplest workaround? Is there a way we can change the kubernetes_apt_location of any other variable to get Kubernetes installed?

@catsem
Copy link

catsem commented Feb 14, 2020

I had the same issue.
With the following config in my Ubuntu.yaml I could setup the cluster in ubuntu bionic:

kubernetes::kubernetes_version: 1.17.3
kubernetes::docker_apt_location: "https://download.docker.com/linux/ubuntu"
kubernetes::docker_apt_release: "bionic"
kubernetes::docker_apt_repos: "stable"
kubernetes::docker_key_source: "https://download.docker.com/linux/ubuntu/gpg"
kubernetes::docker_key_id: "9DC858229FC7DD38854AE2D88D81803C0EBFCD88"
kubernetes::docker_version: "5:19.03.63-0ubuntu-bionic"
kubernetes::docker_package_name: "docker-ce"
kubernetes::cgroup_driver: "systemd"

IMHO kubernetes and this module should finally start to support ubuntu 18.04 as the current LTS. It's already on the market for about 2 years now and even worse, 16.04 is hitting it's end of standard support next year.

@bitvijays
Copy link
Contributor Author

@carabasdaniel Hope you are doing well. Would it be possible to add @catsem suggestion in the Readme.md? May be in a subsection.

Just a example below

Installing a updated version

If you want to install a updated version/ customise the installation, please change the below parameters:

kubernetes::kubernetes_version: 1.17.3
kubernetes::docker_apt_location: "https://download.docker.com/linux/ubuntu"
kubernetes::docker_apt_release: "bionic"
kubernetes::docker_apt_repos: "stable"
kubernetes::docker_key_source: "https://download.docker.com/linux/ubuntu/gpg"
kubernetes::docker_key_id: "9DC858229FC7DD38854AE2D88D81803C0EBFCD88"
kubernetes::docker_version: "5:19.03.63-0ubuntu-bionic"
kubernetes::docker_package_name: "docker-ce"
kubernetes::cgroup_driver: "systemd"

@catsem Would it be possible for you to send a PR for the Readme.md? If @carabasdaniel is fine with the suggestion?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants