Skip to content
This repository was archived by the owner on Jul 24, 2018. It is now read-only.
This repository was archived by the owner on Jul 24, 2018. It is now read-only.

cannot apply a manifest file when server-client model #201

@powerds

Description

@powerds

Is this a bug report or feature request? (choose one):
a bug

armada apply command makes an error like below when set up armada server-client model.

root@taco-aio:~# armada --api --url http://127.0.0.1:31903 --token armada apply ./dev/powerds/armada-manifests/taco-aio-manifest.yaml
2018-04-03 00:35:56.988 3862 ERROR armada.cli [-] Caught unexpected exception: requests.exceptions.ConnectionError: ('Connection aborted.', RemoteDisconnected('Remote end c
losed connection without response',))
2018-04-03 00:35:56.988 3862 ERROR armada.cli Traceback (most recent call last):
2018-04-03 00:35:56.988 3862 ERROR armada.cli File "/usr/local/lib/python3.5/dist-packages/urllib3/connectionpool.py", line 601, in urlopen
2018-04-03 00:35:56.988 3862 ERROR armada.cli chunked=chunked)
2018-04-03 00:35:56.988 3862 ERROR armada.cli File "/usr/local/lib/python3.5/dist-packages/urllib3/connectionpool.py", line 387, in _make_request
2018-04-03 00:35:56.988 3862 ERROR armada.cli six.raise_from(e, None)
2018-04-03 00:35:56.988 3862 ERROR armada.cli File "", line 2, in raise_from
2018-04-03 00:35:56.988 3862 ERROR armada.cli File "/usr/local/lib/python3.5/dist-packages/urllib3/connectionpool.py", line 383, in _make_request
2018-04-03 00:35:56.988 3862 ERROR armada.cli httplib_response = conn.getresponse()
2018-04-03 00:35:56.988 3862 ERROR armada.cli File "/usr/lib/python3.5/http/client.py", line 1197, in getresponse
2018-04-03 00:35:56.988 3862 ERROR armada.cli response.begin()
2018-04-03 00:35:56.988 3862 ERROR armada.cli File "/usr/lib/python3.5/http/client.py", line 297, in begin
2018-04-03 00:35:56.988 3862 ERROR armada.cli version, status, reason = self._read_status()
2018-04-03 00:35:56.988 3862 ERROR armada.cli File "/usr/lib/python3.5/http/client.py", line 266, in _read_status
2018-04-03 00:35:56.988 3862 ERROR armada.cli raise RemoteDisconnected("Remote end closed connection without"
2018-04-03 00:35:56.988 3862 ERROR armada.cli http.client.RemoteDisconnected: Remote end closed connection without response
2018-04-03 00:35:56.988 3862 ERROR armada.cli
2018-04-03 00:35:56.988 3862 ERROR armada.cli During handling of the above exception, another exception occurred:

And the server side error message is below.

2018-04-03 07:35:56.985 35 INFO armada.api.middleware [-] POST http://127.0.0.1:31903/api/v1.0/apply?timeout=3600&dry_run=False&enable_chart_cleanup=False&disable_update_post=False&disable_update_pre=False&tiller_port=44134&wait=False&tiller_namespace=kube-system - 200 OK
2018-04-03 07:35:56.985 35 DEBUG armada.api.middleware [-] Response body:None process_response ./armada/api/middleware.py:126
2018-04-03 07:35:56.985 35 CRITICAL armada [-] Unhandled error: FileNotFoundError: [Errno 2] No such file or directory: './dev/powerds/armada-manifests/taco-aio-manifest.yaml'
2018-04-03 07:35:56.985 35 ERROR armada Traceback (most recent call last):
2018-04-03 07:35:56.985 35 ERROR armada File "/usr/local/lib/python3.5/site-packages/falcon/api.py", line 244, in call
2018-04-03 07:35:56.985 35 ERROR armada responder(req, resp, **params)
2018-04-03 07:35:56.985 35 ERROR armada File "./armada/common/policy.py", line 55, in handler
2018-04-03 07:35:56.985 35 ERROR armada return func(*args, **kwargs)
2018-04-03 07:35:56.985 35 ERROR armada File "./armada/api/controller/armada.py", line 55, in on_post
2018-04-03 07:35:56.985 35 ERROR armada data = ReferenceResolver.resolve_reference(doc_ref)
2018-04-03 07:35:56.985 35 ERROR armada File "./armada/handlers/document.py", line 65, in resolve_reference
2018-04-03 07:35:56.985 35 ERROR armada data.append(handler.get(None, cls)(design_uri))
2018-04-03 07:35:56.985 35 ERROR armada File "./armada/handlers/document.py", line 108, in resolve_reference_file
2018-04-03 07:35:56.985 35 ERROR armada with open(design_uri.path, 'rb') as f:
2018-04-03 07:35:56.985 35 ERROR armada FileNotFoundError: [Errno 2] No such file or directory: './dev/powerds/armada-manifests/taco-aio-manifest.yaml'
2018-04-03 07:35:56.985 35 ERROR armada

we should fix cli code to pass manifest file into the server not only a manifest reference.

Python Version (output of python --version):
python 3.6
Development or Deployment Environment?:

Release Tag or Master:

Expected Behavior:

What Actually Happened:

How to Reproduce the Issue (as minimally as possible):

Any Additional Comments:

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions