Example #1
0
 def _setup_db(self):
     dbhelper.drop_db(distro=self.distro,
                      dbtype=self.get_option('db', 'type'),
                      dbname=DB_NAME,
                      **utils.merge_dicts(self.get_option('db'),
                                          dbhelper.get_shared_passwords(self)))
     dbhelper.create_db(distro=self.distro,
                        dbtype=self.get_option('db', 'type'),
                        dbname=DB_NAME,
                        **utils.merge_dicts(self.get_option('db'),
                                            dbhelper.get_shared_passwords(self)))
Example #2
0
 def _setup_db(self):
     dbhelper.drop_db(distro=self.distro,
                      dbtype=self.get_option('db', 'type'),
                      dbname=DB_NAME,
                      **utils.merge_dicts(self.get_option('db'),
                                          dbhelper.get_shared_passwords(self)))
     dbhelper.create_db(distro=self.distro,
                        dbtype=self.get_option('db', 'type'),
                        dbname=DB_NAME,
                        **utils.merge_dicts(self.get_option('db'),
                                            dbhelper.get_shared_passwords(self)))
Example #3
0
 def setup_db(self):
     dbhelper.drop_db(
         distro=self.installer.distro,
         dbtype=self.installer.get_option("db", "type"),
         dbname=self.DB_NAME,
         **utils.merge_dicts(self.installer.get_option("db"), dbhelper.get_shared_passwords(self.installer))
     )
     dbhelper.create_db(
         distro=self.installer.distro,
         dbtype=self.installer.get_option("db", "type"),
         dbname=self.DB_NAME,
         **utils.merge_dicts(self.installer.get_option("db"), dbhelper.get_shared_passwords(self.installer))
     )
Example #4
0
 def _setup_db(self):
     dbhelper.drop_db(distro=self.distro,
                      dbtype=self.get_option('db', 'type'),
                      dbname=DB_NAME,
                      **utils.merge_dicts(self.get_option('db'),
                                          dbhelper.get_shared_passwords(self)))
     # Explicitly use latin1: to avoid lp#829209, nova expects the database to
     # use latin1 by default, and then upgrades the database to utf8 (see the
     # 082_essex.py in nova)
     dbhelper.create_db(distro=self.distro,
                        dbtype=self.get_option('db', 'type'),
                        dbname=DB_NAME,
                        charset='latin1',
                        **utils.merge_dicts(self.get_option('db'),
                                            dbhelper.get_shared_passwords(self)))
Example #5
0
 def _setup_db(self):
     dbhelper.drop_db(distro=self.distro,
                      dbtype=self.get_option('db', 'type'),
                      dbname=DB_NAME,
                      **utils.merge_dicts(
                          self.get_option('db'),
                          dbhelper.get_shared_passwords(self)))
     # Explicitly use latin1: to avoid lp#829209, nova expects the database to
     # use latin1 by default, and then upgrades the database to utf8 (see the
     # 082_essex.py in nova)
     dbhelper.create_db(distro=self.distro,
                        dbtype=self.get_option('db', 'type'),
                        dbname=DB_NAME,
                        charset='latin1',
                        **utils.merge_dicts(
                            self.get_option('db'),
                            dbhelper.get_shared_passwords(self)))