gcs icon indicating copy to clipboard operation
gcs copied to clipboard

can not deploy due to the json.decoder.JSONDecodeError:

Open yudar1024 opened this issue 6 years ago • 0 comments

the stack is follow

[root@master1 ~]# kubectl gluster deploy gcs.yaml
/usr/local/lib/python3.6/site-packages/kubectl_gluster/main.py:68: YAMLLoadWarning: calling yaml.load() without Loader=... is deprecated, as the default Loader is unsafe. Please read https://msg.pyyaml.org/load for full details.
  config = yaml.load(open(args.config))
[   INFO] 2019-09-02 16:04:07 Node details  address=node1  devices=/dev/sdb
[   INFO] 2019-09-02 16:04:07 Node details  address=node2  devices=/dev/sdb
[   INFO] 2019-09-02 16:04:07 Node details  address=node3  devices=/dev/sdb
[   INFO] 2019-09-02 16:04:07 Cluster Size  clusterSize=3
[   INFO] 2019-09-02 16:04:07 Namespace  namespace=gcs
[   INFO] 2019-09-02 16:04:09 GCS Namespace created
[   INFO] 2019-09-02 16:04:11 Etcd Operator created
[   INFO] 2019-09-02 16:04:11 Checking etcd operator status.............
[   INFO] 2019-09-02 16:06:12 Etcd Operator is ready
[   INFO] 2019-09-02 16:06:14 Etcd cluster created
[   INFO] 2019-09-02 16:06:14 Fetch etcd Cluster IP.
[   INFO] 2019-09-02 16:06:14 Etcd Service IP is available  endpoint=http://10.254.35.150:2379
[   INFO] 2019-09-02 16:06:14 Check for Etcd cluster status...................
[   INFO] 2019-09-02 16:09:16 Etcd pods are UP
Traceback (most recent call last):
  File "/usr/local/bin/kubectl-gluster", line 11, in <module>
    load_entry_point('kubectl-gluster==0.9.5', 'console_scripts', 'kubectl-gluster')()
  File "/usr/local/lib/python3.6/site-packages/kubectl_gluster/main.py", line 83, in main
    do_deploy(args)
  File "/usr/local/lib/python3.6/site-packages/kubectl_gluster/main.py", line 76, in do_deploy
    deploy(config)
  File "/usr/local/lib/python3.6/site-packages/kubectl_gluster/deploy.py", line 423, in deploy
    etcd_setup(config)
  File "/usr/local/lib/python3.6/site-packages/kubectl_gluster/deploy.py", line 121, in etcd_setup
    label="Checking etcd cluster ready"
  File "/usr/local/lib/python3.6/site-packages/kubectl_gluster/utils.py", line 96, in execute
    if out_expect_fn is not None and out_expect_fn(out):
  File "/usr/local/lib/python3.6/site-packages/kubectl_gluster/deploy.py", line 106, in check_etcd_cluster_ready
    members_data = json.loads(cmdout.strip())
  File "/usr/lib64/python3.6/json/__init__.py", line 354, in loads
    return _default_decoder.decode(s)
  File "/usr/lib64/python3.6/json/decoder.py", line 339, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib64/python3.6/json/decoder.py", line 357, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

please consider provide a rendered k8s yaml file in deploy folder, because in China, is difficult to connect some destinations due to the GFW. if there are the rendered yaml files , we can pre-download/pull the materials via proxy. thank you.

yudar1024 avatar Sep 02 '19 08:09 yudar1024