2025-11-25 12:41:39,962 - INFO - Domain Default found not creating
2025-11-25 12:41:40,209 - INFO - Project ctest-TestBasicPolicy-86210838 not found, creating it
2025-11-25 12:41:40,803 - INFO - Created Project:ctest-TestBasicPolicy-86210838, ID : cc5dae81-6a85-4e18-a137-ff90c60ec5e8
2025-11-25 12:41:42,592 - INFO - ================================================================================
2025-11-25 12:41:42,592 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-11-25 12:41:42,592 - 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-11-25 12:41:42,891 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.254': '0'}} with
2025-11-25 12:41:42,891 - INFO - Initial checks done. Running the testcase now
2025-11-25 12:41:42,891 - INFO -
2025-11-25 12:41:43,563 - DEBUG - Response for create_network : {'network': {'id': '1d860d6a-009b-4bfa-8f31-00379c1dc35a', 'name': 'ctest-vn-51923642', 'tenant_id': 'cc5dae816a854e18a137ff90c60ec5e8', 'project_id': 'cc5dae816a854e18a137ff90c60ec5e8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-86210838', 'ctest-vn-51923642'], 'port_security_enabled': True, 'description': ''}}
2025-11-25 12:41:43,776 - DEBUG - Response for create_subnet : {'subnet': {'id': 'e90f9531-bc58-4089-a062-c0aee797d8af', 'name': '', 'tenant_id': 'cc5dae816a854e18a137ff90c60ec5e8', 'network_id': '1d860d6a-009b-4bfa-8f31-00379c1dc35a', 'ip_version': 4, 'cidr': '31.220.65.0/26', 'allocation_pools': [{'start': '31.220.65.2', 'end': '31.220.65.62'}], 'gateway_ip': '31.220.65.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '31.220.65.2', 'tags': [], 'project_id': 'cc5dae816a854e18a137ff90c60ec5e8'}}
2025-11-25 12:41:43,802 - INFO - Created VN ctest-vn-51923642
2025-11-25 12:41:43,859 - DEBUG - VN ctest-vn-51923642 UUID is 1d860d6a-009b-4bfa-8f31-00379c1dc35a
2025-11-25 12:41:44,183 - DEBUG - Response for create_network : {'network': {'id': 'c02bbfad-19dd-494d-81b3-0b9f656bf03a', 'name': 'ctest-vn-46015106', 'tenant_id': 'cc5dae816a854e18a137ff90c60ec5e8', 'project_id': 'cc5dae816a854e18a137ff90c60ec5e8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-86210838', 'ctest-vn-46015106'], 'port_security_enabled': True, 'description': ''}}
2025-11-25 12:41:44,405 - DEBUG - Response for create_subnet : {'subnet': {'id': 'd7c61123-c47f-475f-a5b2-403e19e2e0a0', 'name': '', 'tenant_id': 'cc5dae816a854e18a137ff90c60ec5e8', 'network_id': 'c02bbfad-19dd-494d-81b3-0b9f656bf03a', 'ip_version': 4, 'cidr': '1.132.87.0/26', 'allocation_pools': [{'start': '1.132.87.2', 'end': '1.132.87.62'}], 'gateway_ip': '1.132.87.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '1.132.87.2', 'tags': [], 'project_id': 'cc5dae816a854e18a137ff90c60ec5e8'}}
2025-11-25 12:41:44,424 - INFO - Created VN ctest-vn-46015106
2025-11-25 12:41:44,479 - DEBUG - VN ctest-vn-46015106 UUID is c02bbfad-19dd-494d-81b3-0b9f656bf03a
2025-11-25 12:41:44,625 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-86210838:ctest-vn-51923642, 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-86210838:ctest-vn-46015106, 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-11-25 12:41:44,985 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '1d860d6a-009b-4bfa-8f31-00379c1dc35a', 'name': 'ctest-vn-51923642', 'tenant_id': 'cc5dae816a854e18a137ff90c60ec5e8', 'project_id': 'cc5dae816a854e18a137ff90c60ec5e8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['e90f9531-bc58-4089-a062-c0aee797d8af'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-86210838', 'ctest-vn-51923642'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-86210838', 'ctest-policy-allow-all-67386276']], 'subnet_ipam': [{'subnet_cidr': '31.220.65.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-11-25 12:41:45,308 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'c02bbfad-19dd-494d-81b3-0b9f656bf03a', 'name': 'ctest-vn-46015106', 'tenant_id': 'cc5dae816a854e18a137ff90c60ec5e8', 'project_id': 'cc5dae816a854e18a137ff90c60ec5e8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['d7c61123-c47f-475f-a5b2-403e19e2e0a0'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-86210838', 'ctest-vn-46015106'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-86210838', 'ctest-policy-allow-all-67386276']], 'subnet_ipam': [{'subnet_cidr': '1.132.87.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-11-25 12:41:45,459 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-11-25 12:41:45,764 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-11-25 12:41:45,805 - DEBUG - Requesting: http://10.0.0.38:8082/domain/4ac658d7-507b-4f87-bf05-211afa50c252
2025-11-25 12:41:45,825 - DEBUG - Requesting: http://10.0.0.38:8082/project/cc5dae81-6a85-4e18-a137-ff90c60ec5e8
2025-11-25 12:41:45,911 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/1d860d6a-009b-4bfa-8f31-00379c1dc35a
2025-11-25 12:41:45,926 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/1d860d6a-009b-4bfa-8f31-00379c1dc35a
2025-11-25 12:41:45,937 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/127f153b-1e54-4afc-a98c-1a8e8f677da3
2025-11-25 12:41:45,946 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/127f153b-1e54-4afc-a98c-1a8e8f677da3
2025-11-25 12:41:45,957 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/2621929b-7bb0-4730-a3ee-9c99c1988cdf
2025-11-25 12:41:45,966 - DEBUG - Route Targets: ['target:64512:8000004']
2025-11-25 12:41:45,966 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/1d860d6a-009b-4bfa-8f31-00379c1dc35a
2025-11-25 12:41:45,983 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/127f153b-1e54-4afc-a98c-1a8e8f677da3
2025-11-25 12:41:46,005 - INFO - Verified VN network id 11 for VN 1d860d6a-009b-4bfa-8f31-00379c1dc35a
2025-11-25 12:41:46,005 - INFO - Verifications in API Server for VN ctest-vn-51923642 passed
2025-11-25 12:41:46,005 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/1d860d6a-009b-4bfa-8f31-00379c1dc35a
2025-11-25 12:41:46,017 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/127f153b-1e54-4afc-a98c-1a8e8f677da3
2025-11-25 12:41:46,025 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/127f153b-1e54-4afc-a98c-1a8e8f677da3
2025-11-25 12:41:46,034 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/2621929b-7bb0-4730-a3ee-9c99c1988cdf
2025-11-25 12:41:46,046 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-86210838:ctest-vn-51923642', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-86210838', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '2127402622907010042', 'uuid-lslong': '10318028460124914522'}, 'enable': 'true', 'created': '2025-11-25T12:41:43', 'last-modified': '2025-11-25T12:41:44', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.086803'}
2025-11-25 12:41:46,052 - DEBUG - Route Targets: ['target:64512:8000004']
2025-11-25 12:41:46,052 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-51923642 passed
2025-11-25 12:41:46,053 - DEBUG - ====Verifying policy data for ctest-vn-51923642 in API_Server ======
2025-11-25 12:41:46,053 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-11-25 12:41:46,059 - DEBUG - Requesting: http://10.0.0.38:8082/domain/4ac658d7-507b-4f87-bf05-211afa50c252
2025-11-25 12:41:46,073 - DEBUG - Requesting: http://10.0.0.38:8082/project/cc5dae81-6a85-4e18-a137-ff90c60ec5e8
2025-11-25 12:41:46,152 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/1d860d6a-009b-4bfa-8f31-00379c1dc35a
2025-11-25 12:41:46,163 - DEBUG - ==>Verifying data for policy with id: 761e49be-e8ce-4639-a304-af457dac0689, fqn: ['default-domain', 'ctest-TestBasicPolicy-86210838', 'ctest-policy-allow-all-67386276']
2025-11-25 12:41:46,163 - INFO - VN ctest-vn-51923642 Policy verification: verify_vn_policy_in_api_server, status: True
2025-11-25 12:41:46,163 - DEBUG - Verifying the vn in opserver
2025-11-25 12:41:46,163 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-86210838:ctest-vn-51923642 virtual network link through opserver 10.0.0.38
2025-11-25 12:41:46,164 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-11-25 12:41:46,465 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-11-25 12:41:46,577 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-86210838:ctest-vn-51923642', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-86210838:ctest-vn-51923642?flat'}
2025-11-25 12:41:46,578 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-86210838:ctest-vn-51923642 is found in opserver
2025-11-25 12:41:46,599 - DEBUG - Do not have enough data to verify VN in agent
2025-11-25 12:41:46,608 - DEBUG - VRF ids for VN ctest-vn-51923642: {}
2025-11-25 12:41:46,608 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-11-25 12:41:46,617 - DEBUG - Requesting: http://10.0.0.38:8082/domain/4ac658d7-507b-4f87-bf05-211afa50c252
2025-11-25 12:41:46,631 - DEBUG - Requesting: http://10.0.0.38:8082/project/cc5dae81-6a85-4e18-a137-ff90c60ec5e8
2025-11-25 12:41:46,738 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/c02bbfad-19dd-494d-81b3-0b9f656bf03a
2025-11-25 12:41:46,761 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/c02bbfad-19dd-494d-81b3-0b9f656bf03a
2025-11-25 12:41:46,777 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/d0ee52f0-105e-4114-aee3-1875508173ad
2025-11-25 12:41:46,787 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/d0ee52f0-105e-4114-aee3-1875508173ad
2025-11-25 12:41:46,795 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/d52e1248-2fed-48ea-ba86-42c2642f911c
2025-11-25 12:41:46,803 - DEBUG - Route Targets: ['target:64512:8000005']
2025-11-25 12:41:46,803 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/c02bbfad-19dd-494d-81b3-0b9f656bf03a
2025-11-25 12:41:46,817 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/d0ee52f0-105e-4114-aee3-1875508173ad
2025-11-25 12:41:46,838 - INFO - Verified VN network id 12 for VN c02bbfad-19dd-494d-81b3-0b9f656bf03a
2025-11-25 12:41:46,838 - INFO - Verifications in API Server for VN ctest-vn-46015106 passed
2025-11-25 12:41:46,838 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/c02bbfad-19dd-494d-81b3-0b9f656bf03a
2025-11-25 12:41:46,848 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/d0ee52f0-105e-4114-aee3-1875508173ad
2025-11-25 12:41:46,856 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/d0ee52f0-105e-4114-aee3-1875508173ad
2025-11-25 12:41:46,865 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/d52e1248-2fed-48ea-ba86-42c2642f911c
2025-11-25 12:41:46,883 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-86210838:ctest-vn-46015106', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-86210838', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13847372229464901965', 'uuid-lslong': '9345826430953189434'}, 'enable': 'true', 'created': '2025-11-25T12:41:44', 'last-modified': '2025-11-25T12:41:45', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.655297'}
2025-11-25 12:41:46,891 - DEBUG - Route Targets: ['target:64512:8000005']
2025-11-25 12:41:46,891 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-46015106 passed
2025-11-25 12:41:46,891 - DEBUG - ====Verifying policy data for ctest-vn-46015106 in API_Server ======
2025-11-25 12:41:46,891 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-11-25 12:41:46,898 - DEBUG - Requesting: http://10.0.0.38:8082/domain/4ac658d7-507b-4f87-bf05-211afa50c252
2025-11-25 12:41:46,909 - DEBUG - Requesting: http://10.0.0.38:8082/project/cc5dae81-6a85-4e18-a137-ff90c60ec5e8
2025-11-25 12:41:46,996 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/c02bbfad-19dd-494d-81b3-0b9f656bf03a
2025-11-25 12:41:47,011 - DEBUG - ==>Verifying data for policy with id: 761e49be-e8ce-4639-a304-af457dac0689, fqn: ['default-domain', 'ctest-TestBasicPolicy-86210838', 'ctest-policy-allow-all-67386276']
2025-11-25 12:41:47,011 - INFO - VN ctest-vn-46015106 Policy verification: verify_vn_policy_in_api_server, status: True
2025-11-25 12:41:47,011 - DEBUG - Verifying the vn in opserver
2025-11-25 12:41:47,011 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-86210838:ctest-vn-46015106 virtual network link through opserver 10.0.0.38
2025-11-25 12:41:47,012 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-11-25 12:41:47,027 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-86210838:ctest-vn-46015106', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-86210838:ctest-vn-46015106?flat'}
2025-11-25 12:41:47,027 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-86210838:ctest-vn-46015106 is found in opserver
2025-11-25 12:41:47,041 - DEBUG - Do not have enough data to verify VN in agent
2025-11-25 12:41:47,049 - DEBUG - VRF ids for VN ctest-vn-46015106: {}
2025-11-25 12:41:47,124 - DEBUG - Services list from nova: [