2025-06-19 20:26:12,287 - INFO - Domain Default found not creating
2025-06-19 20:26:12,456 - INFO - Project ctest-TestBasicPolicy-19601340 not found, creating it
2025-06-19 20:26:12,943 - INFO - Created Project:ctest-TestBasicPolicy-19601340, ID : 2163e2a4-88f1-4957-9ecc-32db156cbb47
2025-06-19 20:26:14,528 - INFO - ================================================================================
2025-06-19 20:26:14,529 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-06-19 20:26:14,529 - 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-06-19 20:26:14,783 - DEBUG - Nothing to compare xmpp stats {'10.0.0.65': {'10.20.0.17': '0'}} with
2025-06-19 20:26:14,783 - INFO - Initial checks done. Running the testcase now
2025-06-19 20:26:14,784 - INFO -
2025-06-19 20:26:15,334 - DEBUG - Response for create_network : {'network': {'id': 'd08acc7d-9ccf-4387-ad7f-985c4a9bca83', 'name': 'ctest-vn-96084772', 'tenant_id': '2163e2a488f149579ecc32db156cbb47', 'project_id': '2163e2a488f149579ecc32db156cbb47', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-19601340', 'ctest-vn-96084772'], 'port_security_enabled': True, 'description': ''}}
2025-06-19 20:26:15,550 - DEBUG - Response for create_subnet : {'subnet': {'id': '072c4a6c-3b7f-4f2b-85a3-124758b87a56', 'name': '', 'tenant_id': '2163e2a488f149579ecc32db156cbb47', 'network_id': 'd08acc7d-9ccf-4387-ad7f-985c4a9bca83', 'ip_version': 4, 'cidr': '213.242.91.64/26', 'allocation_pools': [{'start': '213.242.91.66', 'end': '213.242.91.126'}], 'gateway_ip': '213.242.91.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '213.242.91.66', 'tags': [], 'project_id': '2163e2a488f149579ecc32db156cbb47'}}
2025-06-19 20:26:15,566 - INFO - Created VN ctest-vn-96084772
2025-06-19 20:26:15,617 - DEBUG - VN ctest-vn-96084772 UUID is d08acc7d-9ccf-4387-ad7f-985c4a9bca83
2025-06-19 20:26:15,941 - DEBUG - Response for create_network : {'network': {'id': 'bbc08a70-374e-4bd1-a3e4-f41ece4a3d4c', 'name': 'ctest-vn-74620643', 'tenant_id': '2163e2a488f149579ecc32db156cbb47', 'project_id': '2163e2a488f149579ecc32db156cbb47', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-19601340', 'ctest-vn-74620643'], 'port_security_enabled': True, 'description': ''}}
2025-06-19 20:26:16,157 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b03ad471-8422-45d5-a7bc-b9f52c180d34', 'name': '', 'tenant_id': '2163e2a488f149579ecc32db156cbb47', 'network_id': 'bbc08a70-374e-4bd1-a3e4-f41ece4a3d4c', 'ip_version': 4, 'cidr': '44.34.98.128/26', 'allocation_pools': [{'start': '44.34.98.130', 'end': '44.34.98.190'}], 'gateway_ip': '44.34.98.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '44.34.98.130', 'tags': [], 'project_id': '2163e2a488f149579ecc32db156cbb47'}}
2025-06-19 20:26:16,176 - INFO - Created VN ctest-vn-74620643
2025-06-19 20:26:16,229 - DEBUG - VN ctest-vn-74620643 UUID is bbc08a70-374e-4bd1-a3e4-f41ece4a3d4c
2025-06-19 20:26:16,351 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-19601340:ctest-vn-96084772, 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-19601340:ctest-vn-74620643, 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-06-19 20:26:16,682 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'd08acc7d-9ccf-4387-ad7f-985c4a9bca83', 'name': 'ctest-vn-96084772', 'tenant_id': '2163e2a488f149579ecc32db156cbb47', 'project_id': '2163e2a488f149579ecc32db156cbb47', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['072c4a6c-3b7f-4f2b-85a3-124758b87a56'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-19601340', 'ctest-vn-96084772'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-19601340', 'ctest-policy-allow-all-70301371']], 'subnet_ipam': [{'subnet_cidr': '213.242.91.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-06-19 20:26:16,921 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'bbc08a70-374e-4bd1-a3e4-f41ece4a3d4c', 'name': 'ctest-vn-74620643', 'tenant_id': '2163e2a488f149579ecc32db156cbb47', 'project_id': '2163e2a488f149579ecc32db156cbb47', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['b03ad471-8422-45d5-a7bc-b9f52c180d34'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-19601340', 'ctest-vn-74620643'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-19601340', 'ctest-policy-allow-all-70301371']], 'subnet_ipam': [{'subnet_cidr': '44.34.98.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-06-19 20:26:17,089 - DEBUG - Requesting: http://10.0.0.65:8082/domains
2025-06-19 20:26:17,391 - DEBUG - Requesting: http://10.0.0.65:8082/domains
2025-06-19 20:26:17,419 - DEBUG - Requesting: http://10.0.0.65:8082/domain/c04575c8-7378-476b-88df-2561d14e61b4
2025-06-19 20:26:17,432 - DEBUG - Requesting: http://10.0.0.65:8082/project/2163e2a4-88f1-4957-9ecc-32db156cbb47
2025-06-19 20:26:17,504 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/d08acc7d-9ccf-4387-ad7f-985c4a9bca83
2025-06-19 20:26:17,517 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/d08acc7d-9ccf-4387-ad7f-985c4a9bca83
2025-06-19 20:26:17,528 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/b919baa0-00dc-4f72-884e-610c6fddee2b
2025-06-19 20:26:17,536 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/b919baa0-00dc-4f72-884e-610c6fddee2b
2025-06-19 20:26:17,544 - DEBUG - Requesting: http://10.0.0.65:8082/route-target/f2bac52d-58fd-40d6-a1f1-a6d0b71c4cbb
2025-06-19 20:26:17,550 - DEBUG - Route Targets: ['target:64512:8000005']
2025-06-19 20:26:17,550 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/d08acc7d-9ccf-4387-ad7f-985c4a9bca83
2025-06-19 20:26:17,559 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/b919baa0-00dc-4f72-884e-610c6fddee2b
2025-06-19 20:26:17,572 - INFO - Verified VN network id 8 for VN d08acc7d-9ccf-4387-ad7f-985c4a9bca83
2025-06-19 20:26:17,573 - INFO - Verifications in API Server for VN ctest-vn-96084772 passed
2025-06-19 20:26:17,573 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/d08acc7d-9ccf-4387-ad7f-985c4a9bca83
2025-06-19 20:26:17,582 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/b919baa0-00dc-4f72-884e-610c6fddee2b
2025-06-19 20:26:17,588 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/b919baa0-00dc-4f72-884e-610c6fddee2b
2025-06-19 20:26:17,595 - DEBUG - Requesting: http://10.0.0.65:8082/route-target/f2bac52d-58fd-40d6-a1f1-a6d0b71c4cbb
2025-06-19 20:26:17,606 - DEBUG - Control-node 10.0.0.65 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-19601340:ctest-vn-96084772', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-19601340', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15027047946548888455', 'uuid-lslong': '12501878612759923331'}, 'enable': 'true', 'created': '2025-06-19T20:26:15', 'last-modified': '2025-06-19T20:26:16', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.957095'}
2025-06-19 20:26:17,612 - DEBUG - Route Targets: ['target:64512:8000005']
2025-06-19 20:26:17,612 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-96084772 passed
2025-06-19 20:26:17,612 - DEBUG - ====Verifying policy data for ctest-vn-96084772 in API_Server ======
2025-06-19 20:26:17,612 - DEBUG - Requesting: http://10.0.0.65:8082/domains
2025-06-19 20:26:17,618 - DEBUG - Requesting: http://10.0.0.65:8082/domain/c04575c8-7378-476b-88df-2561d14e61b4
2025-06-19 20:26:17,629 - DEBUG - Requesting: http://10.0.0.65:8082/project/2163e2a4-88f1-4957-9ecc-32db156cbb47
2025-06-19 20:26:17,700 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/d08acc7d-9ccf-4387-ad7f-985c4a9bca83
2025-06-19 20:26:17,710 - DEBUG - ==>Verifying data for policy with id: 54d31772-99e7-4e5a-a1d1-e5deda50820d, fqn: ['default-domain', 'ctest-TestBasicPolicy-19601340', 'ctest-policy-allow-all-70301371']
2025-06-19 20:26:17,710 - INFO - VN ctest-vn-96084772 Policy verification: verify_vn_policy_in_api_server, status: True
2025-06-19 20:26:17,710 - DEBUG - Verifying the vn in opserver
2025-06-19 20:26:17,710 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-19601340:ctest-vn-96084772 virtual network link through opserver 10.0.0.65
2025-06-19 20:26:17,711 - DEBUG - Requesting: http://10.0.0.65:8081/analytics/uves/virtual-networks
2025-06-19 20:26:18,013 - DEBUG - Requesting: http://10.0.0.65:8081/analytics/uves/virtual-networks
2025-06-19 20:26:18,070 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-19601340:ctest-vn-96084772', 'href': 'http://10.0.0.65:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-19601340:ctest-vn-96084772?flat'}
2025-06-19 20:26:18,070 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-19601340:ctest-vn-96084772 is found in opserver
2025-06-19 20:26:18,081 - DEBUG - Do not have enough data to verify VN in agent
2025-06-19 20:26:18,086 - DEBUG - VRF ids for VN ctest-vn-96084772: {}
2025-06-19 20:26:18,086 - DEBUG - Requesting: http://10.0.0.65:8082/domains
2025-06-19 20:26:18,106 - DEBUG - Requesting: http://10.0.0.65:8082/domain/c04575c8-7378-476b-88df-2561d14e61b4
2025-06-19 20:26:18,118 - DEBUG - Requesting: http://10.0.0.65:8082/project/2163e2a4-88f1-4957-9ecc-32db156cbb47
2025-06-19 20:26:18,196 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/bbc08a70-374e-4bd1-a3e4-f41ece4a3d4c
2025-06-19 20:26:18,211 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/bbc08a70-374e-4bd1-a3e4-f41ece4a3d4c
2025-06-19 20:26:18,223 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/22e85681-d349-4f47-be15-27b4c1a5b493
2025-06-19 20:26:18,235 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/22e85681-d349-4f47-be15-27b4c1a5b493
2025-06-19 20:26:18,243 - DEBUG - Requesting: http://10.0.0.65:8082/route-target/ddf5fbb7-0c67-4299-a6a9-2bc212599edc
2025-06-19 20:26:18,253 - DEBUG - Route Targets: ['target:64512:8000006']
2025-06-19 20:26:18,253 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/bbc08a70-374e-4bd1-a3e4-f41ece4a3d4c
2025-06-19 20:26:18,265 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/22e85681-d349-4f47-be15-27b4c1a5b493
2025-06-19 20:26:18,284 - INFO - Verified VN network id 9 for VN bbc08a70-374e-4bd1-a3e4-f41ece4a3d4c
2025-06-19 20:26:18,284 - INFO - Verifications in API Server for VN ctest-vn-74620643 passed
2025-06-19 20:26:18,284 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/bbc08a70-374e-4bd1-a3e4-f41ece4a3d4c
2025-06-19 20:26:18,295 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/22e85681-d349-4f47-be15-27b4c1a5b493
2025-06-19 20:26:18,303 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/22e85681-d349-4f47-be15-27b4c1a5b493
2025-06-19 20:26:18,310 - DEBUG - Requesting: http://10.0.0.65:8082/route-target/ddf5fbb7-0c67-4299-a6a9-2bc212599edc
2025-06-19 20:26:18,324 - DEBUG - Control-node 10.0.0.65 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-19601340:ctest-vn-74620643', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-19601340', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13528965495189818321', 'uuid-lslong': '11809832536019451212'}, 'enable': 'true', 'created': '2025-06-19T20:26:15', 'last-modified': '2025-06-19T20:26:16', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.431414'}
2025-06-19 20:26:18,331 - DEBUG - Route Targets: ['target:64512:8000006']
2025-06-19 20:26:18,331 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-74620643 passed
2025-06-19 20:26:18,331 - DEBUG - ====Verifying policy data for ctest-vn-74620643 in API_Server ======
2025-06-19 20:26:18,331 - DEBUG - Requesting: http://10.0.0.65:8082/domains
2025-06-19 20:26:18,338 - DEBUG - Requesting: http://10.0.0.65:8082/domain/c04575c8-7378-476b-88df-2561d14e61b4
2025-06-19 20:26:18,353 - DEBUG - Requesting: http://10.0.0.65:8082/project/2163e2a4-88f1-4957-9ecc-32db156cbb47
2025-06-19 20:26:18,427 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/bbc08a70-374e-4bd1-a3e4-f41ece4a3d4c
2025-06-19 20:26:18,437 - DEBUG - ==>Verifying data for policy with id: 54d31772-99e7-4e5a-a1d1-e5deda50820d, fqn: ['default-domain', 'ctest-TestBasicPolicy-19601340', 'ctest-policy-allow-all-70301371']
2025-06-19 20:26:18,437 - INFO - VN ctest-vn-74620643 Policy verification: verify_vn_policy_in_api_server, status: True
2025-06-19 20:26:18,437 - DEBUG - Verifying the vn in opserver
2025-06-19 20:26:18,437 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-19601340:ctest-vn-74620643 virtual network link through opserver 10.0.0.65
2025-06-19 20:26:18,437 - DEBUG - Requesting: http://10.0.0.65:8081/analytics/uves/virtual-networks
2025-06-19 20:26:18,450 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-19601340:ctest-vn-74620643', 'href': 'http://10.0.0.65:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-19601340:ctest-vn-74620643?flat'}
2025-06-19 20:26:18,450 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-19601340:ctest-vn-74620643 is found in opserver
2025-06-19 20:26:18,463 - DEBUG - Do not have enough data to verify VN in agent
2025-06-19 20:26:18,468 - DEBUG - VRF ids for VN ctest-vn-74620643: {}
2025-06-19 20:26:18,526 - DEBUG - Services list from nova: [