Hello, I'm unable to install last stable version of microk8s on my ubuntu 18.10.
The installation process finish with :
Error Loading request extension section req_ext
140600890205248:error:220A4076:X509 V3 routines:a2i_GENERAL_NAME:bad ip address:../crypto/x509v3/v3_alt.c:457:value=adr:192.168.1.19
140600890205248:error:22098080:X509 V3 routines:X509V3_EXT_nconf:error in extension:../crypto/x509v3/v3_conf.c:47:name=subjectAltName, value=@alt_names
I allready had microk8s but I was unable to upgrade from microk8s 1.14 (483) to 492. snap refresh was giving me the same error. I decided to remove and reinstall mikrok8s stable but I had the same error.
Using channel 1.13/stable is working.
Hi @franxois
During deployment we try to identify the machine's IP so we can issue the right certificates. The IP discovery is done by these two lines of code: https://github.com/ubuntu/microk8s/blob/master/microk8s-resources/actions/common/utils.sh#L97 and the certificate issue is here: https://github.com/ubuntu/microk8s/blob/master/microk8s-resources/actions/common/utils.sh#L117
Could you please share the output of netstat -rn and ifconfig?
Thanks
Hello, I'm having the same issue with version 492 and channel 1.13/stable is working.
netstat -rn
Tabela de Roteamento IP do Kernel
Destino Roteador MáscaraGen. Opções MSS Janela irtt Iface
0.0.0.0 192.168.1.1 0.0.0.0 UG 0 0 0 wlp3s0
169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 docker0
172.17.0.0 0.0.0.0 255.255.0.0 U 0 0 0 docker0
192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 wlp3s0
docker0: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500
inet 172.17.0.1 netmask 255.255.0.0 broadcast 172.17.255.255
inet6 fe80::42:8cff:fe81:21e0 prefixlen 64 scopeid 0x20<link>
ether 02:42:8c:81:21:e0 txqueuelen 0 (Ethernet)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 35 bytes 5348 (5.3 KB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
enp4s0f2: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500
ether 30:85:a9:7b:df:65 txqueuelen 1000 (Ethernet)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
inet 127.0.0.1 netmask 255.0.0.0
inet6 ::1 prefixlen 128 scopeid 0x10<host>
loop txqueuelen 1000 (Loopback Local)
RX packets 88458 bytes 19255061 (19.2 MB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 88458 bytes 19255061 (19.2 MB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
wlp3s0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.1.215 netmask 255.255.255.0 broadcast 192.168.1.255
inet6 fe80::be52:cba7:85bf:6bf0 prefixlen 64 scopeid 0x20<link>
ether dc:85:de:04:c6:27 txqueuelen 1000 (Ethernet)
RX packets 3029078 bytes 4435225457 (4.4 GB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 680508 bytes 79620007 (79.6 MB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
@franxois , @diegolakatos , from the output you shared it seems we are able to extract the IP correctly. Can you please show me the output of which openssl and openssl version? Is there anything special with the openssl in your system? Could you also attach the tarball of microk8s.inspect?
Same problem here with Ubuntu 18.04 while instaling the latest stable version (492). Using the previous release v1.13 solves the problem for me for now...:
sudo snap install microk8s --channel=1.13/stable --classic
@ktsakalozos
➜ ~ $ which openssl
/usr/bin/openssl
➜ ~ $ openssl version
OpenSSL 1.1.0g 2 Nov 2017
$ which openssl
/usr/bin/openssl
$ openssl version
OpenSSL 1.1.1 11 Sep 2018
@diegolakatos @stucki @franxois a fix just landed on edge. Would you please give it a try with:
sudo snap install microk8s --edge --classic
Please, let me know if this works for you so we can release it to the rest of the channels. Thanks
@ktsakalozos it worked for me.
Thanks
It's ok also here :) Many thanks !
@ktsakalozos Works for me as well. Thank you!
@ktsakalozos Thanks you
Closing this as the fix is released.