2025-10-08 22:11:48,663 - INFO - Domain Default found not creating
2025-10-08 22:11:48,798 - INFO - Project ctest-TestBasicPolicy-84984059 not found, creating it
2025-10-08 22:11:49,245 - INFO - Created Project:ctest-TestBasicPolicy-84984059, ID : 291adfa9-4e2b-47f6-8a92-3cfb9dc41773
2025-10-08 22:11:50,637 - INFO - ================================================================================
2025-10-08 22:11:50,637 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-10-08 22:11:50,637 - 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-08 22:11:50,890 - DEBUG - Nothing to compare xmpp stats {'10.0.0.27': {'10.20.0.17': '0'}} with
2025-10-08 22:11:50,890 - INFO - Initial checks done. Running the testcase now
2025-10-08 22:11:50,890 - INFO -
2025-10-08 22:11:51,474 - DEBUG - Response for create_network : {'network': {'id': '1d20aec8-9ceb-45bf-83c9-b94c29181e83', 'name': 'ctest-vn-16540370', 'tenant_id': '291adfa94e2b47f68a923cfb9dc41773', 'project_id': '291adfa94e2b47f68a923cfb9dc41773', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-84984059', 'ctest-vn-16540370'], 'port_security_enabled': True, 'description': ''}}
2025-10-08 22:11:51,675 - DEBUG - Response for create_subnet : {'subnet': {'id': 'bcf50c2b-051a-4b9c-8930-e558ac24bead', 'name': '', 'tenant_id': '291adfa94e2b47f68a923cfb9dc41773', 'network_id': '1d20aec8-9ceb-45bf-83c9-b94c29181e83', 'ip_version': 4, 'cidr': '197.30.72.128/26', 'allocation_pools': [{'start': '197.30.72.130', 'end': '197.30.72.190'}], 'gateway_ip': '197.30.72.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '197.30.72.130', 'tags': [], 'project_id': '291adfa94e2b47f68a923cfb9dc41773'}}
2025-10-08 22:11:51,692 - INFO - Created VN ctest-vn-16540370
2025-10-08 22:11:51,744 - DEBUG - VN ctest-vn-16540370 UUID is 1d20aec8-9ceb-45bf-83c9-b94c29181e83
2025-10-08 22:11:52,059 - DEBUG - Response for create_network : {'network': {'id': 'c43bc008-2295-4a5a-a7b7-004eca19cac8', 'name': 'ctest-vn-95014586', 'tenant_id': '291adfa94e2b47f68a923cfb9dc41773', 'project_id': '291adfa94e2b47f68a923cfb9dc41773', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-84984059', 'ctest-vn-95014586'], 'port_security_enabled': True, 'description': ''}}
2025-10-08 22:11:52,224 - DEBUG - Response for create_subnet : {'subnet': {'id': '2ca00d9d-ca1e-43da-9941-cb5865aa8c0f', 'name': '', 'tenant_id': '291adfa94e2b47f68a923cfb9dc41773', 'network_id': 'c43bc008-2295-4a5a-a7b7-004eca19cac8', 'ip_version': 4, 'cidr': '200.43.82.0/26', 'allocation_pools': [{'start': '200.43.82.2', 'end': '200.43.82.62'}], 'gateway_ip': '200.43.82.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '200.43.82.2', 'tags': [], 'project_id': '291adfa94e2b47f68a923cfb9dc41773'}}
2025-10-08 22:11:52,243 - INFO - Created VN ctest-vn-95014586
2025-10-08 22:11:52,296 - DEBUG - VN ctest-vn-95014586 UUID is c43bc008-2295-4a5a-a7b7-004eca19cac8
2025-10-08 22:11:52,444 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-84984059:ctest-vn-16540370, 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-84984059:ctest-vn-95014586, 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-08 22:11:52,731 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '1d20aec8-9ceb-45bf-83c9-b94c29181e83', 'name': 'ctest-vn-16540370', 'tenant_id': '291adfa94e2b47f68a923cfb9dc41773', 'project_id': '291adfa94e2b47f68a923cfb9dc41773', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['bcf50c2b-051a-4b9c-8930-e558ac24bead'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-84984059', 'ctest-vn-16540370'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-84984059', 'ctest-policy-allow-all-95550547']], 'subnet_ipam': [{'subnet_cidr': '197.30.72.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-08 22:11:52,955 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'c43bc008-2295-4a5a-a7b7-004eca19cac8', 'name': 'ctest-vn-95014586', 'tenant_id': '291adfa94e2b47f68a923cfb9dc41773', 'project_id': '291adfa94e2b47f68a923cfb9dc41773', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['2ca00d9d-ca1e-43da-9941-cb5865aa8c0f'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-84984059', 'ctest-vn-95014586'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-84984059', 'ctest-policy-allow-all-95550547']], 'subnet_ipam': [{'subnet_cidr': '200.43.82.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-08 22:11:53,116 - DEBUG - Requesting: http://10.0.0.27:8082/domains
2025-10-08 22:11:53,414 - DEBUG - Requesting: http://10.0.0.27:8082/domains
2025-10-08 22:11:53,439 - DEBUG - Requesting: http://10.0.0.27:8082/domain/191a2e31-4b3f-45d7-8827-24503f837416
2025-10-08 22:11:53,451 - DEBUG - Requesting: http://10.0.0.27:8082/project/291adfa9-4e2b-47f6-8a92-3cfb9dc41773
2025-10-08 22:11:53,523 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/1d20aec8-9ceb-45bf-83c9-b94c29181e83
2025-10-08 22:11:53,533 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/1d20aec8-9ceb-45bf-83c9-b94c29181e83
2025-10-08 22:11:53,542 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/09e16d1e-d814-4e60-b77a-d9c687626259
2025-10-08 22:11:53,549 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/09e16d1e-d814-4e60-b77a-d9c687626259
2025-10-08 22:11:53,556 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/fe7c0da9-d477-4fa5-893b-ed48860c631d
2025-10-08 22:11:53,562 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-08 22:11:53,562 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/1d20aec8-9ceb-45bf-83c9-b94c29181e83
2025-10-08 22:11:53,570 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/09e16d1e-d814-4e60-b77a-d9c687626259
2025-10-08 22:11:53,584 - INFO - Verified VN network id 11 for VN 1d20aec8-9ceb-45bf-83c9-b94c29181e83
2025-10-08 22:11:53,584 - INFO - Verifications in API Server for VN ctest-vn-16540370 passed
2025-10-08 22:11:53,584 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/1d20aec8-9ceb-45bf-83c9-b94c29181e83
2025-10-08 22:11:53,591 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/09e16d1e-d814-4e60-b77a-d9c687626259
2025-10-08 22:11:53,597 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/09e16d1e-d814-4e60-b77a-d9c687626259
2025-10-08 22:11:53,604 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/fe7c0da9-d477-4fa5-893b-ed48860c631d
2025-10-08 22:11:53,615 - DEBUG - Control-node 10.0.0.27 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-84984059:ctest-vn-16540370', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-84984059', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '2098869603004007871', 'uuid-lslong': '9496325026045501059'}, 'enable': 'true', 'created': '2025-10-08T22:11:51', 'last-modified': '2025-10-08T22:11:52', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.911813'}
2025-10-08 22:11:53,621 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-08 22:11:53,621 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-16540370 passed
2025-10-08 22:11:53,621 - DEBUG - ====Verifying policy data for ctest-vn-16540370 in API_Server ======
2025-10-08 22:11:53,621 - DEBUG - Requesting: http://10.0.0.27:8082/domains
2025-10-08 22:11:53,628 - DEBUG - Requesting: http://10.0.0.27:8082/domain/191a2e31-4b3f-45d7-8827-24503f837416
2025-10-08 22:11:53,637 - DEBUG - Requesting: http://10.0.0.27:8082/project/291adfa9-4e2b-47f6-8a92-3cfb9dc41773
2025-10-08 22:11:53,713 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/1d20aec8-9ceb-45bf-83c9-b94c29181e83
2025-10-08 22:11:53,722 - DEBUG - ==>Verifying data for policy with id: 5c4499e7-90d7-4824-bb9b-a3de5864a05b, fqn: ['default-domain', 'ctest-TestBasicPolicy-84984059', 'ctest-policy-allow-all-95550547']
2025-10-08 22:11:53,722 - INFO - VN ctest-vn-16540370 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-08 22:11:53,722 - DEBUG - Verifying the vn in opserver
2025-10-08 22:11:53,722 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-84984059:ctest-vn-16540370 virtual network link through opserver 10.0.0.27
2025-10-08 22:11:53,722 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks
2025-10-08 22:11:54,039 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks
2025-10-08 22:11:54,091 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-84984059:ctest-vn-16540370', 'href': 'http://10.0.0.27:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-84984059:ctest-vn-16540370?flat'}
2025-10-08 22:11:54,092 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-84984059:ctest-vn-16540370 is found in opserver
2025-10-08 22:11:54,100 - DEBUG - Do not have enough data to verify VN in agent
2025-10-08 22:11:54,104 - DEBUG - VRF ids for VN ctest-vn-16540370: {}
2025-10-08 22:11:54,104 - DEBUG - Requesting: http://10.0.0.27:8082/domains
2025-10-08 22:11:54,109 - DEBUG - Requesting: http://10.0.0.27:8082/domain/191a2e31-4b3f-45d7-8827-24503f837416
2025-10-08 22:11:54,119 - DEBUG - Requesting: http://10.0.0.27:8082/project/291adfa9-4e2b-47f6-8a92-3cfb9dc41773
2025-10-08 22:11:54,187 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/c43bc008-2295-4a5a-a7b7-004eca19cac8
2025-10-08 22:11:54,202 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/c43bc008-2295-4a5a-a7b7-004eca19cac8
2025-10-08 22:11:54,211 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/e0babd39-e176-4af1-bb54-644b45706323
2025-10-08 22:11:54,219 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/e0babd39-e176-4af1-bb54-644b45706323
2025-10-08 22:11:54,225 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/de0295a9-fca4-4392-ad8c-5d6817802121
2025-10-08 22:11:54,231 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-08 22:11:54,231 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/c43bc008-2295-4a5a-a7b7-004eca19cac8
2025-10-08 22:11:54,239 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/e0babd39-e176-4af1-bb54-644b45706323
2025-10-08 22:11:54,253 - INFO - Verified VN network id 12 for VN c43bc008-2295-4a5a-a7b7-004eca19cac8
2025-10-08 22:11:54,253 - INFO - Verifications in API Server for VN ctest-vn-95014586 passed
2025-10-08 22:11:54,253 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/c43bc008-2295-4a5a-a7b7-004eca19cac8
2025-10-08 22:11:54,261 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/e0babd39-e176-4af1-bb54-644b45706323
2025-10-08 22:11:54,268 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/e0babd39-e176-4af1-bb54-644b45706323
2025-10-08 22:11:54,274 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/de0295a9-fca4-4392-ad8c-5d6817802121
2025-10-08 22:11:54,283 - DEBUG - Control-node 10.0.0.27 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-84984059:ctest-vn-95014586', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-84984059', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '14140106596232284762', 'uuid-lslong': '12085128463470152392'}, 'enable': 'true', 'created': '2025-10-08T22:11:52', 'last-modified': '2025-10-08T22:11:52', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.355818'}
2025-10-08 22:11:54,290 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-08 22:11:54,290 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-95014586 passed
2025-10-08 22:11:54,290 - DEBUG - ====Verifying policy data for ctest-vn-95014586 in API_Server ======
2025-10-08 22:11:54,290 - DEBUG - Requesting: http://10.0.0.27:8082/domains
2025-10-08 22:11:54,296 - DEBUG - Requesting: http://10.0.0.27:8082/domain/191a2e31-4b3f-45d7-8827-24503f837416
2025-10-08 22:11:54,306 - DEBUG - Requesting: http://10.0.0.27:8082/project/291adfa9-4e2b-47f6-8a92-3cfb9dc41773
2025-10-08 22:11:54,378 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/c43bc008-2295-4a5a-a7b7-004eca19cac8
2025-10-08 22:11:54,387 - DEBUG - ==>Verifying data for policy with id: 5c4499e7-90d7-4824-bb9b-a3de5864a05b, fqn: ['default-domain', 'ctest-TestBasicPolicy-84984059', 'ctest-policy-allow-all-95550547']
2025-10-08 22:11:54,387 - INFO - VN ctest-vn-95014586 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-08 22:11:54,387 - DEBUG - Verifying the vn in opserver
2025-10-08 22:11:54,387 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-84984059:ctest-vn-95014586 virtual network link through opserver 10.0.0.27
2025-10-08 22:11:54,387 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks
2025-10-08 22:11:54,398 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-84984059:ctest-vn-95014586', 'href': 'http://10.0.0.27:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-84984059:ctest-vn-95014586?flat'}
2025-10-08 22:11:54,398 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-84984059:ctest-vn-95014586 is found in opserver
2025-10-08 22:11:54,409 - DEBUG - Do not have enough data to verify VN in agent
2025-10-08 22:11:54,414 - DEBUG - VRF ids for VN ctest-vn-95014586: {}
2025-10-08 22:11:54,482 - DEBUG - Services list from nova: [