2025-11-17 20:45:58,777 - INFO - Domain Default found not creating
2025-11-17 20:45:58,944 - INFO - Project ctest-TestBasicPolicy-21009898 not found, creating it
2025-11-17 20:45:59,410 - INFO - Created Project:ctest-TestBasicPolicy-21009898, ID : c28b4c1d-3304-49c5-8492-22dfe63d8497
2025-11-17 20:46:00,971 - INFO - ================================================================================
2025-11-17 20:46:00,971 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-11-17 20:46:00,971 - 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-17 20:46:01,231 - DEBUG - Nothing to compare xmpp stats {'10.0.0.33': {'10.20.0.254': '0'}} with
2025-11-17 20:46:01,231 - INFO - Initial checks done. Running the testcase now
2025-11-17 20:46:01,231 - INFO -
2025-11-17 20:46:01,852 - DEBUG - Response for create_network : {'network': {'id': '2e66b97d-e183-4849-ae10-8f784e777f88', 'name': 'ctest-vn-34492353', 'tenant_id': 'c28b4c1d330449c5849222dfe63d8497', 'project_id': 'c28b4c1d330449c5849222dfe63d8497', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-21009898', 'ctest-vn-34492353'], 'port_security_enabled': True, 'description': ''}}
2025-11-17 20:46:02,028 - DEBUG - Response for create_subnet : {'subnet': {'id': 'bfee3211-e7f9-4db1-8d4a-578e41070883', 'name': '', 'tenant_id': 'c28b4c1d330449c5849222dfe63d8497', 'network_id': '2e66b97d-e183-4849-ae10-8f784e777f88', 'ip_version': 4, 'cidr': '129.40.196.0/26', 'allocation_pools': [{'start': '129.40.196.2', 'end': '129.40.196.62'}], 'gateway_ip': '129.40.196.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '129.40.196.2', 'tags': [], 'project_id': 'c28b4c1d330449c5849222dfe63d8497'}}
2025-11-17 20:46:02,052 - INFO - Created VN ctest-vn-34492353
2025-11-17 20:46:02,104 - DEBUG - VN ctest-vn-34492353 UUID is 2e66b97d-e183-4849-ae10-8f784e777f88
2025-11-17 20:46:02,447 - DEBUG - Response for create_network : {'network': {'id': 'e088051d-e74b-4934-b27d-6493a4fd678a', 'name': 'ctest-vn-31557610', 'tenant_id': 'c28b4c1d330449c5849222dfe63d8497', 'project_id': 'c28b4c1d330449c5849222dfe63d8497', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-21009898', 'ctest-vn-31557610'], 'port_security_enabled': True, 'description': ''}}
2025-11-17 20:46:02,636 - DEBUG - Response for create_subnet : {'subnet': {'id': '22b7a6f6-a386-4da0-ba3f-18daf37c4087', 'name': '', 'tenant_id': 'c28b4c1d330449c5849222dfe63d8497', 'network_id': 'e088051d-e74b-4934-b27d-6493a4fd678a', 'ip_version': 4, 'cidr': '6.251.37.128/26', 'allocation_pools': [{'start': '6.251.37.130', 'end': '6.251.37.190'}], 'gateway_ip': '6.251.37.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '6.251.37.130', 'tags': [], 'project_id': 'c28b4c1d330449c5849222dfe63d8497'}}
2025-11-17 20:46:02,658 - INFO - Created VN ctest-vn-31557610
2025-11-17 20:46:02,712 - DEBUG - VN ctest-vn-31557610 UUID is e088051d-e74b-4934-b27d-6493a4fd678a
2025-11-17 20:46:02,836 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-21009898:ctest-vn-34492353, 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-21009898:ctest-vn-31557610, 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-17 20:46:03,133 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '2e66b97d-e183-4849-ae10-8f784e777f88', 'name': 'ctest-vn-34492353', 'tenant_id': 'c28b4c1d330449c5849222dfe63d8497', 'project_id': 'c28b4c1d330449c5849222dfe63d8497', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['bfee3211-e7f9-4db1-8d4a-578e41070883'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-21009898', 'ctest-vn-34492353'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-21009898', 'ctest-policy-allow-all-75533831']], 'subnet_ipam': [{'subnet_cidr': '129.40.196.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-11-17 20:46:03,429 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'e088051d-e74b-4934-b27d-6493a4fd678a', 'name': 'ctest-vn-31557610', 'tenant_id': 'c28b4c1d330449c5849222dfe63d8497', 'project_id': 'c28b4c1d330449c5849222dfe63d8497', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['22b7a6f6-a386-4da0-ba3f-18daf37c4087'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-21009898', 'ctest-vn-31557610'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-21009898', 'ctest-policy-allow-all-75533831']], 'subnet_ipam': [{'subnet_cidr': '6.251.37.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-11-17 20:46:03,588 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2025-11-17 20:46:03,884 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2025-11-17 20:46:03,920 - DEBUG - Requesting: http://10.0.0.33:8082/domain/5fa1d011-9ea8-4632-ba8d-0e667b6ce2c5
2025-11-17 20:46:03,934 - DEBUG - Requesting: http://10.0.0.33:8082/project/c28b4c1d-3304-49c5-8492-22dfe63d8497
2025-11-17 20:46:04,022 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/2e66b97d-e183-4849-ae10-8f784e777f88
2025-11-17 20:46:04,036 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/2e66b97d-e183-4849-ae10-8f784e777f88
2025-11-17 20:46:04,047 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/f235ef56-560a-4482-a14f-55ba862d6ffe
2025-11-17 20:46:04,056 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/f235ef56-560a-4482-a14f-55ba862d6ffe
2025-11-17 20:46:04,065 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/2593516a-6bc0-471c-9fdf-d01e3a10a818
2025-11-17 20:46:04,075 - DEBUG - Route Targets: ['target:64512:8000004']
2025-11-17 20:46:04,075 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/2e66b97d-e183-4849-ae10-8f784e777f88
2025-11-17 20:46:04,087 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/f235ef56-560a-4482-a14f-55ba862d6ffe
2025-11-17 20:46:04,103 - INFO - Verified VN network id 12 for VN 2e66b97d-e183-4849-ae10-8f784e777f88
2025-11-17 20:46:04,104 - INFO - Verifications in API Server for VN ctest-vn-34492353 passed
2025-11-17 20:46:04,104 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/2e66b97d-e183-4849-ae10-8f784e777f88
2025-11-17 20:46:04,116 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/f235ef56-560a-4482-a14f-55ba862d6ffe
2025-11-17 20:46:04,125 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/f235ef56-560a-4482-a14f-55ba862d6ffe
2025-11-17 20:46:04,132 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/2593516a-6bc0-471c-9fdf-d01e3a10a818
2025-11-17 20:46:04,144 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-21009898:ctest-vn-34492353', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-21009898', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3343563723674699849', 'uuid-lslong': '12542682709102133128'}, 'enable': 'true', 'created': '2025-11-17T20:46:01', 'last-modified': '2025-11-17T20:46:03', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.033061'}
2025-11-17 20:46:04,152 - DEBUG - Route Targets: ['target:64512:8000004']
2025-11-17 20:46:04,152 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-34492353 passed
2025-11-17 20:46:04,152 - DEBUG - ====Verifying policy data for ctest-vn-34492353 in API_Server ======
2025-11-17 20:46:04,152 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2025-11-17 20:46:04,158 - DEBUG - Requesting: http://10.0.0.33:8082/domain/5fa1d011-9ea8-4632-ba8d-0e667b6ce2c5
2025-11-17 20:46:04,173 - DEBUG - Requesting: http://10.0.0.33:8082/project/c28b4c1d-3304-49c5-8492-22dfe63d8497
2025-11-17 20:46:04,250 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/2e66b97d-e183-4849-ae10-8f784e777f88
2025-11-17 20:46:04,261 - DEBUG - ==>Verifying data for policy with id: bdf7020c-60bf-4505-a604-225742ebda0f, fqn: ['default-domain', 'ctest-TestBasicPolicy-21009898', 'ctest-policy-allow-all-75533831']
2025-11-17 20:46:04,261 - INFO - VN ctest-vn-34492353 Policy verification: verify_vn_policy_in_api_server, status: True
2025-11-17 20:46:04,261 - DEBUG - Verifying the vn in opserver
2025-11-17 20:46:04,261 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-21009898:ctest-vn-34492353 virtual network link through opserver 10.0.0.33
2025-11-17 20:46:04,261 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks
2025-11-17 20:46:04,567 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks
2025-11-17 20:46:04,633 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-21009898:ctest-vn-34492353', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-21009898:ctest-vn-34492353?flat'}
2025-11-17 20:46:04,633 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-21009898:ctest-vn-34492353 is found in opserver
2025-11-17 20:46:04,645 - DEBUG - Do not have enough data to verify VN in agent
2025-11-17 20:46:04,650 - DEBUG - VRF ids for VN ctest-vn-34492353: {}
2025-11-17 20:46:04,651 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2025-11-17 20:46:04,657 - DEBUG - Requesting: http://10.0.0.33:8082/domain/5fa1d011-9ea8-4632-ba8d-0e667b6ce2c5
2025-11-17 20:46:04,672 - DEBUG - Requesting: http://10.0.0.33:8082/project/c28b4c1d-3304-49c5-8492-22dfe63d8497
2025-11-17 20:46:04,743 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/e088051d-e74b-4934-b27d-6493a4fd678a
2025-11-17 20:46:04,755 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/e088051d-e74b-4934-b27d-6493a4fd678a
2025-11-17 20:46:04,766 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/4e883620-777a-4cc6-9bf3-95fc9ae77b78
2025-11-17 20:46:04,774 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/4e883620-777a-4cc6-9bf3-95fc9ae77b78
2025-11-17 20:46:04,781 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/5257926e-3216-4006-a98d-d195e7bc076a
2025-11-17 20:46:04,788 - DEBUG - Route Targets: ['target:64512:8000005']
2025-11-17 20:46:04,788 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/e088051d-e74b-4934-b27d-6493a4fd678a
2025-11-17 20:46:04,797 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/4e883620-777a-4cc6-9bf3-95fc9ae77b78
2025-11-17 20:46:04,812 - INFO - Verified VN network id 13 for VN e088051d-e74b-4934-b27d-6493a4fd678a
2025-11-17 20:46:04,813 - INFO - Verifications in API Server for VN ctest-vn-31557610 passed
2025-11-17 20:46:04,813 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/e088051d-e74b-4934-b27d-6493a4fd678a
2025-11-17 20:46:04,824 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/4e883620-777a-4cc6-9bf3-95fc9ae77b78
2025-11-17 20:46:04,832 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/4e883620-777a-4cc6-9bf3-95fc9ae77b78
2025-11-17 20:46:04,841 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/5257926e-3216-4006-a98d-d195e7bc076a
2025-11-17 20:46:04,855 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-21009898:ctest-vn-31557610', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-21009898', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16179187287321168180', 'uuid-lslong': '12861546696131045258'}, 'enable': 'true', 'created': '2025-11-17T20:46:02', 'last-modified': '2025-11-17T20:46:03', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.511975'}
2025-11-17 20:46:04,861 - DEBUG - Route Targets: ['target:64512:8000005']
2025-11-17 20:46:04,861 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-31557610 passed
2025-11-17 20:46:04,861 - DEBUG - ====Verifying policy data for ctest-vn-31557610 in API_Server ======
2025-11-17 20:46:04,862 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2025-11-17 20:46:04,868 - DEBUG - Requesting: http://10.0.0.33:8082/domain/5fa1d011-9ea8-4632-ba8d-0e667b6ce2c5
2025-11-17 20:46:04,881 - DEBUG - Requesting: http://10.0.0.33:8082/project/c28b4c1d-3304-49c5-8492-22dfe63d8497
2025-11-17 20:46:04,958 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/e088051d-e74b-4934-b27d-6493a4fd678a
2025-11-17 20:46:04,967 - DEBUG - ==>Verifying data for policy with id: bdf7020c-60bf-4505-a604-225742ebda0f, fqn: ['default-domain', 'ctest-TestBasicPolicy-21009898', 'ctest-policy-allow-all-75533831']
2025-11-17 20:46:04,967 - INFO - VN ctest-vn-31557610 Policy verification: verify_vn_policy_in_api_server, status: True
2025-11-17 20:46:04,967 - DEBUG - Verifying the vn in opserver
2025-11-17 20:46:04,967 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-21009898:ctest-vn-31557610 virtual network link through opserver 10.0.0.33
2025-11-17 20:46:04,967 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks
2025-11-17 20:46:04,979 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-21009898:ctest-vn-31557610', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-21009898:ctest-vn-31557610?flat'}
2025-11-17 20:46:04,979 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-21009898:ctest-vn-31557610 is found in opserver
2025-11-17 20:46:04,990 - DEBUG - Do not have enough data to verify VN in agent
2025-11-17 20:46:04,996 - DEBUG - VRF ids for VN ctest-vn-31557610: {}
2025-11-17 20:46:05,063 - DEBUG - Services list from nova: [