Created
July 24, 2017 15:43
-
-
Save dav1x/3d7d3e05e7a725b7c236f0a374a8e9e4 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-> cns-deploy -n storage -g topology.json --admin-key 'myS3cr3tpassw0rd' --user-key 'mys3rs3cr3tpassw0rd' | |
Welcome to the deployment tool for GlusterFS on Kubernetes and OpenShift. | |
Before getting started, this script has some requirements of the execution | |
environment and of the container platform that you should verify. | |
The client machine that will run this script must have: | |
* Administrative access to an existing Kubernetes or OpenShift cluster | |
* Access to a python interpreter 'python' | |
* Access to the heketi client 'heketi-cli' | |
Each of the nodes that will host GlusterFS must also have appropriate firewall | |
rules for the required GlusterFS ports: | |
* 2222 - sshd (if running GlusterFS in a pod) | |
* 24007 - GlusterFS Daemon | |
* 24008 - GlusterFS Management | |
* 49152 to 49251 - Each brick for every volume on the host requires its own | |
port. For every new brick, one new port will be used starting at 49152. We | |
recommend a default range of 49152-49251 on each host, though you can adjust | |
this to fit your needs. | |
In addition, for an OpenShift deployment you must: | |
* Have 'cluster_admin' role on the administrative account doing the deployment | |
* Add the 'default' and 'router' Service Accounts to the 'privileged' SCC | |
* Have a router deployed that is configured to allow apps to access services | |
running in the cluster | |
Do you wish to proceed with deployment? | |
[Y]es, [N]o? [Default: Y]: y | |
Traceback (most recent call last): | |
File "<stdin>", line 6, in <module> | |
File "/usr/lib64/python2.7/json/__init__.py", line 290, in load | |
**kw) | |
File "/usr/lib64/python2.7/json/__init__.py", line 338, in loads | |
return _default_decoder.decode(s) | |
File "/usr/lib64/python2.7/json/decoder.py", line 369, in decode | |
raise ValueError(errmsg("Extra data", s, end, len(s))) | |
ValueError: Extra data: line 57 column 1 - line 785 column 1 (char 1695 - 23862) | |
Using OpenShift CLI. | |
NAME STATUS AGE | |
storage Active 21m | |
Using namespace "storage". | |
Checking that heketi pod is not running ... OK | |
template "deploy-heketi" created | |
serviceaccount "heketi-service-account" created | |
template "heketi" created | |
template "glusterfs" created | |
error: resource(s) were provided, but no name, label selector, or --all flag specified | |
Failed to label node '' | |
Error from server: services "heketi" not found | |
serviceaccount "heketi-service-account" deleted | |
No resources found | |
Error from server: services "heketi-storage-endpoints" not found | |
Error from server: deploymentconfig "heketi" not found | |
Error from server: routes "heketi" not found | |
template "deploy-heketi" deleted | |
template "heketi" deleted | |
error: resource name may not be empty | |
No resources found | |
template "glusterfs" deleted |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment