2025-08-20 15:57:00,457 - INFO - Domain Default found not creating
2025-08-20 15:57:00,581 - INFO - Project ctest-TestBasicPolicy-47792262 not found, creating it
2025-08-20 15:57:01,011 - INFO - Created Project:ctest-TestBasicPolicy-47792262, ID : 7dd8d48a-8004-4b4f-a14f-8e282bf80c63
2025-08-20 15:57:02,435 - INFO - ================================================================================
2025-08-20 15:57:02,435 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-08-20 15:57:02,435 - 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-08-20 15:57:02,687 - DEBUG - Nothing to compare xmpp stats {'10.0.0.65': {'10.20.0.17': '0'}} with
2025-08-20 15:57:02,688 - INFO - Initial checks done. Running the testcase now
2025-08-20 15:57:02,688 - INFO -
2025-08-20 15:57:03,212 - DEBUG - Response for create_network : {'network': {'id': 'b6f98abd-e4ac-48b9-bbc1-8b478b3c4a15', 'name': 'ctest-vn-76369792', 'tenant_id': '7dd8d48a80044b4fa14f8e282bf80c63', 'project_id': '7dd8d48a80044b4fa14f8e282bf80c63', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-47792262', 'ctest-vn-76369792'], 'port_security_enabled': True, 'description': ''}}
2025-08-20 15:57:03,423 - DEBUG - Response for create_subnet : {'subnet': {'id': '0503a696-7efc-4502-8404-a99d39680d6c', 'name': '', 'tenant_id': '7dd8d48a80044b4fa14f8e282bf80c63', 'network_id': 'b6f98abd-e4ac-48b9-bbc1-8b478b3c4a15', 'ip_version': 4, 'cidr': '3.107.86.0/26', 'allocation_pools': [{'start': '3.107.86.2', 'end': '3.107.86.62'}], 'gateway_ip': '3.107.86.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3.107.86.2', 'tags': [], 'project_id': '7dd8d48a80044b4fa14f8e282bf80c63'}}
2025-08-20 15:57:03,439 - INFO - Created VN ctest-vn-76369792
2025-08-20 15:57:03,494 - DEBUG - VN ctest-vn-76369792 UUID is b6f98abd-e4ac-48b9-bbc1-8b478b3c4a15
2025-08-20 15:57:03,816 - DEBUG - Response for create_network : {'network': {'id': '4021172d-f165-4de6-90fc-610d1c6a654c', 'name': 'ctest-vn-86818177', 'tenant_id': '7dd8d48a80044b4fa14f8e282bf80c63', 'project_id': '7dd8d48a80044b4fa14f8e282bf80c63', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-47792262', 'ctest-vn-86818177'], 'port_security_enabled': True, 'description': ''}}
2025-08-20 15:57:04,003 - DEBUG - Response for create_subnet : {'subnet': {'id': '4e013b3f-08ad-48b9-99a3-f7f31b609bef', 'name': '', 'tenant_id': '7dd8d48a80044b4fa14f8e282bf80c63', 'network_id': '4021172d-f165-4de6-90fc-610d1c6a654c', 'ip_version': 4, 'cidr': '14.37.181.64/26', 'allocation_pools': [{'start': '14.37.181.66', 'end': '14.37.181.126'}], 'gateway_ip': '14.37.181.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '14.37.181.66', 'tags': [], 'project_id': '7dd8d48a80044b4fa14f8e282bf80c63'}}
2025-08-20 15:57:04,023 - INFO - Created VN ctest-vn-86818177
2025-08-20 15:57:04,074 - DEBUG - VN ctest-vn-86818177 UUID is 4021172d-f165-4de6-90fc-610d1c6a654c
2025-08-20 15:57:04,218 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-47792262:ctest-vn-76369792, 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-47792262:ctest-vn-86818177, 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-08-20 15:57:04,502 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'b6f98abd-e4ac-48b9-bbc1-8b478b3c4a15', 'name': 'ctest-vn-76369792', 'tenant_id': '7dd8d48a80044b4fa14f8e282bf80c63', 'project_id': '7dd8d48a80044b4fa14f8e282bf80c63', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['0503a696-7efc-4502-8404-a99d39680d6c'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-47792262', 'ctest-vn-76369792'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-47792262', 'ctest-policy-allow-all-20414361']], 'subnet_ipam': [{'subnet_cidr': '3.107.86.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-08-20 15:57:04,728 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '4021172d-f165-4de6-90fc-610d1c6a654c', 'name': 'ctest-vn-86818177', 'tenant_id': '7dd8d48a80044b4fa14f8e282bf80c63', 'project_id': '7dd8d48a80044b4fa14f8e282bf80c63', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['4e013b3f-08ad-48b9-99a3-f7f31b609bef'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-47792262', 'ctest-vn-86818177'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-47792262', 'ctest-policy-allow-all-20414361']], 'subnet_ipam': [{'subnet_cidr': '14.37.181.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-08-20 15:57:04,890 - DEBUG - Requesting: http://10.0.0.65:8082/domains
2025-08-20 15:57:05,178 - DEBUG - Requesting: http://10.0.0.65:8082/domains
2025-08-20 15:57:05,204 - DEBUG - Requesting: http://10.0.0.65:8082/domain/40704709-79c1-40e2-9b62-9eb8ae53f251
2025-08-20 15:57:05,216 - DEBUG - Requesting: http://10.0.0.65:8082/project/7dd8d48a-8004-4b4f-a14f-8e282bf80c63
2025-08-20 15:57:05,294 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/b6f98abd-e4ac-48b9-bbc1-8b478b3c4a15
2025-08-20 15:57:05,304 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/b6f98abd-e4ac-48b9-bbc1-8b478b3c4a15
2025-08-20 15:57:05,314 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/b5b2993d-39e0-4a93-9a99-d692bb7ef739
2025-08-20 15:57:05,320 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/b5b2993d-39e0-4a93-9a99-d692bb7ef739
2025-08-20 15:57:05,327 - DEBUG - Requesting: http://10.0.0.65:8082/route-target/d72115a8-90b7-4e5d-81a7-18f23fe651c2
2025-08-20 15:57:05,332 - DEBUG - Route Targets: ['target:64512:8000005']
2025-08-20 15:57:05,332 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/b6f98abd-e4ac-48b9-bbc1-8b478b3c4a15
2025-08-20 15:57:05,341 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/b5b2993d-39e0-4a93-9a99-d692bb7ef739
2025-08-20 15:57:05,354 - INFO - Verified VN network id 12 for VN b6f98abd-e4ac-48b9-bbc1-8b478b3c4a15
2025-08-20 15:57:05,354 - INFO - Verifications in API Server for VN ctest-vn-76369792 passed
2025-08-20 15:57:05,354 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/b6f98abd-e4ac-48b9-bbc1-8b478b3c4a15
2025-08-20 15:57:05,363 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/b5b2993d-39e0-4a93-9a99-d692bb7ef739
2025-08-20 15:57:05,369 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/b5b2993d-39e0-4a93-9a99-d692bb7ef739
2025-08-20 15:57:05,375 - DEBUG - Requesting: http://10.0.0.65:8082/route-target/d72115a8-90b7-4e5d-81a7-18f23fe651c2
2025-08-20 15:57:05,386 - DEBUG - Control-node 10.0.0.65 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-47792262:ctest-vn-76369792', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-47792262', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13184721932293785785', 'uuid-lslong': '13529247894992603669'}, 'enable': 'true', 'created': '2025-08-20T15:57:03', 'last-modified': '2025-08-20T15:57:04', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.904964'}
2025-08-20 15:57:05,393 - DEBUG - Route Targets: ['target:64512:8000005']
2025-08-20 15:57:05,393 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-76369792 passed
2025-08-20 15:57:05,393 - DEBUG - ====Verifying policy data for ctest-vn-76369792 in API_Server ======
2025-08-20 15:57:05,393 - DEBUG - Requesting: http://10.0.0.65:8082/domains
2025-08-20 15:57:05,398 - DEBUG - Requesting: http://10.0.0.65:8082/domain/40704709-79c1-40e2-9b62-9eb8ae53f251
2025-08-20 15:57:05,409 - DEBUG - Requesting: http://10.0.0.65:8082/project/7dd8d48a-8004-4b4f-a14f-8e282bf80c63
2025-08-20 15:57:05,479 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/b6f98abd-e4ac-48b9-bbc1-8b478b3c4a15
2025-08-20 15:57:05,488 - DEBUG - ==>Verifying data for policy with id: 121d0656-c59a-4207-a9a6-fb8cd062fd7b, fqn: ['default-domain', 'ctest-TestBasicPolicy-47792262', 'ctest-policy-allow-all-20414361']
2025-08-20 15:57:05,488 - INFO - VN ctest-vn-76369792 Policy verification: verify_vn_policy_in_api_server, status: True
2025-08-20 15:57:05,488 - DEBUG - Verifying the vn in opserver
2025-08-20 15:57:05,488 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-47792262:ctest-vn-76369792 virtual network link through opserver 10.0.0.65
2025-08-20 15:57:05,489 - DEBUG - Requesting: http://10.0.0.65:8081/analytics/uves/virtual-networks
2025-08-20 15:57:05,777 - DEBUG - Requesting: http://10.0.0.65:8081/analytics/uves/virtual-networks
2025-08-20 15:57:05,830 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-47792262:ctest-vn-76369792', 'href': 'http://10.0.0.65:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-47792262:ctest-vn-76369792?flat'}
2025-08-20 15:57:05,830 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-47792262:ctest-vn-76369792 is found in opserver
2025-08-20 15:57:05,840 - DEBUG - Do not have enough data to verify VN in agent
2025-08-20 15:57:05,845 - DEBUG - VRF ids for VN ctest-vn-76369792: {}
2025-08-20 15:57:05,845 - DEBUG - Requesting: http://10.0.0.65:8082/domains
2025-08-20 15:57:05,850 - DEBUG - Requesting: http://10.0.0.65:8082/domain/40704709-79c1-40e2-9b62-9eb8ae53f251
2025-08-20 15:57:05,862 - DEBUG - Requesting: http://10.0.0.65:8082/project/7dd8d48a-8004-4b4f-a14f-8e282bf80c63
2025-08-20 15:57:05,933 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/4021172d-f165-4de6-90fc-610d1c6a654c
2025-08-20 15:57:05,947 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/4021172d-f165-4de6-90fc-610d1c6a654c
2025-08-20 15:57:05,957 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/389d72e3-7f69-4036-83b2-ee30b8c9b936
2025-08-20 15:57:05,964 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/389d72e3-7f69-4036-83b2-ee30b8c9b936
2025-08-20 15:57:05,970 - DEBUG - Requesting: http://10.0.0.65:8082/route-target/8b7fdbd2-d01a-4dcc-836d-f33afc959075
2025-08-20 15:57:05,976 - DEBUG - Route Targets: ['target:64512:8000006']
2025-08-20 15:57:05,976 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/4021172d-f165-4de6-90fc-610d1c6a654c
2025-08-20 15:57:05,985 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/389d72e3-7f69-4036-83b2-ee30b8c9b936
2025-08-20 15:57:05,998 - INFO - Verified VN network id 13 for VN 4021172d-f165-4de6-90fc-610d1c6a654c
2025-08-20 15:57:05,998 - INFO - Verifications in API Server for VN ctest-vn-86818177 passed
2025-08-20 15:57:05,998 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/4021172d-f165-4de6-90fc-610d1c6a654c
2025-08-20 15:57:06,010 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/389d72e3-7f69-4036-83b2-ee30b8c9b936
2025-08-20 15:57:06,017 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/389d72e3-7f69-4036-83b2-ee30b8c9b936
2025-08-20 15:57:06,024 - DEBUG - Requesting: http://10.0.0.65:8082/route-target/8b7fdbd2-d01a-4dcc-836d-f33afc959075
2025-08-20 15:57:06,036 - DEBUG - Control-node 10.0.0.65 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-47792262:ctest-vn-86818177', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-47792262', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '4621000178749754854', 'uuid-lslong': '10447331944531912012'}, 'enable': 'true', 'created': '2025-08-20T15:57:03', 'last-modified': '2025-08-20T15:57:04', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.332753'}
2025-08-20 15:57:06,042 - DEBUG - Route Targets: ['target:64512:8000006']
2025-08-20 15:57:06,042 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-86818177 passed
2025-08-20 15:57:06,042 - DEBUG - ====Verifying policy data for ctest-vn-86818177 in API_Server ======
2025-08-20 15:57:06,043 - DEBUG - Requesting: http://10.0.0.65:8082/domains
2025-08-20 15:57:06,048 - DEBUG - Requesting: http://10.0.0.65:8082/domain/40704709-79c1-40e2-9b62-9eb8ae53f251
2025-08-20 15:57:06,059 - DEBUG - Requesting: http://10.0.0.65:8082/project/7dd8d48a-8004-4b4f-a14f-8e282bf80c63
2025-08-20 15:57:06,134 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/4021172d-f165-4de6-90fc-610d1c6a654c
2025-08-20 15:57:06,143 - DEBUG - ==>Verifying data for policy with id: 121d0656-c59a-4207-a9a6-fb8cd062fd7b, fqn: ['default-domain', 'ctest-TestBasicPolicy-47792262', 'ctest-policy-allow-all-20414361']
2025-08-20 15:57:06,143 - INFO - VN ctest-vn-86818177 Policy verification: verify_vn_policy_in_api_server, status: True
2025-08-20 15:57:06,143 - DEBUG - Verifying the vn in opserver
2025-08-20 15:57:06,143 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-47792262:ctest-vn-86818177 virtual network link through opserver 10.0.0.65
2025-08-20 15:57:06,143 - DEBUG - Requesting: http://10.0.0.65:8081/analytics/uves/virtual-networks
2025-08-20 15:57:06,153 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-47792262:ctest-vn-86818177', 'href': 'http://10.0.0.65:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-47792262:ctest-vn-86818177?flat'}
2025-08-20 15:57:06,153 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-47792262:ctest-vn-86818177 is found in opserver
2025-08-20 15:57:06,163 - DEBUG - Do not have enough data to verify VN in agent
2025-08-20 15:57:06,168 - DEBUG - VRF ids for VN ctest-vn-86818177: {}
2025-08-20 15:57:06,219 - DEBUG - Services list from nova: [