2025-12-08 19:26:11,052 - INFO - Domain Default found not creating
2025-12-08 19:26:11,221 - INFO - Project ctest-TestBasicPolicy-78538099 not found, creating it
2025-12-08 19:26:11,677 - INFO - Created Project:ctest-TestBasicPolicy-78538099, ID : ebf922ca-f3e1-4978-9144-8cfc91c3e9f8
2025-12-08 19:26:13,167 - INFO - ================================================================================
2025-12-08 19:26:13,167 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-12-08 19:26:13,167 - 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-08 19:26:13,428 - DEBUG - Nothing to compare xmpp stats {'10.0.0.33': {'10.20.0.14': '0'}} with
2025-12-08 19:26:13,428 - INFO - Initial checks done. Running the testcase now
2025-12-08 19:26:13,428 - INFO -
2025-12-08 19:26:13,971 - DEBUG - Response for create_network : {'network': {'id': 'cf930bb2-3302-4d1d-8283-7ca24bbb4a67', 'name': 'ctest-vn-67794001', 'tenant_id': 'ebf922caf3e1497891448cfc91c3e9f8', 'project_id': 'ebf922caf3e1497891448cfc91c3e9f8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-78538099', 'ctest-vn-67794001'], 'port_security_enabled': True, 'description': ''}}
2025-12-08 19:26:14,182 - DEBUG - Response for create_subnet : {'subnet': {'id': '2905f10e-07e9-444d-99e7-f8be8aa180b1', 'name': '', 'tenant_id': 'ebf922caf3e1497891448cfc91c3e9f8', 'network_id': 'cf930bb2-3302-4d1d-8283-7ca24bbb4a67', 'ip_version': 4, 'cidr': '43.164.135.64/26', 'allocation_pools': [{'start': '43.164.135.66', 'end': '43.164.135.126'}], 'gateway_ip': '43.164.135.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '43.164.135.66', 'tags': [], 'project_id': 'ebf922caf3e1497891448cfc91c3e9f8'}}
2025-12-08 19:26:14,204 - INFO - Created VN ctest-vn-67794001
2025-12-08 19:26:14,258 - DEBUG - VN ctest-vn-67794001 UUID is cf930bb2-3302-4d1d-8283-7ca24bbb4a67
2025-12-08 19:26:14,577 - DEBUG - Response for create_network : {'network': {'id': '7847c173-7b77-4c22-af67-cb8bbed2c6dc', 'name': 'ctest-vn-32805568', 'tenant_id': 'ebf922caf3e1497891448cfc91c3e9f8', 'project_id': 'ebf922caf3e1497891448cfc91c3e9f8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-78538099', 'ctest-vn-32805568'], 'port_security_enabled': True, 'description': ''}}
2025-12-08 19:26:14,751 - DEBUG - Response for create_subnet : {'subnet': {'id': '13eb4850-8e9f-4b5c-a4a5-73b85033f1ec', 'name': '', 'tenant_id': 'ebf922caf3e1497891448cfc91c3e9f8', 'network_id': '7847c173-7b77-4c22-af67-cb8bbed2c6dc', 'ip_version': 4, 'cidr': '4.15.54.64/26', 'allocation_pools': [{'start': '4.15.54.66', 'end': '4.15.54.126'}], 'gateway_ip': '4.15.54.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '4.15.54.66', 'tags': [], 'project_id': 'ebf922caf3e1497891448cfc91c3e9f8'}}
2025-12-08 19:26:14,771 - INFO - Created VN ctest-vn-32805568
2025-12-08 19:26:14,826 - DEBUG - VN ctest-vn-32805568 UUID is 7847c173-7b77-4c22-af67-cb8bbed2c6dc
2025-12-08 19:26:14,945 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-78538099:ctest-vn-67794001, 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-78538099:ctest-vn-32805568, 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-08 19:26:15,234 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'cf930bb2-3302-4d1d-8283-7ca24bbb4a67', 'name': 'ctest-vn-67794001', 'tenant_id': 'ebf922caf3e1497891448cfc91c3e9f8', 'project_id': 'ebf922caf3e1497891448cfc91c3e9f8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['2905f10e-07e9-444d-99e7-f8be8aa180b1'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-78538099', 'ctest-vn-67794001'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-78538099', 'ctest-policy-allow-all-81559739']], 'subnet_ipam': [{'subnet_cidr': '43.164.135.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-12-08 19:26:15,462 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '7847c173-7b77-4c22-af67-cb8bbed2c6dc', 'name': 'ctest-vn-32805568', 'tenant_id': 'ebf922caf3e1497891448cfc91c3e9f8', 'project_id': 'ebf922caf3e1497891448cfc91c3e9f8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['13eb4850-8e9f-4b5c-a4a5-73b85033f1ec'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-78538099', 'ctest-vn-32805568'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-78538099', 'ctest-policy-allow-all-81559739']], 'subnet_ipam': [{'subnet_cidr': '4.15.54.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-12-08 19:26:15,634 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2025-12-08 19:26:15,929 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2025-12-08 19:26:15,959 - DEBUG - Requesting: http://10.0.0.33:8082/domain/9c656358-8480-48e7-9a0a-01645e62912b
2025-12-08 19:26:15,970 - DEBUG - Requesting: http://10.0.0.33:8082/project/ebf922ca-f3e1-4978-9144-8cfc91c3e9f8
2025-12-08 19:26:16,045 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/cf930bb2-3302-4d1d-8283-7ca24bbb4a67
2025-12-08 19:26:16,056 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/cf930bb2-3302-4d1d-8283-7ca24bbb4a67
2025-12-08 19:26:16,064 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/5c338b33-2843-4dae-b1fd-cd0528e526bf
2025-12-08 19:26:16,069 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/5c338b33-2843-4dae-b1fd-cd0528e526bf
2025-12-08 19:26:16,076 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/2c3cc9a0-d2a2-4c71-84f8-3f4f21527116
2025-12-08 19:26:16,082 - DEBUG - Route Targets: ['target:64512:8000004']
2025-12-08 19:26:16,082 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/cf930bb2-3302-4d1d-8283-7ca24bbb4a67
2025-12-08 19:26:16,091 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/5c338b33-2843-4dae-b1fd-cd0528e526bf
2025-12-08 19:26:16,108 - INFO - Verified VN network id 11 for VN cf930bb2-3302-4d1d-8283-7ca24bbb4a67
2025-12-08 19:26:16,109 - INFO - Verifications in API Server for VN ctest-vn-67794001 passed
2025-12-08 19:26:16,109 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/cf930bb2-3302-4d1d-8283-7ca24bbb4a67
2025-12-08 19:26:16,118 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/5c338b33-2843-4dae-b1fd-cd0528e526bf
2025-12-08 19:26:16,124 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/5c338b33-2843-4dae-b1fd-cd0528e526bf
2025-12-08 19:26:16,131 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/2c3cc9a0-d2a2-4c71-84f8-3f4f21527116
2025-12-08 19:26:16,142 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-78538099:ctest-vn-67794001', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-78538099', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '14957311647415422237', 'uuid-lslong': '9404497483376839271'}, 'enable': 'true', 'created': '2025-12-08T19:26:13', 'last-modified': '2025-12-08T19:26:15', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.934456'}
2025-12-08 19:26:16,149 - DEBUG - Route Targets: ['target:64512:8000004']
2025-12-08 19:26:16,149 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-67794001 passed
2025-12-08 19:26:16,149 - DEBUG - ====Verifying policy data for ctest-vn-67794001 in API_Server ======
2025-12-08 19:26:16,149 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2025-12-08 19:26:16,155 - DEBUG - Requesting: http://10.0.0.33:8082/domain/9c656358-8480-48e7-9a0a-01645e62912b
2025-12-08 19:26:16,165 - DEBUG - Requesting: http://10.0.0.33:8082/project/ebf922ca-f3e1-4978-9144-8cfc91c3e9f8
2025-12-08 19:26:16,237 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/cf930bb2-3302-4d1d-8283-7ca24bbb4a67
2025-12-08 19:26:16,246 - DEBUG - ==>Verifying data for policy with id: 6274f25a-2dda-4601-a38f-fce82e36cee0, fqn: ['default-domain', 'ctest-TestBasicPolicy-78538099', 'ctest-policy-allow-all-81559739']
2025-12-08 19:26:16,246 - INFO - VN ctest-vn-67794001 Policy verification: verify_vn_policy_in_api_server, status: True
2025-12-08 19:26:16,246 - DEBUG - Verifying the vn in opserver
2025-12-08 19:26:16,246 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-78538099:ctest-vn-67794001 virtual network link through opserver 10.0.0.33
2025-12-08 19:26:16,246 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks
2025-12-08 19:26:16,542 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks
2025-12-08 19:26:16,596 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-78538099:ctest-vn-67794001', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-78538099:ctest-vn-67794001?flat'}
2025-12-08 19:26:16,596 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-78538099:ctest-vn-67794001 is found in opserver
2025-12-08 19:26:16,605 - DEBUG - Do not have enough data to verify VN in agent
2025-12-08 19:26:16,608 - DEBUG - VRF ids for VN ctest-vn-67794001: {}
2025-12-08 19:26:16,609 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2025-12-08 19:26:16,613 - DEBUG - Requesting: http://10.0.0.33:8082/domain/9c656358-8480-48e7-9a0a-01645e62912b
2025-12-08 19:26:16,622 - DEBUG - Requesting: http://10.0.0.33:8082/project/ebf922ca-f3e1-4978-9144-8cfc91c3e9f8
2025-12-08 19:26:16,689 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/7847c173-7b77-4c22-af67-cb8bbed2c6dc
2025-12-08 19:26:16,699 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/7847c173-7b77-4c22-af67-cb8bbed2c6dc
2025-12-08 19:26:16,709 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/9dddd7ec-29c9-4fef-ba5e-55598f6163c8
2025-12-08 19:26:16,716 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/9dddd7ec-29c9-4fef-ba5e-55598f6163c8
2025-12-08 19:26:16,724 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/d3cb1ea1-cfa5-4dc6-a2a8-45e9ee9ea62a
2025-12-08 19:26:16,732 - DEBUG - Route Targets: ['target:64512:8000005']
2025-12-08 19:26:16,732 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/7847c173-7b77-4c22-af67-cb8bbed2c6dc
2025-12-08 19:26:16,742 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/9dddd7ec-29c9-4fef-ba5e-55598f6163c8
2025-12-08 19:26:16,755 - INFO - Verified VN network id 12 for VN 7847c173-7b77-4c22-af67-cb8bbed2c6dc
2025-12-08 19:26:16,755 - INFO - Verifications in API Server for VN ctest-vn-32805568 passed
2025-12-08 19:26:16,755 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/7847c173-7b77-4c22-af67-cb8bbed2c6dc
2025-12-08 19:26:16,766 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/9dddd7ec-29c9-4fef-ba5e-55598f6163c8
2025-12-08 19:26:16,780 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/9dddd7ec-29c9-4fef-ba5e-55598f6163c8
2025-12-08 19:26:16,789 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/d3cb1ea1-cfa5-4dc6-a2a8-45e9ee9ea62a
2025-12-08 19:26:16,802 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-78538099:ctest-vn-32805568', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-78538099', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8667108709634624546', 'uuid-lslong': '12639294680300963548'}, 'enable': 'true', 'created': '2025-12-08T19:26:14', 'last-modified': '2025-12-08T19:26:15', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.363037'}
2025-12-08 19:26:16,807 - DEBUG - Route Targets: ['target:64512:8000005']
2025-12-08 19:26:16,808 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-32805568 passed
2025-12-08 19:26:16,808 - DEBUG - ====Verifying policy data for ctest-vn-32805568 in API_Server ======
2025-12-08 19:26:16,808 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2025-12-08 19:26:16,814 - DEBUG - Requesting: http://10.0.0.33:8082/domain/9c656358-8480-48e7-9a0a-01645e62912b
2025-12-08 19:26:16,824 - DEBUG - Requesting: http://10.0.0.33:8082/project/ebf922ca-f3e1-4978-9144-8cfc91c3e9f8
2025-12-08 19:26:16,894 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/7847c173-7b77-4c22-af67-cb8bbed2c6dc
2025-12-08 19:26:16,904 - DEBUG - ==>Verifying data for policy with id: 6274f25a-2dda-4601-a38f-fce82e36cee0, fqn: ['default-domain', 'ctest-TestBasicPolicy-78538099', 'ctest-policy-allow-all-81559739']
2025-12-08 19:26:16,904 - INFO - VN ctest-vn-32805568 Policy verification: verify_vn_policy_in_api_server, status: True
2025-12-08 19:26:16,904 - DEBUG - Verifying the vn in opserver
2025-12-08 19:26:16,904 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-78538099:ctest-vn-32805568 virtual network link through opserver 10.0.0.33
2025-12-08 19:26:16,904 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks
2025-12-08 19:26:16,914 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-78538099:ctest-vn-32805568', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-78538099:ctest-vn-32805568?flat'}
2025-12-08 19:26:16,914 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-78538099:ctest-vn-32805568 is found in opserver
2025-12-08 19:26:16,926 - DEBUG - Do not have enough data to verify VN in agent
2025-12-08 19:26:16,932 - DEBUG - VRF ids for VN ctest-vn-32805568: {}
2025-12-08 19:26:16,993 - DEBUG - Services list from nova: [