2025-10-09 23:01:18,137 - INFO - Domain Default found not creating
2025-10-09 23:01:18,248 - INFO - Project ctest-TestBasicPolicy-22298987 not found, creating it
2025-10-09 23:01:18,687 - INFO - Created Project:ctest-TestBasicPolicy-22298987, ID : 93e39435-2087-4c9a-85a6-9c55d8476fc6
2025-10-09 23:01:19,979 - INFO - ================================================================================
2025-10-09 23:01:19,979 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-10-09 23:01:19,979 - 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-09 23:01:20,232 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.17': '0'}} with
2025-10-09 23:01:20,232 - INFO - Initial checks done. Running the testcase now
2025-10-09 23:01:20,233 - INFO -
2025-10-09 23:01:20,734 - DEBUG - Response for create_network : {'network': {'id': '738dbd5a-3bbb-400a-be7e-d8631102d567', 'name': 'ctest-vn-41952696', 'tenant_id': '93e3943520874c9a85a69c55d8476fc6', 'project_id': '93e3943520874c9a85a69c55d8476fc6', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-22298987', 'ctest-vn-41952696'], 'port_security_enabled': True, 'description': ''}}
2025-10-09 23:01:20,901 - DEBUG - Response for create_subnet : {'subnet': {'id': '838fe1ff-9073-4cb6-accc-bb333dc46674', 'name': '', 'tenant_id': '93e3943520874c9a85a69c55d8476fc6', 'network_id': '738dbd5a-3bbb-400a-be7e-d8631102d567', 'ip_version': 4, 'cidr': '33.246.168.64/26', 'allocation_pools': [{'start': '33.246.168.66', 'end': '33.246.168.126'}], 'gateway_ip': '33.246.168.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '33.246.168.66', 'tags': [], 'project_id': '93e3943520874c9a85a69c55d8476fc6'}}
2025-10-09 23:01:20,915 - INFO - Created VN ctest-vn-41952696
2025-10-09 23:01:20,968 - DEBUG - VN ctest-vn-41952696 UUID is 738dbd5a-3bbb-400a-be7e-d8631102d567
2025-10-09 23:01:21,257 - DEBUG - Response for create_network : {'network': {'id': 'cdf1acab-d81d-42b3-8d01-94145b26eaa3', 'name': 'ctest-vn-76563254', 'tenant_id': '93e3943520874c9a85a69c55d8476fc6', 'project_id': '93e3943520874c9a85a69c55d8476fc6', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-22298987', 'ctest-vn-76563254'], 'port_security_enabled': True, 'description': ''}}
2025-10-09 23:01:21,452 - DEBUG - Response for create_subnet : {'subnet': {'id': '025714ed-32bd-4c1d-9c28-fdb30a735483', 'name': '', 'tenant_id': '93e3943520874c9a85a69c55d8476fc6', 'network_id': 'cdf1acab-d81d-42b3-8d01-94145b26eaa3', 'ip_version': 4, 'cidr': '164.174.184.128/26', 'allocation_pools': [{'start': '164.174.184.130', 'end': '164.174.184.190'}], 'gateway_ip': '164.174.184.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '164.174.184.130', 'tags': [], 'project_id': '93e3943520874c9a85a69c55d8476fc6'}}
2025-10-09 23:01:21,467 - INFO - Created VN ctest-vn-76563254
2025-10-09 23:01:21,516 - DEBUG - VN ctest-vn-76563254 UUID is cdf1acab-d81d-42b3-8d01-94145b26eaa3
2025-10-09 23:01:21,660 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-22298987:ctest-vn-41952696, 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-22298987:ctest-vn-76563254, 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-09 23:01:21,932 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '738dbd5a-3bbb-400a-be7e-d8631102d567', 'name': 'ctest-vn-41952696', 'tenant_id': '93e3943520874c9a85a69c55d8476fc6', 'project_id': '93e3943520874c9a85a69c55d8476fc6', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['838fe1ff-9073-4cb6-accc-bb333dc46674'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-22298987', 'ctest-vn-41952696'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-22298987', 'ctest-policy-allow-all-17563579']], 'subnet_ipam': [{'subnet_cidr': '33.246.168.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-09 23:01:22,144 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'cdf1acab-d81d-42b3-8d01-94145b26eaa3', 'name': 'ctest-vn-76563254', 'tenant_id': '93e3943520874c9a85a69c55d8476fc6', 'project_id': '93e3943520874c9a85a69c55d8476fc6', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['025714ed-32bd-4c1d-9c28-fdb30a735483'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-22298987', 'ctest-vn-76563254'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-22298987', 'ctest-policy-allow-all-17563579']], 'subnet_ipam': [{'subnet_cidr': '164.174.184.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-09 23:01:22,300 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-10-09 23:01:22,590 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-10-09 23:01:22,614 - DEBUG - Requesting: http://10.0.0.254:8082/domain/2427fbe1-e14c-4551-98d2-4af29752c8ae
2025-10-09 23:01:22,624 - DEBUG - Requesting: http://10.0.0.254:8082/project/93e39435-2087-4c9a-85a6-9c55d8476fc6
2025-10-09 23:01:22,687 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/738dbd5a-3bbb-400a-be7e-d8631102d567
2025-10-09 23:01:22,696 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/738dbd5a-3bbb-400a-be7e-d8631102d567
2025-10-09 23:01:22,703 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/6c44e3b8-fa07-4900-b768-2cab2cc186c1
2025-10-09 23:01:22,708 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/6c44e3b8-fa07-4900-b768-2cab2cc186c1
2025-10-09 23:01:22,712 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/98cfe459-0e8b-4a98-87eb-b198d2c098b2
2025-10-09 23:01:22,716 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-09 23:01:22,716 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/738dbd5a-3bbb-400a-be7e-d8631102d567
2025-10-09 23:01:22,723 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/6c44e3b8-fa07-4900-b768-2cab2cc186c1
2025-10-09 23:01:22,733 - INFO - Verified VN network id 11 for VN 738dbd5a-3bbb-400a-be7e-d8631102d567
2025-10-09 23:01:22,733 - INFO - Verifications in API Server for VN ctest-vn-41952696 passed
2025-10-09 23:01:22,733 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/738dbd5a-3bbb-400a-be7e-d8631102d567
2025-10-09 23:01:22,739 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/6c44e3b8-fa07-4900-b768-2cab2cc186c1
2025-10-09 23:01:22,744 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/6c44e3b8-fa07-4900-b768-2cab2cc186c1
2025-10-09 23:01:22,749 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/98cfe459-0e8b-4a98-87eb-b198d2c098b2
2025-10-09 23:01:22,757 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-22298987:ctest-vn-41952696', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-22298987', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8326519481324748810', 'uuid-lslong': '13726646634270610791'}, 'enable': 'true', 'created': '2025-10-09T23:01:20', 'last-modified': '2025-10-09T23:01:21', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.845167'}
2025-10-09 23:01:22,762 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-09 23:01:22,762 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-41952696 passed
2025-10-09 23:01:22,762 - DEBUG - ====Verifying policy data for ctest-vn-41952696 in API_Server ======
2025-10-09 23:01:22,762 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-10-09 23:01:22,766 - DEBUG - Requesting: http://10.0.0.254:8082/domain/2427fbe1-e14c-4551-98d2-4af29752c8ae
2025-10-09 23:01:22,775 - DEBUG - Requesting: http://10.0.0.254:8082/project/93e39435-2087-4c9a-85a6-9c55d8476fc6
2025-10-09 23:01:22,841 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/738dbd5a-3bbb-400a-be7e-d8631102d567
2025-10-09 23:01:22,849 - DEBUG - ==>Verifying data for policy with id: 984fb615-96fb-434f-a792-b28fe5831c38, fqn: ['default-domain', 'ctest-TestBasicPolicy-22298987', 'ctest-policy-allow-all-17563579']
2025-10-09 23:01:22,849 - INFO - VN ctest-vn-41952696 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-09 23:01:22,849 - DEBUG - Verifying the vn in opserver
2025-10-09 23:01:22,849 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-22298987:ctest-vn-41952696 virtual network link through opserver 10.0.0.254
2025-10-09 23:01:22,849 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-10-09 23:01:23,137 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-10-09 23:01:23,187 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-22298987:ctest-vn-41952696', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-22298987:ctest-vn-41952696?flat'}
2025-10-09 23:01:23,188 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-22298987:ctest-vn-41952696 is found in opserver
2025-10-09 23:01:23,195 - DEBUG - Do not have enough data to verify VN in agent
2025-10-09 23:01:23,199 - DEBUG - VRF ids for VN ctest-vn-41952696: {}
2025-10-09 23:01:23,199 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-10-09 23:01:23,204 - DEBUG - Requesting: http://10.0.0.254:8082/domain/2427fbe1-e14c-4551-98d2-4af29752c8ae
2025-10-09 23:01:23,212 - DEBUG - Requesting: http://10.0.0.254:8082/project/93e39435-2087-4c9a-85a6-9c55d8476fc6
2025-10-09 23:01:23,276 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/cdf1acab-d81d-42b3-8d01-94145b26eaa3
2025-10-09 23:01:23,285 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/cdf1acab-d81d-42b3-8d01-94145b26eaa3
2025-10-09 23:01:23,292 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/863a8899-c2b8-4491-85df-9c1dfea15467
2025-10-09 23:01:23,297 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/863a8899-c2b8-4491-85df-9c1dfea15467
2025-10-09 23:01:23,302 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/e9fbb444-f8bb-43bd-927b-ea8264df8efc
2025-10-09 23:01:23,307 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-09 23:01:23,307 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/cdf1acab-d81d-42b3-8d01-94145b26eaa3
2025-10-09 23:01:23,314 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/863a8899-c2b8-4491-85df-9c1dfea15467
2025-10-09 23:01:23,324 - INFO - Verified VN network id 12 for VN cdf1acab-d81d-42b3-8d01-94145b26eaa3
2025-10-09 23:01:23,324 - INFO - Verifications in API Server for VN ctest-vn-76563254 passed
2025-10-09 23:01:23,324 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/cdf1acab-d81d-42b3-8d01-94145b26eaa3
2025-10-09 23:01:23,332 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/863a8899-c2b8-4491-85df-9c1dfea15467
2025-10-09 23:01:23,336 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/863a8899-c2b8-4491-85df-9c1dfea15467
2025-10-09 23:01:23,341 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/e9fbb444-f8bb-43bd-927b-ea8264df8efc
2025-10-09 23:01:23,349 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-22298987:ctest-vn-76563254', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-22298987', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '14839832101227676339', 'uuid-lslong': '10160565049474083491'}, 'enable': 'true', 'created': '2025-10-09T23:01:21', 'last-modified': '2025-10-09T23:01:22', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.224867'}
2025-10-09 23:01:23,354 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-09 23:01:23,354 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-76563254 passed
2025-10-09 23:01:23,354 - DEBUG - ====Verifying policy data for ctest-vn-76563254 in API_Server ======
2025-10-09 23:01:23,354 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-10-09 23:01:23,358 - DEBUG - Requesting: http://10.0.0.254:8082/domain/2427fbe1-e14c-4551-98d2-4af29752c8ae
2025-10-09 23:01:23,367 - DEBUG - Requesting: http://10.0.0.254:8082/project/93e39435-2087-4c9a-85a6-9c55d8476fc6
2025-10-09 23:01:23,430 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/cdf1acab-d81d-42b3-8d01-94145b26eaa3
2025-10-09 23:01:23,438 - DEBUG - ==>Verifying data for policy with id: 984fb615-96fb-434f-a792-b28fe5831c38, fqn: ['default-domain', 'ctest-TestBasicPolicy-22298987', 'ctest-policy-allow-all-17563579']
2025-10-09 23:01:23,438 - INFO - VN ctest-vn-76563254 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-09 23:01:23,438 - DEBUG - Verifying the vn in opserver
2025-10-09 23:01:23,438 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-22298987:ctest-vn-76563254 virtual network link through opserver 10.0.0.254
2025-10-09 23:01:23,438 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-10-09 23:01:23,446 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-22298987:ctest-vn-76563254', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-22298987:ctest-vn-76563254?flat'}
2025-10-09 23:01:23,446 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-22298987:ctest-vn-76563254 is found in opserver
2025-10-09 23:01:23,454 - DEBUG - Do not have enough data to verify VN in agent
2025-10-09 23:01:23,458 - DEBUG - VRF ids for VN ctest-vn-76563254: {}
2025-10-09 23:01:23,506 - DEBUG - Services list from nova: [