2025-11-17 17:28:05,262 - INFO - Domain Default found not creating
2025-11-17 17:28:05,688 - INFO - Project ctest-TestBasicPolicy-24138600 not found, creating it
2025-11-17 17:28:06,339 - INFO - Created Project:ctest-TestBasicPolicy-24138600, ID : 5000fa96-1a2b-4eca-b08e-3c437fb74708
2025-11-17 17:28:08,315 - INFO - ================================================================================
2025-11-17 17:28:08,315 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-11-17 17:28:08,315 - 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-11-17 17:28:08,621 - DEBUG - Nothing to compare xmpp stats {'10.0.0.33': {'10.20.0.17': '0'}} with
2025-11-17 17:28:08,621 - INFO - Initial checks done. Running the testcase now
2025-11-17 17:28:08,622 - INFO -
2025-11-17 17:28:09,424 - DEBUG - Response for create_network : {'network': {'id': 'bdb3d225-24f7-4dba-897e-45293791fce4', 'name': 'ctest-vn-76629306', 'tenant_id': '5000fa961a2b4ecab08e3c437fb74708', 'project_id': '5000fa961a2b4ecab08e3c437fb74708', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-24138600', 'ctest-vn-76629306'], 'port_security_enabled': True, 'description': ''}}
2025-11-17 17:28:09,582 - DEBUG - Response for create_subnet : {'subnet': {'id': '7cbeba96-4c82-4407-92dd-ed2b255ff4cb', 'name': '', 'tenant_id': '5000fa961a2b4ecab08e3c437fb74708', 'network_id': 'bdb3d225-24f7-4dba-897e-45293791fce4', 'ip_version': 4, 'cidr': '76.131.179.0/26', 'allocation_pools': [{'start': '76.131.179.2', 'end': '76.131.179.62'}], 'gateway_ip': '76.131.179.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '76.131.179.2', 'tags': [], 'project_id': '5000fa961a2b4ecab08e3c437fb74708'}}
2025-11-17 17:28:09,606 - INFO - Created VN ctest-vn-76629306
2025-11-17 17:28:09,663 - DEBUG - VN ctest-vn-76629306 UUID is bdb3d225-24f7-4dba-897e-45293791fce4
2025-11-17 17:28:10,129 - DEBUG - Response for create_network : {'network': {'id': 'f4f423f3-bbc2-43d1-ae4c-4df8956b8d24', 'name': 'ctest-vn-37233151', 'tenant_id': '5000fa961a2b4ecab08e3c437fb74708', 'project_id': '5000fa961a2b4ecab08e3c437fb74708', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-24138600', 'ctest-vn-37233151'], 'port_security_enabled': True, 'description': ''}}
2025-11-17 17:28:10,367 - DEBUG - Response for create_subnet : {'subnet': {'id': '94e82f00-0c5b-4b68-bba2-76faa5ae1ad7', 'name': '', 'tenant_id': '5000fa961a2b4ecab08e3c437fb74708', 'network_id': 'f4f423f3-bbc2-43d1-ae4c-4df8956b8d24', 'ip_version': 4, 'cidr': '59.205.42.128/26', 'allocation_pools': [{'start': '59.205.42.130', 'end': '59.205.42.190'}], 'gateway_ip': '59.205.42.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '59.205.42.130', 'tags': [], 'project_id': '5000fa961a2b4ecab08e3c437fb74708'}}
2025-11-17 17:28:10,391 - INFO - Created VN ctest-vn-37233151
2025-11-17 17:28:10,451 - DEBUG - VN ctest-vn-37233151 UUID is f4f423f3-bbc2-43d1-ae4c-4df8956b8d24
2025-11-17 17:28:10,623 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-24138600:ctest-vn-76629306, 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-24138600:ctest-vn-37233151, 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-11-17 17:28:11,086 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'bdb3d225-24f7-4dba-897e-45293791fce4', 'name': 'ctest-vn-76629306', 'tenant_id': '5000fa961a2b4ecab08e3c437fb74708', 'project_id': '5000fa961a2b4ecab08e3c437fb74708', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['7cbeba96-4c82-4407-92dd-ed2b255ff4cb'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-24138600', 'ctest-vn-76629306'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-24138600', 'ctest-policy-allow-all-81832302']], 'subnet_ipam': [{'subnet_cidr': '76.131.179.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-11-17 17:28:11,420 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'f4f423f3-bbc2-43d1-ae4c-4df8956b8d24', 'name': 'ctest-vn-37233151', 'tenant_id': '5000fa961a2b4ecab08e3c437fb74708', 'project_id': '5000fa961a2b4ecab08e3c437fb74708', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['94e82f00-0c5b-4b68-bba2-76faa5ae1ad7'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-24138600', 'ctest-vn-37233151'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-24138600', 'ctest-policy-allow-all-81832302']], 'subnet_ipam': [{'subnet_cidr': '59.205.42.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-11-17 17:28:11,595 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2025-11-17 17:28:11,925 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2025-11-17 17:28:11,961 - DEBUG - Requesting: http://10.0.0.33:8082/domain/dfdb72f9-dbcf-4451-8659-a6d3fc88ce2f
2025-11-17 17:28:11,981 - DEBUG - Requesting: http://10.0.0.33:8082/project/5000fa96-1a2b-4eca-b08e-3c437fb74708
2025-11-17 17:28:12,088 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/bdb3d225-24f7-4dba-897e-45293791fce4
2025-11-17 17:28:12,108 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/bdb3d225-24f7-4dba-897e-45293791fce4
2025-11-17 17:28:12,127 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/57721226-e884-4a43-b9c8-81422bf592d8
2025-11-17 17:28:12,139 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/57721226-e884-4a43-b9c8-81422bf592d8
2025-11-17 17:28:12,149 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/89300f2d-2d99-4fe8-ac36-a0d43572e439
2025-11-17 17:28:12,159 - DEBUG - Route Targets: ['target:64512:8000004']
2025-11-17 17:28:12,159 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/bdb3d225-24f7-4dba-897e-45293791fce4
2025-11-17 17:28:12,175 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/57721226-e884-4a43-b9c8-81422bf592d8
2025-11-17 17:28:12,197 - INFO - Verified VN network id 11 for VN bdb3d225-24f7-4dba-897e-45293791fce4
2025-11-17 17:28:12,197 - INFO - Verifications in API Server for VN ctest-vn-76629306 passed
2025-11-17 17:28:12,197 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/bdb3d225-24f7-4dba-897e-45293791fce4
2025-11-17 17:28:12,211 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/57721226-e884-4a43-b9c8-81422bf592d8
2025-11-17 17:28:12,223 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/57721226-e884-4a43-b9c8-81422bf592d8
2025-11-17 17:28:12,234 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/89300f2d-2d99-4fe8-ac36-a0d43572e439
2025-11-17 17:28:12,253 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-24138600:ctest-vn-76629306', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-24138600', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13669500350975397306', 'uuid-lslong': '9907432273589959908'}, 'enable': 'true', 'created': '2025-11-17T17:28:09', 'last-modified': '2025-11-17T17:28:11', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.218399'}
2025-11-17 17:28:12,262 - DEBUG - Route Targets: ['target:64512:8000004']
2025-11-17 17:28:12,262 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-76629306 passed
2025-11-17 17:28:12,263 - DEBUG - ====Verifying policy data for ctest-vn-76629306 in API_Server ======
2025-11-17 17:28:12,263 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2025-11-17 17:28:12,272 - DEBUG - Requesting: http://10.0.0.33:8082/domain/dfdb72f9-dbcf-4451-8659-a6d3fc88ce2f
2025-11-17 17:28:12,287 - DEBUG - Requesting: http://10.0.0.33:8082/project/5000fa96-1a2b-4eca-b08e-3c437fb74708
2025-11-17 17:28:12,398 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/bdb3d225-24f7-4dba-897e-45293791fce4
2025-11-17 17:28:12,424 - DEBUG - ==>Verifying data for policy with id: 6e352a85-eadf-48f5-8276-d3f3fd3dfd21, fqn: ['default-domain', 'ctest-TestBasicPolicy-24138600', 'ctest-policy-allow-all-81832302']
2025-11-17 17:28:12,424 - INFO - VN ctest-vn-76629306 Policy verification: verify_vn_policy_in_api_server, status: True
2025-11-17 17:28:12,424 - DEBUG - Verifying the vn in opserver
2025-11-17 17:28:12,425 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-24138600:ctest-vn-76629306 virtual network link through opserver 10.0.0.33
2025-11-17 17:28:12,425 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks
2025-11-17 17:28:12,761 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks
2025-11-17 17:28:12,861 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-24138600:ctest-vn-76629306', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-24138600:ctest-vn-76629306?flat'}
2025-11-17 17:28:12,861 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-24138600:ctest-vn-76629306 is found in opserver
2025-11-17 17:28:12,890 - DEBUG - Do not have enough data to verify VN in agent
2025-11-17 17:28:12,901 - DEBUG - VRF ids for VN ctest-vn-76629306: {}
2025-11-17 17:28:12,901 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2025-11-17 17:28:12,912 - DEBUG - Requesting: http://10.0.0.33:8082/domain/dfdb72f9-dbcf-4451-8659-a6d3fc88ce2f
2025-11-17 17:28:12,936 - DEBUG - Requesting: http://10.0.0.33:8082/project/5000fa96-1a2b-4eca-b08e-3c437fb74708
2025-11-17 17:28:13,039 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/f4f423f3-bbc2-43d1-ae4c-4df8956b8d24
2025-11-17 17:28:13,059 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/f4f423f3-bbc2-43d1-ae4c-4df8956b8d24
2025-11-17 17:28:13,083 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/424ca3de-8ec5-442d-8d2c-f62f077e5762
2025-11-17 17:28:13,097 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/424ca3de-8ec5-442d-8d2c-f62f077e5762
2025-11-17 17:28:13,110 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/292ab1c0-1008-47e2-8307-4b238d28f671
2025-11-17 17:28:13,119 - DEBUG - Route Targets: ['target:64512:8000005']
2025-11-17 17:28:13,119 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/f4f423f3-bbc2-43d1-ae4c-4df8956b8d24
2025-11-17 17:28:13,133 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/424ca3de-8ec5-442d-8d2c-f62f077e5762
2025-11-17 17:28:13,162 - INFO - Verified VN network id 12 for VN f4f423f3-bbc2-43d1-ae4c-4df8956b8d24
2025-11-17 17:28:13,162 - INFO - Verifications in API Server for VN ctest-vn-37233151 passed
2025-11-17 17:28:13,162 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/f4f423f3-bbc2-43d1-ae4c-4df8956b8d24
2025-11-17 17:28:13,179 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/424ca3de-8ec5-442d-8d2c-f62f077e5762
2025-11-17 17:28:13,190 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/424ca3de-8ec5-442d-8d2c-f62f077e5762
2025-11-17 17:28:13,202 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/292ab1c0-1008-47e2-8307-4b238d28f671
2025-11-17 17:28:13,225 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-24138600:ctest-vn-37233151', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-24138600', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17650772369305912273', 'uuid-lslong': '12559499190883552548'}, 'enable': 'true', 'created': '2025-11-17T17:28:10', 'last-modified': '2025-11-17T17:28:11', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.848395'}
2025-11-17 17:28:13,237 - DEBUG - Route Targets: ['target:64512:8000005']
2025-11-17 17:28:13,237 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-37233151 passed
2025-11-17 17:28:13,238 - DEBUG - ====Verifying policy data for ctest-vn-37233151 in API_Server ======
2025-11-17 17:28:13,238 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2025-11-17 17:28:13,247 - DEBUG - Requesting: http://10.0.0.33:8082/domain/dfdb72f9-dbcf-4451-8659-a6d3fc88ce2f
2025-11-17 17:28:13,273 - DEBUG - Requesting: http://10.0.0.33:8082/project/5000fa96-1a2b-4eca-b08e-3c437fb74708
2025-11-17 17:28:13,363 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/f4f423f3-bbc2-43d1-ae4c-4df8956b8d24
2025-11-17 17:28:13,377 - DEBUG - ==>Verifying data for policy with id: 6e352a85-eadf-48f5-8276-d3f3fd3dfd21, fqn: ['default-domain', 'ctest-TestBasicPolicy-24138600', 'ctest-policy-allow-all-81832302']
2025-11-17 17:28:13,377 - INFO - VN ctest-vn-37233151 Policy verification: verify_vn_policy_in_api_server, status: True
2025-11-17 17:28:13,377 - DEBUG - Verifying the vn in opserver
2025-11-17 17:28:13,377 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-24138600:ctest-vn-37233151 virtual network link through opserver 10.0.0.33
2025-11-17 17:28:13,377 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks
2025-11-17 17:28:13,392 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-24138600:ctest-vn-37233151', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-24138600:ctest-vn-37233151?flat'}
2025-11-17 17:28:13,392 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-24138600:ctest-vn-37233151 is found in opserver
2025-11-17 17:28:13,408 - DEBUG - Do not have enough data to verify VN in agent
2025-11-17 17:28:13,414 - DEBUG - VRF ids for VN ctest-vn-37233151: {}
2025-11-17 17:28:13,500 - DEBUG - Services list from nova: [