2025-10-28 21:43:42,987 - INFO - Domain Default found not creating
2025-10-28 21:43:43,133 - INFO - Project ctest-TestBasicPolicy-48846789 not found, creating it
2025-10-28 21:43:43,562 - INFO - Created Project:ctest-TestBasicPolicy-48846789, ID : ab0a59d1-c6a3-4289-ab86-499578e717d2
2025-10-28 21:43:44,974 - INFO - ================================================================================
2025-10-28 21:43:44,975 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-10-28 21:43:44,975 - 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-28 21:43:45,233 - DEBUG - Nothing to compare xmpp stats {'10.0.0.33': {'10.20.0.25': '0'}} with
2025-10-28 21:43:45,233 - INFO - Initial checks done. Running the testcase now
2025-10-28 21:43:45,233 - INFO -
2025-10-28 21:43:45,790 - DEBUG - Response for create_network : {'network': {'id': 'f63fcdbe-6a3e-43c1-a479-3149de9fc4f3', 'name': 'ctest-vn-03117110', 'tenant_id': 'ab0a59d1c6a34289ab86499578e717d2', 'project_id': 'ab0a59d1c6a34289ab86499578e717d2', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-48846789', 'ctest-vn-03117110'], 'port_security_enabled': True, 'description': ''}}
2025-10-28 21:43:45,959 - DEBUG - Response for create_subnet : {'subnet': {'id': '03f5d6cd-1267-4c61-9575-fd8a5ef2aede', 'name': '', 'tenant_id': 'ab0a59d1c6a34289ab86499578e717d2', 'network_id': 'f63fcdbe-6a3e-43c1-a479-3149de9fc4f3', 'ip_version': 4, 'cidr': '161.126.21.0/26', 'allocation_pools': [{'start': '161.126.21.2', 'end': '161.126.21.62'}], 'gateway_ip': '161.126.21.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '161.126.21.2', 'tags': [], 'project_id': 'ab0a59d1c6a34289ab86499578e717d2'}}
2025-10-28 21:43:45,974 - INFO - Created VN ctest-vn-03117110
2025-10-28 21:43:46,027 - DEBUG - VN ctest-vn-03117110 UUID is f63fcdbe-6a3e-43c1-a479-3149de9fc4f3
2025-10-28 21:43:46,325 - DEBUG - Response for create_network : {'network': {'id': 'cb87a4f4-3de9-4009-8be2-47c47a0f0cf0', 'name': 'ctest-vn-21030477', 'tenant_id': 'ab0a59d1c6a34289ab86499578e717d2', 'project_id': 'ab0a59d1c6a34289ab86499578e717d2', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-48846789', 'ctest-vn-21030477'], 'port_security_enabled': True, 'description': ''}}
2025-10-28 21:43:46,499 - DEBUG - Response for create_subnet : {'subnet': {'id': '33130410-03a9-4d91-9cc5-105dc393faad', 'name': '', 'tenant_id': 'ab0a59d1c6a34289ab86499578e717d2', 'network_id': 'cb87a4f4-3de9-4009-8be2-47c47a0f0cf0', 'ip_version': 4, 'cidr': '87.168.157.0/26', 'allocation_pools': [{'start': '87.168.157.2', 'end': '87.168.157.62'}], 'gateway_ip': '87.168.157.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '87.168.157.2', 'tags': [], 'project_id': 'ab0a59d1c6a34289ab86499578e717d2'}}
2025-10-28 21:43:46,516 - INFO - Created VN ctest-vn-21030477
2025-10-28 21:43:46,571 - DEBUG - VN ctest-vn-21030477 UUID is cb87a4f4-3de9-4009-8be2-47c47a0f0cf0
2025-10-28 21:43:46,714 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-48846789:ctest-vn-03117110, 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-48846789:ctest-vn-21030477, 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-28 21:43:46,996 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'f63fcdbe-6a3e-43c1-a479-3149de9fc4f3', 'name': 'ctest-vn-03117110', 'tenant_id': 'ab0a59d1c6a34289ab86499578e717d2', 'project_id': 'ab0a59d1c6a34289ab86499578e717d2', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['03f5d6cd-1267-4c61-9575-fd8a5ef2aede'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-48846789', 'ctest-vn-03117110'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-48846789', 'ctest-policy-allow-all-94242950']], 'subnet_ipam': [{'subnet_cidr': '161.126.21.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-28 21:43:47,207 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'cb87a4f4-3de9-4009-8be2-47c47a0f0cf0', 'name': 'ctest-vn-21030477', 'tenant_id': 'ab0a59d1c6a34289ab86499578e717d2', 'project_id': 'ab0a59d1c6a34289ab86499578e717d2', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['33130410-03a9-4d91-9cc5-105dc393faad'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-48846789', 'ctest-vn-21030477'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-48846789', 'ctest-policy-allow-all-94242950']], 'subnet_ipam': [{'subnet_cidr': '87.168.157.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-28 21:43:47,375 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2025-10-28 21:43:47,664 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2025-10-28 21:43:47,967 - DEBUG - Requesting: http://10.0.0.33:8082/domain/9f2236f7-8582-42ce-a312-524c8b132efd
2025-10-28 21:43:47,978 - DEBUG - Requesting: http://10.0.0.33:8082/project/ab0a59d1-c6a3-4289-ab86-499578e717d2
2025-10-28 21:43:48,048 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/f63fcdbe-6a3e-43c1-a479-3149de9fc4f3
2025-10-28 21:43:48,058 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/f63fcdbe-6a3e-43c1-a479-3149de9fc4f3
2025-10-28 21:43:48,068 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/f76e8e17-d08b-49a8-8aaa-a88005b28606
2025-10-28 21:43:48,075 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/f76e8e17-d08b-49a8-8aaa-a88005b28606
2025-10-28 21:43:48,081 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/c315c5ef-bd4a-408f-b228-8fc09a6d7bae
2025-10-28 21:43:48,087 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-28 21:43:48,087 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/f63fcdbe-6a3e-43c1-a479-3149de9fc4f3
2025-10-28 21:43:48,095 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/f76e8e17-d08b-49a8-8aaa-a88005b28606
2025-10-28 21:43:48,118 - INFO - Verified VN network id 11 for VN f63fcdbe-6a3e-43c1-a479-3149de9fc4f3
2025-10-28 21:43:48,118 - INFO - Verifications in API Server for VN ctest-vn-03117110 passed
2025-10-28 21:43:48,118 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/f63fcdbe-6a3e-43c1-a479-3149de9fc4f3
2025-10-28 21:43:48,126 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/f76e8e17-d08b-49a8-8aaa-a88005b28606
2025-10-28 21:43:48,131 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/f76e8e17-d08b-49a8-8aaa-a88005b28606
2025-10-28 21:43:48,136 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/c315c5ef-bd4a-408f-b228-8fc09a6d7bae
2025-10-28 21:43:48,147 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-48846789:ctest-vn-03117110', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-48846789', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17744127274572989377', 'uuid-lslong': '11851558087739557107'}, 'enable': 'true', 'created': '2025-10-28T21:43:45', 'last-modified': '2025-10-28T21:43:46', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.170434'}
2025-10-28 21:43:48,153 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-28 21:43:48,153 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-03117110 passed
2025-10-28 21:43:48,153 - DEBUG - ====Verifying policy data for ctest-vn-03117110 in API_Server ======
2025-10-28 21:43:48,153 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2025-10-28 21:43:48,158 - DEBUG - Requesting: http://10.0.0.33:8082/domain/9f2236f7-8582-42ce-a312-524c8b132efd
2025-10-28 21:43:48,168 - DEBUG - Requesting: http://10.0.0.33:8082/project/ab0a59d1-c6a3-4289-ab86-499578e717d2
2025-10-28 21:43:48,238 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/f63fcdbe-6a3e-43c1-a479-3149de9fc4f3
2025-10-28 21:43:48,246 - DEBUG - ==>Verifying data for policy with id: d02fd095-59dc-4a08-a3f0-9ad44085a735, fqn: ['default-domain', 'ctest-TestBasicPolicy-48846789', 'ctest-policy-allow-all-94242950']
2025-10-28 21:43:48,246 - INFO - VN ctest-vn-03117110 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-28 21:43:48,246 - DEBUG - Verifying the vn in opserver
2025-10-28 21:43:48,246 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-48846789:ctest-vn-03117110 virtual network link through opserver 10.0.0.33
2025-10-28 21:43:48,246 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks
2025-10-28 21:43:48,591 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks
2025-10-28 21:43:48,673 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-48846789:ctest-vn-03117110', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-48846789:ctest-vn-03117110?flat'}
2025-10-28 21:43:48,673 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-48846789:ctest-vn-03117110 is found in opserver
2025-10-28 21:43:48,684 - DEBUG - Do not have enough data to verify VN in agent
2025-10-28 21:43:48,688 - DEBUG - VRF ids for VN ctest-vn-03117110: {}
2025-10-28 21:43:48,688 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2025-10-28 21:43:48,694 - DEBUG - Requesting: http://10.0.0.33:8082/domain/9f2236f7-8582-42ce-a312-524c8b132efd
2025-10-28 21:43:48,705 - DEBUG - Requesting: http://10.0.0.33:8082/project/ab0a59d1-c6a3-4289-ab86-499578e717d2
2025-10-28 21:43:48,775 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/cb87a4f4-3de9-4009-8be2-47c47a0f0cf0
2025-10-28 21:43:48,786 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/cb87a4f4-3de9-4009-8be2-47c47a0f0cf0
2025-10-28 21:43:48,797 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/0e24a54e-8943-4dd4-a3d9-a5f755daa4e1
2025-10-28 21:43:48,803 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/0e24a54e-8943-4dd4-a3d9-a5f755daa4e1
2025-10-28 21:43:48,808 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/097cebb0-b290-4bb8-949c-758abe26e915
2025-10-28 21:43:48,814 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-28 21:43:48,814 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/cb87a4f4-3de9-4009-8be2-47c47a0f0cf0
2025-10-28 21:43:48,823 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/0e24a54e-8943-4dd4-a3d9-a5f755daa4e1
2025-10-28 21:43:48,838 - INFO - Verified VN network id 12 for VN cb87a4f4-3de9-4009-8be2-47c47a0f0cf0
2025-10-28 21:43:48,838 - INFO - Verifications in API Server for VN ctest-vn-21030477 passed
2025-10-28 21:43:48,838 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/cb87a4f4-3de9-4009-8be2-47c47a0f0cf0
2025-10-28 21:43:48,846 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/0e24a54e-8943-4dd4-a3d9-a5f755daa4e1
2025-10-28 21:43:48,853 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/0e24a54e-8943-4dd4-a3d9-a5f755daa4e1
2025-10-28 21:43:48,860 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/097cebb0-b290-4bb8-949c-758abe26e915
2025-10-28 21:43:48,871 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-48846789:ctest-vn-21030477', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-48846789', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '14665872080472981513', 'uuid-lslong': '10079697825195560176'}, 'enable': 'true', 'created': '2025-10-28T21:43:46', 'last-modified': '2025-10-28T21:43:47', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.680546'}
2025-10-28 21:43:48,877 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-28 21:43:48,877 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-21030477 passed
2025-10-28 21:43:48,877 - DEBUG - ====Verifying policy data for ctest-vn-21030477 in API_Server ======
2025-10-28 21:43:48,877 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2025-10-28 21:43:48,882 - DEBUG - Requesting: http://10.0.0.33:8082/domain/9f2236f7-8582-42ce-a312-524c8b132efd
2025-10-28 21:43:48,892 - DEBUG - Requesting: http://10.0.0.33:8082/project/ab0a59d1-c6a3-4289-ab86-499578e717d2
2025-10-28 21:43:48,962 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/cb87a4f4-3de9-4009-8be2-47c47a0f0cf0
2025-10-28 21:43:48,971 - DEBUG - ==>Verifying data for policy with id: d02fd095-59dc-4a08-a3f0-9ad44085a735, fqn: ['default-domain', 'ctest-TestBasicPolicy-48846789', 'ctest-policy-allow-all-94242950']
2025-10-28 21:43:48,971 - INFO - VN ctest-vn-21030477 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-28 21:43:48,971 - DEBUG - Verifying the vn in opserver
2025-10-28 21:43:48,971 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-48846789:ctest-vn-21030477 virtual network link through opserver 10.0.0.33
2025-10-28 21:43:48,971 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks
2025-10-28 21:43:48,981 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-48846789:ctest-vn-21030477', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-48846789:ctest-vn-21030477?flat'}
2025-10-28 21:43:48,981 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-48846789:ctest-vn-21030477 is found in opserver
2025-10-28 21:43:48,992 - DEBUG - Do not have enough data to verify VN in agent
2025-10-28 21:43:48,998 - DEBUG - VRF ids for VN ctest-vn-21030477: {}
2025-10-28 21:43:49,068 - DEBUG - Services list from nova: [