2025-09-14 22:38:12,806 - INFO - Domain Default found not creating
2025-09-14 22:38:12,950 - INFO - Project ctest-TestBasicPolicy-51705864 not found, creating it
2025-09-14 22:38:13,364 - INFO - Created Project:ctest-TestBasicPolicy-51705864, ID : 81213386-f784-4632-8941-2d1f64e8c01d
2025-09-14 22:38:14,708 - INFO - ================================================================================
2025-09-14 22:38:14,708 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-09-14 22:38:14,708 - 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-14 22:38:14,966 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.17': '0'}} with
2025-09-14 22:38:14,966 - INFO - Initial checks done. Running the testcase now
2025-09-14 22:38:14,966 - INFO -
2025-09-14 22:38:15,467 - DEBUG - Response for create_network : {'network': {'id': '2115e1cf-3763-4bee-8036-546a4dcd724b', 'name': 'ctest-vn-40597206', 'tenant_id': '81213386f784463289412d1f64e8c01d', 'project_id': '81213386f784463289412d1f64e8c01d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-51705864', 'ctest-vn-40597206'], 'port_security_enabled': True, 'description': ''}}
2025-09-14 22:38:15,657 - DEBUG - Response for create_subnet : {'subnet': {'id': '355c8652-5abf-4b3c-b651-dd43683a8fae', 'name': '', 'tenant_id': '81213386f784463289412d1f64e8c01d', 'network_id': '2115e1cf-3763-4bee-8036-546a4dcd724b', 'ip_version': 4, 'cidr': '119.40.177.64/26', 'allocation_pools': [{'start': '119.40.177.66', 'end': '119.40.177.126'}], 'gateway_ip': '119.40.177.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '119.40.177.66', 'tags': [], 'project_id': '81213386f784463289412d1f64e8c01d'}}
2025-09-14 22:38:15,671 - INFO - Created VN ctest-vn-40597206
2025-09-14 22:38:15,720 - DEBUG - VN ctest-vn-40597206 UUID is 2115e1cf-3763-4bee-8036-546a4dcd724b
2025-09-14 22:38:16,017 - DEBUG - Response for create_network : {'network': {'id': '739e89a0-b96a-4416-b00a-9d5f756a2f4b', 'name': 'ctest-vn-00875300', 'tenant_id': '81213386f784463289412d1f64e8c01d', 'project_id': '81213386f784463289412d1f64e8c01d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-51705864', 'ctest-vn-00875300'], 'port_security_enabled': True, 'description': ''}}
2025-09-14 22:38:16,165 - DEBUG - Response for create_subnet : {'subnet': {'id': 'e80eee14-e9a9-49e0-b06d-949d95a146bf', 'name': '', 'tenant_id': '81213386f784463289412d1f64e8c01d', 'network_id': '739e89a0-b96a-4416-b00a-9d5f756a2f4b', 'ip_version': 4, 'cidr': '33.143.41.0/26', 'allocation_pools': [{'start': '33.143.41.2', 'end': '33.143.41.62'}], 'gateway_ip': '33.143.41.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '33.143.41.2', 'tags': [], 'project_id': '81213386f784463289412d1f64e8c01d'}}
2025-09-14 22:38:16,180 - INFO - Created VN ctest-vn-00875300
2025-09-14 22:38:16,232 - DEBUG - VN ctest-vn-00875300 UUID is 739e89a0-b96a-4416-b00a-9d5f756a2f4b
2025-09-14 22:38:16,380 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-51705864:ctest-vn-40597206, 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-51705864:ctest-vn-00875300, 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-14 22:38:16,674 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '2115e1cf-3763-4bee-8036-546a4dcd724b', 'name': 'ctest-vn-40597206', 'tenant_id': '81213386f784463289412d1f64e8c01d', 'project_id': '81213386f784463289412d1f64e8c01d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['355c8652-5abf-4b3c-b651-dd43683a8fae'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-51705864', 'ctest-vn-40597206'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-51705864', 'ctest-policy-allow-all-51797794']], 'subnet_ipam': [{'subnet_cidr': '119.40.177.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-09-14 22:38:16,898 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '739e89a0-b96a-4416-b00a-9d5f756a2f4b', 'name': 'ctest-vn-00875300', 'tenant_id': '81213386f784463289412d1f64e8c01d', 'project_id': '81213386f784463289412d1f64e8c01d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['e80eee14-e9a9-49e0-b06d-949d95a146bf'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-51705864', 'ctest-vn-00875300'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-51705864', 'ctest-policy-allow-all-51797794']], 'subnet_ipam': [{'subnet_cidr': '33.143.41.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-09-14 22:38:17,060 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-09-14 22:38:17,347 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-09-14 22:38:17,372 - DEBUG - Requesting: http://10.0.0.22:8082/domain/de99fe32-bc6c-4187-a118-14ae521dec76
2025-09-14 22:38:17,383 - DEBUG - Requesting: http://10.0.0.22:8082/project/81213386-f784-4632-8941-2d1f64e8c01d
2025-09-14 22:38:17,449 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/2115e1cf-3763-4bee-8036-546a4dcd724b
2025-09-14 22:38:17,458 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/2115e1cf-3763-4bee-8036-546a4dcd724b
2025-09-14 22:38:17,465 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/f7f9063f-cd82-4f76-9d92-3b5149eafa51
2025-09-14 22:38:17,471 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/f7f9063f-cd82-4f76-9d92-3b5149eafa51
2025-09-14 22:38:17,476 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/7350b2e9-ef2b-4245-9c48-d4370025302f
2025-09-14 22:38:17,481 - DEBUG - Route Targets: ['target:64512:8000004']
2025-09-14 22:38:17,481 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/2115e1cf-3763-4bee-8036-546a4dcd724b
2025-09-14 22:38:17,488 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/f7f9063f-cd82-4f76-9d92-3b5149eafa51
2025-09-14 22:38:17,499 - INFO - Verified VN network id 12 for VN 2115e1cf-3763-4bee-8036-546a4dcd724b
2025-09-14 22:38:17,499 - INFO - Verifications in API Server for VN ctest-vn-40597206 passed
2025-09-14 22:38:17,499 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/2115e1cf-3763-4bee-8036-546a4dcd724b
2025-09-14 22:38:17,506 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/f7f9063f-cd82-4f76-9d92-3b5149eafa51
2025-09-14 22:38:17,511 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/f7f9063f-cd82-4f76-9d92-3b5149eafa51
2025-09-14 22:38:17,516 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/7350b2e9-ef2b-4245-9c48-d4370025302f
2025-09-14 22:38:17,525 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-51705864:ctest-vn-40597206', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-51705864', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '2384059857866279918', 'uuid-lslong': '9238664501145727563'}, 'enable': 'true', 'created': '2025-09-14T22:38:15', 'last-modified': '2025-09-14T22:38:16', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.874560'}
2025-09-14 22:38:17,530 - DEBUG - Route Targets: ['target:64512:8000004']
2025-09-14 22:38:17,530 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-40597206 passed
2025-09-14 22:38:17,530 - DEBUG - ====Verifying policy data for ctest-vn-40597206 in API_Server ======
2025-09-14 22:38:17,530 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-09-14 22:38:17,533 - DEBUG - Requesting: http://10.0.0.22:8082/domain/de99fe32-bc6c-4187-a118-14ae521dec76
2025-09-14 22:38:17,541 - DEBUG - Requesting: http://10.0.0.22:8082/project/81213386-f784-4632-8941-2d1f64e8c01d
2025-09-14 22:38:17,610 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/2115e1cf-3763-4bee-8036-546a4dcd724b
2025-09-14 22:38:17,617 - DEBUG - ==>Verifying data for policy with id: cfbc7957-2f99-486f-aa31-c7948aee02cb, fqn: ['default-domain', 'ctest-TestBasicPolicy-51705864', 'ctest-policy-allow-all-51797794']
2025-09-14 22:38:17,617 - INFO - VN ctest-vn-40597206 Policy verification: verify_vn_policy_in_api_server, status: True
2025-09-14 22:38:17,618 - DEBUG - Verifying the vn in opserver
2025-09-14 22:38:17,618 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-51705864:ctest-vn-40597206 virtual network link through opserver 10.0.0.22
2025-09-14 22:38:17,618 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2025-09-14 22:38:17,917 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2025-09-14 22:38:17,970 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-51705864:ctest-vn-40597206', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-51705864:ctest-vn-40597206?flat'}
2025-09-14 22:38:17,970 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-51705864:ctest-vn-40597206 is found in opserver
2025-09-14 22:38:17,980 - DEBUG - Do not have enough data to verify VN in agent
2025-09-14 22:38:17,985 - DEBUG - VRF ids for VN ctest-vn-40597206: {}
2025-09-14 22:38:17,985 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-09-14 22:38:17,989 - DEBUG - Requesting: http://10.0.0.22:8082/domain/de99fe32-bc6c-4187-a118-14ae521dec76
2025-09-14 22:38:17,999 - DEBUG - Requesting: http://10.0.0.22:8082/project/81213386-f784-4632-8941-2d1f64e8c01d
2025-09-14 22:38:18,067 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/739e89a0-b96a-4416-b00a-9d5f756a2f4b
2025-09-14 22:38:18,077 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/739e89a0-b96a-4416-b00a-9d5f756a2f4b
2025-09-14 22:38:18,084 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/0c1d869e-d25c-429d-be4f-a1041e4ade4e
2025-09-14 22:38:18,090 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/0c1d869e-d25c-429d-be4f-a1041e4ade4e
2025-09-14 22:38:18,096 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/c91ece90-083e-45b2-8cfd-9b9a7adca177
2025-09-14 22:38:18,101 - DEBUG - Route Targets: ['target:64512:8000005']
2025-09-14 22:38:18,104 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/739e89a0-b96a-4416-b00a-9d5f756a2f4b
2025-09-14 22:38:18,111 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/0c1d869e-d25c-429d-be4f-a1041e4ade4e
2025-09-14 22:38:18,122 - INFO - Verified VN network id 13 for VN 739e89a0-b96a-4416-b00a-9d5f756a2f4b
2025-09-14 22:38:18,122 - INFO - Verifications in API Server for VN ctest-vn-00875300 passed
2025-09-14 22:38:18,122 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/739e89a0-b96a-4416-b00a-9d5f756a2f4b
2025-09-14 22:38:18,129 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/0c1d869e-d25c-429d-be4f-a1041e4ade4e
2025-09-14 22:38:18,134 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/0c1d869e-d25c-429d-be4f-a1041e4ade4e
2025-09-14 22:38:18,139 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/c91ece90-083e-45b2-8cfd-9b9a7adca177
2025-09-14 22:38:18,148 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-51705864:ctest-vn-00875300', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-51705864', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8331247684080518166', 'uuid-lslong': '12685124333759770443'}, 'enable': 'true', 'created': '2025-09-14T22:38:15', 'last-modified': '2025-09-14T22:38:16', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.268653'}
2025-09-14 22:38:18,153 - DEBUG - Route Targets: ['target:64512:8000005']
2025-09-14 22:38:18,153 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-00875300 passed
2025-09-14 22:38:18,153 - DEBUG - ====Verifying policy data for ctest-vn-00875300 in API_Server ======
2025-09-14 22:38:18,153 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-09-14 22:38:18,157 - DEBUG - Requesting: http://10.0.0.22:8082/domain/de99fe32-bc6c-4187-a118-14ae521dec76
2025-09-14 22:38:18,166 - DEBUG - Requesting: http://10.0.0.22:8082/project/81213386-f784-4632-8941-2d1f64e8c01d
2025-09-14 22:38:18,233 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/739e89a0-b96a-4416-b00a-9d5f756a2f4b
2025-09-14 22:38:18,240 - DEBUG - ==>Verifying data for policy with id: cfbc7957-2f99-486f-aa31-c7948aee02cb, fqn: ['default-domain', 'ctest-TestBasicPolicy-51705864', 'ctest-policy-allow-all-51797794']
2025-09-14 22:38:18,240 - INFO - VN ctest-vn-00875300 Policy verification: verify_vn_policy_in_api_server, status: True
2025-09-14 22:38:18,240 - DEBUG - Verifying the vn in opserver
2025-09-14 22:38:18,240 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-51705864:ctest-vn-00875300 virtual network link through opserver 10.0.0.22
2025-09-14 22:38:18,240 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2025-09-14 22:38:18,249 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-51705864:ctest-vn-00875300', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-51705864:ctest-vn-00875300?flat'}
2025-09-14 22:38:18,249 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-51705864:ctest-vn-00875300 is found in opserver
2025-09-14 22:38:18,256 - DEBUG - Do not have enough data to verify VN in agent
2025-09-14 22:38:18,260 - DEBUG - VRF ids for VN ctest-vn-00875300: {}
2025-09-14 22:38:18,309 - DEBUG - Services list from nova: [