2025-09-12 20:59:12,908 - INFO - Domain Default found not creating
2025-09-12 20:59:13,040 - INFO - Project ctest-TestBasicPolicy-52960260 not found, creating it
2025-09-12 20:59:13,454 - INFO - Created Project:ctest-TestBasicPolicy-52960260, ID : c468c3dd-0e69-4732-b508-4c1c4ce51fd3
2025-09-12 20:59:14,796 - INFO - ================================================================================
2025-09-12 20:59:14,796 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-09-12 20:59:14,796 - 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
2025-09-12 20:59:15,054 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.17': '0'}} with
2025-09-12 20:59:15,054 - INFO - Initial checks done. Running the testcase now
2025-09-12 20:59:15,054 - INFO -
2025-09-12 20:59:15,562 - DEBUG - Response for create_network : {'network': {'id': 'eb7cd9cd-4de5-4067-8b27-c9fff432c8fa', 'name': 'ctest-vn-17204679', 'tenant_id': 'c468c3dd0e694732b5084c1c4ce51fd3', 'project_id': 'c468c3dd0e694732b5084c1c4ce51fd3', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-52960260', 'ctest-vn-17204679'], 'port_security_enabled': True, 'description': ''}}
2025-09-12 20:59:15,760 - DEBUG - Response for create_subnet : {'subnet': {'id': '22ea9b54-0e67-4e96-acab-53a9a0d68127', 'name': '', 'tenant_id': 'c468c3dd0e694732b5084c1c4ce51fd3', 'network_id': 'eb7cd9cd-4de5-4067-8b27-c9fff432c8fa', 'ip_version': 4, 'cidr': '1.207.85.128/26', 'allocation_pools': [{'start': '1.207.85.130', 'end': '1.207.85.190'}], 'gateway_ip': '1.207.85.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '1.207.85.130', 'tags': [], 'project_id': 'c468c3dd0e694732b5084c1c4ce51fd3'}}
2025-09-12 20:59:15,775 - INFO - Created VN ctest-vn-17204679
2025-09-12 20:59:15,826 - DEBUG - VN ctest-vn-17204679 UUID is eb7cd9cd-4de5-4067-8b27-c9fff432c8fa
2025-09-12 20:59:16,126 - DEBUG - Response for create_network : {'network': {'id': '1e2d4e12-4130-478d-8226-fb05e7fb8f40', 'name': 'ctest-vn-58947708', 'tenant_id': 'c468c3dd0e694732b5084c1c4ce51fd3', 'project_id': 'c468c3dd0e694732b5084c1c4ce51fd3', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-52960260', 'ctest-vn-58947708'], 'port_security_enabled': True, 'description': ''}}
2025-09-12 20:59:16,309 - DEBUG - Response for create_subnet : {'subnet': {'id': 'c9324c2a-beed-4c1e-ad0a-697a81e21c09', 'name': '', 'tenant_id': 'c468c3dd0e694732b5084c1c4ce51fd3', 'network_id': '1e2d4e12-4130-478d-8226-fb05e7fb8f40', 'ip_version': 4, 'cidr': '11.33.216.64/26', 'allocation_pools': [{'start': '11.33.216.66', 'end': '11.33.216.126'}], 'gateway_ip': '11.33.216.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '11.33.216.66', 'tags': [], 'project_id': 'c468c3dd0e694732b5084c1c4ce51fd3'}}
2025-09-12 20:59:16,323 - INFO - Created VN ctest-vn-58947708
2025-09-12 20:59:16,373 - DEBUG - VN ctest-vn-58947708 UUID is 1e2d4e12-4130-478d-8226-fb05e7fb8f40
2025-09-12 20:59:16,513 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-52960260:ctest-vn-17204679, 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-52960260:ctest-vn-58947708, 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]
2025-09-12 20:59:16,789 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'eb7cd9cd-4de5-4067-8b27-c9fff432c8fa', 'name': 'ctest-vn-17204679', 'tenant_id': 'c468c3dd0e694732b5084c1c4ce51fd3', 'project_id': 'c468c3dd0e694732b5084c1c4ce51fd3', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['22ea9b54-0e67-4e96-acab-53a9a0d68127'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-52960260', 'ctest-vn-17204679'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-52960260', 'ctest-policy-allow-all-73828303']], 'subnet_ipam': [{'subnet_cidr': '1.207.85.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-09-12 20:59:17,012 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '1e2d4e12-4130-478d-8226-fb05e7fb8f40', 'name': 'ctest-vn-58947708', 'tenant_id': 'c468c3dd0e694732b5084c1c4ce51fd3', 'project_id': 'c468c3dd0e694732b5084c1c4ce51fd3', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['c9324c2a-beed-4c1e-ad0a-697a81e21c09'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-52960260', 'ctest-vn-58947708'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-52960260', 'ctest-policy-allow-all-73828303']], 'subnet_ipam': [{'subnet_cidr': '11.33.216.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-09-12 20:59:17,154 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-09-12 20:59:17,446 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-09-12 20:59:17,470 - DEBUG - Requesting: http://10.0.0.254:8082/domain/cb1b8ab4-19ec-4ab6-8ad7-acde986b1a60
2025-09-12 20:59:17,481 - DEBUG - Requesting: http://10.0.0.254:8082/project/c468c3dd-0e69-4732-b508-4c1c4ce51fd3
2025-09-12 20:59:17,550 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/eb7cd9cd-4de5-4067-8b27-c9fff432c8fa
2025-09-12 20:59:17,559 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/eb7cd9cd-4de5-4067-8b27-c9fff432c8fa
2025-09-12 20:59:17,567 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/13838e01-943b-4d4c-926f-91ba85171690
2025-09-12 20:59:17,573 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/13838e01-943b-4d4c-926f-91ba85171690
2025-09-12 20:59:17,578 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/af7eece4-a406-44d7-9cee-02e39a20f18d
2025-09-12 20:59:17,583 - DEBUG - Route Targets: ['target:64512:8000004']
2025-09-12 20:59:17,583 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/eb7cd9cd-4de5-4067-8b27-c9fff432c8fa
2025-09-12 20:59:17,591 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/13838e01-943b-4d4c-926f-91ba85171690
2025-09-12 20:59:17,602 - INFO - Verified VN network id 12 for VN eb7cd9cd-4de5-4067-8b27-c9fff432c8fa
2025-09-12 20:59:17,602 - INFO - Verifications in API Server for VN ctest-vn-17204679 passed
2025-09-12 20:59:17,602 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/eb7cd9cd-4de5-4067-8b27-c9fff432c8fa
2025-09-12 20:59:17,609 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/13838e01-943b-4d4c-926f-91ba85171690
2025-09-12 20:59:17,614 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/13838e01-943b-4d4c-926f-91ba85171690
2025-09-12 20:59:17,619 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/af7eece4-a406-44d7-9cee-02e39a20f18d
2025-09-12 20:59:17,628 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-52960260:ctest-vn-17204679', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-52960260', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16968676971823579239', 'uuid-lslong': '10027205196514511098'}, 'enable': 'true', 'created': '2025-09-12T20:59:15', 'last-modified': '2025-09-12T20:59:16', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.856201'}
2025-09-12 20:59:17,633 - DEBUG - Route Targets: ['target:64512:8000004']
2025-09-12 20:59:17,633 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-17204679 passed
2025-09-12 20:59:17,633 - DEBUG - ====Verifying policy data for ctest-vn-17204679 in API_Server ======
2025-09-12 20:59:17,634 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-09-12 20:59:17,638 - DEBUG - Requesting: http://10.0.0.254:8082/domain/cb1b8ab4-19ec-4ab6-8ad7-acde986b1a60
2025-09-12 20:59:17,648 - DEBUG - Requesting: http://10.0.0.254:8082/project/c468c3dd-0e69-4732-b508-4c1c4ce51fd3
2025-09-12 20:59:17,716 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/eb7cd9cd-4de5-4067-8b27-c9fff432c8fa
2025-09-12 20:59:17,723 - DEBUG - ==>Verifying data for policy with id: 7d8ec31f-2e49-438c-8982-2122a2542813, fqn: ['default-domain', 'ctest-TestBasicPolicy-52960260', 'ctest-policy-allow-all-73828303']
2025-09-12 20:59:17,723 - INFO - VN ctest-vn-17204679 Policy verification: verify_vn_policy_in_api_server, status: True
2025-09-12 20:59:17,724 - DEBUG - Verifying the vn in opserver
2025-09-12 20:59:17,724 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-52960260:ctest-vn-17204679 virtual network link through opserver 10.0.0.254
2025-09-12 20:59:17,724 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-09-12 20:59:18,013 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-09-12 20:59:18,064 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-52960260:ctest-vn-17204679', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-52960260:ctest-vn-17204679?flat'}
2025-09-12 20:59:18,064 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-52960260:ctest-vn-17204679 is found in opserver
2025-09-12 20:59:18,074 - DEBUG - Do not have enough data to verify VN in agent
2025-09-12 20:59:18,077 - DEBUG - VRF ids for VN ctest-vn-17204679: {}
2025-09-12 20:59:18,077 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-09-12 20:59:18,082 - DEBUG - Requesting: http://10.0.0.254:8082/domain/cb1b8ab4-19ec-4ab6-8ad7-acde986b1a60
2025-09-12 20:59:18,090 - DEBUG - Requesting: http://10.0.0.254:8082/project/c468c3dd-0e69-4732-b508-4c1c4ce51fd3
2025-09-12 20:59:18,156 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/1e2d4e12-4130-478d-8226-fb05e7fb8f40
2025-09-12 20:59:18,165 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/1e2d4e12-4130-478d-8226-fb05e7fb8f40
2025-09-12 20:59:18,173 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/1cd839a8-972d-414c-8a65-698c09398753
2025-09-12 20:59:18,178 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/1cd839a8-972d-414c-8a65-698c09398753
2025-09-12 20:59:18,183 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/c5fb1c21-26ef-432c-a371-db0cca70e8be
2025-09-12 20:59:18,187 - DEBUG - Route Targets: ['target:64512:8000005']
2025-09-12 20:59:18,187 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/1e2d4e12-4130-478d-8226-fb05e7fb8f40
2025-09-12 20:59:18,193 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/1cd839a8-972d-414c-8a65-698c09398753
2025-09-12 20:59:18,204 - INFO - Verified VN network id 13 for VN 1e2d4e12-4130-478d-8226-fb05e7fb8f40
2025-09-12 20:59:18,204 - INFO - Verifications in API Server for VN ctest-vn-58947708 passed
2025-09-12 20:59:18,204 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/1e2d4e12-4130-478d-8226-fb05e7fb8f40
2025-09-12 20:59:18,211 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/1cd839a8-972d-414c-8a65-698c09398753
2025-09-12 20:59:18,216 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/1cd839a8-972d-414c-8a65-698c09398753
2025-09-12 20:59:18,221 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/c5fb1c21-26ef-432c-a371-db0cca70e8be
2025-09-12 20:59:18,230 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-52960260:ctest-vn-58947708', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-52960260', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '2174480035399878541', 'uuid-lslong': '9378459276831067968'}, 'enable': 'true', 'created': '2025-09-12T20:59:16', 'last-modified': '2025-09-12T20:59:16', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.235040'}
2025-09-12 20:59:18,235 - DEBUG - Route Targets: ['target:64512:8000005']
2025-09-12 20:59:18,235 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-58947708 passed
2025-09-12 20:59:18,235 - DEBUG - ====Verifying policy data for ctest-vn-58947708 in API_Server ======
2025-09-12 20:59:18,235 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-09-12 20:59:18,240 - DEBUG - Requesting: http://10.0.0.254:8082/domain/cb1b8ab4-19ec-4ab6-8ad7-acde986b1a60
2025-09-12 20:59:18,248 - DEBUG - Requesting: http://10.0.0.254:8082/project/c468c3dd-0e69-4732-b508-4c1c4ce51fd3
2025-09-12 20:59:18,314 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/1e2d4e12-4130-478d-8226-fb05e7fb8f40
2025-09-12 20:59:18,321 - DEBUG - ==>Verifying data for policy with id: 7d8ec31f-2e49-438c-8982-2122a2542813, fqn: ['default-domain', 'ctest-TestBasicPolicy-52960260', 'ctest-policy-allow-all-73828303']
2025-09-12 20:59:18,321 - INFO - VN ctest-vn-58947708 Policy verification: verify_vn_policy_in_api_server, status: True
2025-09-12 20:59:18,321 - DEBUG - Verifying the vn in opserver
2025-09-12 20:59:18,321 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-52960260:ctest-vn-58947708 virtual network link through opserver 10.0.0.254
2025-09-12 20:59:18,321 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-09-12 20:59:18,328 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-52960260:ctest-vn-58947708', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-52960260:ctest-vn-58947708?flat'}
2025-09-12 20:59:18,328 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-52960260:ctest-vn-58947708 is found in opserver
2025-09-12 20:59:18,336 - DEBUG - Do not have enough data to verify VN in agent
2025-09-12 20:59:18,339 - DEBUG - VRF ids for VN ctest-vn-58947708: {}
2025-09-12 20:59:18,397 - DEBUG - Services list from nova: [