2025-10-23 16:07:49,679 - INFO - Domain Default found not creating
2025-10-23 16:07:49,842 - INFO - Project ctest-TestBasicPolicy-14096862 not found, creating it
2025-10-23 16:07:50,309 - INFO - Created Project:ctest-TestBasicPolicy-14096862, ID : 3b9ed088-5478-415d-a055-ea96565d2e1f
2025-10-23 16:07:51,903 - INFO - ================================================================================
2025-10-23 16:07:51,903 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-10-23 16:07:51,904 - 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 16:07:52,160 - DEBUG - Nothing to compare xmpp stats {'10.0.0.33': {'10.20.0.17': '0'}} with
2025-10-23 16:07:52,160 - INFO - Initial checks done. Running the testcase now
2025-10-23 16:07:52,160 - INFO -
2025-10-23 16:07:52,756 - DEBUG - Response for create_network : {'network': {'id': 'e47d48d0-6ddd-42d2-982b-a60c1ee3e8d2', 'name': 'ctest-vn-90744771', 'tenant_id': '3b9ed0885478415da055ea96565d2e1f', 'project_id': '3b9ed0885478415da055ea96565d2e1f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-14096862', 'ctest-vn-90744771'], 'port_security_enabled': True, 'description': ''}}
2025-10-23 16:07:52,942 - DEBUG - Response for create_subnet : {'subnet': {'id': '8d47c434-de6f-41e3-98cc-4d7aa0ca095e', 'name': '', 'tenant_id': '3b9ed0885478415da055ea96565d2e1f', 'network_id': 'e47d48d0-6ddd-42d2-982b-a60c1ee3e8d2', 'ip_version': 4, 'cidr': '198.6.2.192/26', 'allocation_pools': [{'start': '198.6.2.194', 'end': '198.6.2.254'}], 'gateway_ip': '198.6.2.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '198.6.2.194', 'tags': [], 'project_id': '3b9ed0885478415da055ea96565d2e1f'}}
2025-10-23 16:07:52,962 - INFO - Created VN ctest-vn-90744771
2025-10-23 16:07:53,015 - DEBUG - VN ctest-vn-90744771 UUID is e47d48d0-6ddd-42d2-982b-a60c1ee3e8d2
2025-10-23 16:07:53,305 - DEBUG - Response for create_network : {'network': {'id': '399a9d40-cd6a-429d-93ef-dde9f4a90f15', 'name': 'ctest-vn-50073014', 'tenant_id': '3b9ed0885478415da055ea96565d2e1f', 'project_id': '3b9ed0885478415da055ea96565d2e1f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-14096862', 'ctest-vn-50073014'], 'port_security_enabled': True, 'description': ''}}
2025-10-23 16:07:53,540 - DEBUG - Response for create_subnet : {'subnet': {'id': '493989af-3504-437b-a37a-6d1eeaf1e453', 'name': '', 'tenant_id': '3b9ed0885478415da055ea96565d2e1f', 'network_id': '399a9d40-cd6a-429d-93ef-dde9f4a90f15', 'ip_version': 4, 'cidr': '121.144.121.64/26', 'allocation_pools': [{'start': '121.144.121.66', 'end': '121.144.121.126'}], 'gateway_ip': '121.144.121.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '121.144.121.66', 'tags': [], 'project_id': '3b9ed0885478415da055ea96565d2e1f'}}
2025-10-23 16:07:53,561 - INFO - Created VN ctest-vn-50073014
2025-10-23 16:07:53,611 - DEBUG - VN ctest-vn-50073014 UUID is 399a9d40-cd6a-429d-93ef-dde9f4a90f15
2025-10-23 16:07:53,738 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-14096862:ctest-vn-90744771, 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-14096862:ctest-vn-50073014, 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 16:07:54,057 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'e47d48d0-6ddd-42d2-982b-a60c1ee3e8d2', 'name': 'ctest-vn-90744771', 'tenant_id': '3b9ed0885478415da055ea96565d2e1f', 'project_id': '3b9ed0885478415da055ea96565d2e1f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['8d47c434-de6f-41e3-98cc-4d7aa0ca095e'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-14096862', 'ctest-vn-90744771'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-14096862', 'ctest-policy-allow-all-11325347']], 'subnet_ipam': [{'subnet_cidr': '198.6.2.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-23 16:07:54,331 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '399a9d40-cd6a-429d-93ef-dde9f4a90f15', 'name': 'ctest-vn-50073014', 'tenant_id': '3b9ed0885478415da055ea96565d2e1f', 'project_id': '3b9ed0885478415da055ea96565d2e1f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['493989af-3504-437b-a37a-6d1eeaf1e453'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-14096862', 'ctest-vn-50073014'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-14096862', 'ctest-policy-allow-all-11325347']], 'subnet_ipam': [{'subnet_cidr': '121.144.121.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-23 16:07:54,479 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2025-10-23 16:07:54,821 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2025-10-23 16:07:54,851 - DEBUG - Requesting: http://10.0.0.33:8082/domain/b2e5f223-f049-4df1-907a-f3d76c19ea60
2025-10-23 16:07:54,864 - DEBUG - Requesting: http://10.0.0.33:8082/project/3b9ed088-5478-415d-a055-ea96565d2e1f
2025-10-23 16:07:54,933 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/e47d48d0-6ddd-42d2-982b-a60c1ee3e8d2
2025-10-23 16:07:54,949 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/e47d48d0-6ddd-42d2-982b-a60c1ee3e8d2
2025-10-23 16:07:54,960 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/2cb20859-2f7b-488b-a1d5-7a07c39db448
2025-10-23 16:07:54,968 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/2cb20859-2f7b-488b-a1d5-7a07c39db448
2025-10-23 16:07:54,977 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/7e557058-1583-44b0-aa47-e63965a9f850
2025-10-23 16:07:54,983 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-23 16:07:54,983 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/e47d48d0-6ddd-42d2-982b-a60c1ee3e8d2
2025-10-23 16:07:54,993 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/2cb20859-2f7b-488b-a1d5-7a07c39db448
2025-10-23 16:07:55,009 - INFO - Verified VN network id 11 for VN e47d48d0-6ddd-42d2-982b-a60c1ee3e8d2
2025-10-23 16:07:55,009 - INFO - Verifications in API Server for VN ctest-vn-90744771 passed
2025-10-23 16:07:55,009 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/e47d48d0-6ddd-42d2-982b-a60c1ee3e8d2
2025-10-23 16:07:55,020 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/2cb20859-2f7b-488b-a1d5-7a07c39db448
2025-10-23 16:07:55,030 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/2cb20859-2f7b-488b-a1d5-7a07c39db448
2025-10-23 16:07:55,037 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/7e557058-1583-44b0-aa47-e63965a9f850
2025-10-23 16:07:55,053 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-14096862:ctest-vn-90744771', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-14096862', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16464395872770015954', 'uuid-lslong': '10965040288751675602'}, 'enable': 'true', 'created': '2025-10-23T16:07:52', 'last-modified': '2025-10-23T16:07:54', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.023528'}
2025-10-23 16:07:55,060 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-23 16:07:55,060 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-90744771 passed
2025-10-23 16:07:55,060 - DEBUG - ====Verifying policy data for ctest-vn-90744771 in API_Server ======
2025-10-23 16:07:55,060 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2025-10-23 16:07:55,066 - DEBUG - Requesting: http://10.0.0.33:8082/domain/b2e5f223-f049-4df1-907a-f3d76c19ea60
2025-10-23 16:07:55,077 - DEBUG - Requesting: http://10.0.0.33:8082/project/3b9ed088-5478-415d-a055-ea96565d2e1f
2025-10-23 16:07:55,147 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/e47d48d0-6ddd-42d2-982b-a60c1ee3e8d2
2025-10-23 16:07:55,157 - DEBUG - ==>Verifying data for policy with id: fdb8d4d6-3f63-4b08-bfb6-b222d7faca02, fqn: ['default-domain', 'ctest-TestBasicPolicy-14096862', 'ctest-policy-allow-all-11325347']
2025-10-23 16:07:55,157 - INFO - VN ctest-vn-90744771 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-23 16:07:55,157 - DEBUG - Verifying the vn in opserver
2025-10-23 16:07:55,157 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-14096862:ctest-vn-90744771 virtual network link through opserver 10.0.0.33
2025-10-23 16:07:55,158 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks
2025-10-23 16:07:55,502 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks
2025-10-23 16:07:55,561 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-14096862:ctest-vn-90744771', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-14096862:ctest-vn-90744771?flat'}
2025-10-23 16:07:55,561 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-14096862:ctest-vn-90744771 is found in opserver
2025-10-23 16:07:55,572 - DEBUG - Do not have enough data to verify VN in agent
2025-10-23 16:07:55,577 - DEBUG - VRF ids for VN ctest-vn-90744771: {}
2025-10-23 16:07:55,577 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2025-10-23 16:07:55,584 - DEBUG - Requesting: http://10.0.0.33:8082/domain/b2e5f223-f049-4df1-907a-f3d76c19ea60
2025-10-23 16:07:55,597 - DEBUG - Requesting: http://10.0.0.33:8082/project/3b9ed088-5478-415d-a055-ea96565d2e1f
2025-10-23 16:07:55,668 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/399a9d40-cd6a-429d-93ef-dde9f4a90f15
2025-10-23 16:07:55,681 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/399a9d40-cd6a-429d-93ef-dde9f4a90f15
2025-10-23 16:07:55,690 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/f58bb5a4-27d1-428c-9aa8-c915ac6217ec
2025-10-23 16:07:55,698 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/f58bb5a4-27d1-428c-9aa8-c915ac6217ec
2025-10-23 16:07:55,704 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/072af489-33ea-4f5e-b9d8-bcccd55eb203
2025-10-23 16:07:55,710 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-23 16:07:55,710 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/399a9d40-cd6a-429d-93ef-dde9f4a90f15
2025-10-23 16:07:55,721 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/f58bb5a4-27d1-428c-9aa8-c915ac6217ec
2025-10-23 16:07:55,735 - INFO - Verified VN network id 12 for VN 399a9d40-cd6a-429d-93ef-dde9f4a90f15
2025-10-23 16:07:55,735 - INFO - Verifications in API Server for VN ctest-vn-50073014 passed
2025-10-23 16:07:55,736 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/399a9d40-cd6a-429d-93ef-dde9f4a90f15
2025-10-23 16:07:55,744 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/f58bb5a4-27d1-428c-9aa8-c915ac6217ec
2025-10-23 16:07:55,753 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/f58bb5a4-27d1-428c-9aa8-c915ac6217ec
2025-10-23 16:07:55,759 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/072af489-33ea-4f5e-b9d8-bcccd55eb203
2025-10-23 16:07:55,774 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-14096862:ctest-vn-50073014', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-14096862', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '4150802908225094301', 'uuid-lslong': '10659982839911091989'}, 'enable': 'true', 'created': '2025-10-23T16:07:53', 'last-modified': '2025-10-23T16:07:54', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.509624'}
2025-10-23 16:07:55,782 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-23 16:07:55,782 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-50073014 passed
2025-10-23 16:07:55,782 - DEBUG - ====Verifying policy data for ctest-vn-50073014 in API_Server ======
2025-10-23 16:07:55,782 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2025-10-23 16:07:55,788 - DEBUG - Requesting: http://10.0.0.33:8082/domain/b2e5f223-f049-4df1-907a-f3d76c19ea60
2025-10-23 16:07:55,799 - DEBUG - Requesting: http://10.0.0.33:8082/project/3b9ed088-5478-415d-a055-ea96565d2e1f
2025-10-23 16:07:55,876 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/399a9d40-cd6a-429d-93ef-dde9f4a90f15
2025-10-23 16:07:55,889 - DEBUG - ==>Verifying data for policy with id: fdb8d4d6-3f63-4b08-bfb6-b222d7faca02, fqn: ['default-domain', 'ctest-TestBasicPolicy-14096862', 'ctest-policy-allow-all-11325347']
2025-10-23 16:07:55,889 - INFO - VN ctest-vn-50073014 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-23 16:07:55,889 - DEBUG - Verifying the vn in opserver
2025-10-23 16:07:55,889 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-14096862:ctest-vn-50073014 virtual network link through opserver 10.0.0.33
2025-10-23 16:07:55,889 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks
2025-10-23 16:07:55,899 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-14096862:ctest-vn-50073014', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-14096862:ctest-vn-50073014?flat'}
2025-10-23 16:07:55,899 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-14096862:ctest-vn-50073014 is found in opserver
2025-10-23 16:07:55,910 - DEBUG - Do not have enough data to verify VN in agent
2025-10-23 16:07:55,915 - DEBUG - VRF ids for VN ctest-vn-50073014: {}
2025-10-23 16:07:55,985 - DEBUG - Services list from nova: [