2025-09-12 19:06:16,054 - INFO - Domain Default found not creating
2025-09-12 19:06:16,182 - INFO - Project ctest-TestBasicPolicy-45000956 not found, creating it
2025-09-12 19:06:16,594 - INFO - Created Project:ctest-TestBasicPolicy-45000956, ID : 0b1bf0bf-38a8-4097-8921-4a8836ea0bf5
2025-09-12 19:06:17,981 - INFO - ================================================================================
2025-09-12 19:06:17,981 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-09-12 19:06:17,981 - 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 19:06:18,235 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.17': '0'}} with
2025-09-12 19:06:18,235 - INFO - Initial checks done. Running the testcase now
2025-09-12 19:06:18,235 - INFO -
2025-09-12 19:06:18,744 - DEBUG - Response for create_network : {'network': {'id': '5d5ccf2b-fe66-488c-9796-1d83fe1f9667', 'name': 'ctest-vn-19198012', 'tenant_id': '0b1bf0bf38a8409789214a8836ea0bf5', 'project_id': '0b1bf0bf38a8409789214a8836ea0bf5', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-45000956', 'ctest-vn-19198012'], 'port_security_enabled': True, 'description': ''}}
2025-09-12 19:06:18,963 - DEBUG - Response for create_subnet : {'subnet': {'id': '927704ff-72a2-4dcf-8eb6-ab0bb52527a0', 'name': '', 'tenant_id': '0b1bf0bf38a8409789214a8836ea0bf5', 'network_id': '5d5ccf2b-fe66-488c-9796-1d83fe1f9667', 'ip_version': 4, 'cidr': '145.103.142.64/26', 'allocation_pools': [{'start': '145.103.142.66', 'end': '145.103.142.126'}], 'gateway_ip': '145.103.142.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '145.103.142.66', 'tags': [], 'project_id': '0b1bf0bf38a8409789214a8836ea0bf5'}}
2025-09-12 19:06:18,979 - INFO - Created VN ctest-vn-19198012
2025-09-12 19:06:19,030 - DEBUG - VN ctest-vn-19198012 UUID is 5d5ccf2b-fe66-488c-9796-1d83fe1f9667
2025-09-12 19:06:19,332 - DEBUG - Response for create_network : {'network': {'id': 'd9f9c83a-eaf5-496d-9329-fa28a7304447', 'name': 'ctest-vn-12685154', 'tenant_id': '0b1bf0bf38a8409789214a8836ea0bf5', 'project_id': '0b1bf0bf38a8409789214a8836ea0bf5', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-45000956', 'ctest-vn-12685154'], 'port_security_enabled': True, 'description': ''}}
2025-09-12 19:06:19,516 - DEBUG - Response for create_subnet : {'subnet': {'id': '0692767f-2c20-4d5f-a2ce-ed624c68b6fb', 'name': '', 'tenant_id': '0b1bf0bf38a8409789214a8836ea0bf5', 'network_id': 'd9f9c83a-eaf5-496d-9329-fa28a7304447', 'ip_version': 4, 'cidr': '143.181.130.128/26', 'allocation_pools': [{'start': '143.181.130.130', 'end': '143.181.130.190'}], 'gateway_ip': '143.181.130.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '143.181.130.130', 'tags': [], 'project_id': '0b1bf0bf38a8409789214a8836ea0bf5'}}
2025-09-12 19:06:19,531 - INFO - Created VN ctest-vn-12685154
2025-09-12 19:06:19,582 - DEBUG - VN ctest-vn-12685154 UUID is d9f9c83a-eaf5-496d-9329-fa28a7304447
2025-09-12 19:06:19,726 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-45000956:ctest-vn-19198012, 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-45000956:ctest-vn-12685154, 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 19:06:20,005 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '5d5ccf2b-fe66-488c-9796-1d83fe1f9667', 'name': 'ctest-vn-19198012', 'tenant_id': '0b1bf0bf38a8409789214a8836ea0bf5', 'project_id': '0b1bf0bf38a8409789214a8836ea0bf5', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['927704ff-72a2-4dcf-8eb6-ab0bb52527a0'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-45000956', 'ctest-vn-19198012'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-45000956', 'ctest-policy-allow-all-83313941']], 'subnet_ipam': [{'subnet_cidr': '145.103.142.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-09-12 19:06:20,220 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'd9f9c83a-eaf5-496d-9329-fa28a7304447', 'name': 'ctest-vn-12685154', 'tenant_id': '0b1bf0bf38a8409789214a8836ea0bf5', 'project_id': '0b1bf0bf38a8409789214a8836ea0bf5', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['0692767f-2c20-4d5f-a2ce-ed624c68b6fb'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-45000956', 'ctest-vn-12685154'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-45000956', 'ctest-policy-allow-all-83313941']], 'subnet_ipam': [{'subnet_cidr': '143.181.130.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-09-12 19:06:20,382 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-09-12 19:06:20,672 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-09-12 19:06:20,697 - DEBUG - Requesting: http://10.0.0.254:8082/domain/8b549fbf-6c4f-45d2-bc08-d95538bf0472
2025-09-12 19:06:20,707 - DEBUG - Requesting: http://10.0.0.254:8082/project/0b1bf0bf-38a8-4097-8921-4a8836ea0bf5
2025-09-12 19:06:20,774 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/5d5ccf2b-fe66-488c-9796-1d83fe1f9667
2025-09-12 19:06:20,782 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/5d5ccf2b-fe66-488c-9796-1d83fe1f9667
2025-09-12 19:06:20,790 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/0b3f8521-aa15-4063-b89c-4cb397404252
2025-09-12 19:06:20,795 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/0b3f8521-aa15-4063-b89c-4cb397404252
2025-09-12 19:06:20,800 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/6a4fa246-1a53-4cd6-a10a-1c59f7b219ce
2025-09-12 19:06:20,804 - DEBUG - Route Targets: ['target:64512:8000004']
2025-09-12 19:06:20,804 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/5d5ccf2b-fe66-488c-9796-1d83fe1f9667
2025-09-12 19:06:20,813 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/0b3f8521-aa15-4063-b89c-4cb397404252
2025-09-12 19:06:20,823 - INFO - Verified VN network id 11 for VN 5d5ccf2b-fe66-488c-9796-1d83fe1f9667
2025-09-12 19:06:20,824 - INFO - Verifications in API Server for VN ctest-vn-19198012 passed
2025-09-12 19:06:20,824 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/5d5ccf2b-fe66-488c-9796-1d83fe1f9667
2025-09-12 19:06:20,830 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/0b3f8521-aa15-4063-b89c-4cb397404252
2025-09-12 19:06:20,835 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/0b3f8521-aa15-4063-b89c-4cb397404252
2025-09-12 19:06:20,840 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/6a4fa246-1a53-4cd6-a10a-1c59f7b219ce
2025-09-12 19:06:20,849 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-45000956:ctest-vn-19198012', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-45000956', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6727479731243337868', 'uuid-lslong': '10922950398975120999'}, 'enable': 'true', 'created': '2025-09-12T19:06:18', 'last-modified': '2025-09-12T19:06:19', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.860088'}
2025-09-12 19:06:20,854 - DEBUG - Route Targets: ['target:64512:8000004']
2025-09-12 19:06:20,854 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-19198012 passed
2025-09-12 19:06:20,854 - DEBUG - ====Verifying policy data for ctest-vn-19198012 in API_Server ======
2025-09-12 19:06:20,854 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-09-12 19:06:20,860 - DEBUG - Requesting: http://10.0.0.254:8082/domain/8b549fbf-6c4f-45d2-bc08-d95538bf0472
2025-09-12 19:06:20,869 - DEBUG - Requesting: http://10.0.0.254:8082/project/0b1bf0bf-38a8-4097-8921-4a8836ea0bf5
2025-09-12 19:06:20,935 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/5d5ccf2b-fe66-488c-9796-1d83fe1f9667
2025-09-12 19:06:20,943 - DEBUG - ==>Verifying data for policy with id: 7aca7719-2156-4548-b7bc-e38affbc62bf, fqn: ['default-domain', 'ctest-TestBasicPolicy-45000956', 'ctest-policy-allow-all-83313941']
2025-09-12 19:06:20,943 - INFO - VN ctest-vn-19198012 Policy verification: verify_vn_policy_in_api_server, status: True
2025-09-12 19:06:20,943 - DEBUG - Verifying the vn in opserver
2025-09-12 19:06:20,943 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-45000956:ctest-vn-19198012 virtual network link through opserver 10.0.0.254
2025-09-12 19:06:20,943 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-09-12 19:06:21,232 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-09-12 19:06:21,280 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-45000956:ctest-vn-19198012', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-45000956:ctest-vn-19198012?flat'}
2025-09-12 19:06:21,280 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-45000956:ctest-vn-19198012 is found in opserver
2025-09-12 19:06:21,288 - DEBUG - Do not have enough data to verify VN in agent
2025-09-12 19:06:21,292 - DEBUG - VRF ids for VN ctest-vn-19198012: {}
2025-09-12 19:06:21,292 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-09-12 19:06:21,296 - DEBUG - Requesting: http://10.0.0.254:8082/domain/8b549fbf-6c4f-45d2-bc08-d95538bf0472
2025-09-12 19:06:21,306 - DEBUG - Requesting: http://10.0.0.254:8082/project/0b1bf0bf-38a8-4097-8921-4a8836ea0bf5
2025-09-12 19:06:21,371 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/d9f9c83a-eaf5-496d-9329-fa28a7304447
2025-09-12 19:06:21,382 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/d9f9c83a-eaf5-496d-9329-fa28a7304447
2025-09-12 19:06:21,390 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/653c5d78-2ac2-4dbc-bfdd-6615f7fb65ca
2025-09-12 19:06:21,396 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/653c5d78-2ac2-4dbc-bfdd-6615f7fb65ca
2025-09-12 19:06:21,401 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/5ee23b89-d4c9-482f-a6bd-86e919f15f4b
2025-09-12 19:06:21,410 - DEBUG - Route Targets: ['target:64512:8000005']
2025-09-12 19:06:21,410 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/d9f9c83a-eaf5-496d-9329-fa28a7304447
2025-09-12 19:06:21,418 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/653c5d78-2ac2-4dbc-bfdd-6615f7fb65ca
2025-09-12 19:06:21,431 - INFO - Verified VN network id 12 for VN d9f9c83a-eaf5-496d-9329-fa28a7304447
2025-09-12 19:06:21,431 - INFO - Verifications in API Server for VN ctest-vn-12685154 passed
2025-09-12 19:06:21,431 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/d9f9c83a-eaf5-496d-9329-fa28a7304447
2025-09-12 19:06:21,438 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/653c5d78-2ac2-4dbc-bfdd-6615f7fb65ca
2025-09-12 19:06:21,444 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/653c5d78-2ac2-4dbc-bfdd-6615f7fb65ca
2025-09-12 19:06:21,450 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/5ee23b89-d4c9-482f-a6bd-86e919f15f4b
2025-09-12 19:06:21,460 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-45000956:ctest-vn-12685154', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-45000956', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15706805330806917485', 'uuid-lslong': '10604281850131137607'}, 'enable': 'true', 'created': '2025-09-12T19:06:19', 'last-modified': '2025-09-12T19:06:20', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.256676'}
2025-09-12 19:06:21,464 - DEBUG - Route Targets: ['target:64512:8000005']
2025-09-12 19:06:21,465 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-12685154 passed
2025-09-12 19:06:21,465 - DEBUG - ====Verifying policy data for ctest-vn-12685154 in API_Server ======
2025-09-12 19:06:21,465 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-09-12 19:06:21,469 - DEBUG - Requesting: http://10.0.0.254:8082/domain/8b549fbf-6c4f-45d2-bc08-d95538bf0472
2025-09-12 19:06:21,479 - DEBUG - Requesting: http://10.0.0.254:8082/project/0b1bf0bf-38a8-4097-8921-4a8836ea0bf5
2025-09-12 19:06:21,543 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/d9f9c83a-eaf5-496d-9329-fa28a7304447
2025-09-12 19:06:21,551 - DEBUG - ==>Verifying data for policy with id: 7aca7719-2156-4548-b7bc-e38affbc62bf, fqn: ['default-domain', 'ctest-TestBasicPolicy-45000956', 'ctest-policy-allow-all-83313941']
2025-09-12 19:06:21,551 - INFO - VN ctest-vn-12685154 Policy verification: verify_vn_policy_in_api_server, status: True
2025-09-12 19:06:21,551 - DEBUG - Verifying the vn in opserver
2025-09-12 19:06:21,551 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-45000956:ctest-vn-12685154 virtual network link through opserver 10.0.0.254
2025-09-12 19:06:21,551 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-09-12 19:06:21,559 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-45000956:ctest-vn-12685154', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-45000956:ctest-vn-12685154?flat'}
2025-09-12 19:06:21,559 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-45000956:ctest-vn-12685154 is found in opserver
2025-09-12 19:06:21,567 - DEBUG - Do not have enough data to verify VN in agent
2025-09-12 19:06:21,571 - DEBUG - VRF ids for VN ctest-vn-12685154: {}
2025-09-12 19:06:21,619 - DEBUG - Services list from nova: [