2025-08-11 18:33:19,407 - INFO - Domain Default found not creating
2025-08-11 18:33:19,531 - INFO - Project ctest-TestBasicPolicy-98427122 not found, creating it
2025-08-11 18:33:19,958 - INFO - Created Project:ctest-TestBasicPolicy-98427122, ID : 5f830cda-a691-498c-9dbb-2fd633db082c
2025-08-11 18:33:21,298 - INFO - ================================================================================
2025-08-11 18:33:21,298 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-08-11 18:33:21,298 - 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-08-11 18:33:21,555 - DEBUG - Nothing to compare xmpp stats {'10.0.0.242': {'10.20.0.254': '0'}} with
2025-08-11 18:33:21,555 - INFO - Initial checks done. Running the testcase now
2025-08-11 18:33:21,555 - INFO -
2025-08-11 18:33:22,076 - DEBUG - Response for create_network : {'network': {'id': '81ce38ff-7a13-4d57-886e-75a1b320b114', 'name': 'ctest-vn-14993540', 'tenant_id': '5f830cdaa691498c9dbb2fd633db082c', 'project_id': '5f830cdaa691498c9dbb2fd633db082c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-98427122', 'ctest-vn-14993540'], 'port_security_enabled': True, 'description': ''}}
2025-08-11 18:33:22,267 - DEBUG - Response for create_subnet : {'subnet': {'id': '3b62586c-b6fc-4c5c-9902-710ddc3c1bdf', 'name': '', 'tenant_id': '5f830cdaa691498c9dbb2fd633db082c', 'network_id': '81ce38ff-7a13-4d57-886e-75a1b320b114', 'ip_version': 4, 'cidr': '4.13.102.192/26', 'allocation_pools': [{'start': '4.13.102.194', 'end': '4.13.102.254'}], 'gateway_ip': '4.13.102.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '4.13.102.194', 'tags': [], 'project_id': '5f830cdaa691498c9dbb2fd633db082c'}}
2025-08-11 18:33:22,283 - INFO - Created VN ctest-vn-14993540
2025-08-11 18:33:22,333 - DEBUG - VN ctest-vn-14993540 UUID is 81ce38ff-7a13-4d57-886e-75a1b320b114
2025-08-11 18:33:22,643 - DEBUG - Response for create_network : {'network': {'id': '3a5ee3c6-b2ff-419b-b62f-1a31661694f5', 'name': 'ctest-vn-80708823', 'tenant_id': '5f830cdaa691498c9dbb2fd633db082c', 'project_id': '5f830cdaa691498c9dbb2fd633db082c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-98427122', 'ctest-vn-80708823'], 'port_security_enabled': True, 'description': ''}}
2025-08-11 18:33:22,816 - DEBUG - Response for create_subnet : {'subnet': {'id': '425e48df-2a18-406b-b2d8-7b04ff336d57', 'name': '', 'tenant_id': '5f830cdaa691498c9dbb2fd633db082c', 'network_id': '3a5ee3c6-b2ff-419b-b62f-1a31661694f5', 'ip_version': 4, 'cidr': '132.172.249.0/26', 'allocation_pools': [{'start': '132.172.249.2', 'end': '132.172.249.62'}], 'gateway_ip': '132.172.249.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '132.172.249.2', 'tags': [], 'project_id': '5f830cdaa691498c9dbb2fd633db082c'}}
2025-08-11 18:33:22,838 - INFO - Created VN ctest-vn-80708823
2025-08-11 18:33:22,889 - DEBUG - VN ctest-vn-80708823 UUID is 3a5ee3c6-b2ff-419b-b62f-1a31661694f5
2025-08-11 18:33:23,033 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-98427122:ctest-vn-14993540, 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-98427122:ctest-vn-80708823, 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-08-11 18:33:23,321 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '81ce38ff-7a13-4d57-886e-75a1b320b114', 'name': 'ctest-vn-14993540', 'tenant_id': '5f830cdaa691498c9dbb2fd633db082c', 'project_id': '5f830cdaa691498c9dbb2fd633db082c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['3b62586c-b6fc-4c5c-9902-710ddc3c1bdf'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-98427122', 'ctest-vn-14993540'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-98427122', 'ctest-policy-allow-all-21297176']], 'subnet_ipam': [{'subnet_cidr': '4.13.102.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-08-11 18:33:23,542 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '3a5ee3c6-b2ff-419b-b62f-1a31661694f5', 'name': 'ctest-vn-80708823', 'tenant_id': '5f830cdaa691498c9dbb2fd633db082c', 'project_id': '5f830cdaa691498c9dbb2fd633db082c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['425e48df-2a18-406b-b2d8-7b04ff336d57'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-98427122', 'ctest-vn-80708823'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-98427122', 'ctest-policy-allow-all-21297176']], 'subnet_ipam': [{'subnet_cidr': '132.172.249.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-08-11 18:33:23,713 - DEBUG - Requesting: http://10.0.0.242:8082/domains
2025-08-11 18:33:24,003 - DEBUG - Requesting: http://10.0.0.242:8082/domains
2025-08-11 18:33:24,034 - DEBUG - Requesting: http://10.0.0.242:8082/domain/ae624269-2d4a-472d-80bf-18980a270f1b
2025-08-11 18:33:24,045 - DEBUG - Requesting: http://10.0.0.242:8082/project/5f830cda-a691-498c-9dbb-2fd633db082c
2025-08-11 18:33:24,115 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/81ce38ff-7a13-4d57-886e-75a1b320b114
2025-08-11 18:33:24,124 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/81ce38ff-7a13-4d57-886e-75a1b320b114
2025-08-11 18:33:24,133 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/15b1701f-415f-47d9-a89e-8bdb02dc8659
2025-08-11 18:33:24,139 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/15b1701f-415f-47d9-a89e-8bdb02dc8659
2025-08-11 18:33:24,145 - DEBUG - Requesting: http://10.0.0.242:8082/route-target/f54e1503-10d3-401f-b5fa-ac6087993beb
2025-08-11 18:33:24,150 - DEBUG - Route Targets: ['target:64512:8000005']
2025-08-11 18:33:24,150 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/81ce38ff-7a13-4d57-886e-75a1b320b114
2025-08-11 18:33:24,158 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/15b1701f-415f-47d9-a89e-8bdb02dc8659
2025-08-11 18:33:24,170 - INFO - Verified VN network id 11 for VN 81ce38ff-7a13-4d57-886e-75a1b320b114
2025-08-11 18:33:24,170 - INFO - Verifications in API Server for VN ctest-vn-14993540 passed
2025-08-11 18:33:24,170 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/81ce38ff-7a13-4d57-886e-75a1b320b114
2025-08-11 18:33:24,178 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/15b1701f-415f-47d9-a89e-8bdb02dc8659
2025-08-11 18:33:24,184 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/15b1701f-415f-47d9-a89e-8bdb02dc8659
2025-08-11 18:33:24,190 - DEBUG - Requesting: http://10.0.0.242:8082/route-target/f54e1503-10d3-401f-b5fa-ac6087993beb
2025-08-11 18:33:24,200 - DEBUG - Control-node 10.0.0.242 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-98427122:ctest-vn-14993540', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-98427122', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9353476146011000151', 'uuid-lslong': '9830924373951820052'}, 'enable': 'true', 'created': '2025-08-11T18:33:22', 'last-modified': '2025-08-11T18:33:23', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.900185'}
2025-08-11 18:33:24,206 - DEBUG - Route Targets: ['target:64512:8000005']
2025-08-11 18:33:24,206 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-14993540 passed
2025-08-11 18:33:24,207 - DEBUG - ====Verifying policy data for ctest-vn-14993540 in API_Server ======
2025-08-11 18:33:24,207 - DEBUG - Requesting: http://10.0.0.242:8082/domains
2025-08-11 18:33:24,211 - DEBUG - Requesting: http://10.0.0.242:8082/domain/ae624269-2d4a-472d-80bf-18980a270f1b
2025-08-11 18:33:24,221 - DEBUG - Requesting: http://10.0.0.242:8082/project/5f830cda-a691-498c-9dbb-2fd633db082c
2025-08-11 18:33:24,290 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/81ce38ff-7a13-4d57-886e-75a1b320b114
2025-08-11 18:33:24,300 - DEBUG - ==>Verifying data for policy with id: feb0f912-cd04-4190-aa27-c14534b08b5e, fqn: ['default-domain', 'ctest-TestBasicPolicy-98427122', 'ctest-policy-allow-all-21297176']
2025-08-11 18:33:24,300 - INFO - VN ctest-vn-14993540 Policy verification: verify_vn_policy_in_api_server, status: True
2025-08-11 18:33:24,300 - DEBUG - Verifying the vn in opserver
2025-08-11 18:33:24,300 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-98427122:ctest-vn-14993540 virtual network link through opserver 10.0.0.242
2025-08-11 18:33:24,300 - DEBUG - Requesting: http://10.0.0.242:8081/analytics/uves/virtual-networks
2025-08-11 18:33:24,590 - DEBUG - Requesting: http://10.0.0.242:8081/analytics/uves/virtual-networks
2025-08-11 18:33:24,642 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-98427122:ctest-vn-14993540', 'href': 'http://10.0.0.242:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-98427122:ctest-vn-14993540?flat'}
2025-08-11 18:33:24,642 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-98427122:ctest-vn-14993540 is found in opserver
2025-08-11 18:33:24,653 - DEBUG - Do not have enough data to verify VN in agent
2025-08-11 18:33:24,657 - DEBUG - VRF ids for VN ctest-vn-14993540: {}
2025-08-11 18:33:24,657 - DEBUG - Requesting: http://10.0.0.242:8082/domains
2025-08-11 18:33:24,662 - DEBUG - Requesting: http://10.0.0.242:8082/domain/ae624269-2d4a-472d-80bf-18980a270f1b
2025-08-11 18:33:24,673 - DEBUG - Requesting: http://10.0.0.242:8082/project/5f830cda-a691-498c-9dbb-2fd633db082c
2025-08-11 18:33:24,742 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/3a5ee3c6-b2ff-419b-b62f-1a31661694f5
2025-08-11 18:33:24,752 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/3a5ee3c6-b2ff-419b-b62f-1a31661694f5
2025-08-11 18:33:24,761 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/df735eec-85ec-487b-a3a1-e5a74cd45b30
2025-08-11 18:33:24,767 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/df735eec-85ec-487b-a3a1-e5a74cd45b30
2025-08-11 18:33:24,773 - DEBUG - Requesting: http://10.0.0.242:8082/route-target/3081c413-5b56-4b35-b092-643836bae6e1
2025-08-11 18:33:24,778 - DEBUG - Route Targets: ['target:64512:8000006']
2025-08-11 18:33:24,778 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/3a5ee3c6-b2ff-419b-b62f-1a31661694f5
2025-08-11 18:33:24,786 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/df735eec-85ec-487b-a3a1-e5a74cd45b30
2025-08-11 18:33:24,798 - INFO - Verified VN network id 12 for VN 3a5ee3c6-b2ff-419b-b62f-1a31661694f5
2025-08-11 18:33:24,798 - INFO - Verifications in API Server for VN ctest-vn-80708823 passed
2025-08-11 18:33:24,798 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/3a5ee3c6-b2ff-419b-b62f-1a31661694f5
2025-08-11 18:33:24,807 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/df735eec-85ec-487b-a3a1-e5a74cd45b30
2025-08-11 18:33:24,813 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/df735eec-85ec-487b-a3a1-e5a74cd45b30
2025-08-11 18:33:24,818 - DEBUG - Requesting: http://10.0.0.242:8082/route-target/3081c413-5b56-4b35-b092-643836bae6e1
2025-08-11 18:33:24,829 - DEBUG - Control-node 10.0.0.242 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-98427122:ctest-vn-80708823', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-98427122', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '4206049544556724635', 'uuid-lslong': '13127740238276760821'}, 'enable': 'true', 'created': '2025-08-11T18:33:22', 'last-modified': '2025-08-11T18:33:23', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.307428'}
2025-08-11 18:33:24,834 - DEBUG - Route Targets: ['target:64512:8000006']
2025-08-11 18:33:24,835 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-80708823 passed
2025-08-11 18:33:24,835 - DEBUG - ====Verifying policy data for ctest-vn-80708823 in API_Server ======
2025-08-11 18:33:24,835 - DEBUG - Requesting: http://10.0.0.242:8082/domains
2025-08-11 18:33:24,840 - DEBUG - Requesting: http://10.0.0.242:8082/domain/ae624269-2d4a-472d-80bf-18980a270f1b
2025-08-11 18:33:24,850 - DEBUG - Requesting: http://10.0.0.242:8082/project/5f830cda-a691-498c-9dbb-2fd633db082c
2025-08-11 18:33:24,916 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/3a5ee3c6-b2ff-419b-b62f-1a31661694f5
2025-08-11 18:33:24,925 - DEBUG - ==>Verifying data for policy with id: feb0f912-cd04-4190-aa27-c14534b08b5e, fqn: ['default-domain', 'ctest-TestBasicPolicy-98427122', 'ctest-policy-allow-all-21297176']
2025-08-11 18:33:24,926 - INFO - VN ctest-vn-80708823 Policy verification: verify_vn_policy_in_api_server, status: True
2025-08-11 18:33:24,926 - DEBUG - Verifying the vn in opserver
2025-08-11 18:33:24,926 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-98427122:ctest-vn-80708823 virtual network link through opserver 10.0.0.242
2025-08-11 18:33:24,926 - DEBUG - Requesting: http://10.0.0.242:8081/analytics/uves/virtual-networks
2025-08-11 18:33:24,935 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-98427122:ctest-vn-80708823', 'href': 'http://10.0.0.242:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-98427122:ctest-vn-80708823?flat'}
2025-08-11 18:33:24,935 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-98427122:ctest-vn-80708823 is found in opserver
2025-08-11 18:33:24,944 - DEBUG - Do not have enough data to verify VN in agent
2025-08-11 18:33:24,949 - DEBUG - VRF ids for VN ctest-vn-80708823: {}
2025-08-11 18:33:24,996 - DEBUG - Services list from nova: [