2025-07-22 13:50:53,267 - INFO - Domain Default found not creating
2025-07-22 13:50:53,425 - INFO - Project ctest-TestBasicPolicy-36425498 not found, creating it
2025-07-22 13:50:53,940 - INFO - Created Project:ctest-TestBasicPolicy-36425498, ID : 5d72b3f0-c843-4b92-b893-cf844d243e26
2025-07-22 13:50:55,461 - INFO - ================================================================================
2025-07-22 13:50:55,461 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-07-22 13:50:55,462 - 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-07-22 13:50:55,732 - DEBUG - Nothing to compare xmpp stats {'10.0.0.241': {'10.20.0.18': '0'}} with
2025-07-22 13:50:55,732 - INFO - Initial checks done. Running the testcase now
2025-07-22 13:50:55,732 - INFO -
2025-07-22 13:50:56,306 - DEBUG - Response for create_network : {'network': {'id': '4816d505-a99f-4b33-bf9d-efa209a32f74', 'name': 'ctest-vn-12823565', 'tenant_id': '5d72b3f0c8434b92b893cf844d243e26', 'project_id': '5d72b3f0c8434b92b893cf844d243e26', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-36425498', 'ctest-vn-12823565'], 'port_security_enabled': True, 'description': ''}}
2025-07-22 13:50:56,475 - DEBUG - Response for create_subnet : {'subnet': {'id': '0d5cf6da-f57c-4b6d-9afe-dc8d4b3228d0', 'name': '', 'tenant_id': '5d72b3f0c8434b92b893cf844d243e26', 'network_id': '4816d505-a99f-4b33-bf9d-efa209a32f74', 'ip_version': 4, 'cidr': '103.186.164.128/26', 'allocation_pools': [{'start': '103.186.164.130', 'end': '103.186.164.190'}], 'gateway_ip': '103.186.164.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '103.186.164.130', 'tags': [], 'project_id': '5d72b3f0c8434b92b893cf844d243e26'}}
2025-07-22 13:50:56,493 - INFO - Created VN ctest-vn-12823565
2025-07-22 13:50:56,547 - DEBUG - VN ctest-vn-12823565 UUID is 4816d505-a99f-4b33-bf9d-efa209a32f74
2025-07-22 13:50:56,846 - DEBUG - Response for create_network : {'network': {'id': '5106265b-7bc0-40a9-ab15-261227e1d4e1', 'name': 'ctest-vn-10999602', 'tenant_id': '5d72b3f0c8434b92b893cf844d243e26', 'project_id': '5d72b3f0c8434b92b893cf844d243e26', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-36425498', 'ctest-vn-10999602'], 'port_security_enabled': True, 'description': ''}}
2025-07-22 13:50:57,039 - DEBUG - Response for create_subnet : {'subnet': {'id': 'e2eb1c77-4de0-4efc-86e9-6387a0d8ea0d', 'name': '', 'tenant_id': '5d72b3f0c8434b92b893cf844d243e26', 'network_id': '5106265b-7bc0-40a9-ab15-261227e1d4e1', 'ip_version': 4, 'cidr': '153.49.47.0/26', 'allocation_pools': [{'start': '153.49.47.2', 'end': '153.49.47.62'}], 'gateway_ip': '153.49.47.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '153.49.47.2', 'tags': [], 'project_id': '5d72b3f0c8434b92b893cf844d243e26'}}
2025-07-22 13:50:57,060 - INFO - Created VN ctest-vn-10999602
2025-07-22 13:50:57,114 - DEBUG - VN ctest-vn-10999602 UUID is 5106265b-7bc0-40a9-ab15-261227e1d4e1
2025-07-22 13:50:57,278 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-36425498:ctest-vn-12823565, 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-36425498:ctest-vn-10999602, 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-07-22 13:50:57,587 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '4816d505-a99f-4b33-bf9d-efa209a32f74', 'name': 'ctest-vn-12823565', 'tenant_id': '5d72b3f0c8434b92b893cf844d243e26', 'project_id': '5d72b3f0c8434b92b893cf844d243e26', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['0d5cf6da-f57c-4b6d-9afe-dc8d4b3228d0'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-36425498', 'ctest-vn-12823565'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-36425498', 'ctest-policy-allow-all-29740130']], 'subnet_ipam': [{'subnet_cidr': '103.186.164.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-07-22 13:50:57,873 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '5106265b-7bc0-40a9-ab15-261227e1d4e1', 'name': 'ctest-vn-10999602', 'tenant_id': '5d72b3f0c8434b92b893cf844d243e26', 'project_id': '5d72b3f0c8434b92b893cf844d243e26', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['e2eb1c77-4de0-4efc-86e9-6387a0d8ea0d'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-36425498', 'ctest-vn-10999602'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-36425498', 'ctest-policy-allow-all-29740130']], 'subnet_ipam': [{'subnet_cidr': '153.49.47.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-07-22 13:50:58,018 - DEBUG - Requesting: http://10.0.0.241:8082/domains
2025-07-22 13:50:58,327 - DEBUG - Requesting: http://10.0.0.241:8082/domains
2025-07-22 13:50:58,359 - DEBUG - Requesting: http://10.0.0.241:8082/domain/4f09116f-d2b9-4cb1-a35c-d32045569c17
2025-07-22 13:50:58,374 - DEBUG - Requesting: http://10.0.0.241:8082/project/5d72b3f0-c843-4b92-b893-cf844d243e26
2025-07-22 13:50:58,454 - DEBUG - Requesting: http://10.0.0.241:8082/virtual-network/4816d505-a99f-4b33-bf9d-efa209a32f74
2025-07-22 13:50:58,468 - DEBUG - Requesting: http://10.0.0.241:8082/virtual-network/4816d505-a99f-4b33-bf9d-efa209a32f74
2025-07-22 13:50:58,478 - DEBUG - Requesting: http://10.0.0.241:8082/routing-instance/b1b9fc46-4422-4522-a139-f98b83dcb769
2025-07-22 13:50:58,486 - DEBUG - Requesting: http://10.0.0.241:8082/routing-instance/b1b9fc46-4422-4522-a139-f98b83dcb769
2025-07-22 13:50:58,495 - DEBUG - Requesting: http://10.0.0.241:8082/route-target/a5957711-f50e-430e-9529-c2c069939a93
2025-07-22 13:50:58,504 - DEBUG - Route Targets: ['target:64512:8000005']
2025-07-22 13:50:58,504 - DEBUG - Requesting: http://10.0.0.241:8082/virtual-network/4816d505-a99f-4b33-bf9d-efa209a32f74
2025-07-22 13:50:58,515 - DEBUG - Requesting: http://10.0.0.241:8082/routing-instance/b1b9fc46-4422-4522-a139-f98b83dcb769
2025-07-22 13:50:58,530 - INFO - Verified VN network id 11 for VN 4816d505-a99f-4b33-bf9d-efa209a32f74
2025-07-22 13:50:58,530 - INFO - Verifications in API Server for VN ctest-vn-12823565 passed
2025-07-22 13:50:58,531 - DEBUG - Requesting: http://10.0.0.241:8082/virtual-network/4816d505-a99f-4b33-bf9d-efa209a32f74
2025-07-22 13:50:58,542 - DEBUG - Requesting: http://10.0.0.241:8082/routing-instance/b1b9fc46-4422-4522-a139-f98b83dcb769
2025-07-22 13:50:58,550 - DEBUG - Requesting: http://10.0.0.241:8082/routing-instance/b1b9fc46-4422-4522-a139-f98b83dcb769
2025-07-22 13:50:58,558 - DEBUG - Requesting: http://10.0.0.241:8082/route-target/a5957711-f50e-430e-9529-c2c069939a93
2025-07-22 13:50:58,574 - DEBUG - Control-node 10.0.0.241 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-36425498:ctest-vn-12823565', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-36425498', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5194573440515787571', 'uuid-lslong': '13807455511813238644'}, 'enable': 'true', 'created': '2025-07-22T13:50:56', 'last-modified': '2025-07-22T13:50:57', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.009638'}
2025-07-22 13:50:58,582 - DEBUG - Route Targets: ['target:64512:8000005']
2025-07-22 13:50:58,582 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-12823565 passed
2025-07-22 13:50:58,582 - DEBUG - ====Verifying policy data for ctest-vn-12823565 in API_Server ======
2025-07-22 13:50:58,582 - DEBUG - Requesting: http://10.0.0.241:8082/domains
2025-07-22 13:50:58,589 - DEBUG - Requesting: http://10.0.0.241:8082/domain/4f09116f-d2b9-4cb1-a35c-d32045569c17
2025-07-22 13:50:58,603 - DEBUG - Requesting: http://10.0.0.241:8082/project/5d72b3f0-c843-4b92-b893-cf844d243e26
2025-07-22 13:50:58,677 - DEBUG - Requesting: http://10.0.0.241:8082/virtual-network/4816d505-a99f-4b33-bf9d-efa209a32f74
2025-07-22 13:50:58,689 - DEBUG - ==>Verifying data for policy with id: 4f787444-e097-4952-9189-da179b3d7223, fqn: ['default-domain', 'ctest-TestBasicPolicy-36425498', 'ctest-policy-allow-all-29740130']
2025-07-22 13:50:58,689 - INFO - VN ctest-vn-12823565 Policy verification: verify_vn_policy_in_api_server, status: True
2025-07-22 13:50:58,689 - DEBUG - Verifying the vn in opserver
2025-07-22 13:50:58,689 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-36425498:ctest-vn-12823565 virtual network link through opserver 10.0.0.241
2025-07-22 13:50:58,689 - DEBUG - Requesting: http://10.0.0.241:8081/analytics/uves/virtual-networks
2025-07-22 13:50:58,983 - DEBUG - Requesting: http://10.0.0.241:8081/analytics/uves/virtual-networks
2025-07-22 13:50:59,042 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-36425498:ctest-vn-12823565', 'href': 'http://10.0.0.241:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-36425498:ctest-vn-12823565?flat'}
2025-07-22 13:50:59,042 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-36425498:ctest-vn-12823565 is found in opserver
2025-07-22 13:50:59,054 - DEBUG - Do not have enough data to verify VN in agent
2025-07-22 13:50:59,060 - DEBUG - VRF ids for VN ctest-vn-12823565: {}
2025-07-22 13:50:59,060 - DEBUG - Requesting: http://10.0.0.241:8082/domains
2025-07-22 13:50:59,066 - DEBUG - Requesting: http://10.0.0.241:8082/domain/4f09116f-d2b9-4cb1-a35c-d32045569c17
2025-07-22 13:50:59,080 - DEBUG - Requesting: http://10.0.0.241:8082/project/5d72b3f0-c843-4b92-b893-cf844d243e26
2025-07-22 13:50:59,154 - DEBUG - Requesting: http://10.0.0.241:8082/virtual-network/5106265b-7bc0-40a9-ab15-261227e1d4e1
2025-07-22 13:50:59,173 - DEBUG - Requesting: http://10.0.0.241:8082/virtual-network/5106265b-7bc0-40a9-ab15-261227e1d4e1
2025-07-22 13:50:59,184 - DEBUG - Requesting: http://10.0.0.241:8082/routing-instance/4abf6142-0c50-451d-8153-a5fc7fdb8b2c
2025-07-22 13:50:59,192 - DEBUG - Requesting: http://10.0.0.241:8082/routing-instance/4abf6142-0c50-451d-8153-a5fc7fdb8b2c
2025-07-22 13:50:59,200 - DEBUG - Requesting: http://10.0.0.241:8082/route-target/98d2af94-afac-45ea-a804-95085ed2f16c
2025-07-22 13:50:59,207 - DEBUG - Route Targets: ['target:64512:8000006']
2025-07-22 13:50:59,207 - DEBUG - Requesting: http://10.0.0.241:8082/virtual-network/5106265b-7bc0-40a9-ab15-261227e1d4e1
2025-07-22 13:50:59,219 - DEBUG - Requesting: http://10.0.0.241:8082/routing-instance/4abf6142-0c50-451d-8153-a5fc7fdb8b2c
2025-07-22 13:50:59,236 - INFO - Verified VN network id 12 for VN 5106265b-7bc0-40a9-ab15-261227e1d4e1
2025-07-22 13:50:59,236 - INFO - Verifications in API Server for VN ctest-vn-10999602 passed
2025-07-22 13:50:59,236 - DEBUG - Requesting: http://10.0.0.241:8082/virtual-network/5106265b-7bc0-40a9-ab15-261227e1d4e1
2025-07-22 13:50:59,248 - DEBUG - Requesting: http://10.0.0.241:8082/routing-instance/4abf6142-0c50-451d-8153-a5fc7fdb8b2c
2025-07-22 13:50:59,257 - DEBUG - Requesting: http://10.0.0.241:8082/routing-instance/4abf6142-0c50-451d-8153-a5fc7fdb8b2c
2025-07-22 13:50:59,264 - DEBUG - Requesting: http://10.0.0.241:8082/route-target/98d2af94-afac-45ea-a804-95085ed2f16c
2025-07-22 13:50:59,278 - DEBUG - Control-node 10.0.0.241 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-36425498:ctest-vn-10999602', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-36425498', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5838396141292503209', 'uuid-lslong': '12327801414416979169'}, 'enable': 'true', 'created': '2025-07-22T13:50:56', 'last-modified': '2025-07-22T13:50:57', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.479792'}
2025-07-22 13:50:59,285 - DEBUG - Route Targets: ['target:64512:8000006']
2025-07-22 13:50:59,285 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-10999602 passed
2025-07-22 13:50:59,285 - DEBUG - ====Verifying policy data for ctest-vn-10999602 in API_Server ======
2025-07-22 13:50:59,285 - DEBUG - Requesting: http://10.0.0.241:8082/domains
2025-07-22 13:50:59,291 - DEBUG - Requesting: http://10.0.0.241:8082/domain/4f09116f-d2b9-4cb1-a35c-d32045569c17
2025-07-22 13:50:59,305 - DEBUG - Requesting: http://10.0.0.241:8082/project/5d72b3f0-c843-4b92-b893-cf844d243e26
2025-07-22 13:50:59,381 - DEBUG - Requesting: http://10.0.0.241:8082/virtual-network/5106265b-7bc0-40a9-ab15-261227e1d4e1
2025-07-22 13:50:59,392 - DEBUG - ==>Verifying data for policy with id: 4f787444-e097-4952-9189-da179b3d7223, fqn: ['default-domain', 'ctest-TestBasicPolicy-36425498', 'ctest-policy-allow-all-29740130']
2025-07-22 13:50:59,392 - INFO - VN ctest-vn-10999602 Policy verification: verify_vn_policy_in_api_server, status: True
2025-07-22 13:50:59,392 - DEBUG - Verifying the vn in opserver
2025-07-22 13:50:59,392 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-36425498:ctest-vn-10999602 virtual network link through opserver 10.0.0.241
2025-07-22 13:50:59,392 - DEBUG - Requesting: http://10.0.0.241:8081/analytics/uves/virtual-networks
2025-07-22 13:50:59,404 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-36425498:ctest-vn-10999602', 'href': 'http://10.0.0.241:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-36425498:ctest-vn-10999602?flat'}
2025-07-22 13:50:59,404 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-36425498:ctest-vn-10999602 is found in opserver
2025-07-22 13:50:59,417 - DEBUG - Do not have enough data to verify VN in agent
2025-07-22 13:50:59,423 - DEBUG - VRF ids for VN ctest-vn-10999602: {}
2025-07-22 13:50:59,484 - DEBUG - Services list from nova: [