Ubuntu Pastebin

Paste from c at Wed, 8 Mar 2017 15:04:19 +0000

Download as text
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
if ! grep -qE "^(sql_)?connection( )?=.*" /etc/nova/nova.conf || \
         grep -qE "^(sql_)?connection.*sqlite.*" /etc/nova/nova.conf
    then
      su -s /bin/sh -c 'nova-manage db sync' nova
      su -s /bin/sh -c 'nova-manage db online_migrations' nova
    fi

    if [ -e /var/lib/nova/nova.sqlite ]
    then
      chown nova:nova /var/lib/nova/nova.sqlite
      chmod 0640 /var/lib/nova/nova.sqlite
    fi
Download as text