2025-11-05 15:29:29,448 - INFO - Domain Default found not creating
2025-11-05 15:29:29,584 - INFO - Project ctest-TestBasicPolicy-06855402 not found, creating it
2025-11-05 15:29:30,015 - INFO - Created Project:ctest-TestBasicPolicy-06855402, ID : 96a8fb5d-4649-4110-b88f-fd749ef15aba
2025-11-05 15:29:31,418 - INFO - ================================================================================
2025-11-05 15:29:31,418 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-11-05 15:29:31,418 - 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-05 15:29:31,673 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.18': '0'}} with
2025-11-05 15:29:31,673 - INFO - Initial checks done. Running the testcase now
2025-11-05 15:29:31,673 - INFO -
2025-11-05 15:29:32,177 - DEBUG - Response for create_network : {'network': {'id': '6f3da031-3487-4a82-a421-c19cc628c608', 'name': 'ctest-vn-44046731', 'tenant_id': '96a8fb5d46494110b88ffd749ef15aba', 'project_id': '96a8fb5d46494110b88ffd749ef15aba', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-06855402', 'ctest-vn-44046731'], 'port_security_enabled': True, 'description': ''}}
2025-11-05 15:29:32,337 - DEBUG - Response for create_subnet : {'subnet': {'id': '55fe8529-149a-4052-94e8-8a4c3734a4b9', 'name': '', 'tenant_id': '96a8fb5d46494110b88ffd749ef15aba', 'network_id': '6f3da031-3487-4a82-a421-c19cc628c608', 'ip_version': 4, 'cidr': '2.179.139.64/26', 'allocation_pools': [{'start': '2.179.139.66', 'end': '2.179.139.126'}], 'gateway_ip': '2.179.139.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2.179.139.66', 'tags': [], 'project_id': '96a8fb5d46494110b88ffd749ef15aba'}}
2025-11-05 15:29:32,353 - INFO - Created VN ctest-vn-44046731
2025-11-05 15:29:32,408 - DEBUG - VN ctest-vn-44046731 UUID is 6f3da031-3487-4a82-a421-c19cc628c608
2025-11-05 15:29:32,711 - DEBUG - Response for create_network : {'network': {'id': 'f516cfd3-9894-4818-99f5-ef701b548d10', 'name': 'ctest-vn-26914342', 'tenant_id': '96a8fb5d46494110b88ffd749ef15aba', 'project_id': '96a8fb5d46494110b88ffd749ef15aba', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-06855402', 'ctest-vn-26914342'], 'port_security_enabled': True, 'description': ''}}
2025-11-05 15:29:32,916 - DEBUG - Response for create_subnet : {'subnet': {'id': '8d15a02f-e992-49b0-99c5-147942e95ac8', 'name': '', 'tenant_id': '96a8fb5d46494110b88ffd749ef15aba', 'network_id': 'f516cfd3-9894-4818-99f5-ef701b548d10', 'ip_version': 4, 'cidr': '158.110.39.64/26', 'allocation_pools': [{'start': '158.110.39.66', 'end': '158.110.39.126'}], 'gateway_ip': '158.110.39.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '158.110.39.66', 'tags': [], 'project_id': '96a8fb5d46494110b88ffd749ef15aba'}}
2025-11-05 15:29:32,931 - INFO - Created VN ctest-vn-26914342
2025-11-05 15:29:32,984 - DEBUG - VN ctest-vn-26914342 UUID is f516cfd3-9894-4818-99f5-ef701b548d10
2025-11-05 15:29:33,120 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-06855402:ctest-vn-44046731, 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-06855402:ctest-vn-26914342, 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-05 15:29:33,395 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '6f3da031-3487-4a82-a421-c19cc628c608', 'name': 'ctest-vn-44046731', 'tenant_id': '96a8fb5d46494110b88ffd749ef15aba', 'project_id': '96a8fb5d46494110b88ffd749ef15aba', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['55fe8529-149a-4052-94e8-8a4c3734a4b9'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-06855402', 'ctest-vn-44046731'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-06855402', 'ctest-policy-allow-all-49471384']], 'subnet_ipam': [{'subnet_cidr': '2.179.139.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-11-05 15:29:33,662 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'f516cfd3-9894-4818-99f5-ef701b548d10', 'name': 'ctest-vn-26914342', 'tenant_id': '96a8fb5d46494110b88ffd749ef15aba', 'project_id': '96a8fb5d46494110b88ffd749ef15aba', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['8d15a02f-e992-49b0-99c5-147942e95ac8'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-06855402', 'ctest-vn-26914342'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-06855402', 'ctest-policy-allow-all-49471384']], 'subnet_ipam': [{'subnet_cidr': '158.110.39.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-11-05 15:29:33,804 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-11-05 15:29:34,097 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-11-05 15:29:34,123 - DEBUG - Requesting: http://10.0.0.50:8082/domain/6e14b808-0b37-4900-b158-e3a368c5eb06
2025-11-05 15:29:34,134 - DEBUG - Requesting: http://10.0.0.50:8082/project/96a8fb5d-4649-4110-b88f-fd749ef15aba
2025-11-05 15:29:34,203 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/6f3da031-3487-4a82-a421-c19cc628c608
2025-11-05 15:29:34,214 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/6f3da031-3487-4a82-a421-c19cc628c608
2025-11-05 15:29:34,222 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/4d11d74e-c6c4-4dbc-8123-04fad660e627
2025-11-05 15:29:34,228 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/4d11d74e-c6c4-4dbc-8123-04fad660e627
2025-11-05 15:29:34,234 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/eb71b830-f098-47e7-8819-6678b0ac0a8e
2025-11-05 15:29:34,239 - DEBUG - Route Targets: ['target:64512:8000004']
2025-11-05 15:29:34,239 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/6f3da031-3487-4a82-a421-c19cc628c608
2025-11-05 15:29:34,247 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/4d11d74e-c6c4-4dbc-8123-04fad660e627
2025-11-05 15:29:34,260 - INFO - Verified VN network id 10 for VN 6f3da031-3487-4a82-a421-c19cc628c608
2025-11-05 15:29:34,260 - INFO - Verifications in API Server for VN ctest-vn-44046731 passed
2025-11-05 15:29:34,260 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/6f3da031-3487-4a82-a421-c19cc628c608
2025-11-05 15:29:34,269 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/4d11d74e-c6c4-4dbc-8123-04fad660e627
2025-11-05 15:29:34,276 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/4d11d74e-c6c4-4dbc-8123-04fad660e627
2025-11-05 15:29:34,284 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/eb71b830-f098-47e7-8819-6678b0ac0a8e
2025-11-05 15:29:34,295 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-06855402:ctest-vn-44046731', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-06855402', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8015739044984474242', 'uuid-lslong': '11826946975535253000'}, 'enable': 'true', 'created': '2025-11-05T15:29:32', 'last-modified': '2025-11-05T15:29:33', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.915060'}
2025-11-05 15:29:34,301 - DEBUG - Route Targets: ['target:64512:8000004']
2025-11-05 15:29:34,301 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-44046731 passed
2025-11-05 15:29:34,301 - DEBUG - ====Verifying policy data for ctest-vn-44046731 in API_Server ======
2025-11-05 15:29:34,301 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-11-05 15:29:34,306 - DEBUG - Requesting: http://10.0.0.50:8082/domain/6e14b808-0b37-4900-b158-e3a368c5eb06
2025-11-05 15:29:34,319 - DEBUG - Requesting: http://10.0.0.50:8082/project/96a8fb5d-4649-4110-b88f-fd749ef15aba
2025-11-05 15:29:34,388 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/6f3da031-3487-4a82-a421-c19cc628c608
2025-11-05 15:29:34,396 - DEBUG - ==>Verifying data for policy with id: bbd4a8f3-965e-41f5-9858-673ddb692943, fqn: ['default-domain', 'ctest-TestBasicPolicy-06855402', 'ctest-policy-allow-all-49471384']
2025-11-05 15:29:34,396 - INFO - VN ctest-vn-44046731 Policy verification: verify_vn_policy_in_api_server, status: True
2025-11-05 15:29:34,396 - DEBUG - Verifying the vn in opserver
2025-11-05 15:29:34,396 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-06855402:ctest-vn-44046731 virtual network link through opserver 10.0.0.50
2025-11-05 15:29:34,396 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2025-11-05 15:29:34,684 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2025-11-05 15:29:34,730 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-06855402:ctest-vn-44046731', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-06855402:ctest-vn-44046731?flat'}
2025-11-05 15:29:34,730 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-06855402:ctest-vn-44046731 is found in opserver
2025-11-05 15:29:34,738 - DEBUG - Do not have enough data to verify VN in agent
2025-11-05 15:29:34,742 - DEBUG - VRF ids for VN ctest-vn-44046731: {}
2025-11-05 15:29:34,742 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-11-05 15:29:34,746 - DEBUG - Requesting: http://10.0.0.50:8082/domain/6e14b808-0b37-4900-b158-e3a368c5eb06
2025-11-05 15:29:34,756 - DEBUG - Requesting: http://10.0.0.50:8082/project/96a8fb5d-4649-4110-b88f-fd749ef15aba
2025-11-05 15:29:34,824 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/f516cfd3-9894-4818-99f5-ef701b548d10
2025-11-05 15:29:34,833 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/f516cfd3-9894-4818-99f5-ef701b548d10
2025-11-05 15:29:34,840 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/c495feab-ab06-49bd-965b-751ae6707d57
2025-11-05 15:29:34,845 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/c495feab-ab06-49bd-965b-751ae6707d57
2025-11-05 15:29:34,849 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/1341b485-f38c-4e26-ac00-b800757cabd3
2025-11-05 15:29:34,854 - DEBUG - Route Targets: ['target:64512:8000005']
2025-11-05 15:29:34,854 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/f516cfd3-9894-4818-99f5-ef701b548d10
2025-11-05 15:29:34,860 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/c495feab-ab06-49bd-965b-751ae6707d57
2025-11-05 15:29:34,870 - INFO - Verified VN network id 11 for VN f516cfd3-9894-4818-99f5-ef701b548d10
2025-11-05 15:29:34,870 - INFO - Verifications in API Server for VN ctest-vn-26914342 passed
2025-11-05 15:29:34,870 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/f516cfd3-9894-4818-99f5-ef701b548d10
2025-11-05 15:29:34,876 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/c495feab-ab06-49bd-965b-751ae6707d57
2025-11-05 15:29:34,881 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/c495feab-ab06-49bd-965b-751ae6707d57
2025-11-05 15:29:34,885 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/1341b485-f38c-4e26-ac00-b800757cabd3
2025-11-05 15:29:34,894 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-06855402:ctest-vn-26914342', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-06855402', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17660531496484882456', 'uuid-lslong': '11094036521870986512'}, 'enable': 'true', 'created': '2025-11-05T15:29:32', 'last-modified': '2025-11-05T15:29:33', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.299247'}
2025-11-05 15:29:34,898 - DEBUG - Route Targets: ['target:64512:8000005']
2025-11-05 15:29:34,898 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-26914342 passed
2025-11-05 15:29:34,898 - DEBUG - ====Verifying policy data for ctest-vn-26914342 in API_Server ======
2025-11-05 15:29:34,898 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-11-05 15:29:34,902 - DEBUG - Requesting: http://10.0.0.50:8082/domain/6e14b808-0b37-4900-b158-e3a368c5eb06
2025-11-05 15:29:34,910 - DEBUG - Requesting: http://10.0.0.50:8082/project/96a8fb5d-4649-4110-b88f-fd749ef15aba
2025-11-05 15:29:34,977 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/f516cfd3-9894-4818-99f5-ef701b548d10
2025-11-05 15:29:34,984 - DEBUG - ==>Verifying data for policy with id: bbd4a8f3-965e-41f5-9858-673ddb692943, fqn: ['default-domain', 'ctest-TestBasicPolicy-06855402', 'ctest-policy-allow-all-49471384']
2025-11-05 15:29:34,984 - INFO - VN ctest-vn-26914342 Policy verification: verify_vn_policy_in_api_server, status: True
2025-11-05 15:29:34,984 - DEBUG - Verifying the vn in opserver
2025-11-05 15:29:34,984 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-06855402:ctest-vn-26914342 virtual network link through opserver 10.0.0.50
2025-11-05 15:29:34,984 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2025-11-05 15:29:34,992 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-06855402:ctest-vn-26914342', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-06855402:ctest-vn-26914342?flat'}
2025-11-05 15:29:34,992 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-06855402:ctest-vn-26914342 is found in opserver
2025-11-05 15:29:35,000 - DEBUG - Do not have enough data to verify VN in agent
2025-11-05 15:29:35,004 - DEBUG - VRF ids for VN ctest-vn-26914342: {}
2025-11-05 15:29:35,058 - DEBUG - Services list from nova: [