2025-10-23 11:34:34,112 - INFO - Domain Default found not creating
2025-10-23 11:34:34,289 - INFO - Project ctest-TestBasicPolicy-68956542 not found, creating it
2025-10-23 11:34:34,776 - INFO - Created Project:ctest-TestBasicPolicy-68956542, ID : 8e57957b-d3e6-4c11-8345-b8852e13fee5
2025-10-23 11:34:36,292 - INFO - ================================================================================
2025-10-23 11:34:36,292 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-10-23 11:34:36,292 - 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-23 11:34:36,556 - DEBUG - Nothing to compare xmpp stats {'10.0.0.249': {'10.20.0.17': '0'}} with
2025-10-23 11:34:36,556 - INFO - Initial checks done. Running the testcase now
2025-10-23 11:34:36,557 - INFO -
2025-10-23 11:34:37,149 - DEBUG - Response for create_network : {'network': {'id': '6650c68c-3f55-4ce6-955f-7870098e13bc', 'name': 'ctest-vn-09436940', 'tenant_id': '8e57957bd3e64c118345b8852e13fee5', 'project_id': '8e57957bd3e64c118345b8852e13fee5', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-68956542', 'ctest-vn-09436940'], 'port_security_enabled': True, 'description': ''}}
2025-10-23 11:34:37,333 - DEBUG - Response for create_subnet : {'subnet': {'id': '0b5858b1-4947-4904-80b4-023c92e8fdd5', 'name': '', 'tenant_id': '8e57957bd3e64c118345b8852e13fee5', 'network_id': '6650c68c-3f55-4ce6-955f-7870098e13bc', 'ip_version': 4, 'cidr': '145.153.155.192/26', 'allocation_pools': [{'start': '145.153.155.194', 'end': '145.153.155.254'}], 'gateway_ip': '145.153.155.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '145.153.155.194', 'tags': [], 'project_id': '8e57957bd3e64c118345b8852e13fee5'}}
2025-10-23 11:34:37,352 - INFO - Created VN ctest-vn-09436940
2025-10-23 11:34:37,409 - DEBUG - VN ctest-vn-09436940 UUID is 6650c68c-3f55-4ce6-955f-7870098e13bc
2025-10-23 11:34:37,709 - DEBUG - Response for create_network : {'network': {'id': 'bb32cf4a-a9e8-4284-a3e1-883d37b155a3', 'name': 'ctest-vn-87801970', 'tenant_id': '8e57957bd3e64c118345b8852e13fee5', 'project_id': '8e57957bd3e64c118345b8852e13fee5', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-68956542', 'ctest-vn-87801970'], 'port_security_enabled': True, 'description': ''}}
2025-10-23 11:34:37,915 - DEBUG - Response for create_subnet : {'subnet': {'id': 'c81c455c-fd0d-4066-bb7c-7b6111a5e420', 'name': '', 'tenant_id': '8e57957bd3e64c118345b8852e13fee5', 'network_id': 'bb32cf4a-a9e8-4284-a3e1-883d37b155a3', 'ip_version': 4, 'cidr': '44.131.97.64/26', 'allocation_pools': [{'start': '44.131.97.66', 'end': '44.131.97.126'}], 'gateway_ip': '44.131.97.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '44.131.97.66', 'tags': [], 'project_id': '8e57957bd3e64c118345b8852e13fee5'}}
2025-10-23 11:34:37,937 - INFO - Created VN ctest-vn-87801970
2025-10-23 11:34:37,990 - DEBUG - VN ctest-vn-87801970 UUID is bb32cf4a-a9e8-4284-a3e1-883d37b155a3
2025-10-23 11:34:38,117 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-68956542:ctest-vn-09436940, 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-68956542:ctest-vn-87801970, 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-23 11:34:38,416 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '6650c68c-3f55-4ce6-955f-7870098e13bc', 'name': 'ctest-vn-09436940', 'tenant_id': '8e57957bd3e64c118345b8852e13fee5', 'project_id': '8e57957bd3e64c118345b8852e13fee5', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['0b5858b1-4947-4904-80b4-023c92e8fdd5'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-68956542', 'ctest-vn-09436940'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-68956542', 'ctest-policy-allow-all-28785498']], 'subnet_ipam': [{'subnet_cidr': '145.153.155.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-23 11:34:38,648 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'bb32cf4a-a9e8-4284-a3e1-883d37b155a3', 'name': 'ctest-vn-87801970', 'tenant_id': '8e57957bd3e64c118345b8852e13fee5', 'project_id': '8e57957bd3e64c118345b8852e13fee5', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['c81c455c-fd0d-4066-bb7c-7b6111a5e420'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-68956542', 'ctest-vn-87801970'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-68956542', 'ctest-policy-allow-all-28785498']], 'subnet_ipam': [{'subnet_cidr': '44.131.97.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-23 11:34:38,813 - DEBUG - Requesting: http://10.0.0.249:8082/domains
2025-10-23 11:34:39,122 - DEBUG - Requesting: http://10.0.0.249:8082/domains
2025-10-23 11:34:39,156 - DEBUG - Requesting: http://10.0.0.249:8082/domain/09205d1e-3317-411a-9212-6abf5498ff92
2025-10-23 11:34:39,169 - DEBUG - Requesting: http://10.0.0.249:8082/project/8e57957b-d3e6-4c11-8345-b8852e13fee5
2025-10-23 11:34:39,248 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/6650c68c-3f55-4ce6-955f-7870098e13bc
2025-10-23 11:34:39,260 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/6650c68c-3f55-4ce6-955f-7870098e13bc
2025-10-23 11:34:39,270 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/3d853aa5-d2dd-46d8-a20e-23d871c625a2
2025-10-23 11:34:39,279 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/3d853aa5-d2dd-46d8-a20e-23d871c625a2
2025-10-23 11:34:39,285 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/ad60a856-328f-4bc5-a63f-4e9c5d6bda12
2025-10-23 11:34:39,291 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-23 11:34:39,291 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/6650c68c-3f55-4ce6-955f-7870098e13bc
2025-10-23 11:34:39,300 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/3d853aa5-d2dd-46d8-a20e-23d871c625a2
2025-10-23 11:34:39,314 - INFO - Verified VN network id 11 for VN 6650c68c-3f55-4ce6-955f-7870098e13bc
2025-10-23 11:34:39,314 - INFO - Verifications in API Server for VN ctest-vn-09436940 passed
2025-10-23 11:34:39,314 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/6650c68c-3f55-4ce6-955f-7870098e13bc
2025-10-23 11:34:39,324 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/3d853aa5-d2dd-46d8-a20e-23d871c625a2
2025-10-23 11:34:39,331 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/3d853aa5-d2dd-46d8-a20e-23d871c625a2
2025-10-23 11:34:39,338 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/ad60a856-328f-4bc5-a63f-4e9c5d6bda12
2025-10-23 11:34:39,352 - DEBUG - Control-node 10.0.0.249 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-68956542:ctest-vn-09436940', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-68956542', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7372610895665777894', 'uuid-lslong': '10763454057030751164'}, 'enable': 'true', 'created': '2025-10-23T11:34:37', 'last-modified': '2025-10-23T11:34:38', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.957429'}
2025-10-23 11:34:39,360 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-23 11:34:39,360 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-09436940 passed
2025-10-23 11:34:39,360 - DEBUG - ====Verifying policy data for ctest-vn-09436940 in API_Server ======
2025-10-23 11:34:39,360 - DEBUG - Requesting: http://10.0.0.249:8082/domains
2025-10-23 11:34:39,367 - DEBUG - Requesting: http://10.0.0.249:8082/domain/09205d1e-3317-411a-9212-6abf5498ff92
2025-10-23 11:34:39,380 - DEBUG - Requesting: http://10.0.0.249:8082/project/8e57957b-d3e6-4c11-8345-b8852e13fee5
2025-10-23 11:34:39,454 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/6650c68c-3f55-4ce6-955f-7870098e13bc
2025-10-23 11:34:39,469 - DEBUG - ==>Verifying data for policy with id: c930e6bd-b844-4fb7-a557-5fe676ee9a23, fqn: ['default-domain', 'ctest-TestBasicPolicy-68956542', 'ctest-policy-allow-all-28785498']
2025-10-23 11:34:39,469 - INFO - VN ctest-vn-09436940 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-23 11:34:39,469 - DEBUG - Verifying the vn in opserver
2025-10-23 11:34:39,469 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-68956542:ctest-vn-09436940 virtual network link through opserver 10.0.0.249
2025-10-23 11:34:39,469 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks
2025-10-23 11:34:39,767 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks
2025-10-23 11:34:39,824 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-68956542:ctest-vn-09436940', 'href': 'http://10.0.0.249:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-68956542:ctest-vn-09436940?flat'}
2025-10-23 11:34:39,825 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-68956542:ctest-vn-09436940 is found in opserver
2025-10-23 11:34:39,835 - DEBUG - Do not have enough data to verify VN in agent
2025-10-23 11:34:39,840 - DEBUG - VRF ids for VN ctest-vn-09436940: {}
2025-10-23 11:34:39,840 - DEBUG - Requesting: http://10.0.0.249:8082/domains
2025-10-23 11:34:39,845 - DEBUG - Requesting: http://10.0.0.249:8082/domain/09205d1e-3317-411a-9212-6abf5498ff92
2025-10-23 11:34:39,855 - DEBUG - Requesting: http://10.0.0.249:8082/project/8e57957b-d3e6-4c11-8345-b8852e13fee5
2025-10-23 11:34:39,926 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/bb32cf4a-a9e8-4284-a3e1-883d37b155a3
2025-10-23 11:34:39,938 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/bb32cf4a-a9e8-4284-a3e1-883d37b155a3
2025-10-23 11:34:39,949 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/3abda4b8-8bfe-4b71-9421-ab7d268860f1
2025-10-23 11:34:39,956 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/3abda4b8-8bfe-4b71-9421-ab7d268860f1
2025-10-23 11:34:39,963 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/8d4533db-1595-46b3-b94b-7bb25a633f31
2025-10-23 11:34:39,969 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-23 11:34:39,969 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/bb32cf4a-a9e8-4284-a3e1-883d37b155a3
2025-10-23 11:34:39,980 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/3abda4b8-8bfe-4b71-9421-ab7d268860f1
2025-10-23 11:34:39,995 - INFO - Verified VN network id 12 for VN bb32cf4a-a9e8-4284-a3e1-883d37b155a3
2025-10-23 11:34:39,995 - INFO - Verifications in API Server for VN ctest-vn-87801970 passed
2025-10-23 11:34:39,995 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/bb32cf4a-a9e8-4284-a3e1-883d37b155a3
2025-10-23 11:34:40,004 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/3abda4b8-8bfe-4b71-9421-ab7d268860f1
2025-10-23 11:34:40,013 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/3abda4b8-8bfe-4b71-9421-ab7d268860f1
2025-10-23 11:34:40,019 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/8d4533db-1595-46b3-b94b-7bb25a633f31
2025-10-23 11:34:40,033 - DEBUG - Control-node 10.0.0.249 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-68956542:ctest-vn-87801970', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-68956542', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13489071753513157252', 'uuid-lslong': '11808869494450902435'}, 'enable': 'true', 'created': '2025-10-23T11:34:37', 'last-modified': '2025-10-23T11:34:38', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.407954'}
2025-10-23 11:34:40,039 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-23 11:34:40,039 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-87801970 passed
2025-10-23 11:34:40,040 - DEBUG - ====Verifying policy data for ctest-vn-87801970 in API_Server ======
2025-10-23 11:34:40,040 - DEBUG - Requesting: http://10.0.0.249:8082/domains
2025-10-23 11:34:40,046 - DEBUG - Requesting: http://10.0.0.249:8082/domain/09205d1e-3317-411a-9212-6abf5498ff92
2025-10-23 11:34:40,059 - DEBUG - Requesting: http://10.0.0.249:8082/project/8e57957b-d3e6-4c11-8345-b8852e13fee5
2025-10-23 11:34:40,130 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/bb32cf4a-a9e8-4284-a3e1-883d37b155a3
2025-10-23 11:34:40,140 - DEBUG - ==>Verifying data for policy with id: c930e6bd-b844-4fb7-a557-5fe676ee9a23, fqn: ['default-domain', 'ctest-TestBasicPolicy-68956542', 'ctest-policy-allow-all-28785498']
2025-10-23 11:34:40,140 - INFO - VN ctest-vn-87801970 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-23 11:34:40,140 - DEBUG - Verifying the vn in opserver
2025-10-23 11:34:40,140 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-68956542:ctest-vn-87801970 virtual network link through opserver 10.0.0.249
2025-10-23 11:34:40,140 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks
2025-10-23 11:34:40,150 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-68956542:ctest-vn-87801970', 'href': 'http://10.0.0.249:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-68956542:ctest-vn-87801970?flat'}
2025-10-23 11:34:40,150 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-68956542:ctest-vn-87801970 is found in opserver
2025-10-23 11:34:40,161 - DEBUG - Do not have enough data to verify VN in agent
2025-10-23 11:34:40,165 - DEBUG - VRF ids for VN ctest-vn-87801970: {}
2025-10-23 11:34:40,226 - DEBUG - Services list from nova: [