provision automatically chooses wrong IP address
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
samba4 (Ubuntu) |
Triaged
|
Low
|
Unassigned |
Bug Description
I am running an almost-
leo@blackbox:~$ ifconfig -a
eth0 Link encap:Ethernet HWaddr e0:cb:4e:ab:1e:dc
inet addr:10.37.55.20 Bcast:10.37.55.255 Mask:255.255.255.0
inet6 addr: fe80::e2cb:
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:24831 errors:0 dropped:0 overruns:0 frame:0
TX packets:13650 errors:0 dropped:0 overruns:0 carrier:0
RX bytes:17977658 (17.9 MB) TX bytes:1580331 (1.5 MB)
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:541 errors:0 dropped:0 overruns:0 frame:0
TX packets:541 errors:0 dropped:0 overruns:0 carrier:0
RX bytes:65654 (65.6 KB) TX bytes:65654 (65.6 KB)
virbr0 Link encap:Ethernet HWaddr d6:24:11:56:bd:5c
inet addr:192.168.122.1 Bcast:192.
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
During installation, the following manual IP settings - address 10.37.55.20, netmask 255.255.255.0, gateway 10.37.55.1, nameserver 10.37.55.20 - were given, and the package tasks "DNS server" and "Virtual Machine host" were selected (as well as "OpenSSH server"). It all seems to be working, though I haven't tested the virbr0 VM interface.
I have used <a href="https:/
Whenever /usr/share/
leo@blackbox:~$ sudo /usr/share/
Looking up IPv4 addresses
More than one IPv4 address found. Using 192.168.122.1
Looking up IPv6 addresses
No IPv6 address will be assigned
Setting up secrets.ldb
Setting up the registry
Setting up the privileges database
Setting up idmap db
Setting up SAM db
Setting up sam.ldb partitions and settings
Setting up sam.ldb rootDSE
Pre-loading the Samba 4 and AD schema
Adding DomainDN: DC=irishtown,
Adding configuration container
Setting up sam.ldb schema
Setting up sam.ldb configuration data
Setting up display specifiers
Adding users container
Modifying users container
Adding computers container
Modifying computers container
Setting up sam.ldb data
Setting up well known security principals
Setting up sam.ldb users and groups
Setting up self join
Adding DNS accounts
Creating CN=MicrosoftDNS
Creating DomainDnsZones and ForestDnsZones partitions
Populating DomainDnsZones and ForestDnsZones partitions
See /var/lib/
and /var/lib/
Setting up sam.ldb rootDSE marking as synchronized
Fixing provision GUIDs
A Kerberos configuration suitable for Samba 4 has been generated at /var/lib/
A phpLDAPadmin configuration file suitable for administering the Samba 4 LDAP server has been created in /var/lib/
Once the above files are installed, your Samba4 server will be ready to use
Server Role: domain controller
Hostname: blackbox
NetBIOS Domain: IRISHTOWN
DNS Domain: irishtown.
DOMAIN SID: S-1-5-21-
This includes when provision is (apparently) run during package installation.
I assume this might leave samba wrongly configured to serve eth0 and the 10.37.55.0/24 subnet. But I'm not actually sure, partly because there's no actual mention of IP addresses in the generated /etc/samba/smb.conf , whether or not provision is called with --host-ip . When provision is given --host-
# Global parameters
[global]
server role = domain controller
workgroup = IRISHTOWN
realm = irishtown.
netbios name = BLACKBOX
passdb backend = samba4
[netlogon]
path = /var/lib/
read only = No
[sysvol]
path = /var/lib/
read only = No
, which seems identical to the result when --host-ip is not specified. The lines
Looking up IPv4 addresses
More than one IPv4 address found. Using 192.168.122.1
no longer appear in provision's standard output, though.
So it seems that either samba4 is being set up incorrectly, or provision - and so also samba4 package install - is misleadingly suggesting that samba4 is being set up incorrectly.
My version of samba4 is 4.0.0~alpha18.
Changed in samba4 (Ubuntu): | |
status: | New → Triaged |
importance: | Undecided → Low |