58624abf5f
The nova_compute container kolla config is currently set to recursively change the ownership of /var/lib/nova to nova:nova on startup. This is necessary when upgrading from an non-container deployment to a containerized deployment as the nova uids are not consistent across the host and container image. If the nova instancedir is an NFS mount then open filehandles are broken and every VM using that NFS export fails with I/O errors. This change re-implements the nova statedir ownership logic to target only the files/directories controlled by nova. Requires dist-git change: https://review.rdoproject.org/r/14734 Change-Id: I57d421feb6356d28002e77fb9bfa50a397758cbf Closes-bug: 1778465
43 lines
1.2 KiB
YAML
43 lines
1.2 KiB
YAML
heat_template_version: rocky
|
|
|
|
description: >
|
|
Contains a static list of common things necessary for nova-compute containers
|
|
|
|
parameters:
|
|
|
|
# Required parameters
|
|
EndpointMap:
|
|
default: {}
|
|
description: Mapping of service endpoint -> protocol. Typically set
|
|
via parameter_defaults in the resource registry.
|
|
type: json
|
|
ServiceData:
|
|
default: {}
|
|
description: Dictionary packing service data
|
|
type: json
|
|
ServiceNetMap:
|
|
default: {}
|
|
description: Mapping of service_name -> network name. Typically set
|
|
via parameter_defaults in the resource registry. This
|
|
mapping overrides those in ServiceNetMapDefaults.
|
|
type: json
|
|
DefaultPasswords:
|
|
default: {}
|
|
type: json
|
|
RoleName:
|
|
default: ''
|
|
description: Role name on which the service is applied
|
|
type: string
|
|
RoleParameters:
|
|
default: {}
|
|
description: Parameters specific to the role
|
|
type: json
|
|
|
|
outputs:
|
|
docker_config_scripts:
|
|
description: Shared docker config scripts
|
|
value:
|
|
nova_statedir_ownership.py:
|
|
mode: "0700"
|
|
content: { get_file: ../../docker_config_scripts/nova_statedir_ownership.py }
|