Merge "Added config files to snap."
This commit is contained in:
commit
7f1673673d
9
.gitignore
vendored
9
.gitignore
vendored
@ -3,3 +3,12 @@ prime
|
|||||||
stage
|
stage
|
||||||
*.snap
|
*.snap
|
||||||
.tox
|
.tox
|
||||||
|
|
||||||
|
# Snapcraft
|
||||||
|
.snapcraft
|
||||||
|
__pycache__
|
||||||
|
.cache
|
||||||
|
|
||||||
|
# emacs
|
||||||
|
*~
|
||||||
|
\#*
|
||||||
|
5
tests/etc/snap-nova/nova/nova.conf.d/database.conf
Normal file
5
tests/etc/snap-nova/nova/nova.conf.d/database.conf
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
[database]
|
||||||
|
connection = mysql+pymysql://nova:nova@localhost/nova
|
||||||
|
|
||||||
|
[api_database]
|
||||||
|
connection = mysql+pymysql://nova:nova@localhost/nova_api
|
2
tests/etc/snap-nova/nova/nova.conf.d/glance.conf
Normal file
2
tests/etc/snap-nova/nova/nova.conf.d/glance.conf
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
[glance]
|
||||||
|
api_servers = http://localhost:9292
|
13
tests/etc/snap-nova/nova/nova.conf.d/keystone.conf
Normal file
13
tests/etc/snap-nova/nova/nova.conf.d/keystone.conf
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
[keystone_authtoken]
|
||||||
|
auth_uri = http://localhost:5000
|
||||||
|
auth_url = http://localhost:35357
|
||||||
|
memcached_servers = localhost:11211
|
||||||
|
auth_type = password
|
||||||
|
project_domain_name = default
|
||||||
|
user_domain_name = default
|
||||||
|
project_name = service
|
||||||
|
username = nova
|
||||||
|
password = nova
|
||||||
|
|
||||||
|
[paste_deploy]
|
||||||
|
flavor = keystone
|
15
tests/etc/snap-nova/nova/nova.conf.d/neutron.conf
Normal file
15
tests/etc/snap-nova/nova/nova.conf.d/neutron.conf
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
[DEFAULT]
|
||||||
|
use_neutron = True
|
||||||
|
firewall_driver = nova.virt.firewall.NoopFirewallDriver
|
||||||
|
|
||||||
|
[neutron]
|
||||||
|
url = http://localhost:9696
|
||||||
|
auth_url = http://localhost:35357
|
||||||
|
memcached_servers = localhost:11211
|
||||||
|
auth_type = password
|
||||||
|
project_domain_name = default
|
||||||
|
user_domain_name = default
|
||||||
|
region_name = RegionOne
|
||||||
|
project_name = service
|
||||||
|
username = neutron
|
||||||
|
password = neutron
|
9
tests/etc/snap-nova/nova/nova.conf.d/nova-placement.conf
Normal file
9
tests/etc/snap-nova/nova/nova.conf.d/nova-placement.conf
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
[placement]
|
||||||
|
os_region_name = RegionOne
|
||||||
|
project_domain_name = default
|
||||||
|
project_name = service
|
||||||
|
auth_type = password
|
||||||
|
user_domain_name = default
|
||||||
|
auth_url = http://localhost:35357
|
||||||
|
username = placement
|
||||||
|
password = placement
|
2
tests/etc/snap-nova/nova/nova.conf.d/rabbitmq.conf
Normal file
2
tests/etc/snap-nova/nova/nova.conf.d/rabbitmq.conf
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
[DEFAULT]
|
||||||
|
transport_url = rabbit://openstack:rabbitmq@localhost
|
3
tests/etc/snap-nova/nova/nova.conf.d/scheduler.conf
Normal file
3
tests/etc/snap-nova/nova/nova.conf.d/scheduler.conf
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
[scheduler]
|
||||||
|
discover_hosts_in_cells_interval = 30
|
||||||
|
scheduler_driver = filter_scheduler
|
@ -4,6 +4,18 @@ set -ex
|
|||||||
|
|
||||||
source $BASE_DIR/admin-openrc
|
source $BASE_DIR/admin-openrc
|
||||||
|
|
||||||
|
sudo mysql -u root << EOF
|
||||||
|
CREATE DATABASE IF NOT EXISTS nova;
|
||||||
|
CREATE DATABASE IF NOT EXISTS nova_api;
|
||||||
|
CREATE DATABASE IF NOT EXISTS nova_cell0;
|
||||||
|
GRANT ALL PRIVILEGES ON nova.* TO 'nova'@'localhost' \
|
||||||
|
IDENTIFIED BY 'nova';
|
||||||
|
GRANT ALL PRIVILEGES ON nova_api.* TO 'nova'@'localhost' \
|
||||||
|
IDENTIFIED BY 'nova';
|
||||||
|
GRANT ALL PRIVILEGES ON nova_cell0.* TO 'nova'@'localhost' \
|
||||||
|
IDENTIFIED BY 'nova';
|
||||||
|
EOF
|
||||||
|
|
||||||
openstack user show nova || {
|
openstack user show nova || {
|
||||||
openstack user create --domain default --password nova nova
|
openstack user create --domain default --password nova nova
|
||||||
openstack role add --project service --user nova admin
|
openstack role add --project service --user nova admin
|
||||||
|
9
tests/nova_cleanup.sh
Normal file
9
tests/nova_cleanup.sh
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
set -x
|
||||||
|
|
||||||
|
sudo mysql -u root << EOF
|
||||||
|
DROP DATABASE nova;
|
||||||
|
DROP DATABASE nova_api;
|
||||||
|
DROP DATABASE nova_cell0;
|
||||||
|
EOF
|
Loading…
Reference in New Issue
Block a user