MAAS Region install fails to open shared memory segment.

This commit is contained in:
Dimitri John Ledkov 2019-04-16 12:49:43 +01:00
parent 8be843c2a8
commit 9f78f379e4
No known key found for this signature in database
GPG Key ID: E8E84908F903AFB5
1 changed files with 10 additions and 9 deletions

View File

@ -99,31 +99,32 @@ class InstallpathModel(object):
'904-maas': ['mount', '-o', 'bind', '/proc', t('proc')],
'905-maas': ['mount', '-o', 'bind', '/sys', t('sys')],
'906-maas': ['mount', '-o', 'bind', '/dev', t('dev')],
'907-maas': ['mount', '-o', 'bind', t('bin/true'),
'907-maas': ['mount', '-o', 'bind', '/dev/shm', t('dev/shm')],
'908-maas': ['mount', '-o', 'bind', t('bin/true'),
t('usr/sbin/invoke-rc.d')],
'908-maas': ['chroot', self.target, 'sh', '-c',
'909-maas': ['chroot', self.target, 'sh', '-c',
'pg_ctlcluster --skip-systemctl-redirect '
'$(/bin/ls /var/lib/postgresql/) main start'],
# These are called like this, because reconfigure doesn't
# create nor change an admin user account, nor regens the
# semi-autogenerated maas-url
'909-maas':
'910-maas':
['chroot', self.target, 'sh', '-c', (
'debconf -fnoninteractive -omaas-region-controller '
'/var/lib/dpkg/info/maas-region-controller.config '
'configure')],
'910-maas':
'911-maas':
['chroot', self.target, 'sh', '-c', (
'debconf -fnoninteractive -omaas-region-controller '
'/var/lib/dpkg/info/maas-region-controller.postinst '
'configure')],
'911-maas': ['chroot', self.target, 'sh', '-c', (
'912-maas': ['chroot', self.target, 'sh', '-c', (
'pg_ctlcluster --skip-systemctl-redirect '
'$(/bin/ls /var/lib/postgresql/) main stop')],
'912-maas': ['umount', t('usr/sbin/invoke-rc.d')],
'913-maas': ['umount', t('dev')],
'914-maas': ['umount', t('sys')],
'915-maas': ['umount', t('proc')],
'913-maas': ['umount', t('usr/sbin/invoke-rc.d')],
'914-maas': ['umount', t('dev')],
'915-maas': ['umount', t('sys')],
'916-maas': ['umount', t('proc')],
}
elif self.path == 'maas_rack':
config['debconf_selections'] = {