I have installed EDA and it working fine along with AWX in kubernetes cluster . But when i try to create new Event Stream in webUI it would give me this error :
EventStream of type Token Event Stream cannot be used because EVENT_STREAM_BASE_URL is not configured. Please check with your site administrator.
Not sure where to set this URL
Hi @guruthebond
I think it is a bug in the documentation of the operator. That variable is set by the operator but public_base_url must be defined.
labels:
{{ lookup("template", "../common/templates/labels/common.yaml.j2") | indent(width=4) | trim }}
data:
# Operator specific settings
EDA_DEPLOYMENT_TYPE: "k8s"
{% if public_base_url and eda_event_stream_prefix_path %}
# Public URL
EDA_WEBHOOK_BASE_URL: "{{ public_base_url.rstrip('/') }}/{{ eda_event_stream_prefix_path.lstrip('/') }}"
EDA_WEBHOOK_MTLS_BASE_URL: "@none None"
EDA_EVENT_STREAM_BASE_URL: "{{ public_base_url.rstrip('/') }}/{{ eda_event_stream_prefix_path.lstrip('/') }}"
EDA_EVENT_STREAM_MTLS_BASE_URL: "@none None"
{% endif %}
# EDA Server
EDA_CONTROLLER_URL: "{{ automation_server_url }}"
EDA_CONTROLLER_SSL_VERIFY: "{{ automation_server_ssl_verify | default('yes')}}"
# EDA Server
EDA_ALLOWED_HOSTS: "['*']"
EDA_CSRF_TRUSTED_ORIGINS: "http://{{ api_server_name }}:{{ api_nginx_port }}"
Thank you Alex for prompt reply and explaining the issue, EDA operator i am right now using is as shown below 1.0.0, i tried using the 1.0.2 but when i access the URL it would just show me nginx welcome page
kubectl describe deployment eda-ui -n eda | grep “Image:”
Image: eda-ui:main
kubectl describe deployment eda-api -n eda | grep “Image:”
Image: eda-server:main
kubectl describe deployment eda-default-worker -n eda | grep “Image:”
Image: eda-server:main
kubectl describe deployment eda-redis -n eda | grep “Image:”
Image: redis-6-c9s:latest
kubectl describe deployment eda-scheduler -n eda | grep “Image:”
Image: eda-server:main
kubectl describe deployment eda-server-operator-controller-manager -n eda | grep “Image:”
Image: eda-server-operator:1.0.0
kubectl describe deployment eda-activation-worker -n eda | grep “Image:”
Image: eda-server:main
i have deployed eda using this doc : awx-on-k3s/rulebooks at main · kurokobo/awx-on-k3s · GitHub
Not sure were do i set the public_base_url.
I added it in config file below and redeployed the operator but still issue is same
cat rulebooks/server/eda.yaml
apiVersion: eda.ansible.com/v1alpha1
kind: EDA
metadata:
name: eda
spec:
ipv6_disabled: true
admin_user: admin
admin_password_secret: eda-admin-password
ingress_type: ingress
ingress_tls_secret: eda-secret-tls
hostname:
#Added on 8th Jan 2024, to fix event stream creation issue
public_base_url:
automation_server_url:
automation_server_ssl_verify: no
Hello @Alex-Izquierdo
Any idea where i can define public_base_url? or wait for updated operator release ?
guruthebond:
public_base_url
Hi @guruthebond According to the documentation of the operator, the variable is public_base_url and must be defined in the EDA crd. I have personally checked that it is working. Make sure it has a valid value and it is correctly applied/deployed.
I have also created a bug report for the documentation and defaults.
opened 12:35PM - 08 Jan 25 UTC
It seems that `public_base_url` has no default value and the documentation does … not say that it must be defined, so if the application is installed without defining that variable event streams can not be created, the application returns an error like: `EventStream of type Token Event Stream cannot be used because EVENT_STREAM_BASE_URL is not configured. Please check with your site administrator.`
The documentation should indicate that the variable must be defined in order to work with event streams or it should have a default value.
This issue has been reported in the forum. [Ref](https://forum.ansible.com/t/some-help-for-newbie-event-stream-base-url-is-not-configured-in-eda/39501/1).