2025-06-26 02:11:37,997 - INFO - Domain Default found not creating
2025-06-26 02:11:38,144 - INFO - Project ctest-TestBasicPolicy-42650574 not found, creating it
2025-06-26 02:11:38,589 - INFO - Created Project:ctest-TestBasicPolicy-42650574, ID : 2b6f1240-ec05-4db9-a46d-2691f0b719a6
2025-06-26 02:11:39,980 - INFO - ================================================================================
2025-06-26 02:11:39,980 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-06-26 02:11:39,981 - 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-06-26 02:11:40,239 - DEBUG - Nothing to compare xmpp stats {'10.0.0.33': {'10.20.0.193': '0'}} with
2025-06-26 02:11:40,239 - INFO - Initial checks done. Running the testcase now
2025-06-26 02:11:40,240 - INFO -
2025-06-26 02:11:40,769 - DEBUG - Response for create_network : {'network': {'id': 'c1818949-5239-49a5-bfdc-3dbd963efe4f', 'name': 'ctest-vn-08527135', 'tenant_id': '2b6f1240ec054db9a46d2691f0b719a6', 'project_id': '2b6f1240ec054db9a46d2691f0b719a6', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-42650574', 'ctest-vn-08527135'], 'port_security_enabled': True, 'description': ''}}
2025-06-26 02:11:40,976 - DEBUG - Response for create_subnet : {'subnet': {'id': '58267f5d-a5e0-4253-8430-c7e64a1ddffa', 'name': '', 'tenant_id': '2b6f1240ec054db9a46d2691f0b719a6', 'network_id': 'c1818949-5239-49a5-bfdc-3dbd963efe4f', 'ip_version': 4, 'cidr': '168.239.114.192/26', 'allocation_pools': [{'start': '168.239.114.194', 'end': '168.239.114.254'}], 'gateway_ip': '168.239.114.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '168.239.114.194', 'tags': [], 'project_id': '2b6f1240ec054db9a46d2691f0b719a6'}}
2025-06-26 02:11:40,992 - INFO - Created VN ctest-vn-08527135
2025-06-26 02:11:41,045 - DEBUG - VN ctest-vn-08527135 UUID is c1818949-5239-49a5-bfdc-3dbd963efe4f
2025-06-26 02:11:41,372 - DEBUG - Response for create_network : {'network': {'id': 'd90ac080-4e2a-4d44-898e-cc5e6d29cae7', 'name': 'ctest-vn-71303190', 'tenant_id': '2b6f1240ec054db9a46d2691f0b719a6', 'project_id': '2b6f1240ec054db9a46d2691f0b719a6', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-42650574', 'ctest-vn-71303190'], 'port_security_enabled': True, 'description': ''}}
2025-06-26 02:11:41,586 - DEBUG - Response for create_subnet : {'subnet': {'id': 'e687c44a-f5a9-447e-a192-73cce8692bc2', 'name': '', 'tenant_id': '2b6f1240ec054db9a46d2691f0b719a6', 'network_id': 'd90ac080-4e2a-4d44-898e-cc5e6d29cae7', 'ip_version': 4, 'cidr': '154.14.135.128/26', 'allocation_pools': [{'start': '154.14.135.130', 'end': '154.14.135.190'}], 'gateway_ip': '154.14.135.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '154.14.135.130', 'tags': [], 'project_id': '2b6f1240ec054db9a46d2691f0b719a6'}}
2025-06-26 02:11:41,609 - INFO - Created VN ctest-vn-71303190
2025-06-26 02:11:41,662 - DEBUG - VN ctest-vn-71303190 UUID is d90ac080-4e2a-4d44-898e-cc5e6d29cae7
2025-06-26 02:11:41,798 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-42650574:ctest-vn-08527135, 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-42650574:ctest-vn-71303190, 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-06-26 02:11:42,144 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'c1818949-5239-49a5-bfdc-3dbd963efe4f', 'name': 'ctest-vn-08527135', 'tenant_id': '2b6f1240ec054db9a46d2691f0b719a6', 'project_id': '2b6f1240ec054db9a46d2691f0b719a6', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['58267f5d-a5e0-4253-8430-c7e64a1ddffa'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-42650574', 'ctest-vn-08527135'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-42650574', 'ctest-policy-allow-all-29711421']], 'subnet_ipam': [{'subnet_cidr': '168.239.114.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-06-26 02:11:42,382 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'd90ac080-4e2a-4d44-898e-cc5e6d29cae7', 'name': 'ctest-vn-71303190', 'tenant_id': '2b6f1240ec054db9a46d2691f0b719a6', 'project_id': '2b6f1240ec054db9a46d2691f0b719a6', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['e687c44a-f5a9-447e-a192-73cce8692bc2'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-42650574', 'ctest-vn-71303190'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-42650574', 'ctest-policy-allow-all-29711421']], 'subnet_ipam': [{'subnet_cidr': '154.14.135.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-06-26 02:11:42,529 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2025-06-26 02:11:42,842 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2025-06-26 02:11:42,875 - DEBUG - Requesting: http://10.0.0.33:8082/domain/d9eb277d-5c31-4740-88ff-cddedccdd65f
2025-06-26 02:11:42,891 - DEBUG - Requesting: http://10.0.0.33:8082/project/2b6f1240-ec05-4db9-a46d-2691f0b719a6
2025-06-26 02:11:42,968 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/c1818949-5239-49a5-bfdc-3dbd963efe4f
2025-06-26 02:11:42,981 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/c1818949-5239-49a5-bfdc-3dbd963efe4f
2025-06-26 02:11:42,992 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/96e5f0d7-c6bf-45e9-82d5-83a3d32b1119
2025-06-26 02:11:43,002 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/96e5f0d7-c6bf-45e9-82d5-83a3d32b1119
2025-06-26 02:11:43,010 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/b158d248-81d8-4f1c-a4c5-f55e11745803
2025-06-26 02:11:43,017 - DEBUG - Route Targets: ['target:64512:8000005']
2025-06-26 02:11:43,017 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/c1818949-5239-49a5-bfdc-3dbd963efe4f
2025-06-26 02:11:43,027 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/96e5f0d7-c6bf-45e9-82d5-83a3d32b1119
2025-06-26 02:11:43,041 - INFO - Verified VN network id 8 for VN c1818949-5239-49a5-bfdc-3dbd963efe4f
2025-06-26 02:11:43,041 - INFO - Verifications in API Server for VN ctest-vn-08527135 passed
2025-06-26 02:11:43,042 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/c1818949-5239-49a5-bfdc-3dbd963efe4f
2025-06-26 02:11:43,050 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/96e5f0d7-c6bf-45e9-82d5-83a3d32b1119
2025-06-26 02:11:43,057 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/96e5f0d7-c6bf-45e9-82d5-83a3d32b1119
2025-06-26 02:11:43,064 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/b158d248-81d8-4f1c-a4c5-f55e11745803
2025-06-26 02:11:43,075 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-42650574:ctest-vn-08527135', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-42650574', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13943576869320870309', 'uuid-lslong': '13824992840599404111'}, 'enable': 'true', 'created': '2025-06-26T02:11:40', 'last-modified': '2025-06-26T02:11:42', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.962508'}
2025-06-26 02:11:43,081 - DEBUG - Route Targets: ['target:64512:8000005']
2025-06-26 02:11:43,082 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-08527135 passed
2025-06-26 02:11:43,082 - DEBUG - ====Verifying policy data for ctest-vn-08527135 in API_Server ======
2025-06-26 02:11:43,082 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2025-06-26 02:11:43,089 - DEBUG - Requesting: http://10.0.0.33:8082/domain/d9eb277d-5c31-4740-88ff-cddedccdd65f
2025-06-26 02:11:43,102 - DEBUG - Requesting: http://10.0.0.33:8082/project/2b6f1240-ec05-4db9-a46d-2691f0b719a6
2025-06-26 02:11:43,173 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/c1818949-5239-49a5-bfdc-3dbd963efe4f
2025-06-26 02:11:43,183 - DEBUG - ==>Verifying data for policy with id: 5ee92d2c-b77f-491f-bd38-c8b9763201bb, fqn: ['default-domain', 'ctest-TestBasicPolicy-42650574', 'ctest-policy-allow-all-29711421']
2025-06-26 02:11:43,183 - INFO - VN ctest-vn-08527135 Policy verification: verify_vn_policy_in_api_server, status: True
2025-06-26 02:11:43,183 - DEBUG - Verifying the vn in opserver
2025-06-26 02:11:43,183 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-42650574:ctest-vn-08527135 virtual network link through opserver 10.0.0.33
2025-06-26 02:11:43,183 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks
2025-06-26 02:11:43,485 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks
2025-06-26 02:11:43,548 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-42650574:ctest-vn-08527135', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-42650574:ctest-vn-08527135?flat'}
2025-06-26 02:11:43,549 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-42650574:ctest-vn-08527135 is found in opserver
2025-06-26 02:11:43,561 - DEBUG - Do not have enough data to verify VN in agent
2025-06-26 02:11:43,567 - DEBUG - VRF ids for VN ctest-vn-08527135: {}
2025-06-26 02:11:43,567 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2025-06-26 02:11:43,573 - DEBUG - Requesting: http://10.0.0.33:8082/domain/d9eb277d-5c31-4740-88ff-cddedccdd65f
2025-06-26 02:11:43,587 - DEBUG - Requesting: http://10.0.0.33:8082/project/2b6f1240-ec05-4db9-a46d-2691f0b719a6
2025-06-26 02:11:43,663 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/d90ac080-4e2a-4d44-898e-cc5e6d29cae7
2025-06-26 02:11:43,677 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/d90ac080-4e2a-4d44-898e-cc5e6d29cae7
2025-06-26 02:11:43,688 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/a2626be3-7197-4e8f-9181-ccd125213222
2025-06-26 02:11:43,696 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/a2626be3-7197-4e8f-9181-ccd125213222
2025-06-26 02:11:43,703 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/b5704587-f838-4382-8c86-b5a8392682dc
2025-06-26 02:11:43,710 - DEBUG - Route Targets: ['target:64512:8000006']
2025-06-26 02:11:43,710 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/d90ac080-4e2a-4d44-898e-cc5e6d29cae7
2025-06-26 02:11:43,720 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/a2626be3-7197-4e8f-9181-ccd125213222
2025-06-26 02:11:43,737 - INFO - Verified VN network id 9 for VN d90ac080-4e2a-4d44-898e-cc5e6d29cae7
2025-06-26 02:11:43,737 - INFO - Verifications in API Server for VN ctest-vn-71303190 passed
2025-06-26 02:11:43,737 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/d90ac080-4e2a-4d44-898e-cc5e6d29cae7
2025-06-26 02:11:43,750 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/a2626be3-7197-4e8f-9181-ccd125213222
2025-06-26 02:11:43,760 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/a2626be3-7197-4e8f-9181-ccd125213222
2025-06-26 02:11:43,768 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/b5704587-f838-4382-8c86-b5a8392682dc
2025-06-26 02:11:43,781 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-42650574:ctest-vn-71303190', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-42650574', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15639524313297210692', 'uuid-lslong': '9912084535819487975'}, 'enable': 'true', 'created': '2025-06-26T02:11:41', 'last-modified': '2025-06-26T02:11:42', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.423554'}
2025-06-26 02:11:43,788 - DEBUG - Route Targets: ['target:64512:8000006']
2025-06-26 02:11:43,788 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-71303190 passed
2025-06-26 02:11:43,788 - DEBUG - ====Verifying policy data for ctest-vn-71303190 in API_Server ======
2025-06-26 02:11:43,788 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2025-06-26 02:11:43,795 - DEBUG - Requesting: http://10.0.0.33:8082/domain/d9eb277d-5c31-4740-88ff-cddedccdd65f
2025-06-26 02:11:43,808 - DEBUG - Requesting: http://10.0.0.33:8082/project/2b6f1240-ec05-4db9-a46d-2691f0b719a6
2025-06-26 02:11:43,888 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/d90ac080-4e2a-4d44-898e-cc5e6d29cae7
2025-06-26 02:11:43,899 - DEBUG - ==>Verifying data for policy with id: 5ee92d2c-b77f-491f-bd38-c8b9763201bb, fqn: ['default-domain', 'ctest-TestBasicPolicy-42650574', 'ctest-policy-allow-all-29711421']
2025-06-26 02:11:43,899 - INFO - VN ctest-vn-71303190 Policy verification: verify_vn_policy_in_api_server, status: True
2025-06-26 02:11:43,899 - DEBUG - Verifying the vn in opserver
2025-06-26 02:11:43,899 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-42650574:ctest-vn-71303190 virtual network link through opserver 10.0.0.33
2025-06-26 02:11:43,899 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks
2025-06-26 02:11:43,913 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-42650574:ctest-vn-71303190', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-42650574:ctest-vn-71303190?flat'}
2025-06-26 02:11:43,913 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-42650574:ctest-vn-71303190 is found in opserver
2025-06-26 02:11:43,926 - DEBUG - Do not have enough data to verify VN in agent
2025-06-26 02:11:43,931 - DEBUG - VRF ids for VN ctest-vn-71303190: {}
2025-06-26 02:11:43,998 - DEBUG - Services list from nova: [