2025-10-06 15:55:05,074 - INFO - Domain Default found not creating
2025-10-06 15:55:05,205 - INFO - Project ctest-TestBasicPolicy-51105435 not found, creating it
2025-10-06 15:55:05,628 - INFO - Created Project:ctest-TestBasicPolicy-51105435, ID : ce8614f1-f1e0-4f79-90fe-e28f9c2487b1
2025-10-06 15:55:07,560 - INFO - ================================================================================
2025-10-06 15:55:07,560 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-10-06 15:55:07,560 - 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-10-06 15:55:07,813 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with
2025-10-06 15:55:07,813 - INFO - Initial checks done. Running the testcase now
2025-10-06 15:55:07,813 - INFO -
2025-10-06 15:55:08,341 - DEBUG - Response for create_network : {'network': {'id': 'd8010e71-6841-4f0c-94f9-b7d60d0eb1cb', 'name': 'ctest-vn-19110584', 'tenant_id': 'ce8614f1f1e04f7990fee28f9c2487b1', 'project_id': 'ce8614f1f1e04f7990fee28f9c2487b1', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-51105435', 'ctest-vn-19110584'], 'port_security_enabled': True, 'description': ''}}
2025-10-06 15:55:08,524 - DEBUG - Response for create_subnet : {'subnet': {'id': 'd1bb7d67-7097-4139-aa53-5bef55afa20a', 'name': '', 'tenant_id': 'ce8614f1f1e04f7990fee28f9c2487b1', 'network_id': 'd8010e71-6841-4f0c-94f9-b7d60d0eb1cb', 'ip_version': 4, 'cidr': '156.195.249.0/26', 'allocation_pools': [{'start': '156.195.249.2', 'end': '156.195.249.62'}], 'gateway_ip': '156.195.249.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '156.195.249.2', 'tags': [], 'project_id': 'ce8614f1f1e04f7990fee28f9c2487b1'}}
2025-10-06 15:55:08,539 - INFO - Created VN ctest-vn-19110584
2025-10-06 15:55:08,588 - DEBUG - VN ctest-vn-19110584 UUID is d8010e71-6841-4f0c-94f9-b7d60d0eb1cb
2025-10-06 15:55:08,892 - DEBUG - Response for create_network : {'network': {'id': '3008be29-ed95-48b5-8345-2f9c6c6d2463', 'name': 'ctest-vn-59922136', 'tenant_id': 'ce8614f1f1e04f7990fee28f9c2487b1', 'project_id': 'ce8614f1f1e04f7990fee28f9c2487b1', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-51105435', 'ctest-vn-59922136'], 'port_security_enabled': True, 'description': ''}}
2025-10-06 15:55:09,074 - DEBUG - Response for create_subnet : {'subnet': {'id': '7dffd150-df40-4da7-85b1-acc40a373f8a', 'name': '', 'tenant_id': 'ce8614f1f1e04f7990fee28f9c2487b1', 'network_id': '3008be29-ed95-48b5-8345-2f9c6c6d2463', 'ip_version': 4, 'cidr': '108.152.189.64/26', 'allocation_pools': [{'start': '108.152.189.66', 'end': '108.152.189.126'}], 'gateway_ip': '108.152.189.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '108.152.189.66', 'tags': [], 'project_id': 'ce8614f1f1e04f7990fee28f9c2487b1'}}
2025-10-06 15:55:09,091 - INFO - Created VN ctest-vn-59922136
2025-10-06 15:55:09,141 - DEBUG - VN ctest-vn-59922136 UUID is 3008be29-ed95-48b5-8345-2f9c6c6d2463
2025-10-06 15:55:09,288 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-51105435:ctest-vn-19110584, 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-51105435:ctest-vn-59922136, 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-10-06 15:55:09,588 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'd8010e71-6841-4f0c-94f9-b7d60d0eb1cb', 'name': 'ctest-vn-19110584', 'tenant_id': 'ce8614f1f1e04f7990fee28f9c2487b1', 'project_id': 'ce8614f1f1e04f7990fee28f9c2487b1', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['d1bb7d67-7097-4139-aa53-5bef55afa20a'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-51105435', 'ctest-vn-19110584'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-51105435', 'ctest-policy-allow-all-78003779']], 'subnet_ipam': [{'subnet_cidr': '156.195.249.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-06 15:55:09,806 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '3008be29-ed95-48b5-8345-2f9c6c6d2463', 'name': 'ctest-vn-59922136', 'tenant_id': 'ce8614f1f1e04f7990fee28f9c2487b1', 'project_id': 'ce8614f1f1e04f7990fee28f9c2487b1', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['7dffd150-df40-4da7-85b1-acc40a373f8a'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-51105435', 'ctest-vn-59922136'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-51105435', 'ctest-policy-allow-all-78003779']], 'subnet_ipam': [{'subnet_cidr': '108.152.189.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-06 15:55:09,965 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-10-06 15:55:10,258 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-10-06 15:55:10,281 - DEBUG - Requesting: http://10.0.0.38:8082/domain/1207d219-508d-4593-8404-52bf7e8650af
2025-10-06 15:55:10,291 - DEBUG - Requesting: http://10.0.0.38:8082/project/ce8614f1-f1e0-4f79-90fe-e28f9c2487b1
2025-10-06 15:55:10,357 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/d8010e71-6841-4f0c-94f9-b7d60d0eb1cb
2025-10-06 15:55:10,367 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/d8010e71-6841-4f0c-94f9-b7d60d0eb1cb
2025-10-06 15:55:10,375 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/a626d89d-de0c-4544-af58-bc76a4a64837
2025-10-06 15:55:10,381 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/a626d89d-de0c-4544-af58-bc76a4a64837
2025-10-06 15:55:10,387 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/83d6155d-7d0d-46ac-899c-ca7d550f463d
2025-10-06 15:55:10,392 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-06 15:55:10,392 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/d8010e71-6841-4f0c-94f9-b7d60d0eb1cb
2025-10-06 15:55:10,400 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/a626d89d-de0c-4544-af58-bc76a4a64837
2025-10-06 15:55:10,414 - INFO - Verified VN network id 11 for VN d8010e71-6841-4f0c-94f9-b7d60d0eb1cb
2025-10-06 15:55:10,414 - INFO - Verifications in API Server for VN ctest-vn-19110584 passed
2025-10-06 15:55:10,414 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/d8010e71-6841-4f0c-94f9-b7d60d0eb1cb
2025-10-06 15:55:10,421 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/a626d89d-de0c-4544-af58-bc76a4a64837
2025-10-06 15:55:10,427 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/a626d89d-de0c-4544-af58-bc76a4a64837
2025-10-06 15:55:10,432 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/83d6155d-7d0d-46ac-899c-ca7d550f463d
2025-10-06 15:55:10,444 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-51105435:ctest-vn-19110584', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-51105435', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15564737667412348684', 'uuid-lslong': '10734813316784239051'}, 'enable': 'true', 'created': '2025-10-06T15:55:08', 'last-modified': '2025-10-06T15:55:09', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.875845'}
2025-10-06 15:55:10,450 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-06 15:55:10,450 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-19110584 passed
2025-10-06 15:55:10,450 - DEBUG - ====Verifying policy data for ctest-vn-19110584 in API_Server ======
2025-10-06 15:55:10,450 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-10-06 15:55:10,455 - DEBUG - Requesting: http://10.0.0.38:8082/domain/1207d219-508d-4593-8404-52bf7e8650af
2025-10-06 15:55:10,463 - DEBUG - Requesting: http://10.0.0.38:8082/project/ce8614f1-f1e0-4f79-90fe-e28f9c2487b1
2025-10-06 15:55:10,529 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/d8010e71-6841-4f0c-94f9-b7d60d0eb1cb
2025-10-06 15:55:10,536 - DEBUG - ==>Verifying data for policy with id: dc6ff691-a2f4-4c33-b2b0-c36443d7116b, fqn: ['default-domain', 'ctest-TestBasicPolicy-51105435', 'ctest-policy-allow-all-78003779']
2025-10-06 15:55:10,537 - INFO - VN ctest-vn-19110584 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-06 15:55:10,537 - DEBUG - Verifying the vn in opserver
2025-10-06 15:55:10,537 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-51105435:ctest-vn-19110584 virtual network link through opserver 10.0.0.38
2025-10-06 15:55:10,537 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-10-06 15:55:10,826 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-10-06 15:55:10,873 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-51105435:ctest-vn-19110584', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-51105435:ctest-vn-19110584?flat'}
2025-10-06 15:55:10,873 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-51105435:ctest-vn-19110584 is found in opserver
2025-10-06 15:55:10,881 - DEBUG - Do not have enough data to verify VN in agent
2025-10-06 15:55:10,885 - DEBUG - VRF ids for VN ctest-vn-19110584: {}
2025-10-06 15:55:10,885 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-10-06 15:55:10,889 - DEBUG - Requesting: http://10.0.0.38:8082/domain/1207d219-508d-4593-8404-52bf7e8650af
2025-10-06 15:55:10,899 - DEBUG - Requesting: http://10.0.0.38:8082/project/ce8614f1-f1e0-4f79-90fe-e28f9c2487b1
2025-10-06 15:55:10,963 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/3008be29-ed95-48b5-8345-2f9c6c6d2463
2025-10-06 15:55:10,972 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/3008be29-ed95-48b5-8345-2f9c6c6d2463
2025-10-06 15:55:10,979 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/d641ad13-5279-42d1-a5d1-484d9ab86658
2025-10-06 15:55:10,985 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/d641ad13-5279-42d1-a5d1-484d9ab86658
2025-10-06 15:55:10,990 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/62d77951-4da0-421d-8f50-ead9494cff22
2025-10-06 15:55:10,995 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-06 15:55:10,995 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/3008be29-ed95-48b5-8345-2f9c6c6d2463
2025-10-06 15:55:11,002 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/d641ad13-5279-42d1-a5d1-484d9ab86658
2025-10-06 15:55:11,015 - INFO - Verified VN network id 12 for VN 3008be29-ed95-48b5-8345-2f9c6c6d2463
2025-10-06 15:55:11,015 - INFO - Verifications in API Server for VN ctest-vn-59922136 passed
2025-10-06 15:55:11,015 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/3008be29-ed95-48b5-8345-2f9c6c6d2463
2025-10-06 15:55:11,024 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/d641ad13-5279-42d1-a5d1-484d9ab86658
2025-10-06 15:55:11,031 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/d641ad13-5279-42d1-a5d1-484d9ab86658
2025-10-06 15:55:11,037 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/62d77951-4da0-421d-8f50-ead9494cff22
2025-10-06 15:55:11,048 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-51105435:ctest-vn-59922136', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-51105435', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3461225400923146421', 'uuid-lslong': '9459018941242090595'}, 'enable': 'true', 'created': '2025-10-06T15:55:08', 'last-modified': '2025-10-06T15:55:09', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.262516'}
2025-10-06 15:55:11,054 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-06 15:55:11,054 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-59922136 passed
2025-10-06 15:55:11,054 - DEBUG - ====Verifying policy data for ctest-vn-59922136 in API_Server ======
2025-10-06 15:55:11,054 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-10-06 15:55:11,059 - DEBUG - Requesting: http://10.0.0.38:8082/domain/1207d219-508d-4593-8404-52bf7e8650af
2025-10-06 15:55:11,067 - DEBUG - Requesting: http://10.0.0.38:8082/project/ce8614f1-f1e0-4f79-90fe-e28f9c2487b1
2025-10-06 15:55:11,134 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/3008be29-ed95-48b5-8345-2f9c6c6d2463
2025-10-06 15:55:11,141 - DEBUG - ==>Verifying data for policy with id: dc6ff691-a2f4-4c33-b2b0-c36443d7116b, fqn: ['default-domain', 'ctest-TestBasicPolicy-51105435', 'ctest-policy-allow-all-78003779']
2025-10-06 15:55:11,141 - INFO - VN ctest-vn-59922136 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-06 15:55:11,142 - DEBUG - Verifying the vn in opserver
2025-10-06 15:55:11,142 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-51105435:ctest-vn-59922136 virtual network link through opserver 10.0.0.38
2025-10-06 15:55:11,142 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-10-06 15:55:11,149 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-51105435:ctest-vn-59922136', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-51105435:ctest-vn-59922136?flat'}
2025-10-06 15:55:11,149 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-51105435:ctest-vn-59922136 is found in opserver
2025-10-06 15:55:11,157 - DEBUG - Do not have enough data to verify VN in agent
2025-10-06 15:55:11,161 - DEBUG - VRF ids for VN ctest-vn-59922136: {}
2025-10-06 15:55:11,210 - DEBUG - Services list from nova: [