2025-12-09 09:59:04,751 - INFO - Domain Default found not creating
2025-12-09 09:59:04,931 - INFO - Project ctest-TestBasicPolicy-59267649 not found, creating it
2025-12-09 09:59:05,387 - INFO - Created Project:ctest-TestBasicPolicy-59267649, ID : 94be9410-6640-4300-8ba8-757bdf7ce1d0
2025-12-09 09:59:06,804 - INFO - ================================================================================
2025-12-09 09:59:06,804 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-12-09 09:59:06,804 - 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-12-09 09:59:07,060 - DEBUG - Nothing to compare xmpp stats {'10.0.0.241': {'10.20.0.14': '0'}} with
2025-12-09 09:59:07,060 - INFO - Initial checks done. Running the testcase now
2025-12-09 09:59:07,060 - INFO -
2025-12-09 09:59:07,581 - DEBUG - Response for create_network : {'network': {'id': '0ef53344-d913-420a-b7f8-adaa72fa056f', 'name': 'ctest-vn-86702461', 'tenant_id': '94be9410664043008ba8757bdf7ce1d0', 'project_id': '94be9410664043008ba8757bdf7ce1d0', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-59267649', 'ctest-vn-86702461'], 'port_security_enabled': True, 'description': ''}}
2025-12-09 09:59:07,769 - DEBUG - Response for create_subnet : {'subnet': {'id': 'a1344311-73ce-4d2d-85da-82252244fd97', 'name': '', 'tenant_id': '94be9410664043008ba8757bdf7ce1d0', 'network_id': '0ef53344-d913-420a-b7f8-adaa72fa056f', 'ip_version': 4, 'cidr': '199.184.64.192/26', 'allocation_pools': [{'start': '199.184.64.194', 'end': '199.184.64.254'}], 'gateway_ip': '199.184.64.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '199.184.64.194', 'tags': [], 'project_id': '94be9410664043008ba8757bdf7ce1d0'}}
2025-12-09 09:59:07,785 - INFO - Created VN ctest-vn-86702461
2025-12-09 09:59:07,835 - DEBUG - VN ctest-vn-86702461 UUID is 0ef53344-d913-420a-b7f8-adaa72fa056f
2025-12-09 09:59:08,145 - DEBUG - Response for create_network : {'network': {'id': 'a4f6052d-cfa1-4717-b39c-52b9f30b1bc5', 'name': 'ctest-vn-20700861', 'tenant_id': '94be9410664043008ba8757bdf7ce1d0', 'project_id': '94be9410664043008ba8757bdf7ce1d0', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-59267649', 'ctest-vn-20700861'], 'port_security_enabled': True, 'description': ''}}
2025-12-09 09:59:08,297 - DEBUG - Response for create_subnet : {'subnet': {'id': '6637a55c-3934-4c66-8bb4-fe89e1e97ec7', 'name': '', 'tenant_id': '94be9410664043008ba8757bdf7ce1d0', 'network_id': 'a4f6052d-cfa1-4717-b39c-52b9f30b1bc5', 'ip_version': 4, 'cidr': '41.192.19.192/26', 'allocation_pools': [{'start': '41.192.19.194', 'end': '41.192.19.254'}], 'gateway_ip': '41.192.19.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '41.192.19.194', 'tags': [], 'project_id': '94be9410664043008ba8757bdf7ce1d0'}}
2025-12-09 09:59:08,313 - INFO - Created VN ctest-vn-20700861
2025-12-09 09:59:08,367 - DEBUG - VN ctest-vn-20700861 UUID is a4f6052d-cfa1-4717-b39c-52b9f30b1bc5
2025-12-09 09:59:08,515 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-59267649:ctest-vn-86702461, 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-59267649:ctest-vn-20700861, 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-12-09 09:59:08,796 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '0ef53344-d913-420a-b7f8-adaa72fa056f', 'name': 'ctest-vn-86702461', 'tenant_id': '94be9410664043008ba8757bdf7ce1d0', 'project_id': '94be9410664043008ba8757bdf7ce1d0', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['a1344311-73ce-4d2d-85da-82252244fd97'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-59267649', 'ctest-vn-86702461'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-59267649', 'ctest-policy-allow-all-18974577']], 'subnet_ipam': [{'subnet_cidr': '199.184.64.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-12-09 09:59:09,014 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'a4f6052d-cfa1-4717-b39c-52b9f30b1bc5', 'name': 'ctest-vn-20700861', 'tenant_id': '94be9410664043008ba8757bdf7ce1d0', 'project_id': '94be9410664043008ba8757bdf7ce1d0', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['6637a55c-3934-4c66-8bb4-fe89e1e97ec7'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-59267649', 'ctest-vn-20700861'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-59267649', 'ctest-policy-allow-all-18974577']], 'subnet_ipam': [{'subnet_cidr': '41.192.19.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-12-09 09:59:09,183 - DEBUG - Requesting: http://10.0.0.241:8082/domains
2025-12-09 09:59:09,476 - DEBUG - Requesting: http://10.0.0.241:8082/domains
2025-12-09 09:59:09,505 - DEBUG - Requesting: http://10.0.0.241:8082/domain/5b4a24e4-633a-47f0-8a17-94c5d36b4e3b
2025-12-09 09:59:09,516 - DEBUG - Requesting: http://10.0.0.241:8082/project/94be9410-6640-4300-8ba8-757bdf7ce1d0
2025-12-09 09:59:09,598 - DEBUG - Requesting: http://10.0.0.241:8082/virtual-network/0ef53344-d913-420a-b7f8-adaa72fa056f
2025-12-09 09:59:09,608 - DEBUG - Requesting: http://10.0.0.241:8082/virtual-network/0ef53344-d913-420a-b7f8-adaa72fa056f
2025-12-09 09:59:09,617 - DEBUG - Requesting: http://10.0.0.241:8082/routing-instance/2cb2e661-dd68-4937-afd5-c5cc4a3c00df
2025-12-09 09:59:09,624 - DEBUG - Requesting: http://10.0.0.241:8082/routing-instance/2cb2e661-dd68-4937-afd5-c5cc4a3c00df
2025-12-09 09:59:09,631 - DEBUG - Requesting: http://10.0.0.241:8082/route-target/a337fcfc-5cf6-4235-a33f-79bb18755d7b
2025-12-09 09:59:09,638 - DEBUG - Route Targets: ['target:64512:8000004']
2025-12-09 09:59:09,638 - DEBUG - Requesting: http://10.0.0.241:8082/virtual-network/0ef53344-d913-420a-b7f8-adaa72fa056f
2025-12-09 09:59:09,646 - DEBUG - Requesting: http://10.0.0.241:8082/routing-instance/2cb2e661-dd68-4937-afd5-c5cc4a3c00df
2025-12-09 09:59:09,659 - INFO - Verified VN network id 9 for VN 0ef53344-d913-420a-b7f8-adaa72fa056f
2025-12-09 09:59:09,660 - INFO - Verifications in API Server for VN ctest-vn-86702461 passed
2025-12-09 09:59:09,660 - DEBUG - Requesting: http://10.0.0.241:8082/virtual-network/0ef53344-d913-420a-b7f8-adaa72fa056f
2025-12-09 09:59:09,669 - DEBUG - Requesting: http://10.0.0.241:8082/routing-instance/2cb2e661-dd68-4937-afd5-c5cc4a3c00df
2025-12-09 09:59:09,675 - DEBUG - Requesting: http://10.0.0.241:8082/routing-instance/2cb2e661-dd68-4937-afd5-c5cc4a3c00df
2025-12-09 09:59:09,681 - DEBUG - Requesting: http://10.0.0.241:8082/route-target/a337fcfc-5cf6-4235-a33f-79bb18755d7b
2025-12-09 09:59:09,692 - DEBUG - Control-node 10.0.0.241 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-59267649:ctest-vn-86702461', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-59267649', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1077824056617812490', 'uuid-lslong': '13256536450750088559'}, 'enable': 'true', 'created': '2025-12-09T09:59:07', 'last-modified': '2025-12-09T09:59:08', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.918554'}
2025-12-09 09:59:09,698 - DEBUG - Route Targets: ['target:64512:8000004']
2025-12-09 09:59:09,698 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-86702461 passed
2025-12-09 09:59:09,698 - DEBUG - ====Verifying policy data for ctest-vn-86702461 in API_Server ======
2025-12-09 09:59:09,698 - DEBUG - Requesting: http://10.0.0.241:8082/domains
2025-12-09 09:59:09,704 - DEBUG - Requesting: http://10.0.0.241:8082/domain/5b4a24e4-633a-47f0-8a17-94c5d36b4e3b
2025-12-09 09:59:09,715 - DEBUG - Requesting: http://10.0.0.241:8082/project/94be9410-6640-4300-8ba8-757bdf7ce1d0
2025-12-09 09:59:09,783 - DEBUG - Requesting: http://10.0.0.241:8082/virtual-network/0ef53344-d913-420a-b7f8-adaa72fa056f
2025-12-09 09:59:09,792 - DEBUG - ==>Verifying data for policy with id: 1ff6e193-0077-48fa-9ee8-0e62aaacd52f, fqn: ['default-domain', 'ctest-TestBasicPolicy-59267649', 'ctest-policy-allow-all-18974577']
2025-12-09 09:59:09,792 - INFO - VN ctest-vn-86702461 Policy verification: verify_vn_policy_in_api_server, status: True
2025-12-09 09:59:09,792 - DEBUG - Verifying the vn in opserver
2025-12-09 09:59:09,792 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-59267649:ctest-vn-86702461 virtual network link through opserver 10.0.0.241
2025-12-09 09:59:09,792 - DEBUG - Requesting: http://10.0.0.241:8081/analytics/uves/virtual-networks
2025-12-09 09:59:10,081 - DEBUG - Requesting: http://10.0.0.241:8081/analytics/uves/virtual-networks
2025-12-09 09:59:10,140 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-59267649:ctest-vn-86702461', 'href': 'http://10.0.0.241:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-59267649:ctest-vn-86702461?flat'}
2025-12-09 09:59:10,140 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-59267649:ctest-vn-86702461 is found in opserver
2025-12-09 09:59:10,149 - DEBUG - Do not have enough data to verify VN in agent
2025-12-09 09:59:10,153 - DEBUG - VRF ids for VN ctest-vn-86702461: {}
2025-12-09 09:59:10,153 - DEBUG - Requesting: http://10.0.0.241:8082/domains
2025-12-09 09:59:10,158 - DEBUG - Requesting: http://10.0.0.241:8082/domain/5b4a24e4-633a-47f0-8a17-94c5d36b4e3b
2025-12-09 09:59:10,168 - DEBUG - Requesting: http://10.0.0.241:8082/project/94be9410-6640-4300-8ba8-757bdf7ce1d0
2025-12-09 09:59:10,233 - DEBUG - Requesting: http://10.0.0.241:8082/virtual-network/a4f6052d-cfa1-4717-b39c-52b9f30b1bc5
2025-12-09 09:59:10,243 - DEBUG - Requesting: http://10.0.0.241:8082/virtual-network/a4f6052d-cfa1-4717-b39c-52b9f30b1bc5
2025-12-09 09:59:10,251 - DEBUG - Requesting: http://10.0.0.241:8082/routing-instance/72aa9573-0bc8-4a79-bdae-b07cfddc9b96
2025-12-09 09:59:10,257 - DEBUG - Requesting: http://10.0.0.241:8082/routing-instance/72aa9573-0bc8-4a79-bdae-b07cfddc9b96
2025-12-09 09:59:10,263 - DEBUG - Requesting: http://10.0.0.241:8082/route-target/123fcde7-ddec-43bc-b252-edcb7b436872
2025-12-09 09:59:10,269 - DEBUG - Route Targets: ['target:64512:8000005']
2025-12-09 09:59:10,269 - DEBUG - Requesting: http://10.0.0.241:8082/virtual-network/a4f6052d-cfa1-4717-b39c-52b9f30b1bc5
2025-12-09 09:59:10,276 - DEBUG - Requesting: http://10.0.0.241:8082/routing-instance/72aa9573-0bc8-4a79-bdae-b07cfddc9b96
2025-12-09 09:59:10,288 - INFO - Verified VN network id 10 for VN a4f6052d-cfa1-4717-b39c-52b9f30b1bc5
2025-12-09 09:59:10,288 - INFO - Verifications in API Server for VN ctest-vn-20700861 passed
2025-12-09 09:59:10,288 - DEBUG - Requesting: http://10.0.0.241:8082/virtual-network/a4f6052d-cfa1-4717-b39c-52b9f30b1bc5
2025-12-09 09:59:10,297 - DEBUG - Requesting: http://10.0.0.241:8082/routing-instance/72aa9573-0bc8-4a79-bdae-b07cfddc9b96
2025-12-09 09:59:10,302 - DEBUG - Requesting: http://10.0.0.241:8082/routing-instance/72aa9573-0bc8-4a79-bdae-b07cfddc9b96
2025-12-09 09:59:10,308 - DEBUG - Requesting: http://10.0.0.241:8082/route-target/123fcde7-ddec-43bc-b252-edcb7b436872
2025-12-09 09:59:10,317 - DEBUG - Control-node 10.0.0.241 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-59267649:ctest-vn-20700861', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-59267649', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11886693960806123287', 'uuid-lslong': '12942310387755981765'}, 'enable': 'true', 'created': '2025-12-09T09:59:08', 'last-modified': '2025-12-09T09:59:08', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.324826'}
2025-12-09 09:59:10,322 - DEBUG - Route Targets: ['target:64512:8000005']
2025-12-09 09:59:10,322 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-20700861 passed
2025-12-09 09:59:10,322 - DEBUG - ====Verifying policy data for ctest-vn-20700861 in API_Server ======
2025-12-09 09:59:10,323 - DEBUG - Requesting: http://10.0.0.241:8082/domains
2025-12-09 09:59:10,328 - DEBUG - Requesting: http://10.0.0.241:8082/domain/5b4a24e4-633a-47f0-8a17-94c5d36b4e3b
2025-12-09 09:59:10,338 - DEBUG - Requesting: http://10.0.0.241:8082/project/94be9410-6640-4300-8ba8-757bdf7ce1d0
2025-12-09 09:59:10,405 - DEBUG - Requesting: http://10.0.0.241:8082/virtual-network/a4f6052d-cfa1-4717-b39c-52b9f30b1bc5
2025-12-09 09:59:10,415 - DEBUG - ==>Verifying data for policy with id: 1ff6e193-0077-48fa-9ee8-0e62aaacd52f, fqn: ['default-domain', 'ctest-TestBasicPolicy-59267649', 'ctest-policy-allow-all-18974577']
2025-12-09 09:59:10,415 - INFO - VN ctest-vn-20700861 Policy verification: verify_vn_policy_in_api_server, status: True
2025-12-09 09:59:10,416 - DEBUG - Verifying the vn in opserver
2025-12-09 09:59:10,416 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-59267649:ctest-vn-20700861 virtual network link through opserver 10.0.0.241
2025-12-09 09:59:10,416 - DEBUG - Requesting: http://10.0.0.241:8081/analytics/uves/virtual-networks
2025-12-09 09:59:10,425 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-59267649:ctest-vn-20700861', 'href': 'http://10.0.0.241:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-59267649:ctest-vn-20700861?flat'}
2025-12-09 09:59:10,425 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-59267649:ctest-vn-20700861 is found in opserver
2025-12-09 09:59:10,434 - DEBUG - Do not have enough data to verify VN in agent
2025-12-09 09:59:10,438 - DEBUG - VRF ids for VN ctest-vn-20700861: {}
2025-12-09 09:59:10,491 - DEBUG - Services list from nova: [