As a workaround for #1184172: failing on "serial number overflow", we tried to disable the DNS service from the frontend. We turned it off in the server node and ran a verify on it. Unfortunately, the task still tried to configure the DNS server:

...
Global configuration file exists
DNS data store path /var/aegir/config/dns.d exists.
DNS data store ownership of /var/aegir/config/dns.d has been changed to aegir.
DNS data store permissions of /var/aegir/config/dns.d have been changed to 700.
DNS data store path /var/aegir/config/dns.d is writable.
DNS zone configuration path /var/aegir/config/server_master/bind/zone.d exists.
DNS zone configuration ownership of /var/aegir/config/server_master/bind/zone.d has been changed to aegir.
DNS zone configuration permissions of /var/aegir/config/server_master/bind/zone.d have been changed to 755.
DNS zone configuration path /var/aegir/config/server_master/bind/zone.d is writable.
DNS host configuration path /var/aegir/config/server_master/bind/host.d exists.
DNS host configuration ownership of /var/aegir/config/server_master/bind/host.d has been changed to aegir.
DNS host configuration permissions of /var/aegir/config/server_master/bind/host.d have been changed to 755.
DNS host configuration path /var/aegir/config/server_master/bind/host.d is writable.
Template loaded: /usr/share/drush/commands/provision/dns/bind/server.tpl.php
Generated config Server-wide DNS configuration
Changed permissions of /var/aegir/config/server_master/bind.conf to 777
Template loaded: /usr/share/drush/commands/provision/data_store.tpl.php
Generated config /var/aegir/config/dns.d/zones.master.inc
Changed permissions of /var/aegir/config/dns.d/zones.master.inc to 700
Created symlink for bind.conf on ceres
...

Indeed the @server_master alias still has the DNS goodies:

$aliases['server_master'] = array (
  'context_type' => 'server',
  'server' => '@server_master',
...
  'dns_service_type' => 'bind',
  'dns_restart_cmd' => 'sudo rndc reload',
  'dns_data_path' => '/var/aegir/config/dns.d',
  'dns_zoned_path' => '/var/aegir/config/server_master/bind/zone.d',
  'dns_hostd_path' => '/var/aegir/config/server_master/bind/host.d',
  'slave_servers' =>
  array (
  ),
  'dns_default_mx' => NULL,
  'dns_ttl' => 86400,
  'dns_refresh' => 21600,
  'dns_retry' => 3600,
  'dns_expire' => 604800,
  'dns_negativettl' => 86400,
...

I wonder if this affects other services as well...

Comments

anarcat’s picture

A workaround is to remove the following lines from the alias:

  'dns_service_type' => 'bind',
  'dns_restart_cmd' => 'sudo rndc reload',
  'dns_data_path' => '/var/aegir/config/dns.d',
  'dns_zoned_path' => '/var/aegir/config/server_master/bind/zone.d',
  'dns_hostd_path' => '/var/aegir/config/server_master/bind/host.d',
  'slave_servers' =>
  array (
  ),
  'dns_default_mx' => NULL,
  'dns_ttl' => 86400,
  'dns_refresh' => 21600,
  'dns_retry' => 3600,
  'dns_expire' => 604800,
  'dns_negativettl' => 86400,

I suspect that removing just the first line would be sufficient too:

  'dns_service_type' => 'bind',
steven jones’s picture

Assigned: anarcat » steven jones

Services, contexts, seems like this is one for me.

steven jones’s picture

Version: 6.x-1.1 » 6.x-2.x-dev

Can confirm that once you have selected a service for a server you cannot deselect it, let's get this fixed in 6.x-2.x and backport from there.

socialnicheguru’s picture

I tried to enable bind
the task stopped
I did drush @hostmaster hosting-tasks --debug

and got the following:
Class 'Provision_Config_Bind_Server' not found in /usr/share/drush/commands/provision/Provision/Service.php on line 116
Drush command terminated abnormally due to an unrecoverable error

I tried drush rr but it did not help

anarcat’s picture

ergonlogic’s picture

Status: Active » Fixed

Fixed in #2098389: subdirs kicks in even when subdirs module is disabled.. Disabling the DNS hosting feature in the front-end should now block the hooks in dns.drush.inc from firing.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

socialnicheguru’s picture

Status: Closed (fixed) » Active

this issue has not been fixed.

I just ran into it on a new install of aegir 2 (not 2.x).

I had to use the workaround and delete the dns entries in the .drush directory for my server

helmo’s picture

What do you mean with

aegir 2 (not 2.x).

? 2.0?

The code for this has been present since 2013-10-07 (6.x-2.0-rc5)

socialnicheguru’s picture

Status: Active » Closed (works as designed)

sorry i'm closing. I deleted and re-installed again and hasn't come up