2025-10-20 14:53:33,952 - INFO - Domain Default found not creating
2025-10-20 14:53:34,094 - INFO - Project ctest-TestBasicPolicy-74284114 not found, creating it
2025-10-20 14:53:34,521 - INFO - Created Project:ctest-TestBasicPolicy-74284114, ID : be964b2b-6c96-40ef-90d3-9c64be2c8954
2025-10-20 14:53:35,894 - INFO - ================================================================================
2025-10-20 14:53:35,894 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-10-20 14:53:35,894 - 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-10-20 14:53:36,148 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.17': '0'}} with
2025-10-20 14:53:36,148 - INFO - Initial checks done. Running the testcase now
2025-10-20 14:53:36,148 - INFO -
2025-10-20 14:53:36,683 - DEBUG - Response for create_network : {'network': {'id': 'a1a9b39a-c4c2-4f4c-8b62-26838863a9ba', 'name': 'ctest-vn-06036624', 'tenant_id': 'be964b2b6c9640ef90d39c64be2c8954', 'project_id': 'be964b2b6c9640ef90d39c64be2c8954', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-74284114', 'ctest-vn-06036624'], 'port_security_enabled': True, 'description': ''}}
2025-10-20 14:53:36,895 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b533e9c3-8fe2-4249-a9dc-6172e6581a39', 'name': '', 'tenant_id': 'be964b2b6c9640ef90d39c64be2c8954', 'network_id': 'a1a9b39a-c4c2-4f4c-8b62-26838863a9ba', 'ip_version': 4, 'cidr': '177.235.42.64/26', 'allocation_pools': [{'start': '177.235.42.66', 'end': '177.235.42.126'}], 'gateway_ip': '177.235.42.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '177.235.42.66', 'tags': [], 'project_id': 'be964b2b6c9640ef90d39c64be2c8954'}}
2025-10-20 14:53:36,915 - INFO - Created VN ctest-vn-06036624
2025-10-20 14:53:36,966 - DEBUG - VN ctest-vn-06036624 UUID is a1a9b39a-c4c2-4f4c-8b62-26838863a9ba
2025-10-20 14:53:37,511 - DEBUG - Response for create_network : {'network': {'id': 'd4372a1d-4081-4f74-a0ac-0e75a3186dd0', 'name': 'ctest-vn-11803207', 'tenant_id': 'be964b2b6c9640ef90d39c64be2c8954', 'project_id': 'be964b2b6c9640ef90d39c64be2c8954', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-74284114', 'ctest-vn-11803207'], 'port_security_enabled': True, 'description': ''}}
2025-10-20 14:53:37,685 - DEBUG - Response for create_subnet : {'subnet': {'id': '7621ca96-a71b-4bb5-bd59-246f9526e499', 'name': '', 'tenant_id': 'be964b2b6c9640ef90d39c64be2c8954', 'network_id': 'd4372a1d-4081-4f74-a0ac-0e75a3186dd0', 'ip_version': 4, 'cidr': '102.132.189.128/26', 'allocation_pools': [{'start': '102.132.189.130', 'end': '102.132.189.190'}], 'gateway_ip': '102.132.189.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '102.132.189.130', 'tags': [], 'project_id': 'be964b2b6c9640ef90d39c64be2c8954'}}
2025-10-20 14:53:37,703 - INFO - Created VN ctest-vn-11803207
2025-10-20 14:53:37,754 - DEBUG - VN ctest-vn-11803207 UUID is d4372a1d-4081-4f74-a0ac-0e75a3186dd0
2025-10-20 14:53:37,898 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-74284114:ctest-vn-06036624, 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-74284114:ctest-vn-11803207, 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-10-20 14:53:38,182 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'a1a9b39a-c4c2-4f4c-8b62-26838863a9ba', 'name': 'ctest-vn-06036624', 'tenant_id': 'be964b2b6c9640ef90d39c64be2c8954', 'project_id': 'be964b2b6c9640ef90d39c64be2c8954', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['b533e9c3-8fe2-4249-a9dc-6172e6581a39'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-74284114', 'ctest-vn-06036624'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-74284114', 'ctest-policy-allow-all-36924829']], 'subnet_ipam': [{'subnet_cidr': '177.235.42.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-20 14:53:38,416 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'd4372a1d-4081-4f74-a0ac-0e75a3186dd0', 'name': 'ctest-vn-11803207', 'tenant_id': 'be964b2b6c9640ef90d39c64be2c8954', 'project_id': 'be964b2b6c9640ef90d39c64be2c8954', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['7621ca96-a71b-4bb5-bd59-246f9526e499'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-74284114', 'ctest-vn-11803207'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-74284114', 'ctest-policy-allow-all-36924829']], 'subnet_ipam': [{'subnet_cidr': '102.132.189.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-20 14:53:38,574 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-10-20 14:53:38,868 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-10-20 14:53:38,894 - DEBUG - Requesting: http://10.0.0.254:8082/domain/ed4f1ab5-96a9-47d9-9b07-7780e570206b
2025-10-20 14:53:38,906 - DEBUG - Requesting: http://10.0.0.254:8082/project/be964b2b-6c96-40ef-90d3-9c64be2c8954
2025-10-20 14:53:38,976 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/a1a9b39a-c4c2-4f4c-8b62-26838863a9ba
2025-10-20 14:53:38,986 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/a1a9b39a-c4c2-4f4c-8b62-26838863a9ba
2025-10-20 14:53:38,993 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/559b3169-1d26-4ae1-90bc-79d4753e876c
2025-10-20 14:53:39,001 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/559b3169-1d26-4ae1-90bc-79d4753e876c
2025-10-20 14:53:39,007 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/261cca66-7c90-4776-98c4-406cb1ea87e0
2025-10-20 14:53:39,014 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-20 14:53:39,014 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/a1a9b39a-c4c2-4f4c-8b62-26838863a9ba
2025-10-20 14:53:39,022 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/559b3169-1d26-4ae1-90bc-79d4753e876c
2025-10-20 14:53:39,034 - INFO - Verified VN network id 12 for VN a1a9b39a-c4c2-4f4c-8b62-26838863a9ba
2025-10-20 14:53:39,034 - INFO - Verifications in API Server for VN ctest-vn-06036624 passed
2025-10-20 14:53:39,034 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/a1a9b39a-c4c2-4f4c-8b62-26838863a9ba
2025-10-20 14:53:39,042 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/559b3169-1d26-4ae1-90bc-79d4753e876c
2025-10-20 14:53:39,047 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/559b3169-1d26-4ae1-90bc-79d4753e876c
2025-10-20 14:53:39,053 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/261cca66-7c90-4776-98c4-406cb1ea87e0
2025-10-20 14:53:39,063 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-74284114:ctest-vn-06036624', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-74284114', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11649039388477902668', 'uuid-lslong': '10043632465360431546'}, 'enable': 'true', 'created': '2025-10-20T14:53:36', 'last-modified': '2025-10-20T14:53:38', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.901766'}
2025-10-20 14:53:39,069 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-20 14:53:39,069 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-06036624 passed
2025-10-20 14:53:39,069 - DEBUG - ====Verifying policy data for ctest-vn-06036624 in API_Server ======
2025-10-20 14:53:39,069 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-10-20 14:53:39,074 - DEBUG - Requesting: http://10.0.0.254:8082/domain/ed4f1ab5-96a9-47d9-9b07-7780e570206b
2025-10-20 14:53:39,086 - DEBUG - Requesting: http://10.0.0.254:8082/project/be964b2b-6c96-40ef-90d3-9c64be2c8954
2025-10-20 14:53:39,155 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/a1a9b39a-c4c2-4f4c-8b62-26838863a9ba
2025-10-20 14:53:39,164 - DEBUG - ==>Verifying data for policy with id: 402d2bbf-8e27-49bc-8b2b-745567fea8ae, fqn: ['default-domain', 'ctest-TestBasicPolicy-74284114', 'ctest-policy-allow-all-36924829']
2025-10-20 14:53:39,164 - INFO - VN ctest-vn-06036624 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-20 14:53:39,164 - DEBUG - Verifying the vn in opserver
2025-10-20 14:53:39,164 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-74284114:ctest-vn-06036624 virtual network link through opserver 10.0.0.254
2025-10-20 14:53:39,164 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-10-20 14:53:39,452 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-10-20 14:53:39,503 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-74284114:ctest-vn-06036624', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-74284114:ctest-vn-06036624?flat'}
2025-10-20 14:53:39,503 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-74284114:ctest-vn-06036624 is found in opserver
2025-10-20 14:53:39,511 - DEBUG - Do not have enough data to verify VN in agent
2025-10-20 14:53:39,515 - DEBUG - VRF ids for VN ctest-vn-06036624: {}
2025-10-20 14:53:39,515 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-10-20 14:53:39,520 - DEBUG - Requesting: http://10.0.0.254:8082/domain/ed4f1ab5-96a9-47d9-9b07-7780e570206b
2025-10-20 14:53:39,529 - DEBUG - Requesting: http://10.0.0.254:8082/project/be964b2b-6c96-40ef-90d3-9c64be2c8954
2025-10-20 14:53:39,593 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/d4372a1d-4081-4f74-a0ac-0e75a3186dd0
2025-10-20 14:53:39,604 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/d4372a1d-4081-4f74-a0ac-0e75a3186dd0
2025-10-20 14:53:39,612 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/f28e78ef-0419-4363-915a-fb395c12bf96
2025-10-20 14:53:39,619 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/f28e78ef-0419-4363-915a-fb395c12bf96
2025-10-20 14:53:39,626 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/9d233c87-9e53-4d4b-bcbd-0910812a9dc9
2025-10-20 14:53:39,632 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-20 14:53:39,632 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/d4372a1d-4081-4f74-a0ac-0e75a3186dd0
2025-10-20 14:53:39,640 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/f28e78ef-0419-4363-915a-fb395c12bf96
2025-10-20 14:53:39,652 - INFO - Verified VN network id 13 for VN d4372a1d-4081-4f74-a0ac-0e75a3186dd0
2025-10-20 14:53:39,652 - INFO - Verifications in API Server for VN ctest-vn-11803207 passed
2025-10-20 14:53:39,653 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/d4372a1d-4081-4f74-a0ac-0e75a3186dd0
2025-10-20 14:53:39,660 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/f28e78ef-0419-4363-915a-fb395c12bf96
2025-10-20 14:53:39,666 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/f28e78ef-0419-4363-915a-fb395c12bf96
2025-10-20 14:53:39,672 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/9d233c87-9e53-4d4b-bcbd-0910812a9dc9
2025-10-20 14:53:39,681 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-74284114:ctest-vn-11803207', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-74284114', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15291737364884442996', 'uuid-lslong': '11577644640472952272'}, 'enable': 'true', 'created': '2025-10-20T14:53:37', 'last-modified': '2025-10-20T14:53:38', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.287559'}
2025-10-20 14:53:39,686 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-20 14:53:39,686 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-11803207 passed
2025-10-20 14:53:39,686 - DEBUG - ====Verifying policy data for ctest-vn-11803207 in API_Server ======
2025-10-20 14:53:39,686 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-10-20 14:53:39,691 - DEBUG - Requesting: http://10.0.0.254:8082/domain/ed4f1ab5-96a9-47d9-9b07-7780e570206b
2025-10-20 14:53:39,700 - DEBUG - Requesting: http://10.0.0.254:8082/project/be964b2b-6c96-40ef-90d3-9c64be2c8954
2025-10-20 14:53:39,768 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/d4372a1d-4081-4f74-a0ac-0e75a3186dd0
2025-10-20 14:53:39,777 - DEBUG - ==>Verifying data for policy with id: 402d2bbf-8e27-49bc-8b2b-745567fea8ae, fqn: ['default-domain', 'ctest-TestBasicPolicy-74284114', 'ctest-policy-allow-all-36924829']
2025-10-20 14:53:39,777 - INFO - VN ctest-vn-11803207 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-20 14:53:39,778 - DEBUG - Verifying the vn in opserver
2025-10-20 14:53:39,778 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-74284114:ctest-vn-11803207 virtual network link through opserver 10.0.0.254
2025-10-20 14:53:39,778 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-10-20 14:53:39,786 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-74284114:ctest-vn-11803207', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-74284114:ctest-vn-11803207?flat'}
2025-10-20 14:53:39,786 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-74284114:ctest-vn-11803207 is found in opserver
2025-10-20 14:53:39,795 - DEBUG - Do not have enough data to verify VN in agent
2025-10-20 14:53:39,799 - DEBUG - VRF ids for VN ctest-vn-11803207: {}
2025-10-20 14:53:39,850 - DEBUG - Services list from nova: [