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

[RC3][Daito] Partial uninstall/Clean from ansible #317

Closed kumarashit closed 4 years ago

kumarashit commented 4 years ago

Describe the bug A clear and concise description of what the bug is. On uninstall, resources doesn't get cleaned properly a) Volume Group doesn't get deleted b) Loop devices associated with files, doesn't get detached. To Reproduce Steps to reproduce the behavior:

  1. Go to '...' Install using Ansible single node cluster
  2. Click on '....' Uninstall and then retry install
  3. Scroll down to '....'
  4. See error : re-install will fail for NFS

Expected behavior A clear and concise description of what you expected to happen. First uninstallation should have cleaned the resources created by installer Subsequent install fails. Reason is that the loop devices attached to FS is not detached. Came out of this situation by executing losetup -d /dev/loop* Also, vgs still shows the group. Manually deleted volume group

Screenshots If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

Smartphone (please complete the following information):

Additional context Add any other context about the problem here.

kumarashit commented 4 years ago

I could reproduce it with Daito v0.10.0 release too

kumarashit commented 4 years ago

Faced the same issue: TASK [telemetry-uninstaller : clean all created work directories] **** task path: /root/gopath/src/github.com/opensds/opensds-installer/ansible/roles/telemetry-uninstaller/scenarios/clean_telemetry_tools.yml:101 skipping: [localhost] => { "changed": false, "skip_reason": "Conditional result was False", "skipped": true } META: ran handlers META: ran handlers

PLAY RECAP *** localhost : ok=13 changed=10 unreachable=0 failed=0

root@aks:~/gopath/src/github.com/opensds/opensds-installer/ansible# losetup -d /dev/loop3 losetup: /dev/loop3: detach failed: No such device or address root@aks:~/gopath/src/github.com/opensds/opensds-installer/ansible# losetup -d /dev/loop0 root@aks:~/gopath/src/github.com/opensds/opensds-installer/ansible# losetup -d /dev/loop1 root@aks:~/gopath/src/github.com/opensds/opensds-installer/ansible# losetup -d /dev/loop2 losetup: /dev/loop2: detach failed: No such device or address root@aks:~/gopath/src/github.com/opensds/opensds-installer/ansible#

kumarashit commented 4 years ago

Closing as this is fixed. Verified with Elba release