Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Istio ingress installation kustomize bug. #159

Closed
moabu opened this issue Aug 31, 2020 · 0 comments
Closed

Istio ingress installation kustomize bug. #159

moabu opened this issue Aug 31, 2020 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@moabu
Copy link
Member

moabu commented Aug 31, 2020

Describe the bug

Traceback (most recent call last):
  File "/usr/lib/python3.6/runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "/usr/lib/python3.6/runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "./pygluu-kubernetes.pyz/__main__.py", line 3, in <module>
  File "./pygluu-kubernetes.pyz/_bootstrap/__init__.py", line 179, in bootstrap
  File "./pygluu-kubernetes.pyz/_bootstrap/__init__.py", line 33, in run
  File "/root/.shiv/pygluu-kubernetes_3a594ed9e34de5dcfc2dd9c5514c0aed5bb5fe983ee41a5d1b4e818dc8724b47/site-packages/pygluu/kubernetes/create.py", line 91, in main
    kustomize.install()
  File "/root/.shiv/pygluu-kubernetes_3a594ed9e34de5dcfc2dd9c5514c0aed5bb5fe983ee41a5d1b4e818dc8724b47/site-packages/pygluu/kubernetes/kustomize.py", line 1510, in install
    self.kustomize_it()
  File "/root/.shiv/pygluu-kubernetes_3a594ed9e34de5dcfc2dd9c5514c0aed5bb5fe983ee41a5d1b4e818dc8724b47/site-packages/pygluu/kubernetes/kustomize.py", line 606, in kustomize_it
    self.adjust_istio_virtual_services_destination_rules(app, "gluu-istio-oxauth")
  File "/root/.shiv/pygluu-kubernetes_3a594ed9e34de5dcfc2dd9c5514c0aed5bb5fe983ee41a5d1b4e818dc8724b47/site-packages/pygluu/kubernetes/kustomize.py", line 492, in adjust_istio_virtual_services_destination_rules
    "DestinationRule", destination_rule_name)
  File "/root/.shiv/pygluu-kubernetes_3a594ed9e34de5dcfc2dd9c5514c0aed5bb5fe983ee41a5d1b4e818dc8724b47/site-packages/pygluu/kubernetes/yamlparser.py", line 48, in __init__
    self.yaml.dump(self.modify_dict, file)
  File "/root/.shiv/pygluu-kubernetes_3a594ed9e34de5dcfc2dd9c5514c0aed5bb5fe983ee41a5d1b4e818dc8724b47/site-packages/ruamel/yaml/main.py", line 451, in dump
    return self.dump_all([data], stream, _kw, transform=transform)
  File "/root/.shiv/pygluu-kubernetes_3a594ed9e34de5dcfc2dd9c5514c0aed5bb5fe983ee41a5d1b4e818dc8724b47/site-packages/ruamel/yaml/main.py", line 465, in dump_all
    self._context_manager.dump(data)
  File "/root/.shiv/pygluu-kubernetes_3a594ed9e34de5dcfc2dd9c5514c0aed5bb5fe983ee41a5d1b4e818dc8724b47/site-packages/ruamel/yaml/main.py", line 817, in dump
    self._yaml.representer.represent(data)
  File "/root/.shiv/pygluu-kubernetes_3a594ed9e34de5dcfc2dd9c5514c0aed5bb5fe983ee41a5d1b4e818dc8724b47/site-packages/ruamel/yaml/representer.py", line 85, in represent
    node = self.represent_data(data)
  File "/root/.shiv/pygluu-kubernetes_3a594ed9e34de5dcfc2dd9c5514c0aed5bb5fe983ee41a5d1b4e818dc8724b47/site-packages/ruamel/yaml/representer.py", line 122, in represent_data
    node = self.yaml_representers[None](self, data)
  File "/root/.shiv/pygluu-kubernetes_3a594ed9e34de5dcfc2dd9c5514c0aed5bb5fe983ee41a5d1b4e818dc8724b47/site-packages/ruamel/yaml/representer.py", line 393, in represent_undefined
    raise RepresenterError('cannot represent an object: %s' % (data,))
ruamel.yaml.representer.RepresenterError: cannot represent an object: <class 'dict'>

Bug occurs because code executes parsing yamls before building process ends.

@moabu moabu added the bug Something isn't working label Aug 31, 2020
@moabu moabu self-assigned this Aug 31, 2020
@moabu moabu closed this as completed in b76c918 Aug 31, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant