Issue/Feature Description:
Installation is failing on Ubuntu 20.04.2 Following Installation Guide In Official Documentation.
Issue seems to be caused by usage of version-specific syntax of Ansible
Why this issue to fixed / feature is needed(give scenarios or use cases):
Ubuntu 20.04 is newer version so support is necessary.
Issues were noticed in 3 places :
During Installation
1)
Error msg
root1@root1-Nitro-AN515-55:~/DME/installation/installer/ansible$ ansible-playbook site.yml -i local.hosts
[DEPRECATION WARNING]: The TRANSFORM_INVALID_GROUP_CHARS settings is set to allow bad characters in group names by default, this will change, but still be user configurable on deprecation. This feature
will be removed in version 2.10. Deprecation warnings can be disabled by setting deprecation_warnings=False in ansible.cfg.
[WARNING]: Invalid characters were found in group names but not replaced, use -vvvv to see details
ERROR! conflicting action statements: hosts, replace
The error appears to be in '/home/root1/DME/installation/installer/ansible/roles/ha-ip-update/tasks/main.yml': line 24, column 3, but may
be elsewhere in the file depending on the exact syntax problem.
The offending line appears to be:
# Same IP is used for both the services. Only Port is different (predefined)
- name: replace the gelato_ha_api_ip and gelato_ha_s3_ip in the gelato-ha.yml
^ here
root1@root1-Nitro-AN515-55:~/DME/installation/installer/ansible$
During Cleaning
1)
ERROR! Syntax Error while loading YAML.
found unknown escape character
The error appears to be in '/home/root1/DME/installation/installer/ansible/roles/gelato-ha-uninstaller/scenarios/clean_gelato_ha.yml': line 35, column 47, but may
be elsewhere in the file depending on the exact syntax problem.
The offending line appears to be:
with_items:
- "kubectl patch pvc mongo-0-pv-claim -p '\''{{patch_param }}'\'' --type=merge -n soda-multi-cloud"
^ here
We could be wrong, but this one looks like it might be an issue with
missing quotes. Always quote template expression brackets when they
start a value. For instance:
with_items:
- {{ foo }}
Should be written as:
with_items:
- "{{ foo }}"
root1@root1-Nitro-AN515-55:~/DME/installation/installer/ansible$
2) After resolving above
statically imported: /home/root1/DME/installation/installer/ansible/roles/gelato-ha-uninstaller/scenarios/clean_gelato_ha.yml
ERROR! conflicting action statements: file, ignore_error
The error appears to be in '/home/root1/DME/installation/installer/ansible/roles/gelato-ha-uninstaller/scenarios/clean_gelato_ha.yml': line 91, column 3, but may
be elsewhere in the file depending on the exact syntax problem.
The offending line appears to be:
# ---------delete the multi-cloud folder in /opt/opensds-gelato ---------
- name: Clean artifact path ub /opt/opensds-gelato...
^ here
root1@root1-Nitro-AN515-55:~/DME/installation/installer/ansible$
How to reproduce, in case of a bug:
Install per official documentation in ubuntu 20.04.2
Issue/Feature Description: Installation is failing on Ubuntu 20.04.2 Following Installation Guide In Official Documentation.
Issues were noticed in 3 places :
During Installation
1) Error msg
During Cleaning
1)
2) After resolving above
How to reproduce, in case of a bug: Install per official documentation in ubuntu 20.04.2
Environment Information: