Remove unused properties from environment files
The 'service_name' property is a holdover from when there was a common role used to install all OpenStack services. This is now a default variable within each individual role. Similarly, the 'log_directory' property for galera containers is now handled by the 'log_dirs' variable within its playbook. The dynamic inventory script has been updated to create an empty 'properties' dict for any container skeletons within the environment that do not have one already defined. Change-Id: Icd852f24251c1cef0fa162d33e2422be83e0a833
This commit is contained in:
parent
310c3cc797
commit
4a35fe9ea2
@ -148,8 +148,6 @@ following steps:
|
|||||||
contains:
|
contains:
|
||||||
- galera
|
- galera
|
||||||
properties:
|
properties:
|
||||||
log_directory: mysql_logs
|
|
||||||
service_name: galera
|
|
||||||
is_metal: true
|
is_metal: true
|
||||||
|
|
||||||
.. note::
|
.. note::
|
||||||
|
@ -682,7 +682,7 @@ def container_skel_load(container_skel, inventory, config):
|
|||||||
key,
|
key,
|
||||||
container_type,
|
container_type,
|
||||||
inventory,
|
inventory,
|
||||||
value.get('properties')
|
value.get('properties', {})
|
||||||
)
|
)
|
||||||
else:
|
else:
|
||||||
cidr_networks = config.get('cidr_networks')
|
cidr_networks = config.get('cidr_networks')
|
||||||
@ -932,7 +932,7 @@ def _check_config_settings(cidr_networks, config, container_skel):
|
|||||||
# search for any container that doesn't have is_metal flag set to true
|
# search for any container that doesn't have is_metal flag set to true
|
||||||
is_provider_networks_needed = False
|
is_provider_networks_needed = False
|
||||||
for key, value in container_skel.iteritems():
|
for key, value in container_skel.iteritems():
|
||||||
properties = value.get('properties')
|
properties = value.get('properties', {})
|
||||||
is_metal = properties.get('is_metal', False)
|
is_metal = properties.get('is_metal', False)
|
||||||
if not is_metal:
|
if not is_metal:
|
||||||
is_provider_networks_needed = True
|
is_provider_networks_needed = True
|
||||||
|
@ -22,8 +22,6 @@ container_skel:
|
|||||||
- aodh_listener
|
- aodh_listener
|
||||||
- aodh_alarm_evaluator
|
- aodh_alarm_evaluator
|
||||||
- aodh_alarm_notifier
|
- aodh_alarm_notifier
|
||||||
properties:
|
|
||||||
service_name: aodh
|
|
||||||
|
|
||||||
physical_skel:
|
physical_skel:
|
||||||
metering-alarm_containers:
|
metering-alarm_containers:
|
||||||
|
@ -24,8 +24,6 @@ container_skel:
|
|||||||
- key-manager_containers
|
- key-manager_containers
|
||||||
contains:
|
contains:
|
||||||
- barbican_api
|
- barbican_api
|
||||||
properties:
|
|
||||||
service_name: barbican
|
|
||||||
|
|
||||||
physical_skel:
|
physical_skel:
|
||||||
key-manager_containers:
|
key-manager_containers:
|
||||||
|
@ -17,8 +17,6 @@ container_skel:
|
|||||||
contains:
|
contains:
|
||||||
- ceilometer_agent_central
|
- ceilometer_agent_central
|
||||||
- ceilometer_agent_notification
|
- ceilometer_agent_notification
|
||||||
properties:
|
|
||||||
service_name: ceilometer
|
|
||||||
metering-compute_container:
|
metering-compute_container:
|
||||||
belongs_to:
|
belongs_to:
|
||||||
- metering-compute_containers
|
- metering-compute_containers
|
||||||
@ -26,7 +24,6 @@ container_skel:
|
|||||||
- ceilometer_agent_compute
|
- ceilometer_agent_compute
|
||||||
properties:
|
properties:
|
||||||
is_metal: true
|
is_metal: true
|
||||||
service_name: ceilometer
|
|
||||||
|
|
||||||
physical_skel:
|
physical_skel:
|
||||||
metering-compute_containers:
|
metering-compute_containers:
|
||||||
|
@ -27,8 +27,6 @@ container_skel:
|
|||||||
- ceph-mon_containers
|
- ceph-mon_containers
|
||||||
contains:
|
contains:
|
||||||
- ceph-mon
|
- ceph-mon
|
||||||
properties:
|
|
||||||
service_name: ceph
|
|
||||||
ceph-osd_container:
|
ceph-osd_container:
|
||||||
belongs_to:
|
belongs_to:
|
||||||
- ceph-osd_containers
|
- ceph-osd_containers
|
||||||
@ -36,7 +34,6 @@ container_skel:
|
|||||||
- ceph-osd
|
- ceph-osd
|
||||||
properties:
|
properties:
|
||||||
is_metal: true
|
is_metal: true
|
||||||
service_name: ceph
|
|
||||||
|
|
||||||
physical_skel:
|
physical_skel:
|
||||||
ceph-mon_containers:
|
ceph-mon_containers:
|
||||||
|
@ -35,8 +35,6 @@ container_skel:
|
|||||||
contains:
|
contains:
|
||||||
- cinder_api
|
- cinder_api
|
||||||
- cinder_scheduler
|
- cinder_scheduler
|
||||||
properties:
|
|
||||||
service_name: cinder
|
|
||||||
cinder_volumes_container:
|
cinder_volumes_container:
|
||||||
belongs_to:
|
belongs_to:
|
||||||
- storage_containers
|
- storage_containers
|
||||||
@ -51,7 +49,6 @@ container_skel:
|
|||||||
# leave is_metal off, alternatively you will have to migrate your volumes once
|
# leave is_metal off, alternatively you will have to migrate your volumes once
|
||||||
# deployed on metal.
|
# deployed on metal.
|
||||||
is_metal: true
|
is_metal: true
|
||||||
service_name: cinder
|
|
||||||
|
|
||||||
|
|
||||||
physical_skel:
|
physical_skel:
|
||||||
|
@ -44,8 +44,6 @@ container_skel:
|
|||||||
- designate_worker
|
- designate_worker
|
||||||
- designate_producer
|
- designate_producer
|
||||||
- designate_sink
|
- designate_sink
|
||||||
properties:
|
|
||||||
service_name: designate
|
|
||||||
|
|
||||||
physical_skel:
|
physical_skel:
|
||||||
dnsaas_containers:
|
dnsaas_containers:
|
||||||
|
@ -26,9 +26,6 @@ container_skel:
|
|||||||
- shared-infra_containers
|
- shared-infra_containers
|
||||||
contains:
|
contains:
|
||||||
- galera
|
- galera
|
||||||
properties:
|
|
||||||
log_directory: mysql_logs
|
|
||||||
service_name: galera
|
|
||||||
|
|
||||||
|
|
||||||
physical_skel:
|
physical_skel:
|
||||||
|
@ -31,7 +31,6 @@ container_skel:
|
|||||||
- glance_api
|
- glance_api
|
||||||
- glance_registry
|
- glance_registry
|
||||||
properties:
|
properties:
|
||||||
service_name: glance
|
|
||||||
container_fs_size: 12G
|
container_fs_size: 12G
|
||||||
|
|
||||||
|
|
||||||
|
@ -28,8 +28,6 @@ container_skel:
|
|||||||
contains:
|
contains:
|
||||||
- gnocchi_api
|
- gnocchi_api
|
||||||
- gnocchi_metricd
|
- gnocchi_metricd
|
||||||
properties:
|
|
||||||
service_name: gnocchi
|
|
||||||
|
|
||||||
physical_skel:
|
physical_skel:
|
||||||
metrics_containers:
|
metrics_containers:
|
||||||
|
@ -26,7 +26,6 @@ container_skel:
|
|||||||
contains:
|
contains:
|
||||||
- haproxy
|
- haproxy
|
||||||
properties:
|
properties:
|
||||||
service_name: haproxy
|
|
||||||
is_metal: true
|
is_metal: true
|
||||||
|
|
||||||
physical_skel:
|
physical_skel:
|
||||||
|
@ -37,16 +37,12 @@ container_skel:
|
|||||||
- heat_api_cloudwatch
|
- heat_api_cloudwatch
|
||||||
- heat_api_cfn
|
- heat_api_cfn
|
||||||
- heat_api
|
- heat_api
|
||||||
properties:
|
|
||||||
service_name: heat
|
|
||||||
heat_engine_container:
|
heat_engine_container:
|
||||||
belongs_to:
|
belongs_to:
|
||||||
- orchestration_containers
|
- orchestration_containers
|
||||||
- os-infra_containers
|
- os-infra_containers
|
||||||
contains:
|
contains:
|
||||||
- heat_engine
|
- heat_engine
|
||||||
properties:
|
|
||||||
service_name: heat
|
|
||||||
|
|
||||||
|
|
||||||
physical_skel:
|
physical_skel:
|
||||||
|
@ -26,8 +26,6 @@ container_skel:
|
|||||||
- os-infra_containers
|
- os-infra_containers
|
||||||
contains:
|
contains:
|
||||||
- horizon
|
- horizon
|
||||||
properties:
|
|
||||||
service_name: horizon
|
|
||||||
|
|
||||||
|
|
||||||
physical_skel:
|
physical_skel:
|
||||||
|
@ -37,8 +37,6 @@ container_skel:
|
|||||||
- ironic_api
|
- ironic_api
|
||||||
- ironic_conductor
|
- ironic_conductor
|
||||||
- ironic_server
|
- ironic_server
|
||||||
properties:
|
|
||||||
service_name: ironic
|
|
||||||
ironic_compute_container:
|
ironic_compute_container:
|
||||||
belongs_to:
|
belongs_to:
|
||||||
- ironic-compute_containers
|
- ironic-compute_containers
|
||||||
@ -50,7 +48,6 @@ container_skel:
|
|||||||
- neutron_openvswitch_agent
|
- neutron_openvswitch_agent
|
||||||
properties:
|
properties:
|
||||||
is_metal: false
|
is_metal: false
|
||||||
service_name: nova
|
|
||||||
|
|
||||||
|
|
||||||
physical_skel:
|
physical_skel:
|
||||||
|
@ -25,8 +25,6 @@ container_skel:
|
|||||||
- identity_containers
|
- identity_containers
|
||||||
contains:
|
contains:
|
||||||
- keystone
|
- keystone
|
||||||
properties:
|
|
||||||
service_name: keystone
|
|
||||||
|
|
||||||
|
|
||||||
physical_skel:
|
physical_skel:
|
||||||
|
@ -27,8 +27,6 @@ container_skel:
|
|||||||
- magnum-infra_containers
|
- magnum-infra_containers
|
||||||
contains:
|
contains:
|
||||||
- magnum
|
- magnum
|
||||||
properties:
|
|
||||||
service_name: magnum
|
|
||||||
|
|
||||||
physical_skel:
|
physical_skel:
|
||||||
magnum-infra_containers:
|
magnum-infra_containers:
|
||||||
|
@ -26,8 +26,6 @@ container_skel:
|
|||||||
- shared-infra_containers
|
- shared-infra_containers
|
||||||
contains:
|
contains:
|
||||||
- memcached
|
- memcached
|
||||||
properties:
|
|
||||||
service_name: memcached
|
|
||||||
|
|
||||||
|
|
||||||
physical_skel:
|
physical_skel:
|
||||||
|
@ -25,8 +25,6 @@ container_skel:
|
|||||||
- molteniron-server_containers
|
- molteniron-server_containers
|
||||||
contains:
|
contains:
|
||||||
- molteniron
|
- molteniron
|
||||||
properties:
|
|
||||||
service_name: molteniron
|
|
||||||
|
|
||||||
physical_skel:
|
physical_skel:
|
||||||
molteniron-server_containers:
|
molteniron-server_containers:
|
||||||
|
@ -63,15 +63,11 @@ container_skel:
|
|||||||
- neutron_dhcp_agent
|
- neutron_dhcp_agent
|
||||||
- neutron_lbaas_agent
|
- neutron_lbaas_agent
|
||||||
- neutron_bgp_dragent
|
- neutron_bgp_dragent
|
||||||
properties:
|
|
||||||
service_name: neutron
|
|
||||||
neutron_server_container:
|
neutron_server_container:
|
||||||
belongs_to:
|
belongs_to:
|
||||||
- network_containers
|
- network_containers
|
||||||
contains:
|
contains:
|
||||||
- neutron_server
|
- neutron_server
|
||||||
properties:
|
|
||||||
service_name: neutron
|
|
||||||
|
|
||||||
|
|
||||||
physical_skel:
|
physical_skel:
|
||||||
|
@ -44,24 +44,18 @@ container_skel:
|
|||||||
- os-infra_containers
|
- os-infra_containers
|
||||||
contains:
|
contains:
|
||||||
- nova_api_metadata
|
- nova_api_metadata
|
||||||
properties:
|
|
||||||
service_name: nova
|
|
||||||
nova_api_os_compute_container:
|
nova_api_os_compute_container:
|
||||||
belongs_to:
|
belongs_to:
|
||||||
- compute-infra_containers
|
- compute-infra_containers
|
||||||
- os-infra_containers
|
- os-infra_containers
|
||||||
contains:
|
contains:
|
||||||
- nova_api_os_compute
|
- nova_api_os_compute
|
||||||
properties:
|
|
||||||
service_name: nova
|
|
||||||
nova_api_placement_container:
|
nova_api_placement_container:
|
||||||
belongs_to:
|
belongs_to:
|
||||||
- compute-infra_containers
|
- compute-infra_containers
|
||||||
- os-infra_containers
|
- os-infra_containers
|
||||||
contains:
|
contains:
|
||||||
- nova_api_placement
|
- nova_api_placement
|
||||||
properties:
|
|
||||||
service_name: nova
|
|
||||||
nova_compute_container:
|
nova_compute_container:
|
||||||
belongs_to:
|
belongs_to:
|
||||||
- compute_containers
|
- compute_containers
|
||||||
@ -72,31 +66,24 @@ container_skel:
|
|||||||
- nova_compute
|
- nova_compute
|
||||||
properties:
|
properties:
|
||||||
is_metal: true
|
is_metal: true
|
||||||
service_name: nova
|
|
||||||
nova_conductor_container:
|
nova_conductor_container:
|
||||||
belongs_to:
|
belongs_to:
|
||||||
- compute-infra_containers
|
- compute-infra_containers
|
||||||
- os-infra_containers
|
- os-infra_containers
|
||||||
contains:
|
contains:
|
||||||
- nova_conductor
|
- nova_conductor
|
||||||
properties:
|
|
||||||
service_name: nova
|
|
||||||
nova_scheduler_container:
|
nova_scheduler_container:
|
||||||
belongs_to:
|
belongs_to:
|
||||||
- compute-infra_containers
|
- compute-infra_containers
|
||||||
- os-infra_containers
|
- os-infra_containers
|
||||||
contains:
|
contains:
|
||||||
- nova_scheduler
|
- nova_scheduler
|
||||||
properties:
|
|
||||||
service_name: nova
|
|
||||||
nova_console_container:
|
nova_console_container:
|
||||||
belongs_to:
|
belongs_to:
|
||||||
- compute-infra_containers
|
- compute-infra_containers
|
||||||
- os-infra_containers
|
- os-infra_containers
|
||||||
contains:
|
contains:
|
||||||
- nova_console
|
- nova_console
|
||||||
properties:
|
|
||||||
service_name: nova
|
|
||||||
|
|
||||||
|
|
||||||
physical_skel:
|
physical_skel:
|
||||||
|
@ -37,8 +37,6 @@ container_skel:
|
|||||||
- octavia-worker
|
- octavia-worker
|
||||||
- octavia-housekeeping
|
- octavia-housekeeping
|
||||||
- octavia-health-manager
|
- octavia-health-manager
|
||||||
properties:
|
|
||||||
service_name: octavia
|
|
||||||
|
|
||||||
physical_skel:
|
physical_skel:
|
||||||
octavia-infra_containers:
|
octavia-infra_containers:
|
||||||
|
@ -25,8 +25,6 @@ container_skel:
|
|||||||
- repo-infra_containers
|
- repo-infra_containers
|
||||||
contains:
|
contains:
|
||||||
- pkg_repo
|
- pkg_repo
|
||||||
properties:
|
|
||||||
service_name: repo
|
|
||||||
|
|
||||||
|
|
||||||
physical_skel:
|
physical_skel:
|
||||||
|
@ -26,8 +26,6 @@ container_skel:
|
|||||||
- shared-infra_containers
|
- shared-infra_containers
|
||||||
contains:
|
contains:
|
||||||
- rabbitmq
|
- rabbitmq
|
||||||
properties:
|
|
||||||
service_name: rabbitmq
|
|
||||||
|
|
||||||
|
|
||||||
physical_skel:
|
physical_skel:
|
||||||
|
@ -25,8 +25,6 @@ container_skel:
|
|||||||
- log_containers
|
- log_containers
|
||||||
contains:
|
contains:
|
||||||
- rsyslog
|
- rsyslog
|
||||||
properties:
|
|
||||||
service_name: rsyslog
|
|
||||||
|
|
||||||
|
|
||||||
physical_skel:
|
physical_skel:
|
||||||
|
@ -26,8 +26,6 @@ container_skel:
|
|||||||
contains:
|
contains:
|
||||||
- sahara_api
|
- sahara_api
|
||||||
- sahara_engine
|
- sahara_engine
|
||||||
properties:
|
|
||||||
service_name: sahara
|
|
||||||
|
|
||||||
physical_skel:
|
physical_skel:
|
||||||
sahara-infra_containers:
|
sahara-infra_containers:
|
||||||
|
@ -27,7 +27,6 @@ container_skel:
|
|||||||
- swift_remote
|
- swift_remote
|
||||||
properties:
|
properties:
|
||||||
is_metal: true
|
is_metal: true
|
||||||
service_name: swift
|
|
||||||
|
|
||||||
|
|
||||||
physical_skel:
|
physical_skel:
|
||||||
|
@ -34,8 +34,6 @@ container_skel:
|
|||||||
- swift-proxy_containers
|
- swift-proxy_containers
|
||||||
contains:
|
contains:
|
||||||
- swift_proxy
|
- swift_proxy
|
||||||
properties:
|
|
||||||
service_name: swift
|
|
||||||
swift_acc_container:
|
swift_acc_container:
|
||||||
belongs_to:
|
belongs_to:
|
||||||
- swift_containers
|
- swift_containers
|
||||||
@ -43,7 +41,6 @@ container_skel:
|
|||||||
- swift_acc
|
- swift_acc
|
||||||
properties:
|
properties:
|
||||||
is_metal: true
|
is_metal: true
|
||||||
service_name: swift
|
|
||||||
swift_obj_container:
|
swift_obj_container:
|
||||||
belongs_to:
|
belongs_to:
|
||||||
- swift_containers
|
- swift_containers
|
||||||
@ -51,7 +48,6 @@ container_skel:
|
|||||||
- swift_obj
|
- swift_obj
|
||||||
properties:
|
properties:
|
||||||
is_metal: true
|
is_metal: true
|
||||||
service_name: swift
|
|
||||||
swift_cont_container:
|
swift_cont_container:
|
||||||
belongs_to:
|
belongs_to:
|
||||||
- swift_containers
|
- swift_containers
|
||||||
@ -59,7 +55,6 @@ container_skel:
|
|||||||
- swift_cont
|
- swift_cont
|
||||||
properties:
|
properties:
|
||||||
is_metal: true
|
is_metal: true
|
||||||
service_name: swift
|
|
||||||
|
|
||||||
|
|
||||||
physical_skel:
|
physical_skel:
|
||||||
|
@ -35,8 +35,6 @@ container_skel:
|
|||||||
- trove_api
|
- trove_api
|
||||||
- trove_conductor
|
- trove_conductor
|
||||||
- trove_taskmanager
|
- trove_taskmanager
|
||||||
properties:
|
|
||||||
service_name: trove
|
|
||||||
|
|
||||||
physical_skel:
|
physical_skel:
|
||||||
trove-infra_containers:
|
trove-infra_containers:
|
||||||
|
@ -24,8 +24,6 @@ container_skel:
|
|||||||
- unbound_containers
|
- unbound_containers
|
||||||
contains:
|
contains:
|
||||||
- unbound
|
- unbound
|
||||||
properties:
|
|
||||||
service_name: unbound
|
|
||||||
|
|
||||||
physical_skel:
|
physical_skel:
|
||||||
unbound_containers:
|
unbound_containers:
|
||||||
|
@ -26,8 +26,6 @@ container_skel:
|
|||||||
- shared-infra_containers
|
- shared-infra_containers
|
||||||
contains:
|
contains:
|
||||||
- utility
|
- utility
|
||||||
properties:
|
|
||||||
service_name: utility
|
|
||||||
|
|
||||||
|
|
||||||
physical_skel:
|
physical_skel:
|
||||||
|
Loading…
Reference in New Issue
Block a user