2026-01-29 08:33:59,738 - INFO - Domain Default found not creating
2026-01-29 08:33:59,929 - INFO - Project ctest-TestBasicPolicy-60270586 not found, creating it
2026-01-29 08:34:00,368 - INFO - Created Project:ctest-TestBasicPolicy-60270586, ID : 4a76a421-7455-496a-99b7-d4140e8ba635
2026-01-29 08:34:01,872 - INFO - ================================================================================
2026-01-29 08:34:01,872 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-01-29 08:34:01,872 - 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-01-29 08:34:02,134 - DEBUG - Nothing to compare xmpp stats {'10.0.0.249': {'10.20.0.14': '0'}} with
2026-01-29 08:34:02,134 - INFO - Initial checks done. Running the testcase now
2026-01-29 08:34:02,134 - INFO -
2026-01-29 08:34:02,686 - DEBUG - Response for create_network : {'network': {'id': 'f380f3a1-47a9-4367-906f-4c32c5a34477', 'name': 'ctest-vn-22882571', 'tenant_id': '4a76a4217455496a99b7d4140e8ba635', 'project_id': '4a76a4217455496a99b7d4140e8ba635', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-60270586', 'ctest-vn-22882571'], 'port_security_enabled': True, 'description': ''}}
2026-01-29 08:34:02,853 - DEBUG - Response for create_subnet : {'subnet': {'id': '95a7af76-f170-4151-b3d6-b9b8e2bfbeb4', 'name': '', 'tenant_id': '4a76a4217455496a99b7d4140e8ba635', 'network_id': 'f380f3a1-47a9-4367-906f-4c32c5a34477', 'ip_version': 4, 'cidr': '3.92.250.64/26', 'allocation_pools': [{'start': '3.92.250.66', 'end': '3.92.250.126'}], 'gateway_ip': '3.92.250.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3.92.250.66', 'tags': [], 'project_id': '4a76a4217455496a99b7d4140e8ba635'}}
2026-01-29 08:34:02,875 - INFO - Created VN ctest-vn-22882571
2026-01-29 08:34:02,927 - DEBUG - VN ctest-vn-22882571 UUID is f380f3a1-47a9-4367-906f-4c32c5a34477
2026-01-29 08:34:03,254 - DEBUG - Response for create_network : {'network': {'id': 'ea211b8f-2ad2-4d41-86e1-b364d322990b', 'name': 'ctest-vn-87642825', 'tenant_id': '4a76a4217455496a99b7d4140e8ba635', 'project_id': '4a76a4217455496a99b7d4140e8ba635', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-60270586', 'ctest-vn-87642825'], 'port_security_enabled': True, 'description': ''}}
2026-01-29 08:34:03,458 - DEBUG - Response for create_subnet : {'subnet': {'id': '773acad1-fa23-41a0-93f1-bc9a315793b3', 'name': '', 'tenant_id': '4a76a4217455496a99b7d4140e8ba635', 'network_id': 'ea211b8f-2ad2-4d41-86e1-b364d322990b', 'ip_version': 4, 'cidr': '159.26.128.64/26', 'allocation_pools': [{'start': '159.26.128.66', 'end': '159.26.128.126'}], 'gateway_ip': '159.26.128.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '159.26.128.66', 'tags': [], 'project_id': '4a76a4217455496a99b7d4140e8ba635'}}
2026-01-29 08:34:03,476 - INFO - Created VN ctest-vn-87642825
2026-01-29 08:34:03,527 - DEBUG - VN ctest-vn-87642825 UUID is ea211b8f-2ad2-4d41-86e1-b364d322990b
2026-01-29 08:34:03,679 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-60270586:ctest-vn-22882571, 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-60270586:ctest-vn-87642825, 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-01-29 08:34:03,985 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'f380f3a1-47a9-4367-906f-4c32c5a34477', 'name': 'ctest-vn-22882571', 'tenant_id': '4a76a4217455496a99b7d4140e8ba635', 'project_id': '4a76a4217455496a99b7d4140e8ba635', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['95a7af76-f170-4151-b3d6-b9b8e2bfbeb4'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-60270586', 'ctest-vn-22882571'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-60270586', 'ctest-policy-allow-all-98802297']], 'subnet_ipam': [{'subnet_cidr': '3.92.250.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-01-29 08:34:04,235 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'ea211b8f-2ad2-4d41-86e1-b364d322990b', 'name': 'ctest-vn-87642825', 'tenant_id': '4a76a4217455496a99b7d4140e8ba635', 'project_id': '4a76a4217455496a99b7d4140e8ba635', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['773acad1-fa23-41a0-93f1-bc9a315793b3'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-60270586', 'ctest-vn-87642825'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-60270586', 'ctest-policy-allow-all-98802297']], 'subnet_ipam': [{'subnet_cidr': '159.26.128.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-01-29 08:34:04,399 - DEBUG - Requesting: http://10.0.0.249:8082/domains
2026-01-29 08:34:04,695 - DEBUG - Requesting: http://10.0.0.249:8082/domains
2026-01-29 08:34:04,728 - DEBUG - Requesting: http://10.0.0.249:8082/domain/4acec710-3e48-4301-8c3a-93cb874a0a14
2026-01-29 08:34:04,739 - DEBUG - Requesting: http://10.0.0.249:8082/project/4a76a421-7455-496a-99b7-d4140e8ba635
2026-01-29 08:34:04,812 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/f380f3a1-47a9-4367-906f-4c32c5a34477
2026-01-29 08:34:04,823 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/f380f3a1-47a9-4367-906f-4c32c5a34477
2026-01-29 08:34:04,832 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/cb1bd142-03e1-44e9-a7f2-038d8670917e
2026-01-29 08:34:04,839 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/cb1bd142-03e1-44e9-a7f2-038d8670917e
2026-01-29 08:34:04,845 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/79bd96b2-8d5b-484c-b9e6-fc92bf94fdcb
2026-01-29 08:34:04,851 - DEBUG - Route Targets: ['target:64512:8000004']
2026-01-29 08:34:04,851 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/f380f3a1-47a9-4367-906f-4c32c5a34477
2026-01-29 08:34:04,858 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/cb1bd142-03e1-44e9-a7f2-038d8670917e
2026-01-29 08:34:04,872 - INFO - Verified VN network id 11 for VN f380f3a1-47a9-4367-906f-4c32c5a34477
2026-01-29 08:34:04,872 - INFO - Verifications in API Server for VN ctest-vn-22882571 passed
2026-01-29 08:34:04,872 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/f380f3a1-47a9-4367-906f-4c32c5a34477
2026-01-29 08:34:04,881 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/cb1bd142-03e1-44e9-a7f2-038d8670917e
2026-01-29 08:34:04,888 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/cb1bd142-03e1-44e9-a7f2-038d8670917e
2026-01-29 08:34:04,895 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/79bd96b2-8d5b-484c-b9e6-fc92bf94fdcb
2026-01-29 08:34:04,906 - DEBUG - Control-node 10.0.0.249 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-60270586:ctest-vn-22882571', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-60270586', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17546292022253011815', 'uuid-lslong': '10407621044824392823'}, 'enable': 'true', 'created': '2026-01-29T08:34:02', 'last-modified': '2026-01-29T08:34:03', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.942640'}
2026-01-29 08:34:04,912 - DEBUG - Route Targets: ['target:64512:8000004']
2026-01-29 08:34:04,912 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-22882571 passed
2026-01-29 08:34:04,912 - DEBUG - ====Verifying policy data for ctest-vn-22882571 in API_Server ======
2026-01-29 08:34:04,912 - DEBUG - Requesting: http://10.0.0.249:8082/domains
2026-01-29 08:34:04,917 - DEBUG - Requesting: http://10.0.0.249:8082/domain/4acec710-3e48-4301-8c3a-93cb874a0a14
2026-01-29 08:34:04,930 - DEBUG - Requesting: http://10.0.0.249:8082/project/4a76a421-7455-496a-99b7-d4140e8ba635
2026-01-29 08:34:05,001 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/f380f3a1-47a9-4367-906f-4c32c5a34477
2026-01-29 08:34:05,010 - DEBUG - ==>Verifying data for policy with id: 684b70f0-ea9f-466a-adb0-de61c9ad8baf, fqn: ['default-domain', 'ctest-TestBasicPolicy-60270586', 'ctest-policy-allow-all-98802297']
2026-01-29 08:34:05,010 - INFO - VN ctest-vn-22882571 Policy verification: verify_vn_policy_in_api_server, status: True
2026-01-29 08:34:05,010 - DEBUG - Verifying the vn in opserver
2026-01-29 08:34:05,010 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-60270586:ctest-vn-22882571 virtual network link through opserver 10.0.0.249
2026-01-29 08:34:05,010 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks
2026-01-29 08:34:05,302 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks
2026-01-29 08:34:05,366 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-60270586:ctest-vn-22882571', 'href': 'http://10.0.0.249:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-60270586:ctest-vn-22882571?flat'}
2026-01-29 08:34:05,366 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-60270586:ctest-vn-22882571 is found in opserver
2026-01-29 08:34:05,377 - DEBUG - Do not have enough data to verify VN in agent
2026-01-29 08:34:05,382 - DEBUG - VRF ids for VN ctest-vn-22882571: {}
2026-01-29 08:34:05,382 - DEBUG - Requesting: http://10.0.0.249:8082/domains
2026-01-29 08:34:05,388 - DEBUG - Requesting: http://10.0.0.249:8082/domain/4acec710-3e48-4301-8c3a-93cb874a0a14
2026-01-29 08:34:05,401 - DEBUG - Requesting: http://10.0.0.249:8082/project/4a76a421-7455-496a-99b7-d4140e8ba635
2026-01-29 08:34:05,466 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/ea211b8f-2ad2-4d41-86e1-b364d322990b
2026-01-29 08:34:05,477 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/ea211b8f-2ad2-4d41-86e1-b364d322990b
2026-01-29 08:34:05,486 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/a78cf4d9-9cb7-4561-a358-b822bc03e5da
2026-01-29 08:34:05,493 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/a78cf4d9-9cb7-4561-a358-b822bc03e5da
2026-01-29 08:34:05,500 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/9ecfa6a0-9dfc-4e02-9ccb-fef0e0fd79e1
2026-01-29 08:34:05,507 - DEBUG - Route Targets: ['target:64512:8000005']
2026-01-29 08:34:05,508 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/ea211b8f-2ad2-4d41-86e1-b364d322990b
2026-01-29 08:34:05,516 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/a78cf4d9-9cb7-4561-a358-b822bc03e5da
2026-01-29 08:34:05,530 - INFO - Verified VN network id 12 for VN ea211b8f-2ad2-4d41-86e1-b364d322990b
2026-01-29 08:34:05,530 - INFO - Verifications in API Server for VN ctest-vn-87642825 passed
2026-01-29 08:34:05,530 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/ea211b8f-2ad2-4d41-86e1-b364d322990b
2026-01-29 08:34:05,539 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/a78cf4d9-9cb7-4561-a358-b822bc03e5da
2026-01-29 08:34:05,546 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/a78cf4d9-9cb7-4561-a358-b822bc03e5da
2026-01-29 08:34:05,552 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/9ecfa6a0-9dfc-4e02-9ccb-fef0e0fd79e1
2026-01-29 08:34:05,562 - DEBUG - Control-node 10.0.0.249 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-60270586:ctest-vn-87642825', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-60270586', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16870795980819287361', 'uuid-lslong': '9719246716462602507'}, 'enable': 'true', 'created': '2026-01-29T08:34:03', 'last-modified': '2026-01-29T08:34:04', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.354212'}
2026-01-29 08:34:05,569 - DEBUG - Route Targets: ['target:64512:8000005']
2026-01-29 08:34:05,569 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-87642825 passed
2026-01-29 08:34:05,569 - DEBUG - ====Verifying policy data for ctest-vn-87642825 in API_Server ======
2026-01-29 08:34:05,569 - DEBUG - Requesting: http://10.0.0.249:8082/domains
2026-01-29 08:34:05,575 - DEBUG - Requesting: http://10.0.0.249:8082/domain/4acec710-3e48-4301-8c3a-93cb874a0a14
2026-01-29 08:34:05,585 - DEBUG - Requesting: http://10.0.0.249:8082/project/4a76a421-7455-496a-99b7-d4140e8ba635
2026-01-29 08:34:05,652 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/ea211b8f-2ad2-4d41-86e1-b364d322990b
2026-01-29 08:34:05,662 - DEBUG - ==>Verifying data for policy with id: 684b70f0-ea9f-466a-adb0-de61c9ad8baf, fqn: ['default-domain', 'ctest-TestBasicPolicy-60270586', 'ctest-policy-allow-all-98802297']
2026-01-29 08:34:05,662 - INFO - VN ctest-vn-87642825 Policy verification: verify_vn_policy_in_api_server, status: True
2026-01-29 08:34:05,662 - DEBUG - Verifying the vn in opserver
2026-01-29 08:34:05,662 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-60270586:ctest-vn-87642825 virtual network link through opserver 10.0.0.249
2026-01-29 08:34:05,662 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks
2026-01-29 08:34:05,673 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-60270586:ctest-vn-87642825', 'href': 'http://10.0.0.249:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-60270586:ctest-vn-87642825?flat'}
2026-01-29 08:34:05,673 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-60270586:ctest-vn-87642825 is found in opserver
2026-01-29 08:34:05,682 - DEBUG - Do not have enough data to verify VN in agent
2026-01-29 08:34:05,687 - DEBUG - VRF ids for VN ctest-vn-87642825: {}
2026-01-29 08:34:05,742 - DEBUG - Services list from nova: [