Skip to content

Commit

Permalink
Fix problems with adding new NFS
Browse files Browse the repository at this point in the history
This commit fixes following issues:

1. NFS should be deployed on RGW hosts only. We support it by suggesting
   to deploy RGW on the side.
2. ceph-rest-api does not install keyrings, need to execute ceph-client
   before.

Change-Id: I2943de3b8d081dbafaede5f7fab8a7d1def95787
  • Loading branch information
9seconds committed Apr 11, 2017
1 parent 2c64040 commit d836d15
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,13 @@

- include: "{{ decapod_common_playbooks }}/plays/add_ceph_ansible_role.yaml"

- hosts: restapis
become: true
vars:
user_config: false
roles:
- ceph-client

- hosts: restapis
become: true
roles:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
# limitations under the License.


- include: "{{ decapod_common_playbooks }}/plays/add_ceph_ansible_role.yaml"
- include: "{{ decapod_common_playbooks }}/plays/deploy_rgw.yaml"

- hosts: nfss
become: true
Expand Down
11 changes: 11 additions & 0 deletions plugins/playbook/add_nfs/decapod_plugin_playbook_add_nfs/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,12 @@
"typename": "boolean",
"type": "boolean",
"default_value": False
},
"deploy_rgw": {
"description": "Deploy Rados Gateway on the same machines",
"typename": "boolean",
"type": "boolean",
"default_value": True
}
}
"""Schema for playbook hints."""
Expand Down Expand Up @@ -132,9 +138,14 @@ def get_inventory_groups(self, cluster, servers, hints):
for item in cluster.configuration.state if item["role"] == "mons"
]

rgws = []
if hints["deploy_rgw"]:
rgws = servers

return {
"mons": mons,
"nfss": servers,
"rgws": rgws,
"already_deployed": list(cluster_servers.values())
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,7 @@
from decapod_common.models import server


DESCRIPTION = """\
add_rgw plugin for Decapod
""".strip()
DESCRIPTION = "Add Rados Gateway to the cluster"
"""Plugin description."""

HINTS_SCHEMA = {
Expand Down

0 comments on commit d836d15

Please sign in to comment.