Remove mysql setup
bifrost sets up the mysql database itself, we can remove the setup from project-config now. Note that change I8485751eda745841c1436ecd766c9bb95446f407 has been merged to all branches excpet mitaka since that branch is broken. Proposal is to move forward without change in mitaka - and add it there if critical changes need to go in. Change-Id: I339d2a301a76ad34ea4bcbfb26c13a21ecd86b6f
This commit is contained in:
@@ -8,10 +8,6 @@
|
|||||||
|
|
||||||
builders:
|
builders:
|
||||||
- install-distro-packages
|
- install-distro-packages
|
||||||
# Job only needs MySQL
|
|
||||||
- mysql-prep
|
|
||||||
- mysql-db:
|
|
||||||
db_name: openstack_citest
|
|
||||||
- link-logs
|
- link-logs
|
||||||
- net-info
|
- net-info
|
||||||
- shell: |
|
- shell: |
|
||||||
@@ -44,10 +40,6 @@
|
|||||||
|
|
||||||
builders:
|
builders:
|
||||||
- install-distro-packages
|
- install-distro-packages
|
||||||
# Job only needs MySQL
|
|
||||||
- mysql-prep
|
|
||||||
- mysql-db:
|
|
||||||
db_name: openstack_citest
|
|
||||||
- link-logs
|
- link-logs
|
||||||
- net-info
|
- net-info
|
||||||
- shell: |
|
- shell: |
|
||||||
@@ -81,10 +73,6 @@
|
|||||||
|
|
||||||
builders:
|
builders:
|
||||||
- install-distro-packages
|
- install-distro-packages
|
||||||
# Job only needs MySQL
|
|
||||||
- mysql-prep
|
|
||||||
- mysql-db:
|
|
||||||
db_name: openstack_citest
|
|
||||||
- link-logs
|
- link-logs
|
||||||
- net-info
|
- net-info
|
||||||
- shell: |
|
- shell: |
|
||||||
|
@@ -797,34 +797,6 @@
|
|||||||
fi
|
fi
|
||||||
/usr/local/jenkins/slave_scripts/install-distro-packages.sh
|
/usr/local/jenkins/slave_scripts/install-distro-packages.sh
|
||||||
|
|
||||||
- builder:
|
|
||||||
name: mysql-prep
|
|
||||||
builders:
|
|
||||||
- shell: |
|
|
||||||
#!/bin/bash -xe
|
|
||||||
DB_ROOT_PW=insecure_slave
|
|
||||||
DB_USER=openstack_citest
|
|
||||||
DB_PW=openstack_citest
|
|
||||||
sudo -H mysqladmin -u root password $DB_ROOT_PW
|
|
||||||
# note; we remove anonymous users first
|
|
||||||
sudo -H mysql -u root -p$DB_ROOT_PW -h localhost -e "
|
|
||||||
DELETE FROM mysql.user WHERE User='';
|
|
||||||
FLUSH PRIVILEGES;
|
|
||||||
GRANT ALL PRIVILEGES ON *.*
|
|
||||||
TO '$DB_USER'@'%' identified by '$DB_PW' WITH GRANT OPTION;"
|
|
||||||
|
|
||||||
- builder:
|
|
||||||
name: mysql-db
|
|
||||||
builders:
|
|
||||||
- shell: |
|
|
||||||
#!/bin/bash -xe
|
|
||||||
DB_USER=openstack_citest
|
|
||||||
DB_PW=openstack_citest
|
|
||||||
mysql -u $DB_USER -p$DB_PW -h 127.0.0.1 -e "
|
|
||||||
SET default_storage_engine=MYISAM;
|
|
||||||
DROP DATABASE IF EXISTS {db_name};
|
|
||||||
CREATE DATABASE {db_name} CHARACTER SET utf8;"
|
|
||||||
|
|
||||||
- builder:
|
- builder:
|
||||||
name: static-publish-prep
|
name: static-publish-prep
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user