2025-08-11 21:37:41,527 - INFO - Domain Default found not creating
2025-08-11 21:37:41,644 - INFO - Project ctest-TestBasicPolicy-78383140 not found, creating it
2025-08-11 21:37:42,054 - INFO - Created Project:ctest-TestBasicPolicy-78383140, ID : 5ff46379-1055-429b-8a3f-2c198d2259f3
2025-08-11 21:37:43,352 - INFO - ================================================================================
2025-08-11 21:37:43,353 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-08-11 21:37:43,353 - 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-08-11 21:37:43,605 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.254': '0'}} with
2025-08-11 21:37:43,605 - INFO - Initial checks done. Running the testcase now
2025-08-11 21:37:43,605 - INFO -
2025-08-11 21:37:44,137 - DEBUG - Response for create_network : {'network': {'id': '39ae89d6-2220-4931-a0c1-eac867a643b2', 'name': 'ctest-vn-80133533', 'tenant_id': '5ff463791055429b8a3f2c198d2259f3', 'project_id': '5ff463791055429b8a3f2c198d2259f3', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-78383140', 'ctest-vn-80133533'], 'port_security_enabled': True, 'description': ''}}
2025-08-11 21:37:44,308 - DEBUG - Response for create_subnet : {'subnet': {'id': 'c5bc454c-9e82-421a-a7f9-bb533f83712d', 'name': '', 'tenant_id': '5ff463791055429b8a3f2c198d2259f3', 'network_id': '39ae89d6-2220-4931-a0c1-eac867a643b2', 'ip_version': 4, 'cidr': '137.236.143.128/26', 'allocation_pools': [{'start': '137.236.143.130', 'end': '137.236.143.190'}], 'gateway_ip': '137.236.143.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '137.236.143.130', 'tags': [], 'project_id': '5ff463791055429b8a3f2c198d2259f3'}}
2025-08-11 21:37:44,325 - INFO - Created VN ctest-vn-80133533
2025-08-11 21:37:44,381 - DEBUG - VN ctest-vn-80133533 UUID is 39ae89d6-2220-4931-a0c1-eac867a643b2
2025-08-11 21:37:44,686 - DEBUG - Response for create_network : {'network': {'id': 'f20631ef-1187-4a1e-a842-8c81e6bc4444', 'name': 'ctest-vn-27605235', 'tenant_id': '5ff463791055429b8a3f2c198d2259f3', 'project_id': '5ff463791055429b8a3f2c198d2259f3', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-78383140', 'ctest-vn-27605235'], 'port_security_enabled': True, 'description': ''}}
2025-08-11 21:37:44,893 - DEBUG - Response for create_subnet : {'subnet': {'id': 'd28e332a-6069-4a3d-9676-3f6bde5b01ae', 'name': '', 'tenant_id': '5ff463791055429b8a3f2c198d2259f3', 'network_id': 'f20631ef-1187-4a1e-a842-8c81e6bc4444', 'ip_version': 4, 'cidr': '21.135.70.0/26', 'allocation_pools': [{'start': '21.135.70.2', 'end': '21.135.70.62'}], 'gateway_ip': '21.135.70.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '21.135.70.2', 'tags': [], 'project_id': '5ff463791055429b8a3f2c198d2259f3'}}
2025-08-11 21:37:44,908 - INFO - Created VN ctest-vn-27605235
2025-08-11 21:37:44,960 - DEBUG - VN ctest-vn-27605235 UUID is f20631ef-1187-4a1e-a842-8c81e6bc4444
2025-08-11 21:37:45,108 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-78383140:ctest-vn-80133533, 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-78383140:ctest-vn-27605235, 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-08-11 21:37:45,399 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '39ae89d6-2220-4931-a0c1-eac867a643b2', 'name': 'ctest-vn-80133533', 'tenant_id': '5ff463791055429b8a3f2c198d2259f3', 'project_id': '5ff463791055429b8a3f2c198d2259f3', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['c5bc454c-9e82-421a-a7f9-bb533f83712d'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-78383140', 'ctest-vn-80133533'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-78383140', 'ctest-policy-allow-all-96948506']], 'subnet_ipam': [{'subnet_cidr': '137.236.143.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-08-11 21:37:45,623 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'f20631ef-1187-4a1e-a842-8c81e6bc4444', 'name': 'ctest-vn-27605235', 'tenant_id': '5ff463791055429b8a3f2c198d2259f3', 'project_id': '5ff463791055429b8a3f2c198d2259f3', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['d28e332a-6069-4a3d-9676-3f6bde5b01ae'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-78383140', 'ctest-vn-27605235'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-78383140', 'ctest-policy-allow-all-96948506']], 'subnet_ipam': [{'subnet_cidr': '21.135.70.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-08-11 21:37:45,784 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-08-11 21:37:46,075 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-08-11 21:37:46,100 - DEBUG - Requesting: http://10.0.0.38:8082/domain/8a2622e6-a5eb-4a98-9b85-6e060ec30489
2025-08-11 21:37:46,112 - DEBUG - Requesting: http://10.0.0.38:8082/project/5ff46379-1055-429b-8a3f-2c198d2259f3
2025-08-11 21:37:46,180 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/39ae89d6-2220-4931-a0c1-eac867a643b2
2025-08-11 21:37:46,190 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/39ae89d6-2220-4931-a0c1-eac867a643b2
2025-08-11 21:37:46,198 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/32bd776b-9708-4a3c-95a4-b6f0fd15b1f5
2025-08-11 21:37:46,204 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/32bd776b-9708-4a3c-95a4-b6f0fd15b1f5
2025-08-11 21:37:46,210 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/2d39141d-957e-4b24-bfc3-52925698ed28
2025-08-11 21:37:46,215 - DEBUG - Route Targets: ['target:64512:8000005']
2025-08-11 21:37:46,215 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/39ae89d6-2220-4931-a0c1-eac867a643b2
2025-08-11 21:37:46,223 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/32bd776b-9708-4a3c-95a4-b6f0fd15b1f5
2025-08-11 21:37:46,235 - INFO - Verified VN network id 11 for VN 39ae89d6-2220-4931-a0c1-eac867a643b2
2025-08-11 21:37:46,235 - INFO - Verifications in API Server for VN ctest-vn-80133533 passed
2025-08-11 21:37:46,235 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/39ae89d6-2220-4931-a0c1-eac867a643b2
2025-08-11 21:37:46,244 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/32bd776b-9708-4a3c-95a4-b6f0fd15b1f5
2025-08-11 21:37:46,249 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/32bd776b-9708-4a3c-95a4-b6f0fd15b1f5
2025-08-11 21:37:46,255 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/2d39141d-957e-4b24-bfc3-52925698ed28
2025-08-11 21:37:46,265 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-78383140:ctest-vn-80133533', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-78383140', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '4156411058898094385', 'uuid-lslong': '11583797863026934706'}, 'enable': 'true', 'created': '2025-08-11T21:37:44', 'last-modified': '2025-08-11T21:37:45', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.894102'}
2025-08-11 21:37:46,271 - DEBUG - Route Targets: ['target:64512:8000005']
2025-08-11 21:37:46,271 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-80133533 passed
2025-08-11 21:37:46,271 - DEBUG - ====Verifying policy data for ctest-vn-80133533 in API_Server ======
2025-08-11 21:37:46,272 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-08-11 21:37:46,276 - DEBUG - Requesting: http://10.0.0.38:8082/domain/8a2622e6-a5eb-4a98-9b85-6e060ec30489
2025-08-11 21:37:46,286 - DEBUG - Requesting: http://10.0.0.38:8082/project/5ff46379-1055-429b-8a3f-2c198d2259f3
2025-08-11 21:37:46,353 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/39ae89d6-2220-4931-a0c1-eac867a643b2
2025-08-11 21:37:46,361 - DEBUG - ==>Verifying data for policy with id: 21c14b1b-7f69-4380-b9d7-4a113ebc0ba5, fqn: ['default-domain', 'ctest-TestBasicPolicy-78383140', 'ctest-policy-allow-all-96948506']
2025-08-11 21:37:46,361 - INFO - VN ctest-vn-80133533 Policy verification: verify_vn_policy_in_api_server, status: True
2025-08-11 21:37:46,361 - DEBUG - Verifying the vn in opserver
2025-08-11 21:37:46,362 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-78383140:ctest-vn-80133533 virtual network link through opserver 10.0.0.38
2025-08-11 21:37:46,362 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-08-11 21:37:46,652 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-08-11 21:37:46,704 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-78383140:ctest-vn-80133533', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-78383140:ctest-vn-80133533?flat'}
2025-08-11 21:37:46,704 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-78383140:ctest-vn-80133533 is found in opserver
2025-08-11 21:37:46,714 - DEBUG - Do not have enough data to verify VN in agent
2025-08-11 21:37:46,719 - DEBUG - VRF ids for VN ctest-vn-80133533: {}
2025-08-11 21:37:46,719 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-08-11 21:37:46,724 - DEBUG - Requesting: http://10.0.0.38:8082/domain/8a2622e6-a5eb-4a98-9b85-6e060ec30489
2025-08-11 21:37:46,735 - DEBUG - Requesting: http://10.0.0.38:8082/project/5ff46379-1055-429b-8a3f-2c198d2259f3
2025-08-11 21:37:46,807 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/f20631ef-1187-4a1e-a842-8c81e6bc4444
2025-08-11 21:37:46,818 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/f20631ef-1187-4a1e-a842-8c81e6bc4444
2025-08-11 21:37:46,827 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/1bcb5546-b54a-463c-af68-28f3561b6f5f
2025-08-11 21:37:46,833 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/1bcb5546-b54a-463c-af68-28f3561b6f5f
2025-08-11 21:37:46,839 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/e07cef49-fe38-4080-b1bf-e91c4d3f0470
2025-08-11 21:37:46,844 - DEBUG - Route Targets: ['target:64512:8000006']
2025-08-11 21:37:46,844 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/f20631ef-1187-4a1e-a842-8c81e6bc4444
2025-08-11 21:37:46,852 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/1bcb5546-b54a-463c-af68-28f3561b6f5f
2025-08-11 21:37:46,864 - INFO - Verified VN network id 12 for VN f20631ef-1187-4a1e-a842-8c81e6bc4444
2025-08-11 21:37:46,865 - INFO - Verifications in API Server for VN ctest-vn-27605235 passed
2025-08-11 21:37:46,865 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/f20631ef-1187-4a1e-a842-8c81e6bc4444
2025-08-11 21:37:46,873 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/1bcb5546-b54a-463c-af68-28f3561b6f5f
2025-08-11 21:37:46,879 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/1bcb5546-b54a-463c-af68-28f3561b6f5f
2025-08-11 21:37:46,885 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/e07cef49-fe38-4080-b1bf-e91c4d3f0470
2025-08-11 21:37:46,896 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-78383140:ctest-vn-27605235', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-78383140', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17439681509899848222', 'uuid-lslong': '12124407636384564292'}, 'enable': 'true', 'created': '2025-08-11T21:37:44', 'last-modified': '2025-08-11T21:37:45', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.289431'}
2025-08-11 21:37:46,901 - DEBUG - Route Targets: ['target:64512:8000006']
2025-08-11 21:37:46,902 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-27605235 passed
2025-08-11 21:37:46,902 - DEBUG - ====Verifying policy data for ctest-vn-27605235 in API_Server ======
2025-08-11 21:37:46,902 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-08-11 21:37:46,907 - DEBUG - Requesting: http://10.0.0.38:8082/domain/8a2622e6-a5eb-4a98-9b85-6e060ec30489
2025-08-11 21:37:46,918 - DEBUG - Requesting: http://10.0.0.38:8082/project/5ff46379-1055-429b-8a3f-2c198d2259f3
2025-08-11 21:37:46,985 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/f20631ef-1187-4a1e-a842-8c81e6bc4444
2025-08-11 21:37:46,993 - DEBUG - ==>Verifying data for policy with id: 21c14b1b-7f69-4380-b9d7-4a113ebc0ba5, fqn: ['default-domain', 'ctest-TestBasicPolicy-78383140', 'ctest-policy-allow-all-96948506']
2025-08-11 21:37:46,994 - INFO - VN ctest-vn-27605235 Policy verification: verify_vn_policy_in_api_server, status: True
2025-08-11 21:37:46,994 - DEBUG - Verifying the vn in opserver
2025-08-11 21:37:46,994 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-78383140:ctest-vn-27605235 virtual network link through opserver 10.0.0.38
2025-08-11 21:37:46,994 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-08-11 21:37:47,002 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-78383140:ctest-vn-27605235', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-78383140:ctest-vn-27605235?flat'}
2025-08-11 21:37:47,002 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-78383140:ctest-vn-27605235 is found in opserver
2025-08-11 21:37:47,011 - DEBUG - Do not have enough data to verify VN in agent
2025-08-11 21:37:47,016 - DEBUG - VRF ids for VN ctest-vn-27605235: {}
2025-08-11 21:37:47,064 - DEBUG - Services list from nova: [