2025-10-12 07:31:49,719 - INFO - Domain Default found not creating
2025-10-12 07:31:50,063 - INFO - Project ctest-TestBasicPolicy-52833540 not found, creating it
2025-10-12 07:31:50,885 - INFO - Created Project:ctest-TestBasicPolicy-52833540, ID : b6d92b10-11b9-41e2-8197-c6801509b8b6
2025-10-12 07:31:52,920 - INFO - ================================================================================
2025-10-12 07:31:52,921 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-10-12 07:31:52,921 - 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-12 07:31:53,258 - DEBUG - Nothing to compare xmpp stats {'10.0.0.48': {'10.20.0.254': '0'}} with
2025-10-12 07:31:53,258 - INFO - Initial checks done. Running the testcase now
2025-10-12 07:31:53,259 - INFO -
2025-10-12 07:31:54,143 - DEBUG - Response for create_network : {'network': {'id': '60c576a1-958c-4a51-aae8-49dd6fd6f42f', 'name': 'ctest-vn-30838724', 'tenant_id': 'b6d92b1011b941e28197c6801509b8b6', 'project_id': 'b6d92b1011b941e28197c6801509b8b6', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-52833540', 'ctest-vn-30838724'], 'port_security_enabled': True, 'description': ''}}
2025-10-12 07:31:54,348 - DEBUG - Response for create_subnet : {'subnet': {'id': '6c0c8ba0-d744-4afa-8cc5-f383b83a8769', 'name': '', 'tenant_id': 'b6d92b1011b941e28197c6801509b8b6', 'network_id': '60c576a1-958c-4a51-aae8-49dd6fd6f42f', 'ip_version': 4, 'cidr': '82.10.233.192/26', 'allocation_pools': [{'start': '82.10.233.194', 'end': '82.10.233.254'}], 'gateway_ip': '82.10.233.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '82.10.233.194', 'tags': [], 'project_id': 'b6d92b1011b941e28197c6801509b8b6'}}
2025-10-12 07:31:54,373 - INFO - Created VN ctest-vn-30838724
2025-10-12 07:31:54,429 - DEBUG - VN ctest-vn-30838724 UUID is 60c576a1-958c-4a51-aae8-49dd6fd6f42f
2025-10-12 07:31:54,814 - DEBUG - Response for create_network : {'network': {'id': 'df077c03-efa5-4058-ab0c-5f25385a9a0b', 'name': 'ctest-vn-25558594', 'tenant_id': 'b6d92b1011b941e28197c6801509b8b6', 'project_id': 'b6d92b1011b941e28197c6801509b8b6', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-52833540', 'ctest-vn-25558594'], 'port_security_enabled': True, 'description': ''}}
2025-10-12 07:31:54,996 - DEBUG - Response for create_subnet : {'subnet': {'id': '5743c1d3-0cd6-4baa-acf8-7a4c7ca5e468', 'name': '', 'tenant_id': 'b6d92b1011b941e28197c6801509b8b6', 'network_id': 'df077c03-efa5-4058-ab0c-5f25385a9a0b', 'ip_version': 4, 'cidr': '76.55.17.0/26', 'allocation_pools': [{'start': '76.55.17.2', 'end': '76.55.17.62'}], 'gateway_ip': '76.55.17.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '76.55.17.2', 'tags': [], 'project_id': 'b6d92b1011b941e28197c6801509b8b6'}}
2025-10-12 07:31:55,015 - INFO - Created VN ctest-vn-25558594
2025-10-12 07:31:55,068 - DEBUG - VN ctest-vn-25558594 UUID is df077c03-efa5-4058-ab0c-5f25385a9a0b
2025-10-12 07:31:55,243 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-52833540:ctest-vn-30838724, 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-52833540:ctest-vn-25558594, 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-12 07:31:55,715 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '60c576a1-958c-4a51-aae8-49dd6fd6f42f', 'name': 'ctest-vn-30838724', 'tenant_id': 'b6d92b1011b941e28197c6801509b8b6', 'project_id': 'b6d92b1011b941e28197c6801509b8b6', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['6c0c8ba0-d744-4afa-8cc5-f383b83a8769'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-52833540', 'ctest-vn-30838724'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-52833540', 'ctest-policy-allow-all-16341604']], 'subnet_ipam': [{'subnet_cidr': '82.10.233.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-12 07:31:56,038 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'df077c03-efa5-4058-ab0c-5f25385a9a0b', 'name': 'ctest-vn-25558594', 'tenant_id': 'b6d92b1011b941e28197c6801509b8b6', 'project_id': 'b6d92b1011b941e28197c6801509b8b6', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['5743c1d3-0cd6-4baa-acf8-7a4c7ca5e468'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-52833540', 'ctest-vn-25558594'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-52833540', 'ctest-policy-allow-all-16341604']], 'subnet_ipam': [{'subnet_cidr': '76.55.17.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-12 07:31:56,197 - DEBUG - Requesting: http://10.0.0.48:8082/domains
2025-10-12 07:31:56,540 - DEBUG - Requesting: http://10.0.0.48:8082/domains
2025-10-12 07:31:56,614 - DEBUG - Requesting: http://10.0.0.48:8082/domain/323c2aa9-4b1c-428e-b869-e75875bfdd80
2025-10-12 07:31:56,648 - DEBUG - Requesting: http://10.0.0.48:8082/project/b6d92b10-11b9-41e2-8197-c6801509b8b6
2025-10-12 07:31:56,764 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/60c576a1-958c-4a51-aae8-49dd6fd6f42f
2025-10-12 07:31:56,800 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/60c576a1-958c-4a51-aae8-49dd6fd6f42f
2025-10-12 07:31:56,830 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/e1089079-b25f-481e-bbb4-43563b009417
2025-10-12 07:31:56,853 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/e1089079-b25f-481e-bbb4-43563b009417
2025-10-12 07:31:56,873 - DEBUG - Requesting: http://10.0.0.48:8082/route-target/08e595b6-f8c8-40cb-8111-8cd79dd4251b
2025-10-12 07:31:56,891 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-12 07:31:56,891 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/60c576a1-958c-4a51-aae8-49dd6fd6f42f
2025-10-12 07:31:56,918 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/e1089079-b25f-481e-bbb4-43563b009417
2025-10-12 07:31:56,956 - INFO - Verified VN network id 11 for VN 60c576a1-958c-4a51-aae8-49dd6fd6f42f
2025-10-12 07:31:56,957 - INFO - Verifications in API Server for VN ctest-vn-30838724 passed
2025-10-12 07:31:56,957 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/60c576a1-958c-4a51-aae8-49dd6fd6f42f
2025-10-12 07:31:56,985 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/e1089079-b25f-481e-bbb4-43563b009417
2025-10-12 07:31:57,005 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/e1089079-b25f-481e-bbb4-43563b009417
2025-10-12 07:31:57,025 - DEBUG - Requesting: http://10.0.0.48:8082/route-target/08e595b6-f8c8-40cb-8111-8cd79dd4251b
2025-10-12 07:31:57,058 - DEBUG - Control-node 10.0.0.48 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-52833540:ctest-vn-30838724', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-52833540', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6973110034423892561', 'uuid-lslong': '12315174396457579567'}, 'enable': 'true', 'created': '2025-10-12T07:31:54', 'last-modified': '2025-10-12T07:31:55', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.397233'}
2025-10-12 07:31:57,077 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-12 07:31:57,078 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-30838724 passed
2025-10-12 07:31:57,078 - DEBUG - ====Verifying policy data for ctest-vn-30838724 in API_Server ======
2025-10-12 07:31:57,078 - DEBUG - Requesting: http://10.0.0.48:8082/domains
2025-10-12 07:31:57,090 - DEBUG - Requesting: http://10.0.0.48:8082/domain/323c2aa9-4b1c-428e-b869-e75875bfdd80
2025-10-12 07:31:57,122 - DEBUG - Requesting: http://10.0.0.48:8082/project/b6d92b10-11b9-41e2-8197-c6801509b8b6
2025-10-12 07:31:57,248 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/60c576a1-958c-4a51-aae8-49dd6fd6f42f
2025-10-12 07:31:57,273 - DEBUG - ==>Verifying data for policy with id: 3e27a8f8-6043-476a-84e8-96b8ed89d294, fqn: ['default-domain', 'ctest-TestBasicPolicy-52833540', 'ctest-policy-allow-all-16341604']
2025-10-12 07:31:57,273 - INFO - VN ctest-vn-30838724 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-12 07:31:57,274 - DEBUG - Verifying the vn in opserver
2025-10-12 07:31:57,274 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-52833540:ctest-vn-30838724 virtual network link through opserver 10.0.0.48
2025-10-12 07:31:57,274 - DEBUG - Requesting: http://10.0.0.48:8081/analytics/uves/virtual-networks
2025-10-12 07:31:57,612 - DEBUG - Requesting: http://10.0.0.48:8081/analytics/uves/virtual-networks
2025-10-12 07:31:57,693 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-52833540:ctest-vn-30838724', 'href': 'http://10.0.0.48:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-52833540:ctest-vn-30838724?flat'}
2025-10-12 07:31:57,693 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-52833540:ctest-vn-30838724 is found in opserver
2025-10-12 07:31:57,718 - DEBUG - Do not have enough data to verify VN in agent
2025-10-12 07:31:57,731 - DEBUG - VRF ids for VN ctest-vn-30838724: {}
2025-10-12 07:31:57,732 - DEBUG - Requesting: http://10.0.0.48:8082/domains
2025-10-12 07:31:57,746 - DEBUG - Requesting: http://10.0.0.48:8082/domain/323c2aa9-4b1c-428e-b869-e75875bfdd80
2025-10-12 07:31:57,777 - DEBUG - Requesting: http://10.0.0.48:8082/project/b6d92b10-11b9-41e2-8197-c6801509b8b6
2025-10-12 07:31:57,882 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/df077c03-efa5-4058-ab0c-5f25385a9a0b
2025-10-12 07:31:57,908 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/df077c03-efa5-4058-ab0c-5f25385a9a0b
2025-10-12 07:31:57,930 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/c8745cb9-8d85-4d06-8ddd-9c068e96cb7c
2025-10-12 07:31:57,948 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/c8745cb9-8d85-4d06-8ddd-9c068e96cb7c
2025-10-12 07:31:57,967 - DEBUG - Requesting: http://10.0.0.48:8082/route-target/26b5d97a-193e-4c69-a34e-e0356e4972c5
2025-10-12 07:31:57,986 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-12 07:31:57,986 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/df077c03-efa5-4058-ab0c-5f25385a9a0b
2025-10-12 07:31:58,001 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/c8745cb9-8d85-4d06-8ddd-9c068e96cb7c
2025-10-12 07:31:58,027 - INFO - Verified VN network id 12 for VN df077c03-efa5-4058-ab0c-5f25385a9a0b
2025-10-12 07:31:58,027 - INFO - Verifications in API Server for VN ctest-vn-25558594 passed
2025-10-12 07:31:58,027 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/df077c03-efa5-4058-ab0c-5f25385a9a0b
2025-10-12 07:31:58,042 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/c8745cb9-8d85-4d06-8ddd-9c068e96cb7c
2025-10-12 07:31:58,056 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/c8745cb9-8d85-4d06-8ddd-9c068e96cb7c
2025-10-12 07:31:58,067 - DEBUG - Requesting: http://10.0.0.48:8082/route-target/26b5d97a-193e-4c69-a34e-e0356e4972c5
2025-10-12 07:31:58,087 - DEBUG - Control-node 10.0.0.48 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-52833540:ctest-vn-25558594', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-52833540', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16070950151642234968', 'uuid-lslong': '12325330893670095371'}, 'enable': 'true', 'created': '2025-10-12T07:31:54', 'last-modified': '2025-10-12T07:31:55', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:02.080576'}
2025-10-12 07:31:58,096 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-12 07:31:58,096 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-25558594 passed
2025-10-12 07:31:58,097 - DEBUG - ====Verifying policy data for ctest-vn-25558594 in API_Server ======
2025-10-12 07:31:58,097 - DEBUG - Requesting: http://10.0.0.48:8082/domains
2025-10-12 07:31:58,106 - DEBUG - Requesting: http://10.0.0.48:8082/domain/323c2aa9-4b1c-428e-b869-e75875bfdd80
2025-10-12 07:31:58,124 - DEBUG - Requesting: http://10.0.0.48:8082/project/b6d92b10-11b9-41e2-8197-c6801509b8b6
2025-10-12 07:31:58,214 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/df077c03-efa5-4058-ab0c-5f25385a9a0b
2025-10-12 07:31:58,228 - DEBUG - ==>Verifying data for policy with id: 3e27a8f8-6043-476a-84e8-96b8ed89d294, fqn: ['default-domain', 'ctest-TestBasicPolicy-52833540', 'ctest-policy-allow-all-16341604']
2025-10-12 07:31:58,228 - INFO - VN ctest-vn-25558594 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-12 07:31:58,229 - DEBUG - Verifying the vn in opserver
2025-10-12 07:31:58,229 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-52833540:ctest-vn-25558594 virtual network link through opserver 10.0.0.48
2025-10-12 07:31:58,229 - DEBUG - Requesting: http://10.0.0.48:8081/analytics/uves/virtual-networks
2025-10-12 07:31:58,243 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-52833540:ctest-vn-25558594', 'href': 'http://10.0.0.48:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-52833540:ctest-vn-25558594?flat'}
2025-10-12 07:31:58,243 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-52833540:ctest-vn-25558594 is found in opserver
2025-10-12 07:31:58,258 - DEBUG - Do not have enough data to verify VN in agent
2025-10-12 07:31:58,265 - DEBUG - VRF ids for VN ctest-vn-25558594: {}
2025-10-12 07:31:58,358 - DEBUG - Services list from nova: [