2025-09-11 15:38:14,610 - INFO - Domain Default found not creating
2025-09-11 15:38:14,769 - INFO - Project ctest-TestBasicPolicy-63397067 not found, creating it
2025-09-11 15:38:15,239 - INFO - Created Project:ctest-TestBasicPolicy-63397067, ID : 7a74c13b-06ac-4a56-b533-dc790c52658b
2025-09-11 15:38:17,341 - INFO - ================================================================================
2025-09-11 15:38:17,341 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-09-11 15:38:17,341 - 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-09-11 15:38:17,617 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.17': '0'}} with
2025-09-11 15:38:17,617 - INFO - Initial checks done. Running the testcase now
2025-09-11 15:38:17,617 - INFO -
2025-09-11 15:38:18,180 - DEBUG - Response for create_network : {'network': {'id': '949cc8a9-36f1-46b4-a2cc-ee083600690f', 'name': 'ctest-vn-09430757', 'tenant_id': '7a74c13b06ac4a56b533dc790c52658b', 'project_id': '7a74c13b06ac4a56b533dc790c52658b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-63397067', 'ctest-vn-09430757'], 'port_security_enabled': True, 'description': ''}}
2025-09-11 15:38:18,353 - DEBUG - Response for create_subnet : {'subnet': {'id': '4d067152-b7ec-4c12-91d7-5dcd37b78656', 'name': '', 'tenant_id': '7a74c13b06ac4a56b533dc790c52658b', 'network_id': '949cc8a9-36f1-46b4-a2cc-ee083600690f', 'ip_version': 4, 'cidr': '32.15.16.128/26', 'allocation_pools': [{'start': '32.15.16.130', 'end': '32.15.16.190'}], 'gateway_ip': '32.15.16.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '32.15.16.130', 'tags': [], 'project_id': '7a74c13b06ac4a56b533dc790c52658b'}}
2025-09-11 15:38:18,369 - INFO - Created VN ctest-vn-09430757
2025-09-11 15:38:18,422 - DEBUG - VN ctest-vn-09430757 UUID is 949cc8a9-36f1-46b4-a2cc-ee083600690f
2025-09-11 15:38:18,708 - DEBUG - Response for create_network : {'network': {'id': 'a5a934b4-583c-487a-88ee-3484fb5bed38', 'name': 'ctest-vn-45393573', 'tenant_id': '7a74c13b06ac4a56b533dc790c52658b', 'project_id': '7a74c13b06ac4a56b533dc790c52658b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-63397067', 'ctest-vn-45393573'], 'port_security_enabled': True, 'description': ''}}
2025-09-11 15:38:18,937 - DEBUG - Response for create_subnet : {'subnet': {'id': '38295700-5a8a-498a-b868-b7ad02fcca5b', 'name': '', 'tenant_id': '7a74c13b06ac4a56b533dc790c52658b', 'network_id': 'a5a934b4-583c-487a-88ee-3484fb5bed38', 'ip_version': 4, 'cidr': '11.82.152.192/26', 'allocation_pools': [{'start': '11.82.152.194', 'end': '11.82.152.254'}], 'gateway_ip': '11.82.152.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '11.82.152.194', 'tags': [], 'project_id': '7a74c13b06ac4a56b533dc790c52658b'}}
2025-09-11 15:38:18,955 - INFO - Created VN ctest-vn-45393573
2025-09-11 15:38:19,006 - DEBUG - VN ctest-vn-45393573 UUID is a5a934b4-583c-487a-88ee-3484fb5bed38
2025-09-11 15:38:19,158 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-63397067:ctest-vn-09430757, 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-63397067:ctest-vn-45393573, 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-09-11 15:38:19,448 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '949cc8a9-36f1-46b4-a2cc-ee083600690f', 'name': 'ctest-vn-09430757', 'tenant_id': '7a74c13b06ac4a56b533dc790c52658b', 'project_id': '7a74c13b06ac4a56b533dc790c52658b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['4d067152-b7ec-4c12-91d7-5dcd37b78656'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-63397067', 'ctest-vn-09430757'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-63397067', 'ctest-policy-allow-all-95206683']], 'subnet_ipam': [{'subnet_cidr': '32.15.16.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-09-11 15:38:19,679 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'a5a934b4-583c-487a-88ee-3484fb5bed38', 'name': 'ctest-vn-45393573', 'tenant_id': '7a74c13b06ac4a56b533dc790c52658b', 'project_id': '7a74c13b06ac4a56b533dc790c52658b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['38295700-5a8a-498a-b868-b7ad02fcca5b'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-63397067', 'ctest-vn-45393573'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-63397067', 'ctest-policy-allow-all-95206683']], 'subnet_ipam': [{'subnet_cidr': '11.82.152.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-09-11 15:38:19,842 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-09-11 15:38:20,137 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-09-11 15:38:20,165 - DEBUG - Requesting: http://10.0.0.254:8082/domain/b51e17f8-b020-45bc-89db-83df02a5b2c7
2025-09-11 15:38:20,177 - DEBUG - Requesting: http://10.0.0.254:8082/project/7a74c13b-06ac-4a56-b533-dc790c52658b
2025-09-11 15:38:20,250 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/949cc8a9-36f1-46b4-a2cc-ee083600690f
2025-09-11 15:38:20,260 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/949cc8a9-36f1-46b4-a2cc-ee083600690f
2025-09-11 15:38:20,269 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/7534f848-3bda-4243-88d9-25546c78ebb1
2025-09-11 15:38:20,275 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/7534f848-3bda-4243-88d9-25546c78ebb1
2025-09-11 15:38:20,283 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/38759518-1f27-4383-96c4-12181e530104
2025-09-11 15:38:20,290 - DEBUG - Route Targets: ['target:64512:8000004']
2025-09-11 15:38:20,290 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/949cc8a9-36f1-46b4-a2cc-ee083600690f
2025-09-11 15:38:20,298 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/7534f848-3bda-4243-88d9-25546c78ebb1
2025-09-11 15:38:20,313 - INFO - Verified VN network id 11 for VN 949cc8a9-36f1-46b4-a2cc-ee083600690f
2025-09-11 15:38:20,313 - INFO - Verifications in API Server for VN ctest-vn-09430757 passed
2025-09-11 15:38:20,313 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/949cc8a9-36f1-46b4-a2cc-ee083600690f
2025-09-11 15:38:20,323 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/7534f848-3bda-4243-88d9-25546c78ebb1
2025-09-11 15:38:20,330 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/7534f848-3bda-4243-88d9-25546c78ebb1
2025-09-11 15:38:20,336 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/38759518-1f27-4383-96c4-12181e530104
2025-09-11 15:38:20,349 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-63397067:ctest-vn-09430757', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-63397067', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10708654643077007028', 'uuid-lslong': '11731012848426445071'}, 'enable': 'true', 'created': '2025-09-11T15:38:18', 'last-modified': '2025-09-11T15:38:19', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.918376'}
2025-09-11 15:38:20,355 - DEBUG - Route Targets: ['target:64512:8000004']
2025-09-11 15:38:20,355 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-09430757 passed
2025-09-11 15:38:20,356 - DEBUG - ====Verifying policy data for ctest-vn-09430757 in API_Server ======
2025-09-11 15:38:20,356 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-09-11 15:38:20,362 - DEBUG - Requesting: http://10.0.0.254:8082/domain/b51e17f8-b020-45bc-89db-83df02a5b2c7
2025-09-11 15:38:20,373 - DEBUG - Requesting: http://10.0.0.254:8082/project/7a74c13b-06ac-4a56-b533-dc790c52658b
2025-09-11 15:38:20,442 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/949cc8a9-36f1-46b4-a2cc-ee083600690f
2025-09-11 15:38:20,451 - DEBUG - ==>Verifying data for policy with id: cc14b11c-b4ad-442f-96ce-45b793ab489c, fqn: ['default-domain', 'ctest-TestBasicPolicy-63397067', 'ctest-policy-allow-all-95206683']
2025-09-11 15:38:20,452 - INFO - VN ctest-vn-09430757 Policy verification: verify_vn_policy_in_api_server, status: True
2025-09-11 15:38:20,452 - DEBUG - Verifying the vn in opserver
2025-09-11 15:38:20,452 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-63397067:ctest-vn-09430757 virtual network link through opserver 10.0.0.254
2025-09-11 15:38:20,452 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-09-11 15:38:20,754 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-09-11 15:38:20,814 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-63397067:ctest-vn-09430757', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-63397067:ctest-vn-09430757?flat'}
2025-09-11 15:38:20,814 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-63397067:ctest-vn-09430757 is found in opserver
2025-09-11 15:38:20,824 - DEBUG - Do not have enough data to verify VN in agent
2025-09-11 15:38:20,829 - DEBUG - VRF ids for VN ctest-vn-09430757: {}
2025-09-11 15:38:20,829 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-09-11 15:38:20,835 - DEBUG - Requesting: http://10.0.0.254:8082/domain/b51e17f8-b020-45bc-89db-83df02a5b2c7
2025-09-11 15:38:20,848 - DEBUG - Requesting: http://10.0.0.254:8082/project/7a74c13b-06ac-4a56-b533-dc790c52658b
2025-09-11 15:38:20,919 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/a5a934b4-583c-487a-88ee-3484fb5bed38
2025-09-11 15:38:20,931 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/a5a934b4-583c-487a-88ee-3484fb5bed38
2025-09-11 15:38:20,940 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/0234e3dd-b8a7-443a-b802-8c4c8d2e35f9
2025-09-11 15:38:20,947 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/0234e3dd-b8a7-443a-b802-8c4c8d2e35f9
2025-09-11 15:38:20,953 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/0a64dba1-d2d6-4cc1-921b-999405fb4c26
2025-09-11 15:38:20,960 - DEBUG - Route Targets: ['target:64512:8000005']
2025-09-11 15:38:20,960 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/a5a934b4-583c-487a-88ee-3484fb5bed38
2025-09-11 15:38:20,969 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/0234e3dd-b8a7-443a-b802-8c4c8d2e35f9
2025-09-11 15:38:20,983 - INFO - Verified VN network id 12 for VN a5a934b4-583c-487a-88ee-3484fb5bed38
2025-09-11 15:38:20,983 - INFO - Verifications in API Server for VN ctest-vn-45393573 passed
2025-09-11 15:38:20,983 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/a5a934b4-583c-487a-88ee-3484fb5bed38
2025-09-11 15:38:20,995 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/0234e3dd-b8a7-443a-b802-8c4c8d2e35f9
2025-09-11 15:38:21,004 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/0234e3dd-b8a7-443a-b802-8c4c8d2e35f9
2025-09-11 15:38:21,012 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/0a64dba1-d2d6-4cc1-921b-999405fb4c26
2025-09-11 15:38:21,026 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-63397067:ctest-vn-45393573', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-63397067', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11937130236501313658', 'uuid-lslong': '9866881579372768568'}, 'enable': 'true', 'created': '2025-09-11T15:38:18', 'last-modified': '2025-09-11T15:38:19', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.369433'}
2025-09-11 15:38:21,033 - DEBUG - Route Targets: ['target:64512:8000005']
2025-09-11 15:38:21,033 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-45393573 passed
2025-09-11 15:38:21,033 - DEBUG - ====Verifying policy data for ctest-vn-45393573 in API_Server ======
2025-09-11 15:38:21,033 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-09-11 15:38:21,039 - DEBUG - Requesting: http://10.0.0.254:8082/domain/b51e17f8-b020-45bc-89db-83df02a5b2c7
2025-09-11 15:38:21,050 - DEBUG - Requesting: http://10.0.0.254:8082/project/7a74c13b-06ac-4a56-b533-dc790c52658b
2025-09-11 15:38:21,118 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/a5a934b4-583c-487a-88ee-3484fb5bed38
2025-09-11 15:38:21,127 - DEBUG - ==>Verifying data for policy with id: cc14b11c-b4ad-442f-96ce-45b793ab489c, fqn: ['default-domain', 'ctest-TestBasicPolicy-63397067', 'ctest-policy-allow-all-95206683']
2025-09-11 15:38:21,127 - INFO - VN ctest-vn-45393573 Policy verification: verify_vn_policy_in_api_server, status: True
2025-09-11 15:38:21,127 - DEBUG - Verifying the vn in opserver
2025-09-11 15:38:21,127 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-63397067:ctest-vn-45393573 virtual network link through opserver 10.0.0.254
2025-09-11 15:38:21,127 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-09-11 15:38:21,137 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-63397067:ctest-vn-45393573', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-63397067:ctest-vn-45393573?flat'}
2025-09-11 15:38:21,137 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-63397067:ctest-vn-45393573 is found in opserver
2025-09-11 15:38:21,146 - DEBUG - Do not have enough data to verify VN in agent
2025-09-11 15:38:21,150 - DEBUG - VRF ids for VN ctest-vn-45393573: {}
2025-09-11 15:38:21,209 - DEBUG - Services list from nova: [