2025-10-23 01:50:39,126 - INFO - Domain Default found not creating
2025-10-23 01:50:39,257 - INFO - Project ctest-TestBasicPolicy-99130217 not found, creating it
2025-10-23 01:50:39,668 - INFO - Created Project:ctest-TestBasicPolicy-99130217, ID : 1cb4a5ed-a8bb-47f0-94d7-f27613a2cd32
2025-10-23 01:50:40,978 - INFO - ================================================================================
2025-10-23 01:50:40,978 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-10-23 01:50:40,978 - 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-10-23 01:50:41,233 - DEBUG - Nothing to compare xmpp stats {'10.0.0.141': {'10.20.0.17': '0'}} with
2025-10-23 01:50:41,233 - INFO - Initial checks done. Running the testcase now
2025-10-23 01:50:41,233 - INFO -
2025-10-23 01:50:41,735 - DEBUG - Response for create_network : {'network': {'id': '93bb43bf-4f8d-434a-91e6-7300a1070e97', 'name': 'ctest-vn-43973445', 'tenant_id': '1cb4a5eda8bb47f094d7f27613a2cd32', 'project_id': '1cb4a5eda8bb47f094d7f27613a2cd32', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-99130217', 'ctest-vn-43973445'], 'port_security_enabled': True, 'description': ''}}
2025-10-23 01:50:41,935 - DEBUG - Response for create_subnet : {'subnet': {'id': '9aa49dcc-48e8-4371-bf71-8abb252c966f', 'name': '', 'tenant_id': '1cb4a5eda8bb47f094d7f27613a2cd32', 'network_id': '93bb43bf-4f8d-434a-91e6-7300a1070e97', 'ip_version': 4, 'cidr': '150.39.62.192/26', 'allocation_pools': [{'start': '150.39.62.194', 'end': '150.39.62.254'}], 'gateway_ip': '150.39.62.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '150.39.62.194', 'tags': [], 'project_id': '1cb4a5eda8bb47f094d7f27613a2cd32'}}
2025-10-23 01:50:41,954 - INFO - Created VN ctest-vn-43973445
2025-10-23 01:50:42,004 - DEBUG - VN ctest-vn-43973445 UUID is 93bb43bf-4f8d-434a-91e6-7300a1070e97
2025-10-23 01:50:42,307 - DEBUG - Response for create_network : {'network': {'id': 'f172274e-5ff9-4d97-92c6-03eb2b0cbb2e', 'name': 'ctest-vn-39611401', 'tenant_id': '1cb4a5eda8bb47f094d7f27613a2cd32', 'project_id': '1cb4a5eda8bb47f094d7f27613a2cd32', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-99130217', 'ctest-vn-39611401'], 'port_security_enabled': True, 'description': ''}}
2025-10-23 01:50:42,478 - DEBUG - Response for create_subnet : {'subnet': {'id': '36e29c87-5c54-4d8f-8e90-97d89f3836b6', 'name': '', 'tenant_id': '1cb4a5eda8bb47f094d7f27613a2cd32', 'network_id': 'f172274e-5ff9-4d97-92c6-03eb2b0cbb2e', 'ip_version': 4, 'cidr': '75.46.237.128/26', 'allocation_pools': [{'start': '75.46.237.130', 'end': '75.46.237.190'}], 'gateway_ip': '75.46.237.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '75.46.237.130', 'tags': [], 'project_id': '1cb4a5eda8bb47f094d7f27613a2cd32'}}
2025-10-23 01:50:42,493 - INFO - Created VN ctest-vn-39611401
2025-10-23 01:50:42,544 - DEBUG - VN ctest-vn-39611401 UUID is f172274e-5ff9-4d97-92c6-03eb2b0cbb2e
2025-10-23 01:50:42,692 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-99130217:ctest-vn-43973445, 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-99130217:ctest-vn-39611401, 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-10-23 01:50:42,972 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '93bb43bf-4f8d-434a-91e6-7300a1070e97', 'name': 'ctest-vn-43973445', 'tenant_id': '1cb4a5eda8bb47f094d7f27613a2cd32', 'project_id': '1cb4a5eda8bb47f094d7f27613a2cd32', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['9aa49dcc-48e8-4371-bf71-8abb252c966f'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-99130217', 'ctest-vn-43973445'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-99130217', 'ctest-policy-allow-all-09255318']], 'subnet_ipam': [{'subnet_cidr': '150.39.62.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-23 01:50:43,186 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'f172274e-5ff9-4d97-92c6-03eb2b0cbb2e', 'name': 'ctest-vn-39611401', 'tenant_id': '1cb4a5eda8bb47f094d7f27613a2cd32', 'project_id': '1cb4a5eda8bb47f094d7f27613a2cd32', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['36e29c87-5c54-4d8f-8e90-97d89f3836b6'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-99130217', 'ctest-vn-39611401'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-99130217', 'ctest-policy-allow-all-09255318']], 'subnet_ipam': [{'subnet_cidr': '75.46.237.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-23 01:50:43,336 - DEBUG - Requesting: http://10.0.0.141:8082/domains
2025-10-23 01:50:43,631 - DEBUG - Requesting: http://10.0.0.141:8082/domains
2025-10-23 01:50:43,655 - DEBUG - Requesting: http://10.0.0.141:8082/domain/013499b7-13b8-4472-821f-4c26323ffecb
2025-10-23 01:50:43,665 - DEBUG - Requesting: http://10.0.0.141:8082/project/1cb4a5ed-a8bb-47f0-94d7-f27613a2cd32
2025-10-23 01:50:43,733 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/93bb43bf-4f8d-434a-91e6-7300a1070e97
2025-10-23 01:50:43,742 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/93bb43bf-4f8d-434a-91e6-7300a1070e97
2025-10-23 01:50:43,749 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/dc5f2e1c-e97e-4cfd-af28-0204406a64a6
2025-10-23 01:50:43,755 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/dc5f2e1c-e97e-4cfd-af28-0204406a64a6
2025-10-23 01:50:43,760 - DEBUG - Requesting: http://10.0.0.141:8082/route-target/42d5c800-474c-42bb-b51a-722406d0fffb
2025-10-23 01:50:43,765 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-23 01:50:43,765 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/93bb43bf-4f8d-434a-91e6-7300a1070e97
2025-10-23 01:50:43,773 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/dc5f2e1c-e97e-4cfd-af28-0204406a64a6
2025-10-23 01:50:43,783 - INFO - Verified VN network id 12 for VN 93bb43bf-4f8d-434a-91e6-7300a1070e97
2025-10-23 01:50:43,784 - INFO - Verifications in API Server for VN ctest-vn-43973445 passed
2025-10-23 01:50:43,784 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/93bb43bf-4f8d-434a-91e6-7300a1070e97
2025-10-23 01:50:43,790 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/dc5f2e1c-e97e-4cfd-af28-0204406a64a6
2025-10-23 01:50:43,795 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/dc5f2e1c-e97e-4cfd-af28-0204406a64a6
2025-10-23 01:50:43,800 - DEBUG - Requesting: http://10.0.0.141:8082/route-target/42d5c800-474c-42bb-b51a-722406d0fffb
2025-10-23 01:50:43,809 - DEBUG - Control-node 10.0.0.141 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-99130217:ctest-vn-43973445', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-99130217', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10645176633172771658', 'uuid-lslong': '10513216826681790103'}, 'enable': 'true', 'created': '2025-10-23T01:50:41', 'last-modified': '2025-10-23T01:50:42', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.858036'}
2025-10-23 01:50:43,814 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-23 01:50:43,814 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-43973445 passed
2025-10-23 01:50:43,814 - DEBUG - ====Verifying policy data for ctest-vn-43973445 in API_Server ======
2025-10-23 01:50:43,814 - DEBUG - Requesting: http://10.0.0.141:8082/domains
2025-10-23 01:50:43,818 - DEBUG - Requesting: http://10.0.0.141:8082/domain/013499b7-13b8-4472-821f-4c26323ffecb
2025-10-23 01:50:43,826 - DEBUG - Requesting: http://10.0.0.141:8082/project/1cb4a5ed-a8bb-47f0-94d7-f27613a2cd32
2025-10-23 01:50:43,892 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/93bb43bf-4f8d-434a-91e6-7300a1070e97
2025-10-23 01:50:43,900 - DEBUG - ==>Verifying data for policy with id: a3c6dec2-c3c6-4cb4-a2a2-28db53043dcd, fqn: ['default-domain', 'ctest-TestBasicPolicy-99130217', 'ctest-policy-allow-all-09255318']
2025-10-23 01:50:43,900 - INFO - VN ctest-vn-43973445 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-23 01:50:43,900 - DEBUG - Verifying the vn in opserver
2025-10-23 01:50:43,900 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-99130217:ctest-vn-43973445 virtual network link through opserver 10.0.0.141
2025-10-23 01:50:43,900 - DEBUG - Requesting: http://10.0.0.141:8081/analytics/uves/virtual-networks
2025-10-23 01:50:44,187 - DEBUG - Requesting: http://10.0.0.141:8081/analytics/uves/virtual-networks
2025-10-23 01:50:44,232 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-99130217:ctest-vn-43973445', 'href': 'http://10.0.0.141:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-99130217:ctest-vn-43973445?flat'}
2025-10-23 01:50:44,233 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-99130217:ctest-vn-43973445 is found in opserver
2025-10-23 01:50:44,241 - DEBUG - Do not have enough data to verify VN in agent
2025-10-23 01:50:44,244 - DEBUG - VRF ids for VN ctest-vn-43973445: {}
2025-10-23 01:50:44,245 - DEBUG - Requesting: http://10.0.0.141:8082/domains
2025-10-23 01:50:44,249 - DEBUG - Requesting: http://10.0.0.141:8082/domain/013499b7-13b8-4472-821f-4c26323ffecb
2025-10-23 01:50:44,257 - DEBUG - Requesting: http://10.0.0.141:8082/project/1cb4a5ed-a8bb-47f0-94d7-f27613a2cd32
2025-10-23 01:50:44,324 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/f172274e-5ff9-4d97-92c6-03eb2b0cbb2e
2025-10-23 01:50:44,336 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/f172274e-5ff9-4d97-92c6-03eb2b0cbb2e
2025-10-23 01:50:44,345 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/b0fa4837-501b-4eff-af27-e5082e135c8d
2025-10-23 01:50:44,352 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/b0fa4837-501b-4eff-af27-e5082e135c8d
2025-10-23 01:50:44,357 - DEBUG - Requesting: http://10.0.0.141:8082/route-target/92569f7c-99f5-43fe-9de8-9fb89cc382fd
2025-10-23 01:50:44,362 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-23 01:50:44,362 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/f172274e-5ff9-4d97-92c6-03eb2b0cbb2e
2025-10-23 01:50:44,370 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/b0fa4837-501b-4eff-af27-e5082e135c8d
2025-10-23 01:50:44,381 - INFO - Verified VN network id 13 for VN f172274e-5ff9-4d97-92c6-03eb2b0cbb2e
2025-10-23 01:50:44,381 - INFO - Verifications in API Server for VN ctest-vn-39611401 passed
2025-10-23 01:50:44,381 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/f172274e-5ff9-4d97-92c6-03eb2b0cbb2e
2025-10-23 01:50:44,388 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/b0fa4837-501b-4eff-af27-e5082e135c8d
2025-10-23 01:50:44,393 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/b0fa4837-501b-4eff-af27-e5082e135c8d
2025-10-23 01:50:44,398 - DEBUG - Requesting: http://10.0.0.141:8082/route-target/92569f7c-99f5-43fe-9de8-9fb89cc382fd
2025-10-23 01:50:44,406 - DEBUG - Control-node 10.0.0.141 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-99130217:ctest-vn-39611401', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-99130217', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17398011528056753559', 'uuid-lslong': '10576145083500641070'}, 'enable': 'true', 'created': '2025-10-23T01:50:42', 'last-modified': '2025-10-23T01:50:43', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.240273'}
2025-10-23 01:50:44,412 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-23 01:50:44,412 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-39611401 passed
2025-10-23 01:50:44,412 - DEBUG - ====Verifying policy data for ctest-vn-39611401 in API_Server ======
2025-10-23 01:50:44,412 - DEBUG - Requesting: http://10.0.0.141:8082/domains
2025-10-23 01:50:44,416 - DEBUG - Requesting: http://10.0.0.141:8082/domain/013499b7-13b8-4472-821f-4c26323ffecb
2025-10-23 01:50:44,427 - DEBUG - Requesting: http://10.0.0.141:8082/project/1cb4a5ed-a8bb-47f0-94d7-f27613a2cd32
2025-10-23 01:50:44,492 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/f172274e-5ff9-4d97-92c6-03eb2b0cbb2e
2025-10-23 01:50:44,501 - DEBUG - ==>Verifying data for policy with id: a3c6dec2-c3c6-4cb4-a2a2-28db53043dcd, fqn: ['default-domain', 'ctest-TestBasicPolicy-99130217', 'ctest-policy-allow-all-09255318']
2025-10-23 01:50:44,502 - INFO - VN ctest-vn-39611401 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-23 01:50:44,502 - DEBUG - Verifying the vn in opserver
2025-10-23 01:50:44,502 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-99130217:ctest-vn-39611401 virtual network link through opserver 10.0.0.141
2025-10-23 01:50:44,502 - DEBUG - Requesting: http://10.0.0.141:8081/analytics/uves/virtual-networks
2025-10-23 01:50:44,510 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-99130217:ctest-vn-39611401', 'href': 'http://10.0.0.141:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-99130217:ctest-vn-39611401?flat'}
2025-10-23 01:50:44,510 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-99130217:ctest-vn-39611401 is found in opserver
2025-10-23 01:50:44,518 - DEBUG - Do not have enough data to verify VN in agent
2025-10-23 01:50:44,522 - DEBUG - VRF ids for VN ctest-vn-39611401: {}
2025-10-23 01:50:44,571 - DEBUG - Services list from nova: [