Skip to content

Fix flower deployment on k8s#191

Merged
c-w merged 2 commits intomasterfrom
fix-flower
May 26, 2019
Merged

Fix flower deployment on k8s#191
c-w merged 2 commits intomasterfrom
fix-flower

Conversation

@c-w
Copy link
Member

@c-w c-w commented May 26, 2019

The flower pod is currently crashing with the following error:

Traceback (most recent call last):
  File "/usr/local/bin/flower", line 10, in <module>
    sys.exit(main())
  File "/usr/local/lib/python3.6/site-packages/flower/__main__.py", line 11, in main
    flower.execute_from_commandline()
  File "/usr/local/lib/python3.6/site-packages/celery/bin/base.py", line 298, in execute_from_commandline
    return self.handle_argv(self.prog_name, argv[1:])
  File "/usr/local/lib/python3.6/site-packages/flower/command.py", line 56, in handle_argv
    return self.run_from_argv(prog_name, argv)
  File "/usr/local/lib/python3.6/site-packages/flower/command.py", line 33, in run_from_argv
    self.apply_env_options()
  File "/usr/local/lib/python3.6/site-packages/flower/command.py", line 71, in apply_env_options
    value = option.type(value)
ValueError: invalid literal for int() with base 10: 'tcp://10.0.75.166:8080'

This is because k8s auto-injects a variable of the form {deployment_name}_PORT which mistakenly gets read by flower: FLOWER_PORT=tcp://10.0.75.166:8080. Namespacing all the k8s objects with the release name should fix this issue.

@c-w c-w merged commit efeed75 into master May 26, 2019
@c-w c-w deleted the fix-flower branch May 26, 2019 03:28
c-w added a commit that referenced this pull request Apr 28, 2020
* Fix test name

* Make wvdial log persistent

* Add prepare-release recipe to create sdist

* Reboot device to ensure all permissions propagate
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant