Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ansible delfin installer #942

Merged
merged 4 commits into from
Nov 25, 2022

Conversation

joseph-v
Copy link
Collaborator

What this PR does / why we need it:
Add standalone ansible install for delfin

Which issue this PR fixes (optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close that issue when PR gets merged): fixes #

Special notes for your reviewer:

Release note:

@joseph-v joseph-v force-pushed the ansible-installer branch 5 times, most recently from e7830b1 to ee4a41b Compare November 17, 2022 09:46
@codecov
Copy link

codecov bot commented Nov 17, 2022

Codecov Report

Merging #942 (57c0d25) into master (9ad2996) will decrease coverage by 0.00%.
The diff coverage is n/a.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #942      +/-   ##
==========================================
- Coverage   71.36%   71.35%   -0.01%     
==========================================
  Files         187      187              
  Lines       23067    23067              
  Branches     3508     3508              
==========================================
- Hits        16462    16460       -2     
- Misses       5490     5491       +1     
- Partials     1115     1116       +1     
Impacted Files Coverage Δ
delfin/drivers/fake_storage/__init__.py 94.67% <0.00%> (-0.51%) ⬇️

@joseph-v joseph-v force-pushed the ansible-installer branch 5 times, most recently from e296889 to b3f6dc8 Compare November 23, 2022 04:05
sushanthakumar
sushanthakumar previously approved these changes Nov 23, 2022
Copy link
Contributor

@PravinRanjan10 PravinRanjan10 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

May be gelato related term we can remove.

Copy link
Collaborator

@skdwriting skdwriting left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pls check the comments


The SODA Delfin supports two types of installation
* Installation using Ansible for user experiance with Dashboard
* Installation using scripts
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

using scripts? Or Installation with Dashboard and Installation with CLI?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removed dashboard, srm_toolchain and auth install files. Updated banner and documentation.




## Bash installer
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we use the installer names consistently in the beginning also? Or please say Installation option 1 : Ansible...and Installation option 2: Bash Script installer in the title. Also use consistently across the doc

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

@@ -0,0 +1,38 @@
# Copyright 2019 The OpenSDS Authors.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

SODA Authors

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why do we need all these files for single project installer also...(separate files in group_vars)

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removed

@@ -0,0 +1,60 @@
# Copyright 2019 The OpenSDS Authors.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

SODA Authors (all occurrences, pls check)

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

@@ -0,0 +1,46 @@
# Copyright 2020 The SODA Authors.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Any reason for 2020 ? (For all occurrences)

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

OPENSDS_GELATO_URL: "http://{{ host_ip }}:8089"
SODA_DELFIN_URL: "{{ soda_delfin_url }}"
OPENSDS_ORCHESTRATION_URL: "http://{{ host_ip }}:5000"
OPENSDS_S3_URL: "http://{{ host_ip }}:8090"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All the env are needed for Delfin?!
Why should it be called OpenSDS or SODA ?
Any env variable at SODA level should be part of SODA installer / dashboard not delfin.
Delfin should handle delfin env vars

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

- name: build and configure opensds dashboard
shell: "{{ item }}"
with_items:
- service apache2 stop
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If we do this way, will it not affect the dashboard of any other existing instance of the dashboard?!

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

# See the License for the specific language governing permissions and
# limitations under the License.

openssl version >& /dev/null
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

needed for delfin?!

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

@@ -0,0 +1,279 @@
#!/usr/bin/env bash

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

keystone for delfin?!

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removed

import json


def token_issue():
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

needed for delfin?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removed


# Supported OS
Ubuntu 16.04, Ubuntu 18.04
## Ansible installer
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Installation using Ansible

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done




## Bash script installer
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Installation using Bash Scripts

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

```

# Logs
### Logs
All the installer logs are stored in the /var/log/sodafoundation directory.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can we change the directory name from sodafoundation to soda?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

Copy link
Collaborator

@skdwriting skdwriting left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@sushanthakumar sushanthakumar merged commit aa40fcd into sodafoundation:master Nov 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants