2025-09-08 02:12:22,265 - INFO - Domain Default found not creating
2025-09-08 02:12:22,424 - INFO - Project ctest-TestBasicPolicy-45040999 not found, creating it
2025-09-08 02:12:22,863 - INFO - Created Project:ctest-TestBasicPolicy-45040999, ID : c2db1260-8c83-4a88-b4a2-d27cab142cad
2025-09-08 02:12:24,261 - INFO - ================================================================================
2025-09-08 02:12:24,261 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-09-08 02:12:24,261 - 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-08 02:12:24,515 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.193': '0'}} with
2025-09-08 02:12:24,515 - INFO - Initial checks done. Running the testcase now
2025-09-08 02:12:24,515 - INFO -
2025-09-08 02:12:25,036 - DEBUG - Response for create_network : {'network': {'id': 'eb64d01e-264a-423c-b5d0-0807c57a7037', 'name': 'ctest-vn-02035225', 'tenant_id': 'c2db12608c834a88b4a2d27cab142cad', 'project_id': 'c2db12608c834a88b4a2d27cab142cad', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-45040999', 'ctest-vn-02035225'], 'port_security_enabled': True, 'description': ''}}
2025-09-08 02:12:25,253 - DEBUG - Response for create_subnet : {'subnet': {'id': '84873569-ee95-4fa4-bcde-68910d07b1ea', 'name': '', 'tenant_id': 'c2db12608c834a88b4a2d27cab142cad', 'network_id': 'eb64d01e-264a-423c-b5d0-0807c57a7037', 'ip_version': 4, 'cidr': '139.144.143.64/26', 'allocation_pools': [{'start': '139.144.143.66', 'end': '139.144.143.126'}], 'gateway_ip': '139.144.143.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '139.144.143.66', 'tags': [], 'project_id': 'c2db12608c834a88b4a2d27cab142cad'}}
2025-09-08 02:12:25,269 - INFO - Created VN ctest-vn-02035225
2025-09-08 02:12:25,318 - DEBUG - VN ctest-vn-02035225 UUID is eb64d01e-264a-423c-b5d0-0807c57a7037
2025-09-08 02:12:25,632 - DEBUG - Response for create_network : {'network': {'id': '69971680-914c-413a-b9ff-f3f988a170f1', 'name': 'ctest-vn-81430306', 'tenant_id': 'c2db12608c834a88b4a2d27cab142cad', 'project_id': 'c2db12608c834a88b4a2d27cab142cad', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-45040999', 'ctest-vn-81430306'], 'port_security_enabled': True, 'description': ''}}
2025-09-08 02:12:25,813 - DEBUG - Response for create_subnet : {'subnet': {'id': '5cf2e52f-d168-43fe-ab25-7072efe70079', 'name': '', 'tenant_id': 'c2db12608c834a88b4a2d27cab142cad', 'network_id': '69971680-914c-413a-b9ff-f3f988a170f1', 'ip_version': 4, 'cidr': '187.185.180.0/26', 'allocation_pools': [{'start': '187.185.180.2', 'end': '187.185.180.62'}], 'gateway_ip': '187.185.180.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '187.185.180.2', 'tags': [], 'project_id': 'c2db12608c834a88b4a2d27cab142cad'}}
2025-09-08 02:12:25,831 - INFO - Created VN ctest-vn-81430306
2025-09-08 02:12:25,882 - DEBUG - VN ctest-vn-81430306 UUID is 69971680-914c-413a-b9ff-f3f988a170f1
2025-09-08 02:12:26,038 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-45040999:ctest-vn-02035225, 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-45040999:ctest-vn-81430306, 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-08 02:12:26,323 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'eb64d01e-264a-423c-b5d0-0807c57a7037', 'name': 'ctest-vn-02035225', 'tenant_id': 'c2db12608c834a88b4a2d27cab142cad', 'project_id': 'c2db12608c834a88b4a2d27cab142cad', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['84873569-ee95-4fa4-bcde-68910d07b1ea'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-45040999', 'ctest-vn-02035225'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-45040999', 'ctest-policy-allow-all-64944401']], 'subnet_ipam': [{'subnet_cidr': '139.144.143.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-09-08 02:12:26,598 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '69971680-914c-413a-b9ff-f3f988a170f1', 'name': 'ctest-vn-81430306', 'tenant_id': 'c2db12608c834a88b4a2d27cab142cad', 'project_id': 'c2db12608c834a88b4a2d27cab142cad', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['5cf2e52f-d168-43fe-ab25-7072efe70079'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-45040999', 'ctest-vn-81430306'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-45040999', 'ctest-policy-allow-all-64944401']], 'subnet_ipam': [{'subnet_cidr': '187.185.180.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-09-08 02:12:26,738 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-09-08 02:12:27,036 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-09-08 02:12:27,063 - DEBUG - Requesting: http://10.0.0.254:8082/domain/f6d224dc-7d6f-4398-979e-05f8884e665b
2025-09-08 02:12:27,074 - DEBUG - Requesting: http://10.0.0.254:8082/project/c2db1260-8c83-4a88-b4a2-d27cab142cad
2025-09-08 02:12:27,152 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/eb64d01e-264a-423c-b5d0-0807c57a7037
2025-09-08 02:12:27,162 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/eb64d01e-264a-423c-b5d0-0807c57a7037
2025-09-08 02:12:27,171 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/322c37af-8e3b-402d-b19c-14a3f0f42258
2025-09-08 02:12:27,177 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/322c37af-8e3b-402d-b19c-14a3f0f42258
2025-09-08 02:12:27,184 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/747f61cc-e15a-4779-8a35-b6c506407d6b
2025-09-08 02:12:27,190 - DEBUG - Route Targets: ['target:64512:8000004']
2025-09-08 02:12:27,190 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/eb64d01e-264a-423c-b5d0-0807c57a7037
2025-09-08 02:12:27,198 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/322c37af-8e3b-402d-b19c-14a3f0f42258
2025-09-08 02:12:27,209 - INFO - Verified VN network id 12 for VN eb64d01e-264a-423c-b5d0-0807c57a7037
2025-09-08 02:12:27,209 - INFO - Verifications in API Server for VN ctest-vn-02035225 passed
2025-09-08 02:12:27,209 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/eb64d01e-264a-423c-b5d0-0807c57a7037
2025-09-08 02:12:27,218 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/322c37af-8e3b-402d-b19c-14a3f0f42258
2025-09-08 02:12:27,223 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/322c37af-8e3b-402d-b19c-14a3f0f42258
2025-09-08 02:12:27,229 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/747f61cc-e15a-4779-8a35-b6c506407d6b
2025-09-08 02:12:27,239 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-45040999:ctest-vn-02035225', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-45040999', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16961910924494127676', 'uuid-lslong': '13100980145491701815'}, 'enable': 'true', 'created': '2025-09-08T02:12:25', 'last-modified': '2025-09-08T02:12:26', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.937375'}
2025-09-08 02:12:27,247 - DEBUG - Route Targets: ['target:64512:8000004']
2025-09-08 02:12:27,247 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-02035225 passed
2025-09-08 02:12:27,247 - DEBUG - ====Verifying policy data for ctest-vn-02035225 in API_Server ======
2025-09-08 02:12:27,248 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-09-08 02:12:27,253 - DEBUG - Requesting: http://10.0.0.254:8082/domain/f6d224dc-7d6f-4398-979e-05f8884e665b
2025-09-08 02:12:27,262 - DEBUG - Requesting: http://10.0.0.254:8082/project/c2db1260-8c83-4a88-b4a2-d27cab142cad
2025-09-08 02:12:27,330 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/eb64d01e-264a-423c-b5d0-0807c57a7037
2025-09-08 02:12:27,341 - DEBUG - ==>Verifying data for policy with id: 410e00a5-26f5-45f1-a464-8776f48f81d4, fqn: ['default-domain', 'ctest-TestBasicPolicy-45040999', 'ctest-policy-allow-all-64944401']
2025-09-08 02:12:27,341 - INFO - VN ctest-vn-02035225 Policy verification: verify_vn_policy_in_api_server, status: True
2025-09-08 02:12:27,341 - DEBUG - Verifying the vn in opserver
2025-09-08 02:12:27,341 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-45040999:ctest-vn-02035225 virtual network link through opserver 10.0.0.254
2025-09-08 02:12:27,341 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-09-08 02:12:27,637 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-09-08 02:12:27,699 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-45040999:ctest-vn-02035225', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-45040999:ctest-vn-02035225?flat'}
2025-09-08 02:12:27,699 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-45040999:ctest-vn-02035225 is found in opserver
2025-09-08 02:12:27,710 - DEBUG - Do not have enough data to verify VN in agent
2025-09-08 02:12:27,714 - DEBUG - VRF ids for VN ctest-vn-02035225: {}
2025-09-08 02:12:27,714 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-09-08 02:12:27,719 - DEBUG - Requesting: http://10.0.0.254:8082/domain/f6d224dc-7d6f-4398-979e-05f8884e665b
2025-09-08 02:12:27,730 - DEBUG - Requesting: http://10.0.0.254:8082/project/c2db1260-8c83-4a88-b4a2-d27cab142cad
2025-09-08 02:12:27,803 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/69971680-914c-413a-b9ff-f3f988a170f1
2025-09-08 02:12:27,813 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/69971680-914c-413a-b9ff-f3f988a170f1
2025-09-08 02:12:27,821 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/61bd9348-ea42-4c34-a2be-129e69279dba
2025-09-08 02:12:27,828 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/61bd9348-ea42-4c34-a2be-129e69279dba
2025-09-08 02:12:27,834 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/0c33d3a2-fd2d-4c7e-9a64-360f616e2ff0
2025-09-08 02:12:27,841 - DEBUG - Route Targets: ['target:64512:8000005']
2025-09-08 02:12:27,841 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/69971680-914c-413a-b9ff-f3f988a170f1
2025-09-08 02:12:27,849 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/61bd9348-ea42-4c34-a2be-129e69279dba
2025-09-08 02:12:27,863 - INFO - Verified VN network id 13 for VN 69971680-914c-413a-b9ff-f3f988a170f1
2025-09-08 02:12:27,863 - INFO - Verifications in API Server for VN ctest-vn-81430306 passed
2025-09-08 02:12:27,863 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/69971680-914c-413a-b9ff-f3f988a170f1
2025-09-08 02:12:27,872 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/61bd9348-ea42-4c34-a2be-129e69279dba
2025-09-08 02:12:27,878 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/61bd9348-ea42-4c34-a2be-129e69279dba
2025-09-08 02:12:27,883 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/0c33d3a2-fd2d-4c7e-9a64-360f616e2ff0
2025-09-08 02:12:27,894 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-45040999:ctest-vn-81430306', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-45040999', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7608574836915061050', 'uuid-lslong': '13402699269142573297'}, 'enable': 'true', 'created': '2025-09-08T02:12:25', 'last-modified': '2025-09-08T02:12:26', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.363698'}
2025-09-08 02:12:27,901 - DEBUG - Route Targets: ['target:64512:8000005']
2025-09-08 02:12:27,901 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-81430306 passed
2025-09-08 02:12:27,901 - DEBUG - ====Verifying policy data for ctest-vn-81430306 in API_Server ======
2025-09-08 02:12:27,901 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-09-08 02:12:27,907 - DEBUG - Requesting: http://10.0.0.254:8082/domain/f6d224dc-7d6f-4398-979e-05f8884e665b
2025-09-08 02:12:27,917 - DEBUG - Requesting: http://10.0.0.254:8082/project/c2db1260-8c83-4a88-b4a2-d27cab142cad
2025-09-08 02:12:27,985 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/69971680-914c-413a-b9ff-f3f988a170f1
2025-09-08 02:12:27,993 - DEBUG - ==>Verifying data for policy with id: 410e00a5-26f5-45f1-a464-8776f48f81d4, fqn: ['default-domain', 'ctest-TestBasicPolicy-45040999', 'ctest-policy-allow-all-64944401']
2025-09-08 02:12:27,993 - INFO - VN ctest-vn-81430306 Policy verification: verify_vn_policy_in_api_server, status: True
2025-09-08 02:12:27,993 - DEBUG - Verifying the vn in opserver
2025-09-08 02:12:27,993 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-45040999:ctest-vn-81430306 virtual network link through opserver 10.0.0.254
2025-09-08 02:12:27,993 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-09-08 02:12:28,002 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-45040999:ctest-vn-81430306', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-45040999:ctest-vn-81430306?flat'}
2025-09-08 02:12:28,002 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-45040999:ctest-vn-81430306 is found in opserver
2025-09-08 02:12:28,014 - DEBUG - Do not have enough data to verify VN in agent
2025-09-08 02:12:28,019 - DEBUG - VRF ids for VN ctest-vn-81430306: {}
2025-09-08 02:12:28,079 - DEBUG - Services list from nova: [