[2.0rc2] package installation fails when default gateway is not set
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MAAS |
Fix Released
|
Medium
|
Andres Rodriguez |
Bug Description
Package installation fails when default gateway is not set. I intentionally don't set default gateway as I would like to install MAAS in isolated environment from the Internet.
[/var/lib/
get_default_
while read Iface Destination Gateway Flags RefCnt Use Metric Mask MTU Window IRTT
do
[ "$Mask" = "00000000" ] && break
done < /proc/net/route
interface=
ipaddr=
ipaddr=
ipaddr=
echo $ipaddr
}
+ get_default_
+ read Iface Destination Gateway Flags RefCnt Use Metric Mask MTU Window IRTT
+ [ Mask = 00000000 ]
+ read Iface Destination Gateway Flags RefCnt Use Metric Mask MTU Window IRTT
+ [ 00FFFFFF = 00000000 ]
+ read Iface Destination Gateway Flags RefCnt Use Metric Mask MTU Window IRTT
+ [ 00FFFFFF = 00000000 ]
+ read Iface Destination Gateway Flags RefCnt Use Metric Mask MTU Window IRTT
+ interface=
+ LC_ALL=C /sbin/ip -4 addr list dev scope global
Device "" does not exist.
+ ipaddr=
+ ipaddr=
$ sudo dpkg --configure -a
Setting up maas-region-
Device "" does not exist.
dpkg: error processing package maas-region-
subprocess installed post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of maas:
maas depends on maas-region-
Package maas-region-
dpkg: error processing package maas (--configure):
dependency problems - leaving unconfigured
Errors were encountered while processing:
maas-region-
maas
$ ip a
1: lo: <LOOPBACK,
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: ens3: <BROADCAST,
link/ether 52:54:00:a5:5d:d8 brd ff:ff:ff:ff:ff:ff
inet 192.168.100.10/24 brd 192.168.100.255 scope global ens3
valid_lft forever preferred_lft forever
inet6 fe80::5054:
valid_lft forever preferred_lft forever
$ ip r
10.0.8.0/24 via 192.168.100.1 dev ens3
192.168.100.0/24 dev ens3 proto kernel scope link src 192.168.100.10
Related branches
- Andres Rodriguez (community): Approve
-
Diff: 90 lines (+54/-6)2 files modifieddebian/changelog (+44/-0)
debian/maas-region-controller.postinst (+10/-6)
Changed in maas: | |
importance: | Undecided → Medium |
assignee: | nobody → Andres Rodriguez (andreserl) |
status: | New → In Progress |
Changed in maas: | |
status: | In Progress → Fix Committed |
status: | Fix Committed → Fix Released |