2026-01-08 17:21:45,756 - INFO - Domain Default found not creating
2026-01-08 17:21:45,890 - INFO - Project ctest-TestBasicPolicy-71603617 not found, creating it
2026-01-08 17:21:46,304 - INFO - Created Project:ctest-TestBasicPolicy-71603617, ID : 59f93faf-d866-4666-9342-229c95c75891
2026-01-08 17:21:47,665 - INFO - ================================================================================
2026-01-08 17:21:47,665 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-01-08 17:21:47,665 - 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-08 17:21:47,924 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with
2026-01-08 17:21:47,924 - INFO - Initial checks done. Running the testcase now
2026-01-08 17:21:47,924 - INFO -
2026-01-08 17:21:48,425 - DEBUG - Response for create_network : {'network': {'id': '5e48c696-dc20-4a91-90ed-86487c5a4703', 'name': 'ctest-vn-26611596', 'tenant_id': '59f93fafd86646669342229c95c75891', 'project_id': '59f93fafd86646669342229c95c75891', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-71603617', 'ctest-vn-26611596'], 'port_security_enabled': True, 'description': ''}}
2026-01-08 17:21:48,586 - DEBUG - Response for create_subnet : {'subnet': {'id': '5248dc7a-9145-4b35-8792-08ac032ba91a', 'name': '', 'tenant_id': '59f93fafd86646669342229c95c75891', 'network_id': '5e48c696-dc20-4a91-90ed-86487c5a4703', 'ip_version': 4, 'cidr': '105.44.136.0/26', 'allocation_pools': [{'start': '105.44.136.2', 'end': '105.44.136.62'}], 'gateway_ip': '105.44.136.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '105.44.136.2', 'tags': [], 'project_id': '59f93fafd86646669342229c95c75891'}}
2026-01-08 17:21:48,601 - INFO - Created VN ctest-vn-26611596
2026-01-08 17:21:48,650 - DEBUG - VN ctest-vn-26611596 UUID is 5e48c696-dc20-4a91-90ed-86487c5a4703
2026-01-08 17:21:48,952 - DEBUG - Response for create_network : {'network': {'id': '3bedd27c-7cfc-43a2-be14-860fc550621e', 'name': 'ctest-vn-50537292', 'tenant_id': '59f93fafd86646669342229c95c75891', 'project_id': '59f93fafd86646669342229c95c75891', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-71603617', 'ctest-vn-50537292'], 'port_security_enabled': True, 'description': ''}}
2026-01-08 17:21:49,090 - DEBUG - Response for create_subnet : {'subnet': {'id': 'ceca3a59-5b8b-4899-a7be-4d3f4741edc9', 'name': '', 'tenant_id': '59f93fafd86646669342229c95c75891', 'network_id': '3bedd27c-7cfc-43a2-be14-860fc550621e', 'ip_version': 4, 'cidr': '72.175.91.0/26', 'allocation_pools': [{'start': '72.175.91.2', 'end': '72.175.91.62'}], 'gateway_ip': '72.175.91.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '72.175.91.2', 'tags': [], 'project_id': '59f93fafd86646669342229c95c75891'}}
2026-01-08 17:21:49,107 - INFO - Created VN ctest-vn-50537292
2026-01-08 17:21:49,158 - DEBUG - VN ctest-vn-50537292 UUID is 3bedd27c-7cfc-43a2-be14-860fc550621e
2026-01-08 17:21:49,302 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-71603617:ctest-vn-26611596, 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-71603617:ctest-vn-50537292, 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-08 17:21:49,570 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '5e48c696-dc20-4a91-90ed-86487c5a4703', 'name': 'ctest-vn-26611596', 'tenant_id': '59f93fafd86646669342229c95c75891', 'project_id': '59f93fafd86646669342229c95c75891', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['5248dc7a-9145-4b35-8792-08ac032ba91a'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-71603617', 'ctest-vn-26611596'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-71603617', 'ctest-policy-allow-all-65494857']], 'subnet_ipam': [{'subnet_cidr': '105.44.136.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-01-08 17:21:49,799 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '3bedd27c-7cfc-43a2-be14-860fc550621e', 'name': 'ctest-vn-50537292', 'tenant_id': '59f93fafd86646669342229c95c75891', 'project_id': '59f93fafd86646669342229c95c75891', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['ceca3a59-5b8b-4899-a7be-4d3f4741edc9'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-71603617', 'ctest-vn-50537292'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-71603617', 'ctest-policy-allow-all-65494857']], 'subnet_ipam': [{'subnet_cidr': '72.175.91.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-01-08 17:21:49,958 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-01-08 17:21:50,248 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-01-08 17:21:50,273 - DEBUG - Requesting: http://10.0.0.38:8082/domain/ffc6985d-543c-4364-8369-8d226f63c8d3
2026-01-08 17:21:50,283 - DEBUG - Requesting: http://10.0.0.38:8082/project/59f93faf-d866-4666-9342-229c95c75891
2026-01-08 17:21:50,352 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/5e48c696-dc20-4a91-90ed-86487c5a4703
2026-01-08 17:21:50,360 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/5e48c696-dc20-4a91-90ed-86487c5a4703
2026-01-08 17:21:50,367 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/4640e6f6-037c-4b3b-9dae-93af3ca3a890
2026-01-08 17:21:50,372 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/4640e6f6-037c-4b3b-9dae-93af3ca3a890
2026-01-08 17:21:50,376 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/2ba75eda-353e-4d7e-b6ca-9d56c99ce6fb
2026-01-08 17:21:50,380 - DEBUG - Route Targets: ['target:64512:8000004']
2026-01-08 17:21:50,381 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/5e48c696-dc20-4a91-90ed-86487c5a4703
2026-01-08 17:21:50,387 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/4640e6f6-037c-4b3b-9dae-93af3ca3a890
2026-01-08 17:21:50,397 - INFO - Verified VN network id 12 for VN 5e48c696-dc20-4a91-90ed-86487c5a4703
2026-01-08 17:21:50,397 - INFO - Verifications in API Server for VN ctest-vn-26611596 passed
2026-01-08 17:21:50,397 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/5e48c696-dc20-4a91-90ed-86487c5a4703
2026-01-08 17:21:50,404 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/4640e6f6-037c-4b3b-9dae-93af3ca3a890
2026-01-08 17:21:50,409 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/4640e6f6-037c-4b3b-9dae-93af3ca3a890
2026-01-08 17:21:50,413 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/2ba75eda-353e-4d7e-b6ca-9d56c99ce6fb
2026-01-08 17:21:50,421 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-71603617:ctest-vn-26611596', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-71603617', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6793898389128891025', 'uuid-lslong': '10443150756824106755'}, 'enable': 'true', 'created': '2026-01-08T17:21:48', 'last-modified': '2026-01-08T17:21:49', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.866849'}
2026-01-08 17:21:50,426 - DEBUG - Route Targets: ['target:64512:8000004']
2026-01-08 17:21:50,426 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-26611596 passed
2026-01-08 17:21:50,426 - DEBUG - ====Verifying policy data for ctest-vn-26611596 in API_Server ======
2026-01-08 17:21:50,426 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-01-08 17:21:50,430 - DEBUG - Requesting: http://10.0.0.38:8082/domain/ffc6985d-543c-4364-8369-8d226f63c8d3
2026-01-08 17:21:50,437 - DEBUG - Requesting: http://10.0.0.38:8082/project/59f93faf-d866-4666-9342-229c95c75891
2026-01-08 17:21:50,503 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/5e48c696-dc20-4a91-90ed-86487c5a4703
2026-01-08 17:21:50,510 - DEBUG - ==>Verifying data for policy with id: 067a3c4d-34fe-4a76-9344-4a34d05674d9, fqn: ['default-domain', 'ctest-TestBasicPolicy-71603617', 'ctest-policy-allow-all-65494857']
2026-01-08 17:21:50,510 - INFO - VN ctest-vn-26611596 Policy verification: verify_vn_policy_in_api_server, status: True
2026-01-08 17:21:50,510 - DEBUG - Verifying the vn in opserver
2026-01-08 17:21:50,510 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-71603617:ctest-vn-26611596 virtual network link through opserver 10.0.0.38
2026-01-08 17:21:50,510 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2026-01-08 17:21:50,798 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2026-01-08 17:21:50,850 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-71603617:ctest-vn-26611596', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-71603617:ctest-vn-26611596?flat'}
2026-01-08 17:21:50,850 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-71603617:ctest-vn-26611596 is found in opserver
2026-01-08 17:21:50,859 - DEBUG - Do not have enough data to verify VN in agent
2026-01-08 17:21:50,863 - DEBUG - VRF ids for VN ctest-vn-26611596: {}
2026-01-08 17:21:50,863 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-01-08 17:21:50,868 - DEBUG - Requesting: http://10.0.0.38:8082/domain/ffc6985d-543c-4364-8369-8d226f63c8d3
2026-01-08 17:21:50,877 - DEBUG - Requesting: http://10.0.0.38:8082/project/59f93faf-d866-4666-9342-229c95c75891
2026-01-08 17:21:50,942 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/3bedd27c-7cfc-43a2-be14-860fc550621e
2026-01-08 17:21:50,951 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/3bedd27c-7cfc-43a2-be14-860fc550621e
2026-01-08 17:21:50,957 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/26013f22-7774-4caf-b126-62d0abb2930d
2026-01-08 17:21:50,963 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/26013f22-7774-4caf-b126-62d0abb2930d
2026-01-08 17:21:50,968 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/e0c3918b-7df0-4ae7-974c-9487824e58f0
2026-01-08 17:21:50,973 - DEBUG - Route Targets: ['target:64512:8000005']
2026-01-08 17:21:50,973 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/3bedd27c-7cfc-43a2-be14-860fc550621e
2026-01-08 17:21:50,979 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/26013f22-7774-4caf-b126-62d0abb2930d
2026-01-08 17:21:50,989 - INFO - Verified VN network id 13 for VN 3bedd27c-7cfc-43a2-be14-860fc550621e
2026-01-08 17:21:50,989 - INFO - Verifications in API Server for VN ctest-vn-50537292 passed
2026-01-08 17:21:50,989 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/3bedd27c-7cfc-43a2-be14-860fc550621e
2026-01-08 17:21:50,996 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/26013f22-7774-4caf-b126-62d0abb2930d
2026-01-08 17:21:51,000 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/26013f22-7774-4caf-b126-62d0abb2930d
2026-01-08 17:21:51,005 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/e0c3918b-7df0-4ae7-974c-9487824e58f0
2026-01-08 17:21:51,014 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-71603617:ctest-vn-50537292', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-71603617', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '4318339049832858530', 'uuid-lslong': '13696719769033531934'}, 'enable': 'true', 'created': '2026-01-08T17:21:48', 'last-modified': '2026-01-08T17:21:49', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.233938'}
2026-01-08 17:21:51,019 - DEBUG - Route Targets: ['target:64512:8000005']
2026-01-08 17:21:51,019 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-50537292 passed
2026-01-08 17:21:51,019 - DEBUG - ====Verifying policy data for ctest-vn-50537292 in API_Server ======
2026-01-08 17:21:51,019 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-01-08 17:21:51,023 - DEBUG - Requesting: http://10.0.0.38:8082/domain/ffc6985d-543c-4364-8369-8d226f63c8d3
2026-01-08 17:21:51,033 - DEBUG - Requesting: http://10.0.0.38:8082/project/59f93faf-d866-4666-9342-229c95c75891
2026-01-08 17:21:51,101 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/3bedd27c-7cfc-43a2-be14-860fc550621e
2026-01-08 17:21:51,108 - DEBUG - ==>Verifying data for policy with id: 067a3c4d-34fe-4a76-9344-4a34d05674d9, fqn: ['default-domain', 'ctest-TestBasicPolicy-71603617', 'ctest-policy-allow-all-65494857']
2026-01-08 17:21:51,108 - INFO - VN ctest-vn-50537292 Policy verification: verify_vn_policy_in_api_server, status: True
2026-01-08 17:21:51,108 - DEBUG - Verifying the vn in opserver
2026-01-08 17:21:51,108 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-71603617:ctest-vn-50537292 virtual network link through opserver 10.0.0.38
2026-01-08 17:21:51,109 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2026-01-08 17:21:51,119 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-71603617:ctest-vn-50537292', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-71603617:ctest-vn-50537292?flat'}
2026-01-08 17:21:51,119 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-71603617:ctest-vn-50537292 is found in opserver
2026-01-08 17:21:51,129 - DEBUG - Do not have enough data to verify VN in agent
2026-01-08 17:21:51,133 - DEBUG - VRF ids for VN ctest-vn-50537292: {}
2026-01-08 17:21:51,181 - DEBUG - Services list from nova: [