Fix node network resource

Signed-off-by: Bogdan Dobrelya <bdobrelia@mirantis.com>
This commit is contained in:
Bogdan Dobrelya 2015-08-07 13:35:45 +02:00
parent 0d81b83552
commit 7940f982fb
4 changed files with 11 additions and 14 deletions

View File

@ -63,12 +63,9 @@ def setup_resources():
# NETWORKING # NETWORKING
node1_network_puppet = vr.create('node1_network_puppet', 'resources/node_network_puppet', {})[0] # TODO(bogdando) node's IPs should be populated as br-mgmt IPs, but now are hardcoded in templates
node2_network_puppet = vr.create('node2_network_puppet', 'resources/node_network_puppet', {})[0]
signals.connect(node1, node1_sdn) signals.connect(node1, node1_sdn)
signals.connect(node1, node2_sdn) signals.connect(node1, node2_sdn)
signals.connect(node1_sdn, node1_network_puppet)
signals.connect(node2_sdn, node2_network_puppet)
# MARIADB # MARIADB
mariadb_service1 = vr.create('mariadb_service1', 'resources/mariadb_service', { mariadb_service1 = vr.create('mariadb_service1', 'resources/mariadb_service', {
@ -628,7 +625,7 @@ def setup_resources():
resources_to_run = [ resources_to_run = [
'node1_network_puppet', 'node1_sdn',
'rabbitmq_service1', 'rabbitmq_service1',
'openstack_vhost', 'openstack_vhost',
@ -682,7 +679,7 @@ resources_to_run = [
'nova_conductor_puppet', 'nova_conductor_puppet',
'nova_scheduler_puppet', 'nova_scheduler_puppet',
'node2_network_puppet', 'node2_sdn',
'glance_db', 'glance_db',
'glance_db_user', 'glance_db_user',

View File

@ -1,4 +1,4 @@
id: l23network_puppet id: node_network_puppet
handler: puppet handler: puppet
puppet_module: l23network puppet_module: l23network
version: 1.0.0 version: 1.0.0
@ -44,7 +44,7 @@ input:
version: str!, version: str!,
provider: str!, provider: str!,
interfaces: {}, interfaces: {},
transformations: {}, transformations: [{}],
endpoints: {}, endpoints: {},
roles: {}, roles: {},
} }
@ -63,4 +63,4 @@ input:
schema: str! schema: str!
value: value:
tags: [resources/l23network, resources/node_network] tags: [resources/node_network]

View File

@ -4,7 +4,7 @@ from solar.core.log import log
def test(resource): def test(resource):
log.debug('Testing l23network_puppet') log.debug('Testing node_network_puppet')
# requests.get( # requests.get(
# 'http://%s:%s' % (resource.args['ip'].value, resource.args['port'].value) # 'http://%s:%s' % (resource.args['ip'].value, resource.args['port'].value)
# TODO(bogdando) figure out how to test this # TODO(bogdando) figure out how to test this

View File

@ -4,10 +4,10 @@ id: simple_multinode_gre
# eth0 - ext 192.168.121.0/24 # eth0 - ext 192.168.121.0/24
resources: resources:
- id: node1_sdn - id: node1_sdn
from: resources/node_network from: resources/node_network_puppet
values: values:
network_scheme: network_scheme:
version: 1.1 version: '1.1'
provider: lnx provider: lnx
interfaces: interfaces:
eth0: eth0:
@ -67,10 +67,10 @@ resources:
fw-admin: br-fw-admin fw-admin: br-fw-admin
- id: node2_sdn - id: node2_sdn
from: resources/node_network from: resources/node_network_puppet
values: values:
network_scheme: network_scheme:
version: 1.1 version: '1.1'
provider: lnx provider: lnx
interfaces: interfaces:
eth0: eth0: