Merge ~hemanth-n/stsstack-bundles:nfs-server into stsstack-bundles:master

Proposed by Hemanth Nakkina
Status: Merged
Merged at revision: 59a3575a87bcc3a515052e0e2b6b07fec9e2e43e
Proposed branch: ~hemanth-n/stsstack-bundles:nfs-server
Merge into: stsstack-bundles:master
Diff against target: 63 lines (+40/-0)
3 files modified
doc/openstack/nfs-server.md (+31/-0)
openstack/pipeline/02configure (+3/-0)
overlays/nfs-server-test-fixture.yaml (+6/-0)
Reviewer Review Type Date Requested Status
Hemanth Nakkina Needs Resubmitting
Review via email: mp+390063@code.launchpad.net

Commit message

Add nfs-server-test-fixture as overlay

To post a comment you must log in.
Revision history for this message
Edward Hope-Morley (hopem) wrote :

Good feature. I think it would be good to add something in the way of a doc/docstring so that the uninitiated have an idea of how/when to use this.

Revision history for this message
Hemanth Nakkina (hemanth-n) wrote :

Updated the documentation as per Ed comments

review: Needs Resubmitting

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1diff --git a/doc/openstack/nfs-server.md b/doc/openstack/nfs-server.md
2new file mode 100644
3index 0000000..128ef2f
4--- /dev/null
5+++ b/doc/openstack/nfs-server.md
6@@ -0,0 +1,31 @@
7+# Deploying nfs-server
8+
9+The stsstack-bundles support deploying nfs-server as an overlay which can be
10+used for the usecases where nfs server is required. Some of the use cases this
11+will be helpful
12+* cinder-backup configured to nfs backend [1]
13+* deployment with trilio services [2] [3]
14+
15+Generate the cloud yaml via ./generate-bundle.sh adding --nfs-server overlay
16+A new unit nfs-server-test-fixture/0 will be deployed which runs nfs-server.
17+An additional disk of storage size 40 GB is attached to the unit.
18+
19+NFS export directory is configured at the path /srv/testing
20+
21+```
22+# cat /etc/exports
23+# Test export with no permission restrictures
24+/srv/testing *(rw,sync,no_root_squash)
25+```
26+
27+The NFS Share mount path on the client side can be specified as
28+<IP of nfs-server-test-fixture/0 unit>:/src/testing
29+
30+Example:
31+```
32+juju config trilio-wlm nfs-shares=10.5.1.170:/srv/testing
33+```
34+
35+[1] https://docs.openstack.org/cinder/latest/configuration/block-storage/backup/nfs-backup-driver.html
36+[2] https://jaas.ai/u/openstack-charmers/trilio-wlm/3#charm-config-nfs-shares
37+[3] https://jaas.ai/u/openstack-charmers/trilio-data-mover/2#charm-config-nfs-shares
38diff --git a/openstack/pipeline/02configure b/openstack/pipeline/02configure
39index 05a8057..80745f8 100644
40--- a/openstack/pipeline/02configure
41+++ b/openstack/pipeline/02configure
42@@ -284,6 +284,9 @@ do
43 MOD_OVERLAYS+=( "nova-console.yaml" )
44 get_param $1 __CONSOLE_TYPE__ "REQUIRES: nova console access protocol:"
45 ;;
46+ --nfs-server)
47+ MOD_OVERLAYS+=("nfs-server-test-fixture.yaml")
48+ ;;
49 --octavia)
50 if `has_opt --ovn`; then
51 assert_min_release train "octavia+ovn"
52diff --git a/overlays/nfs-server-test-fixture.yaml b/overlays/nfs-server-test-fixture.yaml
53new file mode 100644
54index 0000000..b6eabd4
55--- /dev/null
56+++ b/overlays/nfs-server-test-fixture.yaml
57@@ -0,0 +1,6 @@
58+applications:
59+ nfs-server-test-fixture:
60+ charm: cs:~openstack-charmers-next/nfs-server-test-fixture
61+ num_units: 1
62+ storage:
63+ share: cinder,40G

Subscribers

People subscribed via source and target branches