2026-03-05 02:12:27,945 - INFO - Domain Default found not creating
2026-03-05 02:12:28,118 - INFO - Project ctest-TestBasicPolicy-43879369 not found, creating it
2026-03-05 02:12:28,595 - INFO - Created Project:ctest-TestBasicPolicy-43879369, ID : f42c1f9f-e337-4fa8-9b57-0d671c218794
2026-03-05 02:12:30,086 - INFO - ================================================================================
2026-03-05 02:12:30,086 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-03-05 02:12:30,086 - INFO - TEST DESCRIPTION :
Create 2 Vns and allow icmp traffic between them and validate with pings
Update the policy to deny the same traffic
Check that pings fail
2026-03-05 02:12:30,345 - DEBUG - Nothing to compare xmpp stats {'10.0.0.49': {'10.20.0.249': '0'}} with
2026-03-05 02:12:30,345 - INFO - Initial checks done. Running the testcase now
2026-03-05 02:12:30,345 - INFO -
2026-03-05 02:12:30,891 - DEBUG - Response for create_network : {'network': {'id': 'fd8beeb7-4ad0-48c5-ae9e-f17ca2fe62e0', 'name': 'ctest-vn-44592598', 'tenant_id': 'f42c1f9fe3374fa89b570d671c218794', 'project_id': 'f42c1f9fe3374fa89b570d671c218794', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-43879369', 'ctest-vn-44592598'], 'port_security_enabled': True, 'description': ''}}
2026-03-05 02:12:31,072 - DEBUG - Response for create_subnet : {'subnet': {'id': '9e590b77-ef06-4a60-beca-16613520f5ec', 'name': '', 'tenant_id': 'f42c1f9fe3374fa89b570d671c218794', 'network_id': 'fd8beeb7-4ad0-48c5-ae9e-f17ca2fe62e0', 'ip_version': 4, 'cidr': '11.19.89.64/26', 'allocation_pools': [{'start': '11.19.89.66', 'end': '11.19.89.126'}], 'gateway_ip': '11.19.89.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '11.19.89.66', 'tags': [], 'project_id': 'f42c1f9fe3374fa89b570d671c218794'}}
2026-03-05 02:12:31,094 - INFO - Created VN ctest-vn-44592598
2026-03-05 02:12:31,145 - DEBUG - VN ctest-vn-44592598 UUID is fd8beeb7-4ad0-48c5-ae9e-f17ca2fe62e0
2026-03-05 02:12:31,460 - DEBUG - Response for create_network : {'network': {'id': 'e5cfe754-ba14-4754-aaf0-bce8f7cacf18', 'name': 'ctest-vn-14417460', 'tenant_id': 'f42c1f9fe3374fa89b570d671c218794', 'project_id': 'f42c1f9fe3374fa89b570d671c218794', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-43879369', 'ctest-vn-14417460'], 'port_security_enabled': True, 'description': ''}}
2026-03-05 02:12:31,643 - DEBUG - Response for create_subnet : {'subnet': {'id': '68d7f197-5bfe-4e87-b7d6-d8137e4e1ba8', 'name': '', 'tenant_id': 'f42c1f9fe3374fa89b570d671c218794', 'network_id': 'e5cfe754-ba14-4754-aaf0-bce8f7cacf18', 'ip_version': 4, 'cidr': '111.134.180.0/26', 'allocation_pools': [{'start': '111.134.180.2', 'end': '111.134.180.62'}], 'gateway_ip': '111.134.180.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '111.134.180.2', 'tags': [], 'project_id': 'f42c1f9fe3374fa89b570d671c218794'}}
2026-03-05 02:12:31,660 - INFO - Created VN ctest-vn-14417460
2026-03-05 02:12:31,713 - DEBUG - VN ctest-vn-14417460 UUID is e5cfe754-ba14-4754-aaf0-bce8f7cacf18
2026-03-05 02:12:31,857 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-43879369:ctest-vn-44592598, security_group = None, network_policy = None, subnet_list = []], src_ports = [start_port = -1, end_port = -1], application = [], dst_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-43879369:ctest-vn-14417460, security_group = None, network_policy = None, subnet_list = []], dst_ports = [start_port = -1, end_port = -1], action_list = simple_action = pass, gateway_name = None, apply_service = [], service_properties = None, mirror_to = None, assign_routing_instance = None, log = False, alert = False, qos_action = None, host_based_service = False, ethertype = None, created = None, last_modified = None, description = None]
2026-03-05 02:12:32,167 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'fd8beeb7-4ad0-48c5-ae9e-f17ca2fe62e0', 'name': 'ctest-vn-44592598', 'tenant_id': 'f42c1f9fe3374fa89b570d671c218794', 'project_id': 'f42c1f9fe3374fa89b570d671c218794', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['9e590b77-ef06-4a60-beca-16613520f5ec'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-43879369', 'ctest-vn-44592598'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-43879369', 'ctest-policy-allow-all-29509136']], 'subnet_ipam': [{'subnet_cidr': '11.19.89.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-03-05 02:12:32,392 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'e5cfe754-ba14-4754-aaf0-bce8f7cacf18', 'name': 'ctest-vn-14417460', 'tenant_id': 'f42c1f9fe3374fa89b570d671c218794', 'project_id': 'f42c1f9fe3374fa89b570d671c218794', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['68d7f197-5bfe-4e87-b7d6-d8137e4e1ba8'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-43879369', 'ctest-vn-14417460'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-43879369', 'ctest-policy-allow-all-29509136']], 'subnet_ipam': [{'subnet_cidr': '111.134.180.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-03-05 02:12:32,561 - DEBUG - Requesting: http://10.0.0.49:8082/domains
2026-03-05 02:12:32,862 - DEBUG - Requesting: http://10.0.0.49:8082/domains
2026-03-05 02:12:32,894 - DEBUG - Requesting: http://10.0.0.49:8082/domain/9d9711a3-97ce-4fc0-8521-181bd662e59a
2026-03-05 02:12:32,905 - DEBUG - Requesting: http://10.0.0.49:8082/project/f42c1f9f-e337-4fa8-9b57-0d671c218794
2026-03-05 02:12:32,975 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/fd8beeb7-4ad0-48c5-ae9e-f17ca2fe62e0
2026-03-05 02:12:32,985 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/fd8beeb7-4ad0-48c5-ae9e-f17ca2fe62e0
2026-03-05 02:12:32,996 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/0d17005c-e02d-4f80-b9ba-1009cc01617a
2026-03-05 02:12:33,002 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/0d17005c-e02d-4f80-b9ba-1009cc01617a
2026-03-05 02:12:33,009 - DEBUG - Requesting: http://10.0.0.49:8082/route-target/d9dc5c67-6967-48ad-bcfd-bef2a1e7e037
2026-03-05 02:12:33,016 - DEBUG - Route Targets: ['target:64512:8000004']
2026-03-05 02:12:33,016 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/fd8beeb7-4ad0-48c5-ae9e-f17ca2fe62e0
2026-03-05 02:12:33,025 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/0d17005c-e02d-4f80-b9ba-1009cc01617a
2026-03-05 02:12:33,038 - INFO - Verified VN network id 11 for VN fd8beeb7-4ad0-48c5-ae9e-f17ca2fe62e0
2026-03-05 02:12:33,038 - INFO - Verifications in API Server for VN ctest-vn-44592598 passed
2026-03-05 02:12:33,038 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/fd8beeb7-4ad0-48c5-ae9e-f17ca2fe62e0
2026-03-05 02:12:33,048 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/0d17005c-e02d-4f80-b9ba-1009cc01617a
2026-03-05 02:12:33,055 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/0d17005c-e02d-4f80-b9ba-1009cc01617a
2026-03-05 02:12:33,061 - DEBUG - Requesting: http://10.0.0.49:8082/route-target/d9dc5c67-6967-48ad-bcfd-bef2a1e7e037
2026-03-05 02:12:33,072 - DEBUG - Control-node 10.0.0.49 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-43879369:ctest-vn-44592598', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-43879369', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '18269958784360138949', 'uuid-lslong': '12582759926532563680'}, 'enable': 'true', 'created': '2026-03-05T02:12:30', 'last-modified': '2026-03-05T02:12:32', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.935325'}
2026-03-05 02:12:33,078 - DEBUG - Route Targets: ['target:64512:8000004']
2026-03-05 02:12:33,078 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-44592598 passed
2026-03-05 02:12:33,079 - DEBUG - ====Verifying policy data for ctest-vn-44592598 in API_Server ======
2026-03-05 02:12:33,079 - DEBUG - Requesting: http://10.0.0.49:8082/domains
2026-03-05 02:12:33,084 - DEBUG - Requesting: http://10.0.0.49:8082/domain/9d9711a3-97ce-4fc0-8521-181bd662e59a
2026-03-05 02:12:33,100 - DEBUG - Requesting: http://10.0.0.49:8082/project/f42c1f9f-e337-4fa8-9b57-0d671c218794
2026-03-05 02:12:33,169 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/fd8beeb7-4ad0-48c5-ae9e-f17ca2fe62e0
2026-03-05 02:12:33,177 - DEBUG - ==>Verifying data for policy with id: 2dd0ca41-113c-4a67-9747-827e30e276a2, fqn: ['default-domain', 'ctest-TestBasicPolicy-43879369', 'ctest-policy-allow-all-29509136']
2026-03-05 02:12:33,177 - INFO - VN ctest-vn-44592598 Policy verification: verify_vn_policy_in_api_server, status: True
2026-03-05 02:12:33,177 - DEBUG - Verifying the vn in opserver
2026-03-05 02:12:33,177 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-43879369:ctest-vn-44592598 virtual network link through opserver 10.0.0.49
2026-03-05 02:12:33,178 - DEBUG - Requesting: http://10.0.0.49:8081/analytics/uves/virtual-networks
2026-03-05 02:12:33,468 - DEBUG - Requesting: http://10.0.0.49:8081/analytics/uves/virtual-networks
2026-03-05 02:12:33,533 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-43879369:ctest-vn-44592598', 'href': 'http://10.0.0.49:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-43879369:ctest-vn-44592598?flat'}
2026-03-05 02:12:33,533 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-43879369:ctest-vn-44592598 is found in opserver
2026-03-05 02:12:33,543 - DEBUG - Do not have enough data to verify VN in agent
2026-03-05 02:12:33,547 - DEBUG - VRF ids for VN ctest-vn-44592598: {}
2026-03-05 02:12:33,548 - DEBUG - Requesting: http://10.0.0.49:8082/domains
2026-03-05 02:12:33,552 - DEBUG - Requesting: http://10.0.0.49:8082/domain/9d9711a3-97ce-4fc0-8521-181bd662e59a
2026-03-05 02:12:33,562 - DEBUG - Requesting: http://10.0.0.49:8082/project/f42c1f9f-e337-4fa8-9b57-0d671c218794
2026-03-05 02:12:33,632 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/e5cfe754-ba14-4754-aaf0-bce8f7cacf18
2026-03-05 02:12:33,643 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/e5cfe754-ba14-4754-aaf0-bce8f7cacf18
2026-03-05 02:12:33,651 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/3be90927-8a14-4f3a-9100-9437217f5e8c
2026-03-05 02:12:33,658 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/3be90927-8a14-4f3a-9100-9437217f5e8c
2026-03-05 02:12:33,665 - DEBUG - Requesting: http://10.0.0.49:8082/route-target/fcde7614-6c26-4e95-98e0-b78d3671dabd
2026-03-05 02:12:33,671 - DEBUG - Route Targets: ['target:64512:8000005']
2026-03-05 02:12:33,671 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/e5cfe754-ba14-4754-aaf0-bce8f7cacf18
2026-03-05 02:12:33,681 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/3be90927-8a14-4f3a-9100-9437217f5e8c
2026-03-05 02:12:33,697 - INFO - Verified VN network id 12 for VN e5cfe754-ba14-4754-aaf0-bce8f7cacf18
2026-03-05 02:12:33,698 - INFO - Verifications in API Server for VN ctest-vn-14417460 passed
2026-03-05 02:12:33,698 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/e5cfe754-ba14-4754-aaf0-bce8f7cacf18
2026-03-05 02:12:33,706 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/3be90927-8a14-4f3a-9100-9437217f5e8c
2026-03-05 02:12:33,714 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/3be90927-8a14-4f3a-9100-9437217f5e8c
2026-03-05 02:12:33,721 - DEBUG - Requesting: http://10.0.0.49:8082/route-target/fcde7614-6c26-4e95-98e0-b78d3671dabd
2026-03-05 02:12:33,734 - DEBUG - Control-node 10.0.0.49 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-43879369:ctest-vn-14417460', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-43879369', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16559708705949763412', 'uuid-lslong': '12317552689634004760'}, 'enable': 'true', 'created': '2026-03-05T02:12:31', 'last-modified': '2026-03-05T02:12:32', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.364240'}
2026-03-05 02:12:33,743 - DEBUG - Route Targets: ['target:64512:8000005']
2026-03-05 02:12:33,743 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-14417460 passed
2026-03-05 02:12:33,743 - DEBUG - ====Verifying policy data for ctest-vn-14417460 in API_Server ======
2026-03-05 02:12:33,743 - DEBUG - Requesting: http://10.0.0.49:8082/domains
2026-03-05 02:12:33,748 - DEBUG - Requesting: http://10.0.0.49:8082/domain/9d9711a3-97ce-4fc0-8521-181bd662e59a
2026-03-05 02:12:33,765 - DEBUG - Requesting: http://10.0.0.49:8082/project/f42c1f9f-e337-4fa8-9b57-0d671c218794
2026-03-05 02:12:33,838 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/e5cfe754-ba14-4754-aaf0-bce8f7cacf18
2026-03-05 02:12:33,846 - DEBUG - ==>Verifying data for policy with id: 2dd0ca41-113c-4a67-9747-827e30e276a2, fqn: ['default-domain', 'ctest-TestBasicPolicy-43879369', 'ctest-policy-allow-all-29509136']
2026-03-05 02:12:33,846 - INFO - VN ctest-vn-14417460 Policy verification: verify_vn_policy_in_api_server, status: True
2026-03-05 02:12:33,846 - DEBUG - Verifying the vn in opserver
2026-03-05 02:12:33,846 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-43879369:ctest-vn-14417460 virtual network link through opserver 10.0.0.49
2026-03-05 02:12:33,847 - DEBUG - Requesting: http://10.0.0.49:8081/analytics/uves/virtual-networks
2026-03-05 02:12:33,858 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-43879369:ctest-vn-14417460', 'href': 'http://10.0.0.49:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-43879369:ctest-vn-14417460?flat'}
2026-03-05 02:12:33,858 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-43879369:ctest-vn-14417460 is found in opserver
2026-03-05 02:12:33,867 - DEBUG - Do not have enough data to verify VN in agent
2026-03-05 02:12:33,872 - DEBUG - VRF ids for VN ctest-vn-14417460: {}
2026-03-05 02:12:33,933 - DEBUG - Services list from nova: [