vorburger / opendaylight-coe-kubernetes-openshift

Personal sandbox for http://OpenDaylight.org CoE Kubernetes OpenShift related stuff which may move "upstream" in due time
Apache License 2.0
1 stars 1 forks source link

cockpit-kubernetes (182-1.fc28) RPM breaks Kubernetes 1.13.0 installation #1

Closed vorburger closed 5 years ago

vorburger commented 5 years ago

When I dnf install cockpit-kubernetes on Fedora (Cloud) 28:

sudo dnf -y install cockpit cockpit-bridge cockpit-dashboard cockpit-kubernetes cockpit-docker cockpit-networkmanager cockpit-selinux cockpit-system
Last metadata expiration check: 0:02:37 ago on Tuesday 04 December 2018 06:16:18 PM UTC.
Dependencies resolved.
================================================================================
 Package                       Arch   Version                     Repository
                                                                           Size
================================================================================
Installing:
 cockpit                       x86_64 182-1.fc28                  updates  65 k
 cockpit-bridge                x86_64 182-1.fc28                  updates 551 k
 cockpit-dashboard             noarch 182-1.fc28                  updates 182 k
 cockpit-docker                x86_64 182-1.fc28                  updates 374 k
 cockpit-kubernetes            x86_64 182-1.fc28                  updates 3.9 M
 cockpit-networkmanager        noarch 182-1.fc28                  updates 484 k
 cockpit-selinux               noarch 182-1.fc28                  updates 211 k
 cockpit-system                noarch 182-1.fc28                  updates 1.2 M
Installing dependencies:
 NetworkManager                x86_64 1:1.10.12-2.fc28            updates 1.8 M
 NetworkManager-libnm          x86_64 1:1.10.12-2.fc28            updates 1.3 M
 PackageKit                    x86_64 1.1.10-1.fc28               updates 597 k
 PackageKit-glib               x86_64 1.1.10-1.fc28               updates 140 k
 aajohan-comfortaa-fonts       noarch 3.001-2.fc28                fedora  147 k
 atomic-registries             x86_64 1.22.1-2.fc28               fedora   39 k
 cairo                         x86_64 1.15.12-2.fc28              updates 720 k
 cairo-gobject                 x86_64 1.15.12-2.fc28              updates  32 k
 cockpit-ws                    x86_64 182-1.fc28                  updates 822 k
 comps-extras                  noarch 24-3.fc28                   fedora   78 k
 container-selinux             noarch 2:2.76-1.git87fae85.fc28    updates  45 k
 container-storage-setup       noarch 0.11.0-1.git42c9d9c.fc28    updates  38 k
 containers-common             x86_64 0.1.31-13.dev.gite3034e1.fc28
                                                                  updates  32 k
 dbus-glib                     x86_64 0.110-2.fc28                fedora  126 k
 device-mapper-event           x86_64 1.02.146-5.fc28             updates 260 k
 device-mapper-event-libs      x86_64 1.02.146-5.fc28             updates 259 k
 device-mapper-persistent-data x86_64 0.7.5-3.fc28                fedora  451 k
 docker                        x86_64 2:1.13.1-61.git9cb56fd.fc28 updates  20 M
 docker-common                 x86_64 2:1.13.1-61.git9cb56fd.fc28 updates  90 k
 docker-rhel-push-plugin       x86_64 2:1.13.1-61.git9cb56fd.fc28 updates 1.7 M
 fontconfig                    x86_64 2.13.0-5.fc28               updates 269 k
 fontpackages-filesystem       noarch 1.44-21.fc28                fedora   15 k
 gdk-pixbuf2                   x86_64 2.36.12-1.fc28              fedora  465 k
 glib-networking               x86_64 2.56.1-1.fc28               updates 147 k
 gnupg                         x86_64 1.4.23-1.fc28               updates 1.3 M
 gsettings-desktop-schemas     x86_64 3.28.0-1.fc28               fedora  612 k
 iptables                      x86_64 1.6.2-3.fc28                updates 381 k
 js-jquery                     noarch 3.2.1-3.fc28                fedora  173 k
 json-glib                     x86_64 1.4.4-1.fc28                updates 143 k
 kubernetes-client             x86_64 1.10.1-0.fc28               updates  24 M
 libX11                        x86_64 1.6.5-7.fc28                fedora  622 k
 libX11-common                 noarch 1.6.5-7.fc28                fedora  167 k
 libXau                        x86_64 1.0.8-11.fc28               fedora   34 k
 libXext                       x86_64 1.3.3-8.fc28                fedora   44 k
 libXrender                    x86_64 0.9.10-5.fc28               fedora   32 k
 libaio                        x86_64 0.3.110-11.fc28             fedora   29 k
 libappstream-glib             x86_64 0.7.11-1.fc28               updates 333 k
 libdaemon                     x86_64 0.14-15.fc28                fedora   35 k
 libmodman                     x86_64 2.0.1-17.fc28               fedora   35 k
 libndp                        x86_64 1.6-5.fc28                  fedora   37 k
 libnet                        x86_64 1.1.6-15.fc28               fedora   66 k
 libnetfilter_conntrack        x86_64 1.0.6-5.fc28                fedora   64 k
 libnfnetlink                  x86_64 1.0.1-13.fc28               fedora   32 k
 libnl3-cli                    x86_64 3.4.0-3.fc28                fedora  187 k
 libproxy                      x86_64 0.4.15-6.fc28               updates  70 k
 libsoup                       x86_64 2.62.3-1.fc28               updates 423 k
 libstemmer                    x86_64 0-10.585svn.fc28            fedora   72 k
 libteam                       x86_64 1.27-6.fc28                 fedora   59 k
 libusb                        x86_64 1:0.1.5-12.fc28             fedora   41 k
 libxcb                        x86_64 1.13-1.fc28                 fedora  228 k
 lvm2                          x86_64 2.02.177-5.fc28             updates 1.4 M
 lvm2-libs                     x86_64 2.02.177-5.fc28             updates 1.2 M
 oci-umount                    x86_64 2:2.3.4-1.git87f9237.fc28   fedora   36 k
 pixman                        x86_64 0.34.0-8.fc28               updates 247 k
 policycoreutils-python-utils  noarch 2.8-1.fc28                  updates 225 k
 protobuf-c                    x86_64 1.3.0-4.fc28                fedora   36 k
 python3-cairo                 x86_64 1.16.3-1.fc28               fedora   89 k
 python3-dbus                  x86_64 1.2.4-13.fc28               fedora  131 k
 python3-decorator             noarch 4.2.1-1.fc28                fedora   26 k
 python3-gobject               x86_64 3.28.3-1.fc28               updates  24 k
 python3-libxml2               x86_64 2.9.8-4.fc28                updates 235 k
 python3-pytoml                noarch 0.1.18-1.fc28               updates  24 k
 python3-slip                  noarch 0.6.4-10.fc28               fedora   37 k
 python3-slip-dbus             noarch 0.6.4-10.fc28               fedora   38 k
 python3-systemd               x86_64 234-5.fc28                  fedora   82 k
 setroubleshoot-plugins        noarch 3.3.9-3.fc28                fedora  345 k
 setroubleshoot-server         x86_64 3.3.17-1.fc28               fedora  403 k
 subscription-manager-rhsm-certificates
                               x86_64 1.24.2-1.fc28               updates 221 k
 teamd                         x86_64 1.27-6.fc28                 fedora  124 k
 web-assets-filesystem         noarch 5-7.fc28                    fedora  8.7 k
 yajl                          x86_64 2.1.0-10.fc28               fedora   39 k
Installing weak dependencies:
 NetworkManager-team           x86_64 1:1.10.12-2.fc28            updates 131 k
 cockpit-packagekit            noarch 182-1.fc28                  updates 612 k
 criu                          x86_64 3.11-1.fc28                 updates 493 k
 fedora-logos                  x86_64 28.0.3-1.fc28               fedora  8.2 M
 oci-systemd-hook              x86_64 1:0.1.18-1.git38504cc.fc28  updates  39 k
 python-systemd-doc            x86_64 234-5.fc28                  fedora  166 k
 sscg                          x86_64 2.3.3-2.fc28                fedora   39 k

Transaction Summary
================================================================================
Install  86 Packages

and then install the latest released Kubernetes 1.13.0 using kubernetes.repo:

sudo mv ~/kubernetes.repo /etc/yum.repos.d/kubernetes.repo
sudo dnf install -y docker kubelet kubeadm kubectl --disableexcludes=kubernetes

then this fails like this:

Package docker-2:1.13.1-61.git9cb56fd.fc28.x86_64 is already installed, skipping.
Dependencies resolved.
================================================================================
 Package              Arch         Version               Repository        Size
================================================================================
Installing:
 kubeadm              x86_64       1.13.0-0              kubernetes       7.9 M
 kubectl              x86_64       1.13.0-0              kubernetes       8.5 M
 kubelet              x86_64       1.13.0-0              kubernetes        21 M
Installing dependencies:
 cri-tools            x86_64       1.12.0-0              kubernetes       4.2 M
 ebtables             x86_64       2.0.10-25.fc28        fedora           137 k
 ethtool              x86_64       2:4.17-1.fc28         updates          144 k
 kubernetes-cni       x86_64       0.6.0-0               kubernetes       8.6 M
 socat                x86_64       1.7.3.2-6.fc28        fedora           297 k

Transaction Summary
================================================================================
Install  8 Packages

Total download size: 50 M
Installed size: 232 M
(...)
Error: Transaction check error:
  file /usr/bin/kubectl from install of kubectl-1.13.0-0.x86_64 conflicts with file from package kubernetes-client-1.10.1-0.fc28.x86_64
vorburger commented 5 years ago

I suspect that this is probably also the root cause of this new problem which suddenly started appearing earlier today after I installed Cockpit and which threw off the automated installation script (because it couldn't deal with that warning/error which was returned instead of just the expected join command):

[fedora@coe-master ~]$ kubeadm token create --print-join-command
(04:53:46  CET) vorburger: I1204 15:44:29.496129    2759 version.go:236] remote version is much newer: v1.13.0; falling back to: stable-1.12
(04:53:46  CET) vorburger: kubeadm join 192.168.0.5:6443 --token 5o6r39.c7s5xc81s7jki620 --discovery-token-ca-cert-hash sha256:b6d777f064e112f7994ce686b58ec145fbaafb3ffcd8a3bb82a945fe7876fadc
vorburger commented 5 years ago

FTR https://github.com/vorburger/opendaylight-coe-kubernetes-openshift/commit/47e25fc00403980baffaf99977f9bb234c626431#diff-8a8f2edc9a1beccd32b7f4f25b5355ee helped