2025-09-19 08:30:57,581 - INFO - Domain Default found not creating
2025-09-19 08:30:57,719 - INFO - Project ctest-TestBasicPolicy-27966983 not found, creating it
2025-09-19 08:30:58,152 - INFO - Created Project:ctest-TestBasicPolicy-27966983, ID : 2dfab6f6-bd53-4c79-a55c-c6aed6df1149
2025-09-19 08:30:59,501 - INFO - ================================================================================
2025-09-19 08:30:59,501 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-09-19 08:30:59,501 - 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-19 08:30:59,753 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with
2025-09-19 08:30:59,753 - INFO - Initial checks done. Running the testcase now
2025-09-19 08:30:59,753 - INFO -
2025-09-19 08:31:00,261 - DEBUG - Response for create_network : {'network': {'id': '548018e9-90d3-4cb2-adff-5a4d4facd0e2', 'name': 'ctest-vn-00556612', 'tenant_id': '2dfab6f6bd534c79a55cc6aed6df1149', 'project_id': '2dfab6f6bd534c79a55cc6aed6df1149', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-27966983', 'ctest-vn-00556612'], 'port_security_enabled': True, 'description': ''}}
2025-09-19 08:31:00,415 - DEBUG - Response for create_subnet : {'subnet': {'id': '6a6d2c8f-85c6-45f0-ac89-88bbddf3b24f', 'name': '', 'tenant_id': '2dfab6f6bd534c79a55cc6aed6df1149', 'network_id': '548018e9-90d3-4cb2-adff-5a4d4facd0e2', 'ip_version': 4, 'cidr': '203.128.163.64/26', 'allocation_pools': [{'start': '203.128.163.66', 'end': '203.128.163.126'}], 'gateway_ip': '203.128.163.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '203.128.163.66', 'tags': [], 'project_id': '2dfab6f6bd534c79a55cc6aed6df1149'}}
2025-09-19 08:31:00,433 - INFO - Created VN ctest-vn-00556612
2025-09-19 08:31:00,485 - DEBUG - VN ctest-vn-00556612 UUID is 548018e9-90d3-4cb2-adff-5a4d4facd0e2
2025-09-19 08:31:00,790 - DEBUG - Response for create_network : {'network': {'id': 'e6c187dd-4974-4900-aa63-69c9e6411483', 'name': 'ctest-vn-02397149', 'tenant_id': '2dfab6f6bd534c79a55cc6aed6df1149', 'project_id': '2dfab6f6bd534c79a55cc6aed6df1149', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-27966983', 'ctest-vn-02397149'], 'port_security_enabled': True, 'description': ''}}
2025-09-19 08:31:01,006 - DEBUG - Response for create_subnet : {'subnet': {'id': '333b0a81-9439-4e93-9d0a-e00a44407059', 'name': '', 'tenant_id': '2dfab6f6bd534c79a55cc6aed6df1149', 'network_id': 'e6c187dd-4974-4900-aa63-69c9e6411483', 'ip_version': 4, 'cidr': '88.83.5.0/26', 'allocation_pools': [{'start': '88.83.5.2', 'end': '88.83.5.62'}], 'gateway_ip': '88.83.5.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '88.83.5.2', 'tags': [], 'project_id': '2dfab6f6bd534c79a55cc6aed6df1149'}}
2025-09-19 08:31:01,026 - INFO - Created VN ctest-vn-02397149
2025-09-19 08:31:01,076 - DEBUG - VN ctest-vn-02397149 UUID is e6c187dd-4974-4900-aa63-69c9e6411483
2025-09-19 08:31:01,228 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-27966983:ctest-vn-00556612, 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-27966983:ctest-vn-02397149, 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-19 08:31:01,524 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '548018e9-90d3-4cb2-adff-5a4d4facd0e2', 'name': 'ctest-vn-00556612', 'tenant_id': '2dfab6f6bd534c79a55cc6aed6df1149', 'project_id': '2dfab6f6bd534c79a55cc6aed6df1149', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['6a6d2c8f-85c6-45f0-ac89-88bbddf3b24f'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-27966983', 'ctest-vn-00556612'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-27966983', 'ctest-policy-allow-all-61730181']], 'subnet_ipam': [{'subnet_cidr': '203.128.163.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-09-19 08:31:01,761 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'e6c187dd-4974-4900-aa63-69c9e6411483', 'name': 'ctest-vn-02397149', 'tenant_id': '2dfab6f6bd534c79a55cc6aed6df1149', 'project_id': '2dfab6f6bd534c79a55cc6aed6df1149', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['333b0a81-9439-4e93-9d0a-e00a44407059'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-27966983', 'ctest-vn-02397149'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-27966983', 'ctest-policy-allow-all-61730181']], 'subnet_ipam': [{'subnet_cidr': '88.83.5.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-09-19 08:31:01,908 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-09-19 08:31:02,203 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-09-19 08:31:02,228 - DEBUG - Requesting: http://10.0.0.38:8082/domain/403581c2-be73-43db-93c1-a8f0aac181c5
2025-09-19 08:31:02,239 - DEBUG - Requesting: http://10.0.0.38:8082/project/2dfab6f6-bd53-4c79-a55c-c6aed6df1149
2025-09-19 08:31:02,308 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/548018e9-90d3-4cb2-adff-5a4d4facd0e2
2025-09-19 08:31:02,317 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/548018e9-90d3-4cb2-adff-5a4d4facd0e2
2025-09-19 08:31:02,325 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/0dc4a35b-16ce-498f-9dc7-bd480660afd6
2025-09-19 08:31:02,331 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/0dc4a35b-16ce-498f-9dc7-bd480660afd6
2025-09-19 08:31:02,341 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/b4fdf33c-9579-400d-aac2-aa1a5851625d
2025-09-19 08:31:02,347 - DEBUG - Route Targets: ['target:64512:8000004']
2025-09-19 08:31:02,348 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/548018e9-90d3-4cb2-adff-5a4d4facd0e2
2025-09-19 08:31:02,357 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/0dc4a35b-16ce-498f-9dc7-bd480660afd6
2025-09-19 08:31:02,370 - INFO - Verified VN network id 11 for VN 548018e9-90d3-4cb2-adff-5a4d4facd0e2
2025-09-19 08:31:02,370 - INFO - Verifications in API Server for VN ctest-vn-00556612 passed
2025-09-19 08:31:02,370 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/548018e9-90d3-4cb2-adff-5a4d4facd0e2
2025-09-19 08:31:02,378 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/0dc4a35b-16ce-498f-9dc7-bd480660afd6
2025-09-19 08:31:02,385 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/0dc4a35b-16ce-498f-9dc7-bd480660afd6
2025-09-19 08:31:02,390 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/b4fdf33c-9579-400d-aac2-aa1a5851625d
2025-09-19 08:31:02,401 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-27966983:ctest-vn-00556612', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-27966983', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6088894087641124018', 'uuid-lslong': '12537839175718457570'}, 'enable': 'true', 'created': '2025-09-19T08:31:00', 'last-modified': '2025-09-19T08:31:01', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.900663'}
2025-09-19 08:31:02,406 - DEBUG - Route Targets: ['target:64512:8000004']
2025-09-19 08:31:02,406 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-00556612 passed
2025-09-19 08:31:02,406 - DEBUG - ====Verifying policy data for ctest-vn-00556612 in API_Server ======
2025-09-19 08:31:02,406 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-09-19 08:31:02,411 - DEBUG - Requesting: http://10.0.0.38:8082/domain/403581c2-be73-43db-93c1-a8f0aac181c5
2025-09-19 08:31:02,420 - DEBUG - Requesting: http://10.0.0.38:8082/project/2dfab6f6-bd53-4c79-a55c-c6aed6df1149
2025-09-19 08:31:02,486 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/548018e9-90d3-4cb2-adff-5a4d4facd0e2
2025-09-19 08:31:02,497 - DEBUG - ==>Verifying data for policy with id: 4285ac9b-11c0-46b1-a820-1a18ea1db34b, fqn: ['default-domain', 'ctest-TestBasicPolicy-27966983', 'ctest-policy-allow-all-61730181']
2025-09-19 08:31:02,497 - INFO - VN ctest-vn-00556612 Policy verification: verify_vn_policy_in_api_server, status: True
2025-09-19 08:31:02,497 - DEBUG - Verifying the vn in opserver
2025-09-19 08:31:02,497 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-27966983:ctest-vn-00556612 virtual network link through opserver 10.0.0.38
2025-09-19 08:31:02,498 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-09-19 08:31:02,788 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-09-19 08:31:02,840 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-27966983:ctest-vn-00556612', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-27966983:ctest-vn-00556612?flat'}
2025-09-19 08:31:02,840 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-27966983:ctest-vn-00556612 is found in opserver
2025-09-19 08:31:02,850 - DEBUG - Do not have enough data to verify VN in agent
2025-09-19 08:31:02,854 - DEBUG - VRF ids for VN ctest-vn-00556612: {}
2025-09-19 08:31:02,854 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-09-19 08:31:02,859 - DEBUG - Requesting: http://10.0.0.38:8082/domain/403581c2-be73-43db-93c1-a8f0aac181c5
2025-09-19 08:31:02,873 - DEBUG - Requesting: http://10.0.0.38:8082/project/2dfab6f6-bd53-4c79-a55c-c6aed6df1149
2025-09-19 08:31:02,942 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/e6c187dd-4974-4900-aa63-69c9e6411483
2025-09-19 08:31:02,952 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/e6c187dd-4974-4900-aa63-69c9e6411483
2025-09-19 08:31:02,960 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/7b53a8dc-b22d-4abe-8467-89d08000dccc
2025-09-19 08:31:02,969 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/7b53a8dc-b22d-4abe-8467-89d08000dccc
2025-09-19 08:31:02,975 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/e9072db5-ba5c-45bc-bc42-aef8d8f89e80
2025-09-19 08:31:02,982 - DEBUG - Route Targets: ['target:64512:8000005']
2025-09-19 08:31:02,982 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/e6c187dd-4974-4900-aa63-69c9e6411483
2025-09-19 08:31:02,991 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/7b53a8dc-b22d-4abe-8467-89d08000dccc
2025-09-19 08:31:03,003 - INFO - Verified VN network id 12 for VN e6c187dd-4974-4900-aa63-69c9e6411483
2025-09-19 08:31:03,003 - INFO - Verifications in API Server for VN ctest-vn-02397149 passed
2025-09-19 08:31:03,003 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/e6c187dd-4974-4900-aa63-69c9e6411483
2025-09-19 08:31:03,011 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/7b53a8dc-b22d-4abe-8467-89d08000dccc
2025-09-19 08:31:03,018 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/7b53a8dc-b22d-4abe-8467-89d08000dccc
2025-09-19 08:31:03,024 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/e9072db5-ba5c-45bc-bc42-aef8d8f89e80
2025-09-19 08:31:03,037 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-27966983:ctest-vn-02397149', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-27966983', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16627720683718461696', 'uuid-lslong': '12277773325014471811'}, 'enable': 'true', 'created': '2025-09-19T08:31:00', 'last-modified': '2025-09-19T08:31:01', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.296621'}
2025-09-19 08:31:03,044 - DEBUG - Route Targets: ['target:64512:8000005']
2025-09-19 08:31:03,044 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-02397149 passed
2025-09-19 08:31:03,044 - DEBUG - ====Verifying policy data for ctest-vn-02397149 in API_Server ======
2025-09-19 08:31:03,044 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-09-19 08:31:03,050 - DEBUG - Requesting: http://10.0.0.38:8082/domain/403581c2-be73-43db-93c1-a8f0aac181c5
2025-09-19 08:31:03,059 - DEBUG - Requesting: http://10.0.0.38:8082/project/2dfab6f6-bd53-4c79-a55c-c6aed6df1149
2025-09-19 08:31:03,126 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/e6c187dd-4974-4900-aa63-69c9e6411483
2025-09-19 08:31:03,135 - DEBUG - ==>Verifying data for policy with id: 4285ac9b-11c0-46b1-a820-1a18ea1db34b, fqn: ['default-domain', 'ctest-TestBasicPolicy-27966983', 'ctest-policy-allow-all-61730181']
2025-09-19 08:31:03,135 - INFO - VN ctest-vn-02397149 Policy verification: verify_vn_policy_in_api_server, status: True
2025-09-19 08:31:03,135 - DEBUG - Verifying the vn in opserver
2025-09-19 08:31:03,135 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-27966983:ctest-vn-02397149 virtual network link through opserver 10.0.0.38
2025-09-19 08:31:03,135 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-09-19 08:31:03,144 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-27966983:ctest-vn-02397149', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-27966983:ctest-vn-02397149?flat'}
2025-09-19 08:31:03,144 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-27966983:ctest-vn-02397149 is found in opserver
2025-09-19 08:31:03,152 - DEBUG - Do not have enough data to verify VN in agent
2025-09-19 08:31:03,155 - DEBUG - VRF ids for VN ctest-vn-02397149: {}
2025-09-19 08:31:03,213 - DEBUG - Services list from nova: [