2025-10-09 17:54:59,182 - INFO - Domain Default found not creating
2025-10-09 17:54:59,325 - INFO - Project ctest-TestBasicPolicy-23716992 not found, creating it
2025-10-09 17:54:59,759 - INFO - Created Project:ctest-TestBasicPolicy-23716992, ID : 01da1ad8-ee5e-4f97-ae59-93cd1c45c206
2025-10-09 17:55:01,195 - INFO - ================================================================================
2025-10-09 17:55:01,195 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-10-09 17:55:01,195 - 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 17:55:01,449 - DEBUG - Nothing to compare xmpp stats {'10.0.0.131': {'10.20.0.17': '0'}} with
2025-10-09 17:55:01,449 - INFO - Initial checks done. Running the testcase now
2025-10-09 17:55:01,449 - INFO -
2025-10-09 17:55:01,986 - DEBUG - Response for create_network : {'network': {'id': '986b6a48-2e75-43b9-9bab-56b8300f33eb', 'name': 'ctest-vn-46787613', 'tenant_id': '01da1ad8ee5e4f97ae5993cd1c45c206', 'project_id': '01da1ad8ee5e4f97ae5993cd1c45c206', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-23716992', 'ctest-vn-46787613'], 'port_security_enabled': True, 'description': ''}}
2025-10-09 17:55:02,175 - DEBUG - Response for create_subnet : {'subnet': {'id': '65d3a0c5-3861-4b62-80a9-b2ced5910a85', 'name': '', 'tenant_id': '01da1ad8ee5e4f97ae5993cd1c45c206', 'network_id': '986b6a48-2e75-43b9-9bab-56b8300f33eb', 'ip_version': 4, 'cidr': '72.46.87.192/26', 'allocation_pools': [{'start': '72.46.87.194', 'end': '72.46.87.254'}], 'gateway_ip': '72.46.87.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '72.46.87.194', 'tags': [], 'project_id': '01da1ad8ee5e4f97ae5993cd1c45c206'}}
2025-10-09 17:55:02,195 - INFO - Created VN ctest-vn-46787613
2025-10-09 17:55:02,248 - DEBUG - VN ctest-vn-46787613 UUID is 986b6a48-2e75-43b9-9bab-56b8300f33eb
2025-10-09 17:55:02,580 - DEBUG - Response for create_network : {'network': {'id': '8b55a177-aa67-4f00-9558-6ae06a93b317', 'name': 'ctest-vn-03478710', 'tenant_id': '01da1ad8ee5e4f97ae5993cd1c45c206', 'project_id': '01da1ad8ee5e4f97ae5993cd1c45c206', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-23716992', 'ctest-vn-03478710'], 'port_security_enabled': True, 'description': ''}}
2025-10-09 17:55:02,790 - DEBUG - Response for create_subnet : {'subnet': {'id': '68a1ac58-e897-4936-a055-2b552aacd698', 'name': '', 'tenant_id': '01da1ad8ee5e4f97ae5993cd1c45c206', 'network_id': '8b55a177-aa67-4f00-9558-6ae06a93b317', 'ip_version': 4, 'cidr': '171.169.56.192/26', 'allocation_pools': [{'start': '171.169.56.194', 'end': '171.169.56.254'}], 'gateway_ip': '171.169.56.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '171.169.56.194', 'tags': [], 'project_id': '01da1ad8ee5e4f97ae5993cd1c45c206'}}
2025-10-09 17:55:02,807 - INFO - Created VN ctest-vn-03478710
2025-10-09 17:55:02,860 - DEBUG - VN ctest-vn-03478710 UUID is 8b55a177-aa67-4f00-9558-6ae06a93b317
2025-10-09 17:55:03,004 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-23716992:ctest-vn-46787613, 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-23716992:ctest-vn-03478710, 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 17:55:03,293 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '986b6a48-2e75-43b9-9bab-56b8300f33eb', 'name': 'ctest-vn-46787613', 'tenant_id': '01da1ad8ee5e4f97ae5993cd1c45c206', 'project_id': '01da1ad8ee5e4f97ae5993cd1c45c206', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['65d3a0c5-3861-4b62-80a9-b2ced5910a85'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-23716992', 'ctest-vn-46787613'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-23716992', 'ctest-policy-allow-all-37822817']], 'subnet_ipam': [{'subnet_cidr': '72.46.87.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-09 17:55:03,510 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '8b55a177-aa67-4f00-9558-6ae06a93b317', 'name': 'ctest-vn-03478710', 'tenant_id': '01da1ad8ee5e4f97ae5993cd1c45c206', 'project_id': '01da1ad8ee5e4f97ae5993cd1c45c206', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['68a1ac58-e897-4936-a055-2b552aacd698'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-23716992', 'ctest-vn-03478710'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-23716992', 'ctest-policy-allow-all-37822817']], 'subnet_ipam': [{'subnet_cidr': '171.169.56.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-09 17:55:03,672 - DEBUG - Requesting: http://10.0.0.131:8082/domains
2025-10-09 17:55:03,961 - DEBUG - Requesting: http://10.0.0.131:8082/domains
2025-10-09 17:55:03,988 - DEBUG - Requesting: http://10.0.0.131:8082/domain/8aaa9f34-8ac1-43f6-a406-a0f87f9d8130
2025-10-09 17:55:04,000 - DEBUG - Requesting: http://10.0.0.131:8082/project/01da1ad8-ee5e-4f97-ae59-93cd1c45c206
2025-10-09 17:55:04,072 - DEBUG - Requesting: http://10.0.0.131:8082/virtual-network/986b6a48-2e75-43b9-9bab-56b8300f33eb
2025-10-09 17:55:04,082 - DEBUG - Requesting: http://10.0.0.131:8082/virtual-network/986b6a48-2e75-43b9-9bab-56b8300f33eb
2025-10-09 17:55:04,091 - DEBUG - Requesting: http://10.0.0.131:8082/routing-instance/c3d1c581-d0d9-4322-8f55-0d86de46ecdd
2025-10-09 17:55:04,097 - DEBUG - Requesting: http://10.0.0.131:8082/routing-instance/c3d1c581-d0d9-4322-8f55-0d86de46ecdd
2025-10-09 17:55:04,104 - DEBUG - Requesting: http://10.0.0.131:8082/route-target/81b785d0-b8e5-4669-b97c-94d027b29fc0
2025-10-09 17:55:04,109 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-09 17:55:04,109 - DEBUG - Requesting: http://10.0.0.131:8082/virtual-network/986b6a48-2e75-43b9-9bab-56b8300f33eb
2025-10-09 17:55:04,117 - DEBUG - Requesting: http://10.0.0.131:8082/routing-instance/c3d1c581-d0d9-4322-8f55-0d86de46ecdd
2025-10-09 17:55:04,130 - INFO - Verified VN network id 11 for VN 986b6a48-2e75-43b9-9bab-56b8300f33eb
2025-10-09 17:55:04,130 - INFO - Verifications in API Server for VN ctest-vn-46787613 passed
2025-10-09 17:55:04,130 - DEBUG - Requesting: http://10.0.0.131:8082/virtual-network/986b6a48-2e75-43b9-9bab-56b8300f33eb
2025-10-09 17:55:04,138 - DEBUG - Requesting: http://10.0.0.131:8082/routing-instance/c3d1c581-d0d9-4322-8f55-0d86de46ecdd
2025-10-09 17:55:04,145 - DEBUG - Requesting: http://10.0.0.131:8082/routing-instance/c3d1c581-d0d9-4322-8f55-0d86de46ecdd
2025-10-09 17:55:04,151 - DEBUG - Requesting: http://10.0.0.131:8082/route-target/81b785d0-b8e5-4669-b97c-94d027b29fc0
2025-10-09 17:55:04,163 - DEBUG - Control-node 10.0.0.131 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-23716992:ctest-vn-46787613', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-23716992', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10982988974522713017', 'uuid-lslong': '11217154645976626155'}, 'enable': 'true', 'created': '2025-10-09T17:55:01', 'last-modified': '2025-10-09T17:55:03', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.891010'}
2025-10-09 17:55:04,169 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-09 17:55:04,169 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-46787613 passed
2025-10-09 17:55:04,169 - DEBUG - ====Verifying policy data for ctest-vn-46787613 in API_Server ======
2025-10-09 17:55:04,169 - DEBUG - Requesting: http://10.0.0.131:8082/domains
2025-10-09 17:55:04,174 - DEBUG - Requesting: http://10.0.0.131:8082/domain/8aaa9f34-8ac1-43f6-a406-a0f87f9d8130
2025-10-09 17:55:04,185 - DEBUG - Requesting: http://10.0.0.131:8082/project/01da1ad8-ee5e-4f97-ae59-93cd1c45c206
2025-10-09 17:55:04,252 - DEBUG - Requesting: http://10.0.0.131:8082/virtual-network/986b6a48-2e75-43b9-9bab-56b8300f33eb
2025-10-09 17:55:04,260 - DEBUG - ==>Verifying data for policy with id: 4a6ba37f-6f53-49a0-b96e-6974a1405ff2, fqn: ['default-domain', 'ctest-TestBasicPolicy-23716992', 'ctest-policy-allow-all-37822817']
2025-10-09 17:55:04,260 - INFO - VN ctest-vn-46787613 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-09 17:55:04,261 - DEBUG - Verifying the vn in opserver
2025-10-09 17:55:04,261 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-23716992:ctest-vn-46787613 virtual network link through opserver 10.0.0.131
2025-10-09 17:55:04,261 - DEBUG - Requesting: http://10.0.0.131:8081/analytics/uves/virtual-networks
2025-10-09 17:55:04,550 - DEBUG - Requesting: http://10.0.0.131:8081/analytics/uves/virtual-networks
2025-10-09 17:55:04,602 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-23716992:ctest-vn-46787613', 'href': 'http://10.0.0.131:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-23716992:ctest-vn-46787613?flat'}
2025-10-09 17:55:04,602 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-23716992:ctest-vn-46787613 is found in opserver
2025-10-09 17:55:04,615 - DEBUG - Do not have enough data to verify VN in agent
2025-10-09 17:55:04,619 - DEBUG - VRF ids for VN ctest-vn-46787613: {}
2025-10-09 17:55:04,619 - DEBUG - Requesting: http://10.0.0.131:8082/domains
2025-10-09 17:55:04,624 - DEBUG - Requesting: http://10.0.0.131:8082/domain/8aaa9f34-8ac1-43f6-a406-a0f87f9d8130
2025-10-09 17:55:04,634 - DEBUG - Requesting: http://10.0.0.131:8082/project/01da1ad8-ee5e-4f97-ae59-93cd1c45c206
2025-10-09 17:55:04,704 - DEBUG - Requesting: http://10.0.0.131:8082/virtual-network/8b55a177-aa67-4f00-9558-6ae06a93b317
2025-10-09 17:55:04,716 - DEBUG - Requesting: http://10.0.0.131:8082/virtual-network/8b55a177-aa67-4f00-9558-6ae06a93b317
2025-10-09 17:55:04,726 - DEBUG - Requesting: http://10.0.0.131:8082/routing-instance/d8163a0a-a1e1-4c1f-9443-38708f44d6a1
2025-10-09 17:55:04,733 - DEBUG - Requesting: http://10.0.0.131:8082/routing-instance/d8163a0a-a1e1-4c1f-9443-38708f44d6a1
2025-10-09 17:55:04,741 - DEBUG - Requesting: http://10.0.0.131:8082/route-target/dd68414f-ceaa-485e-8c9c-045720d67267
2025-10-09 17:55:04,748 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-09 17:55:04,748 - DEBUG - Requesting: http://10.0.0.131:8082/virtual-network/8b55a177-aa67-4f00-9558-6ae06a93b317
2025-10-09 17:55:04,757 - DEBUG - Requesting: http://10.0.0.131:8082/routing-instance/d8163a0a-a1e1-4c1f-9443-38708f44d6a1
2025-10-09 17:55:04,772 - INFO - Verified VN network id 12 for VN 8b55a177-aa67-4f00-9558-6ae06a93b317
2025-10-09 17:55:04,772 - INFO - Verifications in API Server for VN ctest-vn-03478710 passed
2025-10-09 17:55:04,772 - DEBUG - Requesting: http://10.0.0.131:8082/virtual-network/8b55a177-aa67-4f00-9558-6ae06a93b317
2025-10-09 17:55:04,781 - DEBUG - Requesting: http://10.0.0.131:8082/routing-instance/d8163a0a-a1e1-4c1f-9443-38708f44d6a1
2025-10-09 17:55:04,788 - DEBUG - Requesting: http://10.0.0.131:8082/routing-instance/d8163a0a-a1e1-4c1f-9443-38708f44d6a1
2025-10-09 17:55:04,794 - DEBUG - Requesting: http://10.0.0.131:8082/route-target/dd68414f-ceaa-485e-8c9c-045720d67267
2025-10-09 17:55:04,805 - DEBUG - Control-node 10.0.0.131 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-23716992:ctest-vn-03478710', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-23716992', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10040108479624466176', 'uuid-lslong': '10761468821695083287'}, 'enable': 'true', 'created': '2025-10-09T17:55:02', 'last-modified': '2025-10-09T17:55:03', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.311272'}
2025-10-09 17:55:04,810 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-09 17:55:04,810 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-03478710 passed
2025-10-09 17:55:04,810 - DEBUG - ====Verifying policy data for ctest-vn-03478710 in API_Server ======
2025-10-09 17:55:04,810 - DEBUG - Requesting: http://10.0.0.131:8082/domains
2025-10-09 17:55:04,815 - DEBUG - Requesting: http://10.0.0.131:8082/domain/8aaa9f34-8ac1-43f6-a406-a0f87f9d8130
2025-10-09 17:55:04,824 - DEBUG - Requesting: http://10.0.0.131:8082/project/01da1ad8-ee5e-4f97-ae59-93cd1c45c206
2025-10-09 17:55:04,891 - DEBUG - Requesting: http://10.0.0.131:8082/virtual-network/8b55a177-aa67-4f00-9558-6ae06a93b317
2025-10-09 17:55:04,900 - DEBUG - ==>Verifying data for policy with id: 4a6ba37f-6f53-49a0-b96e-6974a1405ff2, fqn: ['default-domain', 'ctest-TestBasicPolicy-23716992', 'ctest-policy-allow-all-37822817']
2025-10-09 17:55:04,900 - INFO - VN ctest-vn-03478710 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-09 17:55:04,900 - DEBUG - Verifying the vn in opserver
2025-10-09 17:55:04,901 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-23716992:ctest-vn-03478710 virtual network link through opserver 10.0.0.131
2025-10-09 17:55:04,901 - DEBUG - Requesting: http://10.0.0.131:8081/analytics/uves/virtual-networks
2025-10-09 17:55:04,909 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-23716992:ctest-vn-03478710', 'href': 'http://10.0.0.131:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-23716992:ctest-vn-03478710?flat'}
2025-10-09 17:55:04,909 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-23716992:ctest-vn-03478710 is found in opserver
2025-10-09 17:55:04,921 - DEBUG - Do not have enough data to verify VN in agent
2025-10-09 17:55:04,926 - DEBUG - VRF ids for VN ctest-vn-03478710: {}
2025-10-09 17:55:04,991 - DEBUG - Services list from nova: [