Merge "Fix swift containers idempotency"
This commit is contained in:
commit
246e7f309a
@ -160,9 +160,9 @@ if [ -z "$NO_ARCHIVE" ]; then
|
|||||||
excluded_original_passwords+=" --exclude=/var/lib/config-data/*${p}"
|
excluded_original_passwords+=" --exclude=/var/lib/config-data/*${p}"
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
# We need to exclude the swift ring backups as those change over time and
|
# We need to exclude the swift rings and backups as those change over time
|
||||||
# containers do not need to restart if they change
|
# and containers do not need to restart if they change
|
||||||
EXCLUDE=--exclude='*/etc/swift/backups/*'\ --exclude='*/etc/libvirt/passwd.db'\ ${excluded_original_passwords}
|
EXCLUDE=--exclude='*/etc/swift/backups/*'\ --exclude='*/etc/swift/*.ring.gz'\ --exclude='*/etc/swift/*.builder'\ --exclude='*/etc/libvirt/passwd.db'\ ${excluded_original_passwords}
|
||||||
|
|
||||||
# We need to repipe the tar command through 'tar xO' to force text
|
# We need to repipe the tar command through 'tar xO' to force text
|
||||||
# output because otherwise the sed command cannot work. The sed is
|
# output because otherwise the sed command cannot work. The sed is
|
||||||
|
@ -65,6 +65,12 @@ parameters:
|
|||||||
default: ''
|
default: ''
|
||||||
description: A temporary Swift URL to upload rings to.
|
description: A temporary Swift URL to upload rings to.
|
||||||
type: string
|
type: string
|
||||||
|
DeployIdentifier:
|
||||||
|
default: ''
|
||||||
|
type: string
|
||||||
|
description: >
|
||||||
|
Setting this to a unique value will re-run any deployment tasks which
|
||||||
|
perform configuration on a Heat stack-update.
|
||||||
|
|
||||||
conditions:
|
conditions:
|
||||||
swift_use_local_dir:
|
swift_use_local_dir:
|
||||||
@ -124,3 +130,7 @@ outputs:
|
|||||||
volumes:
|
volumes:
|
||||||
- /var/lib/config-data/puppet-generated/swift/etc/swift:/etc/swift:rw,z
|
- /var/lib/config-data/puppet-generated/swift/etc/swift:/etc/swift:rw,z
|
||||||
- /var/lib/config-data/swift_ringbuilder:/swift_ringbuilder:ro
|
- /var/lib/config-data/swift_ringbuilder:/swift_ringbuilder:ro
|
||||||
|
environment:
|
||||||
|
# NOTE: this should force this container to re-run on each
|
||||||
|
# update (scale-out, etc.)
|
||||||
|
TRIPLEO_DEPLOY_IDENTIFIER: {get_param: DeployIdentifier}
|
||||||
|
@ -77,6 +77,12 @@ parameters:
|
|||||||
default: 0
|
default: 0
|
||||||
description: Number of workers for Swift account service.
|
description: Number of workers for Swift account service.
|
||||||
type: string
|
type: string
|
||||||
|
DeployIdentifier:
|
||||||
|
default: ''
|
||||||
|
type: string
|
||||||
|
description: >
|
||||||
|
Setting this to a unique value will re-run any deployment tasks which
|
||||||
|
perform configuration on a Heat stack-update.
|
||||||
|
|
||||||
# DEPRECATED options for compatibility with overcloud.yaml
|
# DEPRECATED options for compatibility with overcloud.yaml
|
||||||
# This should be removed and manipulation of the ControllerServices list
|
# This should be removed and manipulation of the ControllerServices list
|
||||||
@ -313,6 +319,10 @@ outputs:
|
|||||||
command: ['chown', '-R', 'swift:', '/srv/node']
|
command: ['chown', '-R', 'swift:', '/srv/node']
|
||||||
volumes:
|
volumes:
|
||||||
- /srv/node:/srv/node:z
|
- /srv/node:/srv/node:z
|
||||||
|
environment:
|
||||||
|
# NOTE: this should force this container to re-run on each
|
||||||
|
# update (scale-out, etc.)
|
||||||
|
TRIPLEO_DEPLOY_IDENTIFIER: {get_param: DeployIdentifier}
|
||||||
step_4:
|
step_4:
|
||||||
map_merge:
|
map_merge:
|
||||||
- if:
|
- if:
|
||||||
|
Loading…
Reference in New Issue
Block a user