Hello,
My colleague Mark Beierl faced this issue installing Microk8s and Juju:
+ sudo snap install microk8s --classic
microk8s (1.19/stable) v1.19.0 from Canonical✓ installed
++ whoami
+ sudo usermod -a -G microk8s mark
+ mkdir -p /home/mark/.kube
++ whoami
+ sudo chown -f -R mark /home/mark/.kube
+ KUBEGRP=microk8s
+ sudo snap install juju --classic --channel=2.8/stable
Run hook connect-plug-peers of snap "juju" \
error: cannot perform the following tasks:
- Run hook connect-plug-peers of snap "juju" (run hook "connect-plug-peers": error: cannot communicate with server: timeout exceeded while waiting for response)
I think juju has an interface that when it detects microk8s it will pull the controller docker image in the background. May be that's something that should be optional because the host machine might be behind a proxy, or the server might be down.
May be Mark can provide more information regarding the environment in which he faced the issue.
The following steps do not reproduce the issue:
``` plug-peers --mem 8G --disk 40G --cpus 4 plug-peers
# Launch a test environment and connect to it
kvm-ok # Verify kvm extensions working
multipass launch bionic --name test-connect-
multipass shell test-connect-
# Duplicate steps above in test environment 2.8/stable
sudo snap install microk8s --classic
whoami
sudo usermod -a -G microk8s ubuntu
mkdir -p /home/ubuntu/.kube
sudo chown -f -R ubuntu /home/ubuntu/.kube
KUBEGRP=microk8s
sudo snap install juju --classic --channel=
```
I concur that it is probably an egress issue, or temporary issue w/ the server hosting the Docker image.
Next steps:
1. Add steps to the repro case above to simulate the egress/connection issue.
2. Determine whether we want to be more verbose about the error, or simply skip the image and move on.