Tuesday, 2023-03-21

*** amoralej|off is now known as amoralej07:03
*** amoralej is now known as amoralej|lunch13:03
*** amoralej|lunch is now known as amoralej13:59
PShello14:23
PSi need help with mistarl. I want to build a workfolow that creates a router with an external network assigned to it14:23
PSsomething like this:14:24
PScreate_network_router:14:24
PS        action: neutron.create_router  <% $.body %>14:24
PS        input:14:24
PS- body: ({body={router={name=test-ps-network-xxx,availability_zone_hints=None,admin_state_up=True,enable_snat=True,project_id=8c41d7806da84105b73d7e7cfa8e87bd,admin_state_>14:25
PS         14:25
PSup=True,enable_snat=True,project_id=8c41d7806da84105b73d7e7cfa8e87bd,admin_state_up=True,ext_gateway_net_id=16f694c7-cf7e-4877-9526-7b42b1ebf665,14:25
PS,ext_fixed_ips=[{subnet_id=f81a122f-9cb2-482d-8790-39dc8d46b53a}]}}})14:26
PSbut its not work for me14:26
PScould you help me14:26
PS?14:27
avanzaghihello PS, I'm not sure how the neutron.create_router works. However, something I can point out is that on your line 'action: neutron.create_router' you should not put '<% $.body %>'15:33
avanzaghiapart from that I won't be able to really help you with how to actually write the body input15:35
PSthank you avanzaghi, i try 16:30
*** amoralej is now known as amoralej|off17:00
PSwhen i try to do:17:57
PS create_network_router:17:57
PSaction: neutron.create_router '{body={router={name=test-ps-network-xxx,availability_zone_hints=None,admin_state_up=True,enable_snat=True,project_id=8c41d7806da84105b73d7e7cfa8e87bd,admin_state_up=True,ext_gateway_net_id=16f694c7-cf7e-4877-9526-7b42b1ebf665,ext_fixed_ips=[{subnet_id=f81a122f-9cb217:57
PS-482d-8790-39dc8d46b53a}] }}}'17:57
PSi have error: Failed to run task [error=Invalid input [name=neutron.create_router, class=mistral.actions.openstack.actions.NeutronAction, unexpected=['project_id', 'ext_gateway_net_id', 'ext_fixed_ips']], wf=project_network.network, task=create_network_router]17:58
PSit makes me crazy17:58
PScreate_network_router:18:10
PSaction: neutron.create_router18:10
PS'{router={name=test-ps-network-xxx,availability_zone_hints=None,admin_state_up=True,enable_snat=True,admin_state_up=True,{project_id=8c41d7806da84105b73d7e7cfa8e87bd,ext_gateway_net_id=16f694c7-cf7e-4877-9526-7b42b1ebf665,ext_fixed_ips=[{subnet_id=f81a122f-9cb2-482d-8790-39dc8d46b53a}]}}}'18:10
PSthe same error18:10

Generated by irclog2html.py 2.17.3 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!