2025-10-22 12:22:59,365 - INFO - Domain Default found not creating
2025-10-22 12:22:59,531 - INFO - Project ctest-TestBasicPolicy-00230108 not found, creating it
2025-10-22 12:23:00,015 - INFO - Created Project:ctest-TestBasicPolicy-00230108, ID : 013e43f5-9d97-411e-b615-9311f153014b
2025-10-22 12:23:01,572 - INFO - ================================================================================
2025-10-22 12:23:01,573 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-10-22 12:23:01,573 - 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-22 12:23:01,840 - DEBUG - Nothing to compare xmpp stats {'10.0.0.241': {'10.20.0.17': '0'}} with
2025-10-22 12:23:01,840 - INFO - Initial checks done. Running the testcase now
2025-10-22 12:23:01,840 - INFO -
2025-10-22 12:23:02,454 - DEBUG - Response for create_network : {'network': {'id': '3026c8ca-9eb8-4baa-b012-6f14d71c8d9c', 'name': 'ctest-vn-93028997', 'tenant_id': '013e43f59d97411eb6159311f153014b', 'project_id': '013e43f59d97411eb6159311f153014b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-00230108', 'ctest-vn-93028997'], 'port_security_enabled': True, 'description': ''}}
2025-10-22 12:23:02,702 - DEBUG - Response for create_subnet : {'subnet': {'id': '0162f7b1-4c63-4d27-9e03-68adace95d9c', 'name': '', 'tenant_id': '013e43f59d97411eb6159311f153014b', 'network_id': '3026c8ca-9eb8-4baa-b012-6f14d71c8d9c', 'ip_version': 4, 'cidr': '187.26.103.0/26', 'allocation_pools': [{'start': '187.26.103.2', 'end': '187.26.103.62'}], 'gateway_ip': '187.26.103.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '187.26.103.2', 'tags': [], 'project_id': '013e43f59d97411eb6159311f153014b'}}
2025-10-22 12:23:02,725 - INFO - Created VN ctest-vn-93028997
2025-10-22 12:23:02,780 - DEBUG - VN ctest-vn-93028997 UUID is 3026c8ca-9eb8-4baa-b012-6f14d71c8d9c
2025-10-22 12:23:03,104 - DEBUG - Response for create_network : {'network': {'id': 'b7974698-aa92-4c63-b0fc-da7c425c115a', 'name': 'ctest-vn-09589691', 'tenant_id': '013e43f59d97411eb6159311f153014b', 'project_id': '013e43f59d97411eb6159311f153014b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-00230108', 'ctest-vn-09589691'], 'port_security_enabled': True, 'description': ''}}
2025-10-22 12:23:03,286 - DEBUG - Response for create_subnet : {'subnet': {'id': 'e7b020ff-57d8-4cbf-84f3-f874572d5082', 'name': '', 'tenant_id': '013e43f59d97411eb6159311f153014b', 'network_id': 'b7974698-aa92-4c63-b0fc-da7c425c115a', 'ip_version': 4, 'cidr': '186.69.77.0/26', 'allocation_pools': [{'start': '186.69.77.2', 'end': '186.69.77.62'}], 'gateway_ip': '186.69.77.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '186.69.77.2', 'tags': [], 'project_id': '013e43f59d97411eb6159311f153014b'}}
2025-10-22 12:23:03,304 - INFO - Created VN ctest-vn-09589691
2025-10-22 12:23:03,360 - DEBUG - VN ctest-vn-09589691 UUID is b7974698-aa92-4c63-b0fc-da7c425c115a
2025-10-22 12:23:03,493 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-00230108:ctest-vn-93028997, 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-00230108:ctest-vn-09589691, 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-22 12:23:03,809 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '3026c8ca-9eb8-4baa-b012-6f14d71c8d9c', 'name': 'ctest-vn-93028997', 'tenant_id': '013e43f59d97411eb6159311f153014b', 'project_id': '013e43f59d97411eb6159311f153014b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['0162f7b1-4c63-4d27-9e03-68adace95d9c'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-00230108', 'ctest-vn-93028997'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-00230108', 'ctest-policy-allow-all-50235258']], 'subnet_ipam': [{'subnet_cidr': '187.26.103.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-22 12:23:04,056 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'b7974698-aa92-4c63-b0fc-da7c425c115a', 'name': 'ctest-vn-09589691', 'tenant_id': '013e43f59d97411eb6159311f153014b', 'project_id': '013e43f59d97411eb6159311f153014b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['e7b020ff-57d8-4cbf-84f3-f874572d5082'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-00230108', 'ctest-vn-09589691'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-00230108', 'ctest-policy-allow-all-50235258']], 'subnet_ipam': [{'subnet_cidr': '186.69.77.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-22 12:23:04,208 - DEBUG - Requesting: http://10.0.0.241:8082/domains
2025-10-22 12:23:04,518 - DEBUG - Requesting: http://10.0.0.241:8082/domains
2025-10-22 12:23:04,554 - DEBUG - Requesting: http://10.0.0.241:8082/domain/06c58a4c-2788-492a-a725-2ab9a382808a
2025-10-22 12:23:04,568 - DEBUG - Requesting: http://10.0.0.241:8082/project/013e43f5-9d97-411e-b615-9311f153014b
2025-10-22 12:23:04,641 - DEBUG - Requesting: http://10.0.0.241:8082/virtual-network/3026c8ca-9eb8-4baa-b012-6f14d71c8d9c
2025-10-22 12:23:04,654 - DEBUG - Requesting: http://10.0.0.241:8082/virtual-network/3026c8ca-9eb8-4baa-b012-6f14d71c8d9c
2025-10-22 12:23:04,665 - DEBUG - Requesting: http://10.0.0.241:8082/routing-instance/d338cf49-aa8e-4581-9544-2ec18a85aeb2
2025-10-22 12:23:04,673 - DEBUG - Requesting: http://10.0.0.241:8082/routing-instance/d338cf49-aa8e-4581-9544-2ec18a85aeb2
2025-10-22 12:23:04,681 - DEBUG - Requesting: http://10.0.0.241:8082/route-target/392aad95-4c36-4fce-b714-ff685a5d2a4b
2025-10-22 12:23:04,689 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-22 12:23:04,689 - DEBUG - Requesting: http://10.0.0.241:8082/virtual-network/3026c8ca-9eb8-4baa-b012-6f14d71c8d9c
2025-10-22 12:23:04,699 - DEBUG - Requesting: http://10.0.0.241:8082/routing-instance/d338cf49-aa8e-4581-9544-2ec18a85aeb2
2025-10-22 12:23:04,715 - INFO - Verified VN network id 11 for VN 3026c8ca-9eb8-4baa-b012-6f14d71c8d9c
2025-10-22 12:23:04,716 - INFO - Verifications in API Server for VN ctest-vn-93028997 passed
2025-10-22 12:23:04,716 - DEBUG - Requesting: http://10.0.0.241:8082/virtual-network/3026c8ca-9eb8-4baa-b012-6f14d71c8d9c
2025-10-22 12:23:04,726 - DEBUG - Requesting: http://10.0.0.241:8082/routing-instance/d338cf49-aa8e-4581-9544-2ec18a85aeb2
2025-10-22 12:23:04,733 - DEBUG - Requesting: http://10.0.0.241:8082/routing-instance/d338cf49-aa8e-4581-9544-2ec18a85aeb2
2025-10-22 12:23:04,743 - DEBUG - Requesting: http://10.0.0.241:8082/route-target/392aad95-4c36-4fce-b714-ff685a5d2a4b
2025-10-22 12:23:04,754 - DEBUG - Control-node 10.0.0.241 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-00230108:ctest-vn-93028997', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-00230108', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3469681335507372970', 'uuid-lslong': '12687325235555110300'}, 'enable': 'true', 'created': '2025-10-22T12:23:02', 'last-modified': '2025-10-22T12:23:03', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.971488'}
2025-10-22 12:23:04,760 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-22 12:23:04,760 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-93028997 passed
2025-10-22 12:23:04,760 - DEBUG - ====Verifying policy data for ctest-vn-93028997 in API_Server ======
2025-10-22 12:23:04,760 - DEBUG - Requesting: http://10.0.0.241:8082/domains
2025-10-22 12:23:04,766 - DEBUG - Requesting: http://10.0.0.241:8082/domain/06c58a4c-2788-492a-a725-2ab9a382808a
2025-10-22 12:23:04,778 - DEBUG - Requesting: http://10.0.0.241:8082/project/013e43f5-9d97-411e-b615-9311f153014b
2025-10-22 12:23:04,848 - DEBUG - Requesting: http://10.0.0.241:8082/virtual-network/3026c8ca-9eb8-4baa-b012-6f14d71c8d9c
2025-10-22 12:23:04,857 - DEBUG - ==>Verifying data for policy with id: 1668a768-b9d2-4896-93eb-d04e366af913, fqn: ['default-domain', 'ctest-TestBasicPolicy-00230108', 'ctest-policy-allow-all-50235258']
2025-10-22 12:23:04,858 - INFO - VN ctest-vn-93028997 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-22 12:23:04,858 - DEBUG - Verifying the vn in opserver
2025-10-22 12:23:04,858 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-00230108:ctest-vn-93028997 virtual network link through opserver 10.0.0.241
2025-10-22 12:23:04,858 - DEBUG - Requesting: http://10.0.0.241:8081/analytics/uves/virtual-networks
2025-10-22 12:23:05,157 - DEBUG - Requesting: http://10.0.0.241:8081/analytics/uves/virtual-networks
2025-10-22 12:23:05,220 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-00230108:ctest-vn-93028997', 'href': 'http://10.0.0.241:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-00230108:ctest-vn-93028997?flat'}
2025-10-22 12:23:05,220 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-00230108:ctest-vn-93028997 is found in opserver
2025-10-22 12:23:05,231 - DEBUG - Do not have enough data to verify VN in agent
2025-10-22 12:23:05,235 - DEBUG - VRF ids for VN ctest-vn-93028997: {}
2025-10-22 12:23:05,235 - DEBUG - Requesting: http://10.0.0.241:8082/domains
2025-10-22 12:23:05,242 - DEBUG - Requesting: http://10.0.0.241:8082/domain/06c58a4c-2788-492a-a725-2ab9a382808a
2025-10-22 12:23:05,254 - DEBUG - Requesting: http://10.0.0.241:8082/project/013e43f5-9d97-411e-b615-9311f153014b
2025-10-22 12:23:05,327 - DEBUG - Requesting: http://10.0.0.241:8082/virtual-network/b7974698-aa92-4c63-b0fc-da7c425c115a
2025-10-22 12:23:05,341 - DEBUG - Requesting: http://10.0.0.241:8082/virtual-network/b7974698-aa92-4c63-b0fc-da7c425c115a
2025-10-22 12:23:05,350 - DEBUG - Requesting: http://10.0.0.241:8082/routing-instance/607b12e9-cafb-48ad-b7be-7b4effda2c09
2025-10-22 12:23:05,358 - DEBUG - Requesting: http://10.0.0.241:8082/routing-instance/607b12e9-cafb-48ad-b7be-7b4effda2c09
2025-10-22 12:23:05,365 - DEBUG - Requesting: http://10.0.0.241:8082/route-target/65cc3c6b-9123-4a77-9a12-4be8848230b4
2025-10-22 12:23:05,373 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-22 12:23:05,373 - DEBUG - Requesting: http://10.0.0.241:8082/virtual-network/b7974698-aa92-4c63-b0fc-da7c425c115a
2025-10-22 12:23:05,382 - DEBUG - Requesting: http://10.0.0.241:8082/routing-instance/607b12e9-cafb-48ad-b7be-7b4effda2c09
2025-10-22 12:23:05,397 - INFO - Verified VN network id 12 for VN b7974698-aa92-4c63-b0fc-da7c425c115a
2025-10-22 12:23:05,397 - INFO - Verifications in API Server for VN ctest-vn-09589691 passed
2025-10-22 12:23:05,397 - DEBUG - Requesting: http://10.0.0.241:8082/virtual-network/b7974698-aa92-4c63-b0fc-da7c425c115a
2025-10-22 12:23:05,408 - DEBUG - Requesting: http://10.0.0.241:8082/routing-instance/607b12e9-cafb-48ad-b7be-7b4effda2c09
2025-10-22 12:23:05,417 - DEBUG - Requesting: http://10.0.0.241:8082/routing-instance/607b12e9-cafb-48ad-b7be-7b4effda2c09
2025-10-22 12:23:05,426 - DEBUG - Requesting: http://10.0.0.241:8082/route-target/65cc3c6b-9123-4a77-9a12-4be8848230b4
2025-10-22 12:23:05,441 - DEBUG - Control-node 10.0.0.241 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-00230108:ctest-vn-09589691', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-00230108', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13229120051934809187', 'uuid-lslong': '12753308472030531930'}, 'enable': 'true', 'created': '2025-10-22T12:23:03', 'last-modified': '2025-10-22T12:23:04', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.407130'}
2025-10-22 12:23:05,449 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-22 12:23:05,450 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-09589691 passed
2025-10-22 12:23:05,450 - DEBUG - ====Verifying policy data for ctest-vn-09589691 in API_Server ======
2025-10-22 12:23:05,450 - DEBUG - Requesting: http://10.0.0.241:8082/domains
2025-10-22 12:23:05,457 - DEBUG - Requesting: http://10.0.0.241:8082/domain/06c58a4c-2788-492a-a725-2ab9a382808a
2025-10-22 12:23:05,470 - DEBUG - Requesting: http://10.0.0.241:8082/project/013e43f5-9d97-411e-b615-9311f153014b
2025-10-22 12:23:05,548 - DEBUG - Requesting: http://10.0.0.241:8082/virtual-network/b7974698-aa92-4c63-b0fc-da7c425c115a
2025-10-22 12:23:05,560 - DEBUG - ==>Verifying data for policy with id: 1668a768-b9d2-4896-93eb-d04e366af913, fqn: ['default-domain', 'ctest-TestBasicPolicy-00230108', 'ctest-policy-allow-all-50235258']
2025-10-22 12:23:05,560 - INFO - VN ctest-vn-09589691 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-22 12:23:05,560 - DEBUG - Verifying the vn in opserver
2025-10-22 12:23:05,560 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-00230108:ctest-vn-09589691 virtual network link through opserver 10.0.0.241
2025-10-22 12:23:05,560 - DEBUG - Requesting: http://10.0.0.241:8081/analytics/uves/virtual-networks
2025-10-22 12:23:05,570 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-00230108:ctest-vn-09589691', 'href': 'http://10.0.0.241:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-00230108:ctest-vn-09589691?flat'}
2025-10-22 12:23:05,570 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-00230108:ctest-vn-09589691 is found in opserver
2025-10-22 12:23:05,582 - DEBUG - Do not have enough data to verify VN in agent
2025-10-22 12:23:05,587 - DEBUG - VRF ids for VN ctest-vn-09589691: {}
2025-10-22 12:23:05,652 - DEBUG - Services list from nova: [