2025-06-18 16:24:47,269 - INFO - Domain Default found not creating
2025-06-18 16:24:47,426 - INFO - Project ctest-TestBasicPolicy-57224322 not found, creating it
2025-06-18 16:24:47,901 - INFO - Created Project:ctest-TestBasicPolicy-57224322, ID : 3f7ad985-d037-426d-b55f-865cb2a16062
2025-06-18 16:24:49,520 - INFO - ================================================================================
2025-06-18 16:24:49,520 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-06-18 16:24:49,520 - 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-06-18 16:24:49,783 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with
2025-06-18 16:24:49,783 - INFO - Initial checks done. Running the testcase now
2025-06-18 16:24:49,783 - INFO -
2025-06-18 16:24:50,452 - DEBUG - Response for create_network : {'network': {'id': '37a15a80-da49-45a5-9101-28e82b598ec1', 'name': 'ctest-vn-32162402', 'tenant_id': '3f7ad985d037426db55f865cb2a16062', 'project_id': '3f7ad985d037426db55f865cb2a16062', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-57224322', 'ctest-vn-32162402'], 'port_security_enabled': True, 'description': ''}}
2025-06-18 16:24:50,643 - DEBUG - Response for create_subnet : {'subnet': {'id': '52555b91-7c27-4f8f-90c0-8f3a01f0823c', 'name': '', 'tenant_id': '3f7ad985d037426db55f865cb2a16062', 'network_id': '37a15a80-da49-45a5-9101-28e82b598ec1', 'ip_version': 4, 'cidr': '41.115.69.0/26', 'allocation_pools': [{'start': '41.115.69.2', 'end': '41.115.69.62'}], 'gateway_ip': '41.115.69.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '41.115.69.2', 'tags': [], 'project_id': '3f7ad985d037426db55f865cb2a16062'}}
2025-06-18 16:24:50,664 - INFO - Created VN ctest-vn-32162402
2025-06-18 16:24:50,718 - DEBUG - VN ctest-vn-32162402 UUID is 37a15a80-da49-45a5-9101-28e82b598ec1
2025-06-18 16:24:51,042 - DEBUG - Response for create_network : {'network': {'id': 'bbd9e9b0-1155-4cb2-be61-901b59843f0a', 'name': 'ctest-vn-47160738', 'tenant_id': '3f7ad985d037426db55f865cb2a16062', 'project_id': '3f7ad985d037426db55f865cb2a16062', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-57224322', 'ctest-vn-47160738'], 'port_security_enabled': True, 'description': ''}}
2025-06-18 16:24:51,256 - DEBUG - Response for create_subnet : {'subnet': {'id': '7812abfd-057a-48ca-8201-50686f00da5d', 'name': '', 'tenant_id': '3f7ad985d037426db55f865cb2a16062', 'network_id': 'bbd9e9b0-1155-4cb2-be61-901b59843f0a', 'ip_version': 4, 'cidr': '4.66.149.128/26', 'allocation_pools': [{'start': '4.66.149.130', 'end': '4.66.149.190'}], 'gateway_ip': '4.66.149.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '4.66.149.130', 'tags': [], 'project_id': '3f7ad985d037426db55f865cb2a16062'}}
2025-06-18 16:24:51,277 - INFO - Created VN ctest-vn-47160738
2025-06-18 16:24:51,338 - DEBUG - VN ctest-vn-47160738 UUID is bbd9e9b0-1155-4cb2-be61-901b59843f0a
2025-06-18 16:24:51,457 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-57224322:ctest-vn-32162402, 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-57224322:ctest-vn-47160738, 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-06-18 16:24:51,800 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '37a15a80-da49-45a5-9101-28e82b598ec1', 'name': 'ctest-vn-32162402', 'tenant_id': '3f7ad985d037426db55f865cb2a16062', 'project_id': '3f7ad985d037426db55f865cb2a16062', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['52555b91-7c27-4f8f-90c0-8f3a01f0823c'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-57224322', 'ctest-vn-32162402'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-57224322', 'ctest-policy-allow-all-16776073']], 'subnet_ipam': [{'subnet_cidr': '41.115.69.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-06-18 16:24:52,088 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'bbd9e9b0-1155-4cb2-be61-901b59843f0a', 'name': 'ctest-vn-47160738', 'tenant_id': '3f7ad985d037426db55f865cb2a16062', 'project_id': '3f7ad985d037426db55f865cb2a16062', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['7812abfd-057a-48ca-8201-50686f00da5d'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-57224322', 'ctest-vn-47160738'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-57224322', 'ctest-policy-allow-all-16776073']], 'subnet_ipam': [{'subnet_cidr': '4.66.149.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-06-18 16:24:52,238 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-06-18 16:24:52,577 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-06-18 16:24:52,611 - DEBUG - Requesting: http://10.0.0.38:8082/domain/c7de87da-d0f4-47df-8732-de82a73353fb
2025-06-18 16:24:52,628 - DEBUG - Requesting: http://10.0.0.38:8082/project/3f7ad985-d037-426d-b55f-865cb2a16062
2025-06-18 16:24:52,715 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/37a15a80-da49-45a5-9101-28e82b598ec1
2025-06-18 16:24:52,728 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/37a15a80-da49-45a5-9101-28e82b598ec1
2025-06-18 16:24:52,744 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/da76e37c-564f-40a7-983b-1243f26ca362
2025-06-18 16:24:52,755 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/da76e37c-564f-40a7-983b-1243f26ca362
2025-06-18 16:24:52,763 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/ec178c2b-e7d0-4eb3-8878-82e9a96c6ef7
2025-06-18 16:24:52,772 - DEBUG - Route Targets: ['target:64512:8000005']
2025-06-18 16:24:52,772 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/37a15a80-da49-45a5-9101-28e82b598ec1
2025-06-18 16:24:52,785 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/da76e37c-564f-40a7-983b-1243f26ca362
2025-06-18 16:24:52,806 - INFO - Verified VN network id 9 for VN 37a15a80-da49-45a5-9101-28e82b598ec1
2025-06-18 16:24:52,806 - INFO - Verifications in API Server for VN ctest-vn-32162402 passed
2025-06-18 16:24:52,806 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/37a15a80-da49-45a5-9101-28e82b598ec1
2025-06-18 16:24:52,889 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/da76e37c-564f-40a7-983b-1243f26ca362
2025-06-18 16:24:52,899 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/da76e37c-564f-40a7-983b-1243f26ca362
2025-06-18 16:24:52,908 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/ec178c2b-e7d0-4eb3-8878-82e9a96c6ef7
2025-06-18 16:24:52,924 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-57224322:ctest-vn-32162402', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-57224322', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '4008584652801000869', 'uuid-lslong': '10448677588101074625'}, 'enable': 'true', 'created': '2025-06-18T16:24:50', 'last-modified': '2025-06-18T16:24:51', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.161772'}
2025-06-18 16:24:52,931 - DEBUG - Route Targets: ['target:64512:8000005']
2025-06-18 16:24:52,931 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-32162402 passed
2025-06-18 16:24:52,931 - DEBUG - ====Verifying policy data for ctest-vn-32162402 in API_Server ======
2025-06-18 16:24:52,931 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-06-18 16:24:52,939 - DEBUG - Requesting: http://10.0.0.38:8082/domain/c7de87da-d0f4-47df-8732-de82a73353fb
2025-06-18 16:24:52,957 - DEBUG - Requesting: http://10.0.0.38:8082/project/3f7ad985-d037-426d-b55f-865cb2a16062
2025-06-18 16:24:53,047 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/37a15a80-da49-45a5-9101-28e82b598ec1
2025-06-18 16:24:53,061 - DEBUG - ==>Verifying data for policy with id: 917f36b6-a7f7-4984-b77c-a5389e4938b1, fqn: ['default-domain', 'ctest-TestBasicPolicy-57224322', 'ctest-policy-allow-all-16776073']
2025-06-18 16:24:53,061 - INFO - VN ctest-vn-32162402 Policy verification: verify_vn_policy_in_api_server, status: True
2025-06-18 16:24:53,061 - DEBUG - Verifying the vn in opserver
2025-06-18 16:24:53,062 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-57224322:ctest-vn-32162402 virtual network link through opserver 10.0.0.38
2025-06-18 16:24:53,062 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-06-18 16:24:53,407 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-06-18 16:24:53,481 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-57224322:ctest-vn-32162402', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-57224322:ctest-vn-32162402?flat'}
2025-06-18 16:24:53,481 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-57224322:ctest-vn-32162402 is found in opserver
2025-06-18 16:24:53,494 - DEBUG - Do not have enough data to verify VN in agent
2025-06-18 16:24:53,500 - DEBUG - VRF ids for VN ctest-vn-32162402: {}
2025-06-18 16:24:53,500 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-06-18 16:24:53,506 - DEBUG - Requesting: http://10.0.0.38:8082/domain/c7de87da-d0f4-47df-8732-de82a73353fb
2025-06-18 16:24:53,521 - DEBUG - Requesting: http://10.0.0.38:8082/project/3f7ad985-d037-426d-b55f-865cb2a16062
2025-06-18 16:24:53,597 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/bbd9e9b0-1155-4cb2-be61-901b59843f0a
2025-06-18 16:24:53,613 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/bbd9e9b0-1155-4cb2-be61-901b59843f0a
2025-06-18 16:24:53,625 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/0cdddb94-02e4-4e29-aaa2-c4b1fe2b5632
2025-06-18 16:24:53,634 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/0cdddb94-02e4-4e29-aaa2-c4b1fe2b5632
2025-06-18 16:24:53,642 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/3f9bff68-8894-4bcc-9499-af05df2488dd
2025-06-18 16:24:53,650 - DEBUG - Route Targets: ['target:64512:8000006']
2025-06-18 16:24:53,650 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/bbd9e9b0-1155-4cb2-be61-901b59843f0a
2025-06-18 16:24:53,661 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/0cdddb94-02e4-4e29-aaa2-c4b1fe2b5632
2025-06-18 16:24:53,678 - INFO - Verified VN network id 10 for VN bbd9e9b0-1155-4cb2-be61-901b59843f0a
2025-06-18 16:24:53,678 - INFO - Verifications in API Server for VN ctest-vn-47160738 passed
2025-06-18 16:24:53,678 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/bbd9e9b0-1155-4cb2-be61-901b59843f0a
2025-06-18 16:24:53,690 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/0cdddb94-02e4-4e29-aaa2-c4b1fe2b5632
2025-06-18 16:24:53,699 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/0cdddb94-02e4-4e29-aaa2-c4b1fe2b5632
2025-06-18 16:24:53,707 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/3f9bff68-8894-4bcc-9499-af05df2488dd
2025-06-18 16:24:53,721 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-57224322:ctest-vn-47160738', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-57224322', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13536107097453055154', 'uuid-lslong': '13718404387087597322'}, 'enable': 'true', 'created': '2025-06-18T16:24:51', 'last-modified': '2025-06-18T16:24:52', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.699362'}
2025-06-18 16:24:53,728 - DEBUG - Route Targets: ['target:64512:8000006']
2025-06-18 16:24:53,728 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-47160738 passed
2025-06-18 16:24:53,728 - DEBUG - ====Verifying policy data for ctest-vn-47160738 in API_Server ======
2025-06-18 16:24:53,728 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-06-18 16:24:53,735 - DEBUG - Requesting: http://10.0.0.38:8082/domain/c7de87da-d0f4-47df-8732-de82a73353fb
2025-06-18 16:24:53,748 - DEBUG - Requesting: http://10.0.0.38:8082/project/3f7ad985-d037-426d-b55f-865cb2a16062
2025-06-18 16:24:53,828 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/bbd9e9b0-1155-4cb2-be61-901b59843f0a
2025-06-18 16:24:53,843 - DEBUG - ==>Verifying data for policy with id: 917f36b6-a7f7-4984-b77c-a5389e4938b1, fqn: ['default-domain', 'ctest-TestBasicPolicy-57224322', 'ctest-policy-allow-all-16776073']
2025-06-18 16:24:53,843 - INFO - VN ctest-vn-47160738 Policy verification: verify_vn_policy_in_api_server, status: True
2025-06-18 16:24:53,843 - DEBUG - Verifying the vn in opserver
2025-06-18 16:24:53,843 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-57224322:ctest-vn-47160738 virtual network link through opserver 10.0.0.38
2025-06-18 16:24:53,843 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-06-18 16:24:53,854 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-57224322:ctest-vn-47160738', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-57224322:ctest-vn-47160738?flat'}
2025-06-18 16:24:53,854 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-57224322:ctest-vn-47160738 is found in opserver
2025-06-18 16:24:53,866 - DEBUG - Do not have enough data to verify VN in agent
2025-06-18 16:24:53,871 - DEBUG - VRF ids for VN ctest-vn-47160738: {}
2025-06-18 16:24:53,928 - DEBUG - Services list from nova: [