2026-04-28 10:13:18,634 - INFO - Domain Default found not creating
2026-04-28 10:13:18,836 - INFO - Project ctest-TestBasicPolicy-53556722 not found, creating it
2026-04-28 10:13:19,283 - INFO - Created Project:ctest-TestBasicPolicy-53556722, ID : 31be6f55-9764-47a1-8c2b-8e2661fb43fb
2026-04-28 10:13:20,796 - INFO - ================================================================================
2026-04-28 10:13:20,796 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-04-28 10:13:20,797 - 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-04-28 10:13:21,052 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.17': '0'}} with
2026-04-28 10:13:21,052 - INFO - Initial checks done. Running the testcase now
2026-04-28 10:13:21,052 - INFO -
2026-04-28 10:13:21,621 - DEBUG - Response for create_network : {'network': {'id': 'ea60bfb6-28e3-4f1e-be63-958e96c19919', 'name': 'ctest-vn-74403813', 'tenant_id': '31be6f55976447a18c2b8e2661fb43fb', 'project_id': '31be6f55976447a18c2b8e2661fb43fb', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-53556722', 'ctest-vn-74403813'], 'port_security_enabled': True, 'description': ''}}
2026-04-28 10:13:21,816 - DEBUG - Response for create_subnet : {'subnet': {'id': '97bef648-e3c2-4e9a-a931-c74f7ea14f09', 'name': '', 'tenant_id': '31be6f55976447a18c2b8e2661fb43fb', 'network_id': 'ea60bfb6-28e3-4f1e-be63-958e96c19919', 'ip_version': 4, 'cidr': '147.178.136.192/26', 'allocation_pools': [{'start': '147.178.136.194', 'end': '147.178.136.254'}], 'gateway_ip': '147.178.136.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '147.178.136.194', 'tags': [], 'project_id': '31be6f55976447a18c2b8e2661fb43fb'}}
2026-04-28 10:13:21,835 - INFO - Created VN ctest-vn-74403813
2026-04-28 10:13:21,887 - DEBUG - VN ctest-vn-74403813 UUID is ea60bfb6-28e3-4f1e-be63-958e96c19919
2026-04-28 10:13:22,203 - DEBUG - Response for create_network : {'network': {'id': '28305b2c-fd92-47cc-9c87-1ec5b07f089d', 'name': 'ctest-vn-83728014', 'tenant_id': '31be6f55976447a18c2b8e2661fb43fb', 'project_id': '31be6f55976447a18c2b8e2661fb43fb', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-53556722', 'ctest-vn-83728014'], 'port_security_enabled': True, 'description': ''}}
2026-04-28 10:13:22,436 - DEBUG - Response for create_subnet : {'subnet': {'id': 'c863c6ed-d5a8-43b7-9a0b-7b3e0688a4d2', 'name': '', 'tenant_id': '31be6f55976447a18c2b8e2661fb43fb', 'network_id': '28305b2c-fd92-47cc-9c87-1ec5b07f089d', 'ip_version': 4, 'cidr': '177.50.130.0/26', 'allocation_pools': [{'start': '177.50.130.2', 'end': '177.50.130.62'}], 'gateway_ip': '177.50.130.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '177.50.130.2', 'tags': [], 'project_id': '31be6f55976447a18c2b8e2661fb43fb'}}
2026-04-28 10:13:22,456 - INFO - Created VN ctest-vn-83728014
2026-04-28 10:13:22,511 - DEBUG - VN ctest-vn-83728014 UUID is 28305b2c-fd92-47cc-9c87-1ec5b07f089d
2026-04-28 10:13:22,628 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-53556722:ctest-vn-74403813, 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-53556722:ctest-vn-83728014, 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-04-28 10:13:22,932 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'ea60bfb6-28e3-4f1e-be63-958e96c19919', 'name': 'ctest-vn-74403813', 'tenant_id': '31be6f55976447a18c2b8e2661fb43fb', 'project_id': '31be6f55976447a18c2b8e2661fb43fb', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['97bef648-e3c2-4e9a-a931-c74f7ea14f09'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-53556722', 'ctest-vn-74403813'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-53556722', 'ctest-policy-allow-all-07745656']], 'subnet_ipam': [{'subnet_cidr': '147.178.136.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-04-28 10:13:23,175 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '28305b2c-fd92-47cc-9c87-1ec5b07f089d', 'name': 'ctest-vn-83728014', 'tenant_id': '31be6f55976447a18c2b8e2661fb43fb', 'project_id': '31be6f55976447a18c2b8e2661fb43fb', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['c863c6ed-d5a8-43b7-9a0b-7b3e0688a4d2'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-53556722', 'ctest-vn-83728014'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-53556722', 'ctest-policy-allow-all-07745656']], 'subnet_ipam': [{'subnet_cidr': '177.50.130.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-04-28 10:13:23,339 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-04-28 10:13:23,655 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-04-28 10:13:23,691 - DEBUG - Requesting: http://10.0.0.50:8082/domain/664169a6-8b72-42f3-a3c6-2aeabed85036
2026-04-28 10:13:23,704 - DEBUG - Requesting: http://10.0.0.50:8082/project/31be6f55-9764-47a1-8c2b-8e2661fb43fb
2026-04-28 10:13:23,788 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/ea60bfb6-28e3-4f1e-be63-958e96c19919
2026-04-28 10:13:23,801 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/ea60bfb6-28e3-4f1e-be63-958e96c19919
2026-04-28 10:13:23,811 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/cca8cc1d-27d9-460f-98e6-230f86e544ff
2026-04-28 10:13:23,818 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/cca8cc1d-27d9-460f-98e6-230f86e544ff
2026-04-28 10:13:23,825 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/a86901e7-a6a2-4d6a-8d20-33608643ed29
2026-04-28 10:13:23,831 - DEBUG - Route Targets: ['target:64512:8000004']
2026-04-28 10:13:23,831 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/ea60bfb6-28e3-4f1e-be63-958e96c19919
2026-04-28 10:13:23,840 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/cca8cc1d-27d9-460f-98e6-230f86e544ff
2026-04-28 10:13:23,857 - INFO - Verified VN network id 11 for VN ea60bfb6-28e3-4f1e-be63-958e96c19919
2026-04-28 10:13:23,857 - INFO - Verifications in API Server for VN ctest-vn-74403813 passed
2026-04-28 10:13:23,857 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/ea60bfb6-28e3-4f1e-be63-958e96c19919
2026-04-28 10:13:23,872 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/cca8cc1d-27d9-460f-98e6-230f86e544ff
2026-04-28 10:13:23,881 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/cca8cc1d-27d9-460f-98e6-230f86e544ff
2026-04-28 10:13:23,890 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/a86901e7-a6a2-4d6a-8d20-33608643ed29
2026-04-28 10:13:23,904 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-53556722:ctest-vn-74403813', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-53556722', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16888709391730298654', 'uuid-lslong': '13718973329547827481'}, 'enable': 'true', 'created': '2026-04-28T10:13:21', 'last-modified': '2026-04-28T10:13:22', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.997922'}
2026-04-28 10:13:23,912 - DEBUG - Route Targets: ['target:64512:8000004']
2026-04-28 10:13:23,913 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-74403813 passed
2026-04-28 10:13:23,913 - DEBUG - ====Verifying policy data for ctest-vn-74403813 in API_Server ======
2026-04-28 10:13:23,913 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-04-28 10:13:23,919 - DEBUG - Requesting: http://10.0.0.50:8082/domain/664169a6-8b72-42f3-a3c6-2aeabed85036
2026-04-28 10:13:23,933 - DEBUG - Requesting: http://10.0.0.50:8082/project/31be6f55-9764-47a1-8c2b-8e2661fb43fb
2026-04-28 10:13:24,014 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/ea60bfb6-28e3-4f1e-be63-958e96c19919
2026-04-28 10:13:24,026 - DEBUG - ==>Verifying data for policy with id: 82e5b0fa-59ee-4296-92ac-8982f6b36235, fqn: ['default-domain', 'ctest-TestBasicPolicy-53556722', 'ctest-policy-allow-all-07745656']
2026-04-28 10:13:24,026 - INFO - VN ctest-vn-74403813 Policy verification: verify_vn_policy_in_api_server, status: True
2026-04-28 10:13:24,026 - DEBUG - Verifying the vn in opserver
2026-04-28 10:13:24,026 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-53556722:ctest-vn-74403813 virtual network link through opserver 10.0.0.50
2026-04-28 10:13:24,026 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2026-04-28 10:13:24,327 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2026-04-28 10:13:24,399 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-53556722:ctest-vn-74403813', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-53556722:ctest-vn-74403813?flat'}
2026-04-28 10:13:24,399 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-53556722:ctest-vn-74403813 is found in opserver
2026-04-28 10:13:24,410 - DEBUG - Do not have enough data to verify VN in agent
2026-04-28 10:13:24,416 - DEBUG - VRF ids for VN ctest-vn-74403813: {}
2026-04-28 10:13:24,416 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-04-28 10:13:24,422 - DEBUG - Requesting: http://10.0.0.50:8082/domain/664169a6-8b72-42f3-a3c6-2aeabed85036
2026-04-28 10:13:24,433 - DEBUG - Requesting: http://10.0.0.50:8082/project/31be6f55-9764-47a1-8c2b-8e2661fb43fb
2026-04-28 10:13:24,505 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/28305b2c-fd92-47cc-9c87-1ec5b07f089d
2026-04-28 10:13:24,518 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/28305b2c-fd92-47cc-9c87-1ec5b07f089d
2026-04-28 10:13:24,527 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/afb554cc-9aaa-428c-9268-261528217c29
2026-04-28 10:13:24,537 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/afb554cc-9aaa-428c-9268-261528217c29
2026-04-28 10:13:24,546 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/583ace18-1667-44f2-b86d-2c58e98300a0
2026-04-28 10:13:24,554 - DEBUG - Route Targets: ['target:64512:8000005']
2026-04-28 10:13:24,554 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/28305b2c-fd92-47cc-9c87-1ec5b07f089d
2026-04-28 10:13:24,564 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/afb554cc-9aaa-428c-9268-261528217c29
2026-04-28 10:13:24,580 - INFO - Verified VN network id 12 for VN 28305b2c-fd92-47cc-9c87-1ec5b07f089d
2026-04-28 10:13:24,580 - INFO - Verifications in API Server for VN ctest-vn-83728014 passed
2026-04-28 10:13:24,581 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/28305b2c-fd92-47cc-9c87-1ec5b07f089d
2026-04-28 10:13:24,590 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/afb554cc-9aaa-428c-9268-261528217c29
2026-04-28 10:13:24,599 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/afb554cc-9aaa-428c-9268-261528217c29
2026-04-28 10:13:24,608 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/583ace18-1667-44f2-b86d-2c58e98300a0
2026-04-28 10:13:24,621 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-53556722:ctest-vn-83728014', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-53556722', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '2895914809190139852', 'uuid-lslong': '11279017626191202461'}, 'enable': 'true', 'created': '2026-04-28T10:13:22', 'last-modified': '2026-04-28T10:13:23', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.474044'}
2026-04-28 10:13:24,628 - DEBUG - Route Targets: ['target:64512:8000005']
2026-04-28 10:13:24,628 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-83728014 passed
2026-04-28 10:13:24,628 - DEBUG - ====Verifying policy data for ctest-vn-83728014 in API_Server ======
2026-04-28 10:13:24,628 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-04-28 10:13:24,634 - DEBUG - Requesting: http://10.0.0.50:8082/domain/664169a6-8b72-42f3-a3c6-2aeabed85036
2026-04-28 10:13:24,646 - DEBUG - Requesting: http://10.0.0.50:8082/project/31be6f55-9764-47a1-8c2b-8e2661fb43fb
2026-04-28 10:13:24,734 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/28305b2c-fd92-47cc-9c87-1ec5b07f089d
2026-04-28 10:13:24,743 - DEBUG - ==>Verifying data for policy with id: 82e5b0fa-59ee-4296-92ac-8982f6b36235, fqn: ['default-domain', 'ctest-TestBasicPolicy-53556722', 'ctest-policy-allow-all-07745656']
2026-04-28 10:13:24,743 - INFO - VN ctest-vn-83728014 Policy verification: verify_vn_policy_in_api_server, status: True
2026-04-28 10:13:24,743 - DEBUG - Verifying the vn in opserver
2026-04-28 10:13:24,743 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-53556722:ctest-vn-83728014 virtual network link through opserver 10.0.0.50
2026-04-28 10:13:24,743 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2026-04-28 10:13:24,753 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-53556722:ctest-vn-83728014', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-53556722:ctest-vn-83728014?flat'}
2026-04-28 10:13:24,753 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-53556722:ctest-vn-83728014 is found in opserver
2026-04-28 10:13:24,765 - DEBUG - Do not have enough data to verify VN in agent
2026-04-28 10:13:24,771 - DEBUG - VRF ids for VN ctest-vn-83728014: {}
2026-04-28 10:13:24,837 - DEBUG - Services list from nova: [