2026-04-20 02:09:02,346 - INFO - Domain Default found not creating
2026-04-20 02:09:02,515 - INFO - Project ctest-TestBasicPolicy-09594100 not found, creating it
2026-04-20 02:09:02,961 - INFO - Created Project:ctest-TestBasicPolicy-09594100, ID : 28d24204-224d-4197-a2d2-4fabba87c953
2026-04-20 02:09:04,435 - INFO - ================================================================================
2026-04-20 02:09:04,435 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-04-20 02:09:04,435 - 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
2026-04-20 02:09:04,690 - DEBUG - Nothing to compare xmpp stats {'10.0.0.249': {'10.20.0.14': '0'}} with
2026-04-20 02:09:04,690 - INFO - Initial checks done. Running the testcase now
2026-04-20 02:09:04,690 - INFO -
2026-04-20 02:09:05,245 - DEBUG - Response for create_network : {'network': {'id': '0bb1e4bd-69e4-4861-b8c3-1ddd844aaae6', 'name': 'ctest-vn-23892773', 'tenant_id': '28d24204224d4197a2d24fabba87c953', 'project_id': '28d24204224d4197a2d24fabba87c953', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-09594100', 'ctest-vn-23892773'], 'port_security_enabled': True, 'description': ''}}
2026-04-20 02:09:05,429 - DEBUG - Response for create_subnet : {'subnet': {'id': '3c8f2128-3941-4a07-9703-8afa8ed553c9', 'name': '', 'tenant_id': '28d24204224d4197a2d24fabba87c953', 'network_id': '0bb1e4bd-69e4-4861-b8c3-1ddd844aaae6', 'ip_version': 4, 'cidr': '64.20.109.0/26', 'allocation_pools': [{'start': '64.20.109.2', 'end': '64.20.109.62'}], 'gateway_ip': '64.20.109.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '64.20.109.2', 'tags': [], 'project_id': '28d24204224d4197a2d24fabba87c953'}}
2026-04-20 02:09:05,445 - INFO - Created VN ctest-vn-23892773
2026-04-20 02:09:05,496 - DEBUG - VN ctest-vn-23892773 UUID is 0bb1e4bd-69e4-4861-b8c3-1ddd844aaae6
2026-04-20 02:09:05,816 - DEBUG - Response for create_network : {'network': {'id': '6de575c4-8f48-4faa-ad7b-ef4fb9039e4b', 'name': 'ctest-vn-18884568', 'tenant_id': '28d24204224d4197a2d24fabba87c953', 'project_id': '28d24204224d4197a2d24fabba87c953', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-09594100', 'ctest-vn-18884568'], 'port_security_enabled': True, 'description': ''}}
2026-04-20 02:09:06,008 - DEBUG - Response for create_subnet : {'subnet': {'id': '49546897-0df0-4239-949c-aaef3e2d03d0', 'name': '', 'tenant_id': '28d24204224d4197a2d24fabba87c953', 'network_id': '6de575c4-8f48-4faa-ad7b-ef4fb9039e4b', 'ip_version': 4, 'cidr': '221.226.25.64/26', 'allocation_pools': [{'start': '221.226.25.66', 'end': '221.226.25.126'}], 'gateway_ip': '221.226.25.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '221.226.25.66', 'tags': [], 'project_id': '28d24204224d4197a2d24fabba87c953'}}
2026-04-20 02:09:06,024 - INFO - Created VN ctest-vn-18884568
2026-04-20 02:09:06,076 - DEBUG - VN ctest-vn-18884568 UUID is 6de575c4-8f48-4faa-ad7b-ef4fb9039e4b
2026-04-20 02:09:06,228 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-09594100:ctest-vn-23892773, 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-09594100:ctest-vn-18884568, 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]
2026-04-20 02:09:06,521 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '0bb1e4bd-69e4-4861-b8c3-1ddd844aaae6', 'name': 'ctest-vn-23892773', 'tenant_id': '28d24204224d4197a2d24fabba87c953', 'project_id': '28d24204224d4197a2d24fabba87c953', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['3c8f2128-3941-4a07-9703-8afa8ed553c9'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-09594100', 'ctest-vn-23892773'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-09594100', 'ctest-policy-allow-all-75202321']], 'subnet_ipam': [{'subnet_cidr': '64.20.109.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-04-20 02:09:06,740 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '6de575c4-8f48-4faa-ad7b-ef4fb9039e4b', 'name': 'ctest-vn-18884568', 'tenant_id': '28d24204224d4197a2d24fabba87c953', 'project_id': '28d24204224d4197a2d24fabba87c953', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['49546897-0df0-4239-949c-aaef3e2d03d0'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-09594100', 'ctest-vn-18884568'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-09594100', 'ctest-policy-allow-all-75202321']], 'subnet_ipam': [{'subnet_cidr': '221.226.25.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-04-20 02:09:06,916 - DEBUG - Requesting: http://10.0.0.249:8082/domains
2026-04-20 02:09:07,218 - DEBUG - Requesting: http://10.0.0.249:8082/domains
2026-04-20 02:09:07,248 - DEBUG - Requesting: http://10.0.0.249:8082/domain/8e255323-6bbc-4c0a-9dd3-2082d101b6ba
2026-04-20 02:09:07,260 - DEBUG - Requesting: http://10.0.0.249:8082/project/28d24204-224d-4197-a2d2-4fabba87c953
2026-04-20 02:09:07,329 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/0bb1e4bd-69e4-4861-b8c3-1ddd844aaae6
2026-04-20 02:09:07,340 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/0bb1e4bd-69e4-4861-b8c3-1ddd844aaae6
2026-04-20 02:09:07,348 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/f15584be-6a47-4ba0-a56d-2baa15638010
2026-04-20 02:09:07,354 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/f15584be-6a47-4ba0-a56d-2baa15638010
2026-04-20 02:09:07,360 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/60e4609d-93e1-4625-a0e2-dda5e35aacb9
2026-04-20 02:09:07,367 - DEBUG - Route Targets: ['target:64512:8000004']
2026-04-20 02:09:07,367 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/0bb1e4bd-69e4-4861-b8c3-1ddd844aaae6
2026-04-20 02:09:07,377 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/f15584be-6a47-4ba0-a56d-2baa15638010
2026-04-20 02:09:07,390 - INFO - Verified VN network id 11 for VN 0bb1e4bd-69e4-4861-b8c3-1ddd844aaae6
2026-04-20 02:09:07,390 - INFO - Verifications in API Server for VN ctest-vn-23892773 passed
2026-04-20 02:09:07,390 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/0bb1e4bd-69e4-4861-b8c3-1ddd844aaae6
2026-04-20 02:09:07,399 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/f15584be-6a47-4ba0-a56d-2baa15638010
2026-04-20 02:09:07,407 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/f15584be-6a47-4ba0-a56d-2baa15638010
2026-04-20 02:09:07,414 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/60e4609d-93e1-4625-a0e2-dda5e35aacb9
2026-04-20 02:09:07,425 - DEBUG - Control-node 10.0.0.249 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-09594100:ctest-vn-23892773', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-09594100', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '842706107471513697', 'uuid-lslong': '13313517760681781990'}, 'enable': 'true', 'created': '2026-04-20T02:09:05', 'last-modified': '2026-04-20T02:09:06', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.922582'}
2026-04-20 02:09:07,431 - DEBUG - Route Targets: ['target:64512:8000004']
2026-04-20 02:09:07,431 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-23892773 passed
2026-04-20 02:09:07,431 - DEBUG - ====Verifying policy data for ctest-vn-23892773 in API_Server ======
2026-04-20 02:09:07,431 - DEBUG - Requesting: http://10.0.0.249:8082/domains
2026-04-20 02:09:07,436 - DEBUG - Requesting: http://10.0.0.249:8082/domain/8e255323-6bbc-4c0a-9dd3-2082d101b6ba
2026-04-20 02:09:07,446 - DEBUG - Requesting: http://10.0.0.249:8082/project/28d24204-224d-4197-a2d2-4fabba87c953
2026-04-20 02:09:07,521 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/0bb1e4bd-69e4-4861-b8c3-1ddd844aaae6
2026-04-20 02:09:07,530 - DEBUG - ==>Verifying data for policy with id: 7a0e7d2c-5ee1-4f03-af2c-690c80ed9294, fqn: ['default-domain', 'ctest-TestBasicPolicy-09594100', 'ctest-policy-allow-all-75202321']
2026-04-20 02:09:07,530 - INFO - VN ctest-vn-23892773 Policy verification: verify_vn_policy_in_api_server, status: True
2026-04-20 02:09:07,530 - DEBUG - Verifying the vn in opserver
2026-04-20 02:09:07,530 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-09594100:ctest-vn-23892773 virtual network link through opserver 10.0.0.249
2026-04-20 02:09:07,530 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks
2026-04-20 02:09:07,827 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks
2026-04-20 02:09:07,894 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-09594100:ctest-vn-23892773', 'href': 'http://10.0.0.249:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-09594100:ctest-vn-23892773?flat'}
2026-04-20 02:09:07,894 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-09594100:ctest-vn-23892773 is found in opserver
2026-04-20 02:09:07,902 - DEBUG - Do not have enough data to verify VN in agent
2026-04-20 02:09:07,906 - DEBUG - VRF ids for VN ctest-vn-23892773: {}
2026-04-20 02:09:07,906 - DEBUG - Requesting: http://10.0.0.249:8082/domains
2026-04-20 02:09:07,911 - DEBUG - Requesting: http://10.0.0.249:8082/domain/8e255323-6bbc-4c0a-9dd3-2082d101b6ba
2026-04-20 02:09:07,920 - DEBUG - Requesting: http://10.0.0.249:8082/project/28d24204-224d-4197-a2d2-4fabba87c953
2026-04-20 02:09:07,990 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/6de575c4-8f48-4faa-ad7b-ef4fb9039e4b
2026-04-20 02:09:08,000 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/6de575c4-8f48-4faa-ad7b-ef4fb9039e4b
2026-04-20 02:09:08,009 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/ffca6c5f-d7f6-4e90-b5c3-3456159f60cc
2026-04-20 02:09:08,016 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/ffca6c5f-d7f6-4e90-b5c3-3456159f60cc
2026-04-20 02:09:08,022 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/b23c8ecb-54da-41f4-9b88-ece591988913
2026-04-20 02:09:08,027 - DEBUG - Route Targets: ['target:64512:8000005']
2026-04-20 02:09:08,027 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/6de575c4-8f48-4faa-ad7b-ef4fb9039e4b
2026-04-20 02:09:08,035 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/ffca6c5f-d7f6-4e90-b5c3-3456159f60cc
2026-04-20 02:09:08,048 - INFO - Verified VN network id 12 for VN 6de575c4-8f48-4faa-ad7b-ef4fb9039e4b
2026-04-20 02:09:08,048 - INFO - Verifications in API Server for VN ctest-vn-18884568 passed
2026-04-20 02:09:08,048 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/6de575c4-8f48-4faa-ad7b-ef4fb9039e4b
2026-04-20 02:09:08,056 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/ffca6c5f-d7f6-4e90-b5c3-3456159f60cc
2026-04-20 02:09:08,062 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/ffca6c5f-d7f6-4e90-b5c3-3456159f60cc
2026-04-20 02:09:08,068 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/b23c8ecb-54da-41f4-9b88-ece591988913
2026-04-20 02:09:08,078 - DEBUG - Control-node 10.0.0.249 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-09594100:ctest-vn-18884568', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-09594100', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7918865006878805930', 'uuid-lslong': '12500848316382420555'}, 'enable': 'true', 'created': '2026-04-20T02:09:05', 'last-modified': '2026-04-20T02:09:06', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.360046'}
2026-04-20 02:09:08,083 - DEBUG - Route Targets: ['target:64512:8000005']
2026-04-20 02:09:08,083 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-18884568 passed
2026-04-20 02:09:08,083 - DEBUG - ====Verifying policy data for ctest-vn-18884568 in API_Server ======
2026-04-20 02:09:08,083 - DEBUG - Requesting: http://10.0.0.249:8082/domains
2026-04-20 02:09:08,088 - DEBUG - Requesting: http://10.0.0.249:8082/domain/8e255323-6bbc-4c0a-9dd3-2082d101b6ba
2026-04-20 02:09:08,097 - DEBUG - Requesting: http://10.0.0.249:8082/project/28d24204-224d-4197-a2d2-4fabba87c953
2026-04-20 02:09:08,169 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/6de575c4-8f48-4faa-ad7b-ef4fb9039e4b
2026-04-20 02:09:08,177 - DEBUG - ==>Verifying data for policy with id: 7a0e7d2c-5ee1-4f03-af2c-690c80ed9294, fqn: ['default-domain', 'ctest-TestBasicPolicy-09594100', 'ctest-policy-allow-all-75202321']
2026-04-20 02:09:08,177 - INFO - VN ctest-vn-18884568 Policy verification: verify_vn_policy_in_api_server, status: True
2026-04-20 02:09:08,177 - DEBUG - Verifying the vn in opserver
2026-04-20 02:09:08,177 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-09594100:ctest-vn-18884568 virtual network link through opserver 10.0.0.249
2026-04-20 02:09:08,177 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks
2026-04-20 02:09:08,185 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-09594100:ctest-vn-18884568', 'href': 'http://10.0.0.249:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-09594100:ctest-vn-18884568?flat'}
2026-04-20 02:09:08,185 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-09594100:ctest-vn-18884568 is found in opserver
2026-04-20 02:09:08,195 - DEBUG - Do not have enough data to verify VN in agent
2026-04-20 02:09:08,199 - DEBUG - VRF ids for VN ctest-vn-18884568: {}
2026-04-20 02:09:08,258 - DEBUG - Services list from nova: [