access maas 5240 port deny without ipv6

Bug #2117120 reported by Zhanglei Mao
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
MAAS documentation
Triaged
Medium
Unassigned

Bug Description

Describe the bug:

MAAS dashbord/gui (http://maas-ip:5240/) can't working after disable ipv6 via kernel parameter

Steps to reproduce:

ubuntu@maas1:~$ sudo snap services maas
Service Startup Current Notes
maas.pebble enabled active -
ubuntu@maas1:~$ !curl
curl http://127.0.0.1:5240/
<html>
<head><title>301 Moved Permanently</title></head>
<body>
<center><h1>301 Moved Permanently</h1></center>
<hr><center>nginx/1.24.0 (Ubuntu)</center>
</body>
</html>
ubuntu@maas1:~$ sudo vi /etc/default/grub
ubuntu@maas1:~$ grep GRUB_CMDLINE_LINUX /etc/default/grub
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
GRUB_CMDLINE_LINUX="ipv6.disable=1"
ubuntu@maas1:~$ sudo update-grub
ubuntu@maas1:~$ sudo reboot

ubuntu@maas1:~$ ip a |grep inet6
ubuntu@maas1:~$ sudo snap services maas
Service Startup Current Notes
maas.pebble enabled active -
ubuntu@maas1:~$ curl http://127.0.0.1:5240/
curl http://127.0.0.1:5240/
curl: (7) Failed to connect to 127.0.0.1 port 5240 after 0 ms: Couldn't connect to server
ubuntu@maas1:~$

Expected behavior (what should have happened?):
It should also working too with ipv4 only.

Actual behavior (what actually happened?):
5240 listend failed without ipv6

MAAS version and installation type (deb, snap):
maas: 3.6.0-17541-g.561fe1a3e

MAAS setup (HA, single node, multiple regions/racks):

Host OS distro and version:

ubuntu 24.04

Additional context:

temp disable ipv6 like:
 net.ipv6.conf.all.disable_ipv6=1
 net.ipv6.conf.default.disable_ipv6=1
 net.ipv6.conf.lo.disable_ipv6=1
It can't reproduce this issue.

Revision history for this message
Jacopo Rota (r00ta) wrote :

IPv6 is currently required and it should be documented in the installation requirements. Moving to a maas-doc bug so that we keep track

affects: maas → maas-doc
Changed in maas-doc:
status: New → Triaged
importance: Undecided → Medium
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.