sodafoundation / installer

provides easy installation and basic deployment based on specific configurations for SODA Projects
Apache License 2.0
35 stars 68 forks source link

Installation is failing on Ubuntu 20.04.2 Following Installation Guide In Official Documentation #497

Closed josephjacobmorris closed 1 year ago

josephjacobmorris commented 2 years ago

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

   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

Environment Information:

root1@root1-Nitro-AN515-55:~/DME/installation/installer/ansible$ ansible --version
ansible 2.9.6
  config file = /etc/ansible/ansible.cfg
  configured module search path = ['/home/root1/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
  ansible python module location = /usr/lib/python3/dist-packages/ansible
  executable location = /usr/bin/ansible
  python version = 3.8.10 (default, Jun 22 2022, 20:18:18) [GCC 9.4.0]
root1@root1-Nitro-AN515-55:~/DME/installation/installer/ansible$ hostnamectl
   Static hostname: root1-Nitro-AN515-55
         Icon name: computer-laptop
           Chassis: laptop
        Machine ID: xxxxxxxxxxxxxxxxxxx
           Boot ID: xxxxxxxxxxxxxxxxxxx
  Operating System: Ubuntu 20.04.2 LTS
            Kernel: Linux 5.8.0-43-generic
      Architecture: x86-64
root1@root1-Nitro-AN515-55:~/DME/installation/installer/ansible$ 
rizwi33faizan commented 2 years ago

I will take up this issue.

PravinRanjan10 commented 2 years ago

@rizwi33faizan okay. Add more founded issues related to syntax error of yaml files. And fix it.

josephjacobmorris commented 1 year ago

fixed as part of release v1.8.0