2025-08-26 10:50:09,578 - INFO - Domain Default found not creating
2025-08-26 10:50:09,739 - INFO - Project ctest-TestBasicPolicy-45846856 not found, creating it
2025-08-26 10:50:10,261 - INFO - Created Project:ctest-TestBasicPolicy-45846856, ID : ddf84292-1dcb-43d7-9fcd-f4b691f6f3b9
2025-08-26 10:50:11,801 - INFO - ================================================================================
2025-08-26 10:50:11,801 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-08-26 10:50:11,801 - 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-08-26 10:50:12,075 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.17': '0'}} with
2025-08-26 10:50:12,075 - INFO - Initial checks done. Running the testcase now
2025-08-26 10:50:12,075 - INFO -
2025-08-26 10:50:12,714 - DEBUG - Response for create_network : {'network': {'id': 'c2377dab-cdb3-402c-9e88-69ec807e01b4', 'name': 'ctest-vn-68468358', 'tenant_id': 'ddf842921dcb43d79fcdf4b691f6f3b9', 'project_id': 'ddf842921dcb43d79fcdf4b691f6f3b9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-45846856', 'ctest-vn-68468358'], 'port_security_enabled': True, 'description': ''}}
2025-08-26 10:50:12,893 - DEBUG - Response for create_subnet : {'subnet': {'id': '86402a15-7bc6-4d89-a6f7-1a3d80a1bf17', 'name': '', 'tenant_id': 'ddf842921dcb43d79fcdf4b691f6f3b9', 'network_id': 'c2377dab-cdb3-402c-9e88-69ec807e01b4', 'ip_version': 4, 'cidr': '32.37.89.128/26', 'allocation_pools': [{'start': '32.37.89.130', 'end': '32.37.89.190'}], 'gateway_ip': '32.37.89.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '32.37.89.130', 'tags': [], 'project_id': 'ddf842921dcb43d79fcdf4b691f6f3b9'}}
2025-08-26 10:50:12,910 - INFO - Created VN ctest-vn-68468358
2025-08-26 10:50:12,962 - DEBUG - VN ctest-vn-68468358 UUID is c2377dab-cdb3-402c-9e88-69ec807e01b4
2025-08-26 10:50:13,313 - DEBUG - Response for create_network : {'network': {'id': '8aae929f-6f22-492a-be0c-b1453b76ef11', 'name': 'ctest-vn-12682447', 'tenant_id': 'ddf842921dcb43d79fcdf4b691f6f3b9', 'project_id': 'ddf842921dcb43d79fcdf4b691f6f3b9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-45846856', 'ctest-vn-12682447'], 'port_security_enabled': True, 'description': ''}}
2025-08-26 10:50:13,492 - DEBUG - Response for create_subnet : {'subnet': {'id': '8060b11f-320f-4fe0-8c05-c2d40bedfccf', 'name': '', 'tenant_id': 'ddf842921dcb43d79fcdf4b691f6f3b9', 'network_id': '8aae929f-6f22-492a-be0c-b1453b76ef11', 'ip_version': 4, 'cidr': '92.157.62.192/26', 'allocation_pools': [{'start': '92.157.62.194', 'end': '92.157.62.254'}], 'gateway_ip': '92.157.62.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '92.157.62.194', 'tags': [], 'project_id': 'ddf842921dcb43d79fcdf4b691f6f3b9'}}
2025-08-26 10:50:13,514 - INFO - Created VN ctest-vn-12682447
2025-08-26 10:50:13,570 - DEBUG - VN ctest-vn-12682447 UUID is 8aae929f-6f22-492a-be0c-b1453b76ef11
2025-08-26 10:50:13,726 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-45846856:ctest-vn-68468358, 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-45846856:ctest-vn-12682447, 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-08-26 10:50:14,028 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'c2377dab-cdb3-402c-9e88-69ec807e01b4', 'name': 'ctest-vn-68468358', 'tenant_id': 'ddf842921dcb43d79fcdf4b691f6f3b9', 'project_id': 'ddf842921dcb43d79fcdf4b691f6f3b9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['86402a15-7bc6-4d89-a6f7-1a3d80a1bf17'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-45846856', 'ctest-vn-68468358'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-45846856', 'ctest-policy-allow-all-21330559']], 'subnet_ipam': [{'subnet_cidr': '32.37.89.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-08-26 10:50:14,270 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '8aae929f-6f22-492a-be0c-b1453b76ef11', 'name': 'ctest-vn-12682447', 'tenant_id': 'ddf842921dcb43d79fcdf4b691f6f3b9', 'project_id': 'ddf842921dcb43d79fcdf4b691f6f3b9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['8060b11f-320f-4fe0-8c05-c2d40bedfccf'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-45846856', 'ctest-vn-12682447'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-45846856', 'ctest-policy-allow-all-21330559']], 'subnet_ipam': [{'subnet_cidr': '92.157.62.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-08-26 10:50:14,442 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-08-26 10:50:14,735 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-08-26 10:50:14,771 - DEBUG - Requesting: http://10.0.0.22:8082/domain/2b2a49ac-6a70-4755-853b-667a1a09565f
2025-08-26 10:50:14,786 - DEBUG - Requesting: http://10.0.0.22:8082/project/ddf84292-1dcb-43d7-9fcd-f4b691f6f3b9
2025-08-26 10:50:14,868 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/c2377dab-cdb3-402c-9e88-69ec807e01b4
2025-08-26 10:50:14,880 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/c2377dab-cdb3-402c-9e88-69ec807e01b4
2025-08-26 10:50:14,891 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/94a3ec41-9a18-4fe0-99ed-c6396a8cfc8c
2025-08-26 10:50:14,899 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/94a3ec41-9a18-4fe0-99ed-c6396a8cfc8c
2025-08-26 10:50:14,907 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/9bdb7403-457e-45ba-9dac-4e3166b9c527
2025-08-26 10:50:14,915 - DEBUG - Route Targets: ['target:64512:8000005']
2025-08-26 10:50:14,916 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/c2377dab-cdb3-402c-9e88-69ec807e01b4
2025-08-26 10:50:14,927 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/94a3ec41-9a18-4fe0-99ed-c6396a8cfc8c
2025-08-26 10:50:14,943 - INFO - Verified VN network id 10 for VN c2377dab-cdb3-402c-9e88-69ec807e01b4
2025-08-26 10:50:14,943 - INFO - Verifications in API Server for VN ctest-vn-68468358 passed
2025-08-26 10:50:14,943 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/c2377dab-cdb3-402c-9e88-69ec807e01b4
2025-08-26 10:50:14,955 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/94a3ec41-9a18-4fe0-99ed-c6396a8cfc8c
2025-08-26 10:50:14,964 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/94a3ec41-9a18-4fe0-99ed-c6396a8cfc8c
2025-08-26 10:50:14,973 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/9bdb7403-457e-45ba-9dac-4e3166b9c527
2025-08-26 10:50:14,987 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-45846856:ctest-vn-68468358', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-45846856', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13994792543921061932', 'uuid-lslong': '11423496919314203060'}, 'enable': 'true', 'created': '2025-08-26T10:50:12', 'last-modified': '2025-08-26T10:50:13', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.984676'}
2025-08-26 10:50:14,993 - DEBUG - Route Targets: ['target:64512:8000005']
2025-08-26 10:50:14,993 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-68468358 passed
2025-08-26 10:50:14,993 - DEBUG - ====Verifying policy data for ctest-vn-68468358 in API_Server ======
2025-08-26 10:50:14,994 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-08-26 10:50:14,999 - DEBUG - Requesting: http://10.0.0.22:8082/domain/2b2a49ac-6a70-4755-853b-667a1a09565f
2025-08-26 10:50:15,011 - DEBUG - Requesting: http://10.0.0.22:8082/project/ddf84292-1dcb-43d7-9fcd-f4b691f6f3b9
2025-08-26 10:50:15,086 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/c2377dab-cdb3-402c-9e88-69ec807e01b4
2025-08-26 10:50:15,101 - DEBUG - ==>Verifying data for policy with id: 2da0ae67-b3e7-41b1-8183-14b8027ef54a, fqn: ['default-domain', 'ctest-TestBasicPolicy-45846856', 'ctest-policy-allow-all-21330559']
2025-08-26 10:50:15,101 - INFO - VN ctest-vn-68468358 Policy verification: verify_vn_policy_in_api_server, status: True
2025-08-26 10:50:15,101 - DEBUG - Verifying the vn in opserver
2025-08-26 10:50:15,101 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-45846856:ctest-vn-68468358 virtual network link through opserver 10.0.0.22
2025-08-26 10:50:15,102 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2025-08-26 10:50:15,397 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2025-08-26 10:50:15,452 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-45846856:ctest-vn-68468358', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-45846856:ctest-vn-68468358?flat'}
2025-08-26 10:50:15,452 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-45846856:ctest-vn-68468358 is found in opserver
2025-08-26 10:50:15,464 - DEBUG - Do not have enough data to verify VN in agent
2025-08-26 10:50:15,469 - DEBUG - VRF ids for VN ctest-vn-68468358: {}
2025-08-26 10:50:15,469 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-08-26 10:50:15,475 - DEBUG - Requesting: http://10.0.0.22:8082/domain/2b2a49ac-6a70-4755-853b-667a1a09565f
2025-08-26 10:50:15,488 - DEBUG - Requesting: http://10.0.0.22:8082/project/ddf84292-1dcb-43d7-9fcd-f4b691f6f3b9
2025-08-26 10:50:15,560 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/8aae929f-6f22-492a-be0c-b1453b76ef11
2025-08-26 10:50:15,576 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/8aae929f-6f22-492a-be0c-b1453b76ef11
2025-08-26 10:50:15,587 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/1eb6c318-c7b2-4438-a94c-a30476534426
2025-08-26 10:50:15,595 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/1eb6c318-c7b2-4438-a94c-a30476534426
2025-08-26 10:50:15,602 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/7e7c4699-c242-4ba7-9226-bb62307052ae
2025-08-26 10:50:15,610 - DEBUG - Route Targets: ['target:64512:8000006']
2025-08-26 10:50:15,610 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/8aae929f-6f22-492a-be0c-b1453b76ef11
2025-08-26 10:50:15,620 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/1eb6c318-c7b2-4438-a94c-a30476534426
2025-08-26 10:50:15,634 - INFO - Verified VN network id 11 for VN 8aae929f-6f22-492a-be0c-b1453b76ef11
2025-08-26 10:50:15,634 - INFO - Verifications in API Server for VN ctest-vn-12682447 passed
2025-08-26 10:50:15,635 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/8aae929f-6f22-492a-be0c-b1453b76ef11
2025-08-26 10:50:15,645 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/1eb6c318-c7b2-4438-a94c-a30476534426
2025-08-26 10:50:15,652 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/1eb6c318-c7b2-4438-a94c-a30476534426
2025-08-26 10:50:15,661 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/7e7c4699-c242-4ba7-9226-bb62307052ae
2025-08-26 10:50:15,676 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-45846856:ctest-vn-12682447', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-45846856', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9993085836643682602', 'uuid-lslong': '13694515477835345681'}, 'enable': 'true', 'created': '2025-08-26T10:50:13', 'last-modified': '2025-08-26T10:50:14', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.435453'}
2025-08-26 10:50:15,683 - DEBUG - Route Targets: ['target:64512:8000006']
2025-08-26 10:50:15,683 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-12682447 passed
2025-08-26 10:50:15,683 - DEBUG - ====Verifying policy data for ctest-vn-12682447 in API_Server ======
2025-08-26 10:50:15,683 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-08-26 10:50:15,689 - DEBUG - Requesting: http://10.0.0.22:8082/domain/2b2a49ac-6a70-4755-853b-667a1a09565f
2025-08-26 10:50:15,701 - DEBUG - Requesting: http://10.0.0.22:8082/project/ddf84292-1dcb-43d7-9fcd-f4b691f6f3b9
2025-08-26 10:50:15,774 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/8aae929f-6f22-492a-be0c-b1453b76ef11
2025-08-26 10:50:15,785 - DEBUG - ==>Verifying data for policy with id: 2da0ae67-b3e7-41b1-8183-14b8027ef54a, fqn: ['default-domain', 'ctest-TestBasicPolicy-45846856', 'ctest-policy-allow-all-21330559']
2025-08-26 10:50:15,785 - INFO - VN ctest-vn-12682447 Policy verification: verify_vn_policy_in_api_server, status: True
2025-08-26 10:50:15,785 - DEBUG - Verifying the vn in opserver
2025-08-26 10:50:15,785 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-45846856:ctest-vn-12682447 virtual network link through opserver 10.0.0.22
2025-08-26 10:50:15,785 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2025-08-26 10:50:15,797 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-45846856:ctest-vn-12682447', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-45846856:ctest-vn-12682447?flat'}
2025-08-26 10:50:15,797 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-45846856:ctest-vn-12682447 is found in opserver
2025-08-26 10:50:15,809 - DEBUG - Do not have enough data to verify VN in agent
2025-08-26 10:50:15,815 - DEBUG - VRF ids for VN ctest-vn-12682447: {}
2025-08-26 10:50:15,875 - DEBUG - Services list from nova: [