2026-04-29 19:05:33,701 - INFO - Domain Default found not creating
2026-04-29 19:05:33,884 - INFO - Project ctest-TestBasicPolicy-69955883 not found, creating it
2026-04-29 19:05:34,345 - INFO - Created Project:ctest-TestBasicPolicy-69955883, ID : c48f8a65-3937-4d65-bf77-44d7627bca07
2026-04-29 19:05:35,857 - INFO - ================================================================================
2026-04-29 19:05:35,857 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-04-29 19:05:35,857 - 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-29 19:05:36,112 - DEBUG - Nothing to compare xmpp stats {'10.0.0.249': {'10.20.0.17': '0'}} with
2026-04-29 19:05:36,112 - INFO - Initial checks done. Running the testcase now
2026-04-29 19:05:36,112 - INFO -
2026-04-29 19:05:36,677 - DEBUG - Response for create_network : {'network': {'id': '73434ddd-7da9-4c14-b2d1-952d66918cb3', 'name': 'ctest-vn-57299003', 'tenant_id': 'c48f8a6539374d65bf7744d7627bca07', 'project_id': 'c48f8a6539374d65bf7744d7627bca07', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-69955883', 'ctest-vn-57299003'], 'port_security_enabled': True, 'description': ''}}
2026-04-29 19:05:36,893 - DEBUG - Response for create_subnet : {'subnet': {'id': '518e25a0-6588-4538-9129-39517269f141', 'name': '', 'tenant_id': 'c48f8a6539374d65bf7744d7627bca07', 'network_id': '73434ddd-7da9-4c14-b2d1-952d66918cb3', 'ip_version': 4, 'cidr': '60.143.183.0/26', 'allocation_pools': [{'start': '60.143.183.2', 'end': '60.143.183.62'}], 'gateway_ip': '60.143.183.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '60.143.183.2', 'tags': [], 'project_id': 'c48f8a6539374d65bf7744d7627bca07'}}
2026-04-29 19:05:36,913 - INFO - Created VN ctest-vn-57299003
2026-04-29 19:05:36,967 - DEBUG - VN ctest-vn-57299003 UUID is 73434ddd-7da9-4c14-b2d1-952d66918cb3
2026-04-29 19:05:37,304 - DEBUG - Response for create_network : {'network': {'id': '61842e6c-c7b8-4a52-90e9-cb8789a4a82a', 'name': 'ctest-vn-10153948', 'tenant_id': 'c48f8a6539374d65bf7744d7627bca07', 'project_id': 'c48f8a6539374d65bf7744d7627bca07', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-69955883', 'ctest-vn-10153948'], 'port_security_enabled': True, 'description': ''}}
2026-04-29 19:05:37,516 - DEBUG - Response for create_subnet : {'subnet': {'id': 'cb7f8f24-b3c6-45e8-b5e7-00acfd680d54', 'name': '', 'tenant_id': 'c48f8a6539374d65bf7744d7627bca07', 'network_id': '61842e6c-c7b8-4a52-90e9-cb8789a4a82a', 'ip_version': 4, 'cidr': '105.150.115.64/26', 'allocation_pools': [{'start': '105.150.115.66', 'end': '105.150.115.126'}], 'gateway_ip': '105.150.115.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '105.150.115.66', 'tags': [], 'project_id': 'c48f8a6539374d65bf7744d7627bca07'}}
2026-04-29 19:05:37,537 - INFO - Created VN ctest-vn-10153948
2026-04-29 19:05:37,591 - DEBUG - VN ctest-vn-10153948 UUID is 61842e6c-c7b8-4a52-90e9-cb8789a4a82a
2026-04-29 19:05:37,705 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-69955883:ctest-vn-57299003, 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-69955883:ctest-vn-10153948, 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-29 19:05:38,010 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '73434ddd-7da9-4c14-b2d1-952d66918cb3', 'name': 'ctest-vn-57299003', 'tenant_id': 'c48f8a6539374d65bf7744d7627bca07', 'project_id': 'c48f8a6539374d65bf7744d7627bca07', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['518e25a0-6588-4538-9129-39517269f141'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-69955883', 'ctest-vn-57299003'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-69955883', 'ctest-policy-allow-all-00284358']], 'subnet_ipam': [{'subnet_cidr': '60.143.183.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-04-29 19:05:38,267 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '61842e6c-c7b8-4a52-90e9-cb8789a4a82a', 'name': 'ctest-vn-10153948', 'tenant_id': 'c48f8a6539374d65bf7744d7627bca07', 'project_id': 'c48f8a6539374d65bf7744d7627bca07', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['cb7f8f24-b3c6-45e8-b5e7-00acfd680d54'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-69955883', 'ctest-vn-10153948'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-69955883', 'ctest-policy-allow-all-00284358']], 'subnet_ipam': [{'subnet_cidr': '105.150.115.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-04-29 19:05:38,443 - DEBUG - Requesting: http://10.0.0.249:8082/domains
2026-04-29 19:05:38,740 - DEBUG - Requesting: http://10.0.0.249:8082/domains
2026-04-29 19:05:38,776 - DEBUG - Requesting: http://10.0.0.249:8082/domain/4b692a26-661f-4c94-8dde-fb666bc77973
2026-04-29 19:05:38,790 - DEBUG - Requesting: http://10.0.0.249:8082/project/c48f8a65-3937-4d65-bf77-44d7627bca07
2026-04-29 19:05:38,864 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/73434ddd-7da9-4c14-b2d1-952d66918cb3
2026-04-29 19:05:38,875 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/73434ddd-7da9-4c14-b2d1-952d66918cb3
2026-04-29 19:05:38,887 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/cc80fb15-bb6a-4f51-8efa-56836d316d49
2026-04-29 19:05:38,894 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/cc80fb15-bb6a-4f51-8efa-56836d316d49
2026-04-29 19:05:38,902 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/9dbba563-31c3-41a7-958c-7ee8a6f217c8
2026-04-29 19:05:38,910 - DEBUG - Route Targets: ['target:64512:8000004']
2026-04-29 19:05:38,910 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/73434ddd-7da9-4c14-b2d1-952d66918cb3
2026-04-29 19:05:38,919 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/cc80fb15-bb6a-4f51-8efa-56836d316d49
2026-04-29 19:05:38,935 - INFO - Verified VN network id 11 for VN 73434ddd-7da9-4c14-b2d1-952d66918cb3
2026-04-29 19:05:38,935 - INFO - Verifications in API Server for VN ctest-vn-57299003 passed
2026-04-29 19:05:38,935 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/73434ddd-7da9-4c14-b2d1-952d66918cb3
2026-04-29 19:05:38,945 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/cc80fb15-bb6a-4f51-8efa-56836d316d49
2026-04-29 19:05:38,953 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/cc80fb15-bb6a-4f51-8efa-56836d316d49
2026-04-29 19:05:38,961 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/9dbba563-31c3-41a7-958c-7ee8a6f217c8
2026-04-29 19:05:38,976 - DEBUG - Control-node 10.0.0.249 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-69955883:ctest-vn-57299003', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-69955883', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8305567751492684820', 'uuid-lslong': '12885244031110581427'}, 'enable': 'true', 'created': '2026-04-29T19:05:36', 'last-modified': '2026-04-29T19:05:37', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.002394'}
2026-04-29 19:05:38,983 - DEBUG - Route Targets: ['target:64512:8000004']
2026-04-29 19:05:38,983 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-57299003 passed
2026-04-29 19:05:38,984 - DEBUG - ====Verifying policy data for ctest-vn-57299003 in API_Server ======
2026-04-29 19:05:38,984 - DEBUG - Requesting: http://10.0.0.249:8082/domains
2026-04-29 19:05:38,990 - DEBUG - Requesting: http://10.0.0.249:8082/domain/4b692a26-661f-4c94-8dde-fb666bc77973
2026-04-29 19:05:39,004 - DEBUG - Requesting: http://10.0.0.249:8082/project/c48f8a65-3937-4d65-bf77-44d7627bca07
2026-04-29 19:05:39,074 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/73434ddd-7da9-4c14-b2d1-952d66918cb3
2026-04-29 19:05:39,083 - DEBUG - ==>Verifying data for policy with id: c0877af2-348d-48e4-9408-2377d8ec0bd3, fqn: ['default-domain', 'ctest-TestBasicPolicy-69955883', 'ctest-policy-allow-all-00284358']
2026-04-29 19:05:39,083 - INFO - VN ctest-vn-57299003 Policy verification: verify_vn_policy_in_api_server, status: True
2026-04-29 19:05:39,083 - DEBUG - Verifying the vn in opserver
2026-04-29 19:05:39,084 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-69955883:ctest-vn-57299003 virtual network link through opserver 10.0.0.249
2026-04-29 19:05:39,084 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks
2026-04-29 19:05:39,377 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks
2026-04-29 19:05:39,453 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-69955883:ctest-vn-57299003', 'href': 'http://10.0.0.249:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-69955883:ctest-vn-57299003?flat'}
2026-04-29 19:05:39,453 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-69955883:ctest-vn-57299003 is found in opserver
2026-04-29 19:05:39,462 - DEBUG - Do not have enough data to verify VN in agent
2026-04-29 19:05:39,468 - DEBUG - VRF ids for VN ctest-vn-57299003: {}
2026-04-29 19:05:39,468 - DEBUG - Requesting: http://10.0.0.249:8082/domains
2026-04-29 19:05:39,474 - DEBUG - Requesting: http://10.0.0.249:8082/domain/4b692a26-661f-4c94-8dde-fb666bc77973
2026-04-29 19:05:39,485 - DEBUG - Requesting: http://10.0.0.249:8082/project/c48f8a65-3937-4d65-bf77-44d7627bca07
2026-04-29 19:05:39,555 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/61842e6c-c7b8-4a52-90e9-cb8789a4a82a
2026-04-29 19:05:39,567 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/61842e6c-c7b8-4a52-90e9-cb8789a4a82a
2026-04-29 19:05:39,577 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/135009ce-4bd6-482a-859d-bef4a61dae6f
2026-04-29 19:05:39,585 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/135009ce-4bd6-482a-859d-bef4a61dae6f
2026-04-29 19:05:39,593 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/481a7430-0c63-4c61-ba0f-4e58eb1dd371
2026-04-29 19:05:39,601 - DEBUG - Route Targets: ['target:64512:8000005']
2026-04-29 19:05:39,601 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/61842e6c-c7b8-4a52-90e9-cb8789a4a82a
2026-04-29 19:05:39,612 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/135009ce-4bd6-482a-859d-bef4a61dae6f
2026-04-29 19:05:39,628 - INFO - Verified VN network id 12 for VN 61842e6c-c7b8-4a52-90e9-cb8789a4a82a
2026-04-29 19:05:39,629 - INFO - Verifications in API Server for VN ctest-vn-10153948 passed
2026-04-29 19:05:39,629 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/61842e6c-c7b8-4a52-90e9-cb8789a4a82a
2026-04-29 19:05:39,640 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/135009ce-4bd6-482a-859d-bef4a61dae6f
2026-04-29 19:05:39,647 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/135009ce-4bd6-482a-859d-bef4a61dae6f
2026-04-29 19:05:39,655 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/481a7430-0c63-4c61-ba0f-4e58eb1dd371
2026-04-29 19:05:39,670 - DEBUG - Control-node 10.0.0.249 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-69955883:ctest-vn-10153948', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-69955883', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7026792363346905682', 'uuid-lslong': '10442100994025498666'}, 'enable': 'true', 'created': '2026-04-29T19:05:37', 'last-modified': '2026-04-29T19:05:38', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.439918'}
2026-04-29 19:05:39,676 - DEBUG - Route Targets: ['target:64512:8000005']
2026-04-29 19:05:39,676 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-10153948 passed
2026-04-29 19:05:39,676 - DEBUG - ====Verifying policy data for ctest-vn-10153948 in API_Server ======
2026-04-29 19:05:39,677 - DEBUG - Requesting: http://10.0.0.249:8082/domains
2026-04-29 19:05:39,682 - DEBUG - Requesting: http://10.0.0.249:8082/domain/4b692a26-661f-4c94-8dde-fb666bc77973
2026-04-29 19:05:39,693 - DEBUG - Requesting: http://10.0.0.249:8082/project/c48f8a65-3937-4d65-bf77-44d7627bca07
2026-04-29 19:05:39,767 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/61842e6c-c7b8-4a52-90e9-cb8789a4a82a
2026-04-29 19:05:39,777 - DEBUG - ==>Verifying data for policy with id: c0877af2-348d-48e4-9408-2377d8ec0bd3, fqn: ['default-domain', 'ctest-TestBasicPolicy-69955883', 'ctest-policy-allow-all-00284358']
2026-04-29 19:05:39,777 - INFO - VN ctest-vn-10153948 Policy verification: verify_vn_policy_in_api_server, status: True
2026-04-29 19:05:39,777 - DEBUG - Verifying the vn in opserver
2026-04-29 19:05:39,777 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-69955883:ctest-vn-10153948 virtual network link through opserver 10.0.0.249
2026-04-29 19:05:39,777 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks
2026-04-29 19:05:39,788 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-69955883:ctest-vn-10153948', 'href': 'http://10.0.0.249:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-69955883:ctest-vn-10153948?flat'}
2026-04-29 19:05:39,788 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-69955883:ctest-vn-10153948 is found in opserver
2026-04-29 19:05:39,798 - DEBUG - Do not have enough data to verify VN in agent
2026-04-29 19:05:39,804 - DEBUG - VRF ids for VN ctest-vn-10153948: {}
2026-04-29 19:05:39,889 - DEBUG - Services list from nova: [