2026-02-02 08:57:10,798 - INFO - Domain Default found not creating
2026-02-02 08:57:10,956 - INFO - Project ctest-TestBasicPolicy-59805969 not found, creating it
2026-02-02 08:57:11,401 - INFO - Created Project:ctest-TestBasicPolicy-59805969, ID : 28061efd-8100-4c65-b826-697b81f74acc
2026-02-02 08:57:12,844 - INFO - ================================================================================
2026-02-02 08:57:12,844 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-02-02 08:57:12,844 - 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
2026-02-02 08:57:13,101 - DEBUG - Nothing to compare xmpp stats {'10.0.0.129': {'10.20.0.17': '0'}} with
2026-02-02 08:57:13,101 - INFO - Initial checks done. Running the testcase now
2026-02-02 08:57:13,101 - INFO -
2026-02-02 08:57:13,644 - DEBUG - Response for create_network : {'network': {'id': '6c3204ee-77e4-467a-a811-57de84387387', 'name': 'ctest-vn-92779029', 'tenant_id': '28061efd81004c65b826697b81f74acc', 'project_id': '28061efd81004c65b826697b81f74acc', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-59805969', 'ctest-vn-92779029'], 'port_security_enabled': True, 'description': ''}}
2026-02-02 08:57:13,832 - DEBUG - Response for create_subnet : {'subnet': {'id': 'c7a787c5-1737-4440-b977-c3b989ebfbd8', 'name': '', 'tenant_id': '28061efd81004c65b826697b81f74acc', 'network_id': '6c3204ee-77e4-467a-a811-57de84387387', 'ip_version': 4, 'cidr': '31.173.88.64/26', 'allocation_pools': [{'start': '31.173.88.66', 'end': '31.173.88.126'}], 'gateway_ip': '31.173.88.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '31.173.88.66', 'tags': [], 'project_id': '28061efd81004c65b826697b81f74acc'}}
2026-02-02 08:57:13,854 - INFO - Created VN ctest-vn-92779029
2026-02-02 08:57:13,904 - DEBUG - VN ctest-vn-92779029 UUID is 6c3204ee-77e4-467a-a811-57de84387387
2026-02-02 08:57:14,211 - DEBUG - Response for create_network : {'network': {'id': '57c2c391-11f7-41a9-b96f-0e2b8332ae90', 'name': 'ctest-vn-16870444', 'tenant_id': '28061efd81004c65b826697b81f74acc', 'project_id': '28061efd81004c65b826697b81f74acc', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-59805969', 'ctest-vn-16870444'], 'port_security_enabled': True, 'description': ''}}
2026-02-02 08:57:14,353 - DEBUG - Response for create_subnet : {'subnet': {'id': '67f51709-3319-44c7-94ae-0b7957d12871', 'name': '', 'tenant_id': '28061efd81004c65b826697b81f74acc', 'network_id': '57c2c391-11f7-41a9-b96f-0e2b8332ae90', 'ip_version': 4, 'cidr': '21.139.214.0/26', 'allocation_pools': [{'start': '21.139.214.2', 'end': '21.139.214.62'}], 'gateway_ip': '21.139.214.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '21.139.214.2', 'tags': [], 'project_id': '28061efd81004c65b826697b81f74acc'}}
2026-02-02 08:57:14,373 - INFO - Created VN ctest-vn-16870444
2026-02-02 08:57:14,424 - DEBUG - VN ctest-vn-16870444 UUID is 57c2c391-11f7-41a9-b96f-0e2b8332ae90
2026-02-02 08:57:14,576 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-59805969:ctest-vn-92779029, 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-59805969:ctest-vn-16870444, 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]
2026-02-02 08:57:14,865 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '6c3204ee-77e4-467a-a811-57de84387387', 'name': 'ctest-vn-92779029', 'tenant_id': '28061efd81004c65b826697b81f74acc', 'project_id': '28061efd81004c65b826697b81f74acc', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['c7a787c5-1737-4440-b977-c3b989ebfbd8'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-59805969', 'ctest-vn-92779029'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-59805969', 'ctest-policy-allow-all-46978778']], 'subnet_ipam': [{'subnet_cidr': '31.173.88.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-02-02 08:57:15,084 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '57c2c391-11f7-41a9-b96f-0e2b8332ae90', 'name': 'ctest-vn-16870444', 'tenant_id': '28061efd81004c65b826697b81f74acc', 'project_id': '28061efd81004c65b826697b81f74acc', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['67f51709-3319-44c7-94ae-0b7957d12871'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-59805969', 'ctest-vn-16870444'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-59805969', 'ctest-policy-allow-all-46978778']], 'subnet_ipam': [{'subnet_cidr': '21.139.214.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-02-02 08:57:15,232 - DEBUG - Requesting: http://10.0.0.129:8082/domains
2026-02-02 08:57:15,540 - DEBUG - Requesting: http://10.0.0.129:8082/domains
2026-02-02 08:57:15,569 - DEBUG - Requesting: http://10.0.0.129:8082/domain/aaa9de63-b438-46cb-ab88-49aef5bedbdf
2026-02-02 08:57:15,580 - DEBUG - Requesting: http://10.0.0.129:8082/project/28061efd-8100-4c65-b826-697b81f74acc
2026-02-02 08:57:15,652 - DEBUG - Requesting: http://10.0.0.129:8082/virtual-network/6c3204ee-77e4-467a-a811-57de84387387
2026-02-02 08:57:15,662 - DEBUG - Requesting: http://10.0.0.129:8082/virtual-network/6c3204ee-77e4-467a-a811-57de84387387
2026-02-02 08:57:15,671 - DEBUG - Requesting: http://10.0.0.129:8082/routing-instance/402c115f-2a28-46a8-9072-c6e1dfb3cb4c
2026-02-02 08:57:15,677 - DEBUG - Requesting: http://10.0.0.129:8082/routing-instance/402c115f-2a28-46a8-9072-c6e1dfb3cb4c
2026-02-02 08:57:15,683 - DEBUG - Requesting: http://10.0.0.129:8082/route-target/c87f18c4-2105-43f8-9631-57354c3a862b
2026-02-02 08:57:15,689 - DEBUG - Route Targets: ['target:64512:8000004']
2026-02-02 08:57:15,689 - DEBUG - Requesting: http://10.0.0.129:8082/virtual-network/6c3204ee-77e4-467a-a811-57de84387387
2026-02-02 08:57:15,696 - DEBUG - Requesting: http://10.0.0.129:8082/routing-instance/402c115f-2a28-46a8-9072-c6e1dfb3cb4c
2026-02-02 08:57:15,708 - INFO - Verified VN network id 11 for VN 6c3204ee-77e4-467a-a811-57de84387387
2026-02-02 08:57:15,708 - INFO - Verifications in API Server for VN ctest-vn-92779029 passed
2026-02-02 08:57:15,708 - DEBUG - Requesting: http://10.0.0.129:8082/virtual-network/6c3204ee-77e4-467a-a811-57de84387387
2026-02-02 08:57:15,717 - DEBUG - Requesting: http://10.0.0.129:8082/routing-instance/402c115f-2a28-46a8-9072-c6e1dfb3cb4c
2026-02-02 08:57:15,723 - DEBUG - Requesting: http://10.0.0.129:8082/routing-instance/402c115f-2a28-46a8-9072-c6e1dfb3cb4c
2026-02-02 08:57:15,729 - DEBUG - Requesting: http://10.0.0.129:8082/route-target/c87f18c4-2105-43f8-9631-57354c3a862b
2026-02-02 08:57:15,740 - DEBUG - Control-node 10.0.0.129 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-59805969:ctest-vn-92779029', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-59805969', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7796299327191926394', 'uuid-lslong': '12110557486188622727'}, 'enable': 'true', 'created': '2026-02-02T08:57:13', 'last-modified': '2026-02-02T08:57:14', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.897323'}
2026-02-02 08:57:15,748 - DEBUG - Route Targets: ['target:64512:8000004']
2026-02-02 08:57:15,748 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-92779029 passed
2026-02-02 08:57:15,748 - DEBUG - ====Verifying policy data for ctest-vn-92779029 in API_Server ======
2026-02-02 08:57:15,749 - DEBUG - Requesting: http://10.0.0.129:8082/domains
2026-02-02 08:57:15,754 - DEBUG - Requesting: http://10.0.0.129:8082/domain/aaa9de63-b438-46cb-ab88-49aef5bedbdf
2026-02-02 08:57:15,765 - DEBUG - Requesting: http://10.0.0.129:8082/project/28061efd-8100-4c65-b826-697b81f74acc
2026-02-02 08:57:15,837 - DEBUG - Requesting: http://10.0.0.129:8082/virtual-network/6c3204ee-77e4-467a-a811-57de84387387
2026-02-02 08:57:15,847 - DEBUG - ==>Verifying data for policy with id: d21d9962-9df3-4d96-b63f-1aff2e655041, fqn: ['default-domain', 'ctest-TestBasicPolicy-59805969', 'ctest-policy-allow-all-46978778']
2026-02-02 08:57:15,847 - INFO - VN ctest-vn-92779029 Policy verification: verify_vn_policy_in_api_server, status: True
2026-02-02 08:57:15,847 - DEBUG - Verifying the vn in opserver
2026-02-02 08:57:15,847 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-59805969:ctest-vn-92779029 virtual network link through opserver 10.0.0.129
2026-02-02 08:57:15,847 - DEBUG - Requesting: http://10.0.0.129:8081/analytics/uves/virtual-networks
2026-02-02 08:57:16,155 - DEBUG - Requesting: http://10.0.0.129:8081/analytics/uves/virtual-networks
2026-02-02 08:57:16,213 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-59805969:ctest-vn-92779029', 'href': 'http://10.0.0.129:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-59805969:ctest-vn-92779029?flat'}
2026-02-02 08:57:16,214 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-59805969:ctest-vn-92779029 is found in opserver
2026-02-02 08:57:16,224 - DEBUG - Do not have enough data to verify VN in agent
2026-02-02 08:57:16,229 - DEBUG - VRF ids for VN ctest-vn-92779029: {}
2026-02-02 08:57:16,229 - DEBUG - Requesting: http://10.0.0.129:8082/domains
2026-02-02 08:57:16,234 - DEBUG - Requesting: http://10.0.0.129:8082/domain/aaa9de63-b438-46cb-ab88-49aef5bedbdf
2026-02-02 08:57:16,243 - DEBUG - Requesting: http://10.0.0.129:8082/project/28061efd-8100-4c65-b826-697b81f74acc
2026-02-02 08:57:16,315 - DEBUG - Requesting: http://10.0.0.129:8082/virtual-network/57c2c391-11f7-41a9-b96f-0e2b8332ae90
2026-02-02 08:57:16,328 - DEBUG - Requesting: http://10.0.0.129:8082/virtual-network/57c2c391-11f7-41a9-b96f-0e2b8332ae90
2026-02-02 08:57:16,337 - DEBUG - Requesting: http://10.0.0.129:8082/routing-instance/f467409e-6bb6-41a2-8cfe-924d07ff8ebb
2026-02-02 08:57:16,345 - DEBUG - Requesting: http://10.0.0.129:8082/routing-instance/f467409e-6bb6-41a2-8cfe-924d07ff8ebb
2026-02-02 08:57:16,351 - DEBUG - Requesting: http://10.0.0.129:8082/route-target/3c32eb28-9d82-43b4-a012-24185c6ebcfa
2026-02-02 08:57:16,359 - DEBUG - Route Targets: ['target:64512:8000005']
2026-02-02 08:57:16,359 - DEBUG - Requesting: http://10.0.0.129:8082/virtual-network/57c2c391-11f7-41a9-b96f-0e2b8332ae90
2026-02-02 08:57:16,367 - DEBUG - Requesting: http://10.0.0.129:8082/routing-instance/f467409e-6bb6-41a2-8cfe-924d07ff8ebb
2026-02-02 08:57:16,382 - INFO - Verified VN network id 12 for VN 57c2c391-11f7-41a9-b96f-0e2b8332ae90
2026-02-02 08:57:16,382 - INFO - Verifications in API Server for VN ctest-vn-16870444 passed
2026-02-02 08:57:16,382 - DEBUG - Requesting: http://10.0.0.129:8082/virtual-network/57c2c391-11f7-41a9-b96f-0e2b8332ae90
2026-02-02 08:57:16,390 - DEBUG - Requesting: http://10.0.0.129:8082/routing-instance/f467409e-6bb6-41a2-8cfe-924d07ff8ebb
2026-02-02 08:57:16,397 - DEBUG - Requesting: http://10.0.0.129:8082/routing-instance/f467409e-6bb6-41a2-8cfe-924d07ff8ebb
2026-02-02 08:57:16,404 - DEBUG - Requesting: http://10.0.0.129:8082/route-target/3c32eb28-9d82-43b4-a012-24185c6ebcfa
2026-02-02 08:57:16,416 - DEBUG - Control-node 10.0.0.129 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-59805969:ctest-vn-16870444', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-59805969', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6323831854620688809', 'uuid-lslong': '13361914199479070352'}, 'enable': 'true', 'created': '2026-02-02T08:57:14', 'last-modified': '2026-02-02T08:57:15', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.352083'}
2026-02-02 08:57:16,423 - DEBUG - Route Targets: ['target:64512:8000005']
2026-02-02 08:57:16,423 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-16870444 passed
2026-02-02 08:57:16,423 - DEBUG - ====Verifying policy data for ctest-vn-16870444 in API_Server ======
2026-02-02 08:57:16,423 - DEBUG - Requesting: http://10.0.0.129:8082/domains
2026-02-02 08:57:16,430 - DEBUG - Requesting: http://10.0.0.129:8082/domain/aaa9de63-b438-46cb-ab88-49aef5bedbdf
2026-02-02 08:57:16,444 - DEBUG - Requesting: http://10.0.0.129:8082/project/28061efd-8100-4c65-b826-697b81f74acc
2026-02-02 08:57:16,518 - DEBUG - Requesting: http://10.0.0.129:8082/virtual-network/57c2c391-11f7-41a9-b96f-0e2b8332ae90
2026-02-02 08:57:16,530 - DEBUG - ==>Verifying data for policy with id: d21d9962-9df3-4d96-b63f-1aff2e655041, fqn: ['default-domain', 'ctest-TestBasicPolicy-59805969', 'ctest-policy-allow-all-46978778']
2026-02-02 08:57:16,530 - INFO - VN ctest-vn-16870444 Policy verification: verify_vn_policy_in_api_server, status: True
2026-02-02 08:57:16,530 - DEBUG - Verifying the vn in opserver
2026-02-02 08:57:16,530 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-59805969:ctest-vn-16870444 virtual network link through opserver 10.0.0.129
2026-02-02 08:57:16,530 - DEBUG - Requesting: http://10.0.0.129:8081/analytics/uves/virtual-networks
2026-02-02 08:57:16,540 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-59805969:ctest-vn-16870444', 'href': 'http://10.0.0.129:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-59805969:ctest-vn-16870444?flat'}
2026-02-02 08:57:16,540 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-59805969:ctest-vn-16870444 is found in opserver
2026-02-02 08:57:16,553 - DEBUG - Do not have enough data to verify VN in agent
2026-02-02 08:57:16,558 - DEBUG - VRF ids for VN ctest-vn-16870444: {}
2026-02-02 08:57:16,620 - DEBUG - Services list from nova: [