2025-06-12 02:19:55,840 - INFO - Domain Default found not creating
2025-06-12 02:19:55,990 - INFO - Project ctest-TestBasicPolicy-26647523 not found, creating it
2025-06-12 02:19:56,447 - INFO - Created Project:ctest-TestBasicPolicy-26647523, ID : 946e9a3e-8e1b-457f-84ca-3ef4a638a372
2025-06-12 02:19:57,931 - INFO - ================================================================================
2025-06-12 02:19:57,931 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-06-12 02:19:57,931 - 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-12 02:19:58,186 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.202': '0'}} with
2025-06-12 02:19:58,186 - INFO - Initial checks done. Running the testcase now
2025-06-12 02:19:58,186 - INFO -
2025-06-12 02:19:58,727 - DEBUG - Response for create_network : {'network': {'id': '909d5d06-d75b-48d8-ba86-3e9eada47f72', 'name': 'ctest-vn-90466088', 'tenant_id': '946e9a3e8e1b457f84ca3ef4a638a372', 'project_id': '946e9a3e8e1b457f84ca3ef4a638a372', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-26647523', 'ctest-vn-90466088'], 'port_security_enabled': True, 'description': ''}}
2025-06-12 02:19:58,934 - DEBUG - Response for create_subnet : {'subnet': {'id': '515c086a-ea36-477b-98c2-112ac1e4467b', 'name': '', 'tenant_id': '946e9a3e8e1b457f84ca3ef4a638a372', 'network_id': '909d5d06-d75b-48d8-ba86-3e9eada47f72', 'ip_version': 4, 'cidr': '36.35.225.0/26', 'allocation_pools': [{'start': '36.35.225.2', 'end': '36.35.225.62'}], 'gateway_ip': '36.35.225.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '36.35.225.2', 'tags': [], 'project_id': '946e9a3e8e1b457f84ca3ef4a638a372'}}
2025-06-12 02:19:58,953 - INFO - Created VN ctest-vn-90466088
2025-06-12 02:19:59,008 - DEBUG - VN ctest-vn-90466088 UUID is 909d5d06-d75b-48d8-ba86-3e9eada47f72
2025-06-12 02:19:59,300 - DEBUG - Response for create_network : {'network': {'id': '1121e462-ab15-4146-b817-326401c248f8', 'name': 'ctest-vn-20906711', 'tenant_id': '946e9a3e8e1b457f84ca3ef4a638a372', 'project_id': '946e9a3e8e1b457f84ca3ef4a638a372', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-26647523', 'ctest-vn-20906711'], 'port_security_enabled': True, 'description': ''}}
2025-06-12 02:19:59,462 - DEBUG - Response for create_subnet : {'subnet': {'id': 'a91b2fa2-d5da-4de5-8c4d-8336f59588d9', 'name': '', 'tenant_id': '946e9a3e8e1b457f84ca3ef4a638a372', 'network_id': '1121e462-ab15-4146-b817-326401c248f8', 'ip_version': 4, 'cidr': '146.226.137.128/26', 'allocation_pools': [{'start': '146.226.137.130', 'end': '146.226.137.190'}], 'gateway_ip': '146.226.137.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '146.226.137.130', 'tags': [], 'project_id': '946e9a3e8e1b457f84ca3ef4a638a372'}}
2025-06-12 02:19:59,481 - INFO - Created VN ctest-vn-20906711
2025-06-12 02:19:59,535 - DEBUG - VN ctest-vn-20906711 UUID is 1121e462-ab15-4146-b817-326401c248f8
2025-06-12 02:19:59,651 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-26647523:ctest-vn-90466088, 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-26647523:ctest-vn-20906711, 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-12 02:19:59,973 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '909d5d06-d75b-48d8-ba86-3e9eada47f72', 'name': 'ctest-vn-90466088', 'tenant_id': '946e9a3e8e1b457f84ca3ef4a638a372', 'project_id': '946e9a3e8e1b457f84ca3ef4a638a372', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['515c086a-ea36-477b-98c2-112ac1e4467b'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-26647523', 'ctest-vn-90466088'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-26647523', 'ctest-policy-allow-all-32045757']], 'subnet_ipam': [{'subnet_cidr': '36.35.225.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-06-12 02:20:00,234 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '1121e462-ab15-4146-b817-326401c248f8', 'name': 'ctest-vn-20906711', 'tenant_id': '946e9a3e8e1b457f84ca3ef4a638a372', 'project_id': '946e9a3e8e1b457f84ca3ef4a638a372', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['a91b2fa2-d5da-4de5-8c4d-8336f59588d9'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-26647523', 'ctest-vn-20906711'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-26647523', 'ctest-policy-allow-all-32045757']], 'subnet_ipam': [{'subnet_cidr': '146.226.137.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-06-12 02:20:00,407 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-06-12 02:20:00,713 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-06-12 02:20:00,749 - DEBUG - Requesting: http://10.0.0.254:8082/domain/0d574b80-4e7f-4a9e-9842-4f35956bf8a2
2025-06-12 02:20:00,766 - DEBUG - Requesting: http://10.0.0.254:8082/project/946e9a3e-8e1b-457f-84ca-3ef4a638a372
2025-06-12 02:20:00,844 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/909d5d06-d75b-48d8-ba86-3e9eada47f72
2025-06-12 02:20:00,858 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/909d5d06-d75b-48d8-ba86-3e9eada47f72
2025-06-12 02:20:00,872 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/cd6c061a-cc18-4c26-85ca-99a2fc716294
2025-06-12 02:20:00,881 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/cd6c061a-cc18-4c26-85ca-99a2fc716294
2025-06-12 02:20:00,891 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/c6546bb9-3499-4359-8760-fcb29461d819
2025-06-12 02:20:00,899 - DEBUG - Route Targets: ['target:64512:8000005']
2025-06-12 02:20:00,899 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/909d5d06-d75b-48d8-ba86-3e9eada47f72
2025-06-12 02:20:00,911 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/cd6c061a-cc18-4c26-85ca-99a2fc716294
2025-06-12 02:20:00,938 - INFO - Verified VN network id 8 for VN 909d5d06-d75b-48d8-ba86-3e9eada47f72
2025-06-12 02:20:00,938 - INFO - Verifications in API Server for VN ctest-vn-90466088 passed
2025-06-12 02:20:00,938 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/909d5d06-d75b-48d8-ba86-3e9eada47f72
2025-06-12 02:20:00,954 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/cd6c061a-cc18-4c26-85ca-99a2fc716294
2025-06-12 02:20:00,964 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/cd6c061a-cc18-4c26-85ca-99a2fc716294
2025-06-12 02:20:00,972 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/c6546bb9-3499-4359-8760-fcb29461d819
2025-06-12 02:20:00,988 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-26647523:ctest-vn-90466088', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-26647523', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10420587396769466584', 'uuid-lslong': '13440498989172817778'}, 'enable': 'true', 'created': '2025-06-12T02:19:58', 'last-modified': '2025-06-12T02:19:59', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.046658'}
2025-06-12 02:20:00,997 - DEBUG - Route Targets: ['target:64512:8000005']
2025-06-12 02:20:00,997 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-90466088 passed
2025-06-12 02:20:00,997 - DEBUG - ====Verifying policy data for ctest-vn-90466088 in API_Server ======
2025-06-12 02:20:00,998 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-06-12 02:20:01,005 - DEBUG - Requesting: http://10.0.0.254:8082/domain/0d574b80-4e7f-4a9e-9842-4f35956bf8a2
2025-06-12 02:20:01,018 - DEBUG - Requesting: http://10.0.0.254:8082/project/946e9a3e-8e1b-457f-84ca-3ef4a638a372
2025-06-12 02:20:01,104 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/909d5d06-d75b-48d8-ba86-3e9eada47f72
2025-06-12 02:20:01,127 - DEBUG - ==>Verifying data for policy with id: 83d34a50-0662-4e4b-ac6d-2b7b10118368, fqn: ['default-domain', 'ctest-TestBasicPolicy-26647523', 'ctest-policy-allow-all-32045757']
2025-06-12 02:20:01,127 - INFO - VN ctest-vn-90466088 Policy verification: verify_vn_policy_in_api_server, status: True
2025-06-12 02:20:01,128 - DEBUG - Verifying the vn in opserver
2025-06-12 02:20:01,128 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-26647523:ctest-vn-90466088 virtual network link through opserver 10.0.0.254
2025-06-12 02:20:01,128 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-06-12 02:20:01,429 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-06-12 02:20:01,491 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-26647523:ctest-vn-90466088', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-26647523:ctest-vn-90466088?flat'}
2025-06-12 02:20:01,491 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-26647523:ctest-vn-90466088 is found in opserver
2025-06-12 02:20:01,504 - DEBUG - Do not have enough data to verify VN in agent
2025-06-12 02:20:01,510 - DEBUG - VRF ids for VN ctest-vn-90466088: {}
2025-06-12 02:20:01,510 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-06-12 02:20:01,517 - DEBUG - Requesting: http://10.0.0.254:8082/domain/0d574b80-4e7f-4a9e-9842-4f35956bf8a2
2025-06-12 02:20:01,531 - DEBUG - Requesting: http://10.0.0.254:8082/project/946e9a3e-8e1b-457f-84ca-3ef4a638a372
2025-06-12 02:20:01,614 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/1121e462-ab15-4146-b817-326401c248f8
2025-06-12 02:20:01,629 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/1121e462-ab15-4146-b817-326401c248f8
2025-06-12 02:20:01,640 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/5c1e4506-f71e-4682-bbba-cc90e437f50a
2025-06-12 02:20:01,649 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/5c1e4506-f71e-4682-bbba-cc90e437f50a
2025-06-12 02:20:01,658 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/e27146ac-1f30-4741-8d74-41fd748d9789
2025-06-12 02:20:01,666 - DEBUG - Route Targets: ['target:64512:8000006']
2025-06-12 02:20:01,666 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/1121e462-ab15-4146-b817-326401c248f8
2025-06-12 02:20:01,675 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/5c1e4506-f71e-4682-bbba-cc90e437f50a
2025-06-12 02:20:01,692 - INFO - Verified VN network id 9 for VN 1121e462-ab15-4146-b817-326401c248f8
2025-06-12 02:20:01,692 - INFO - Verifications in API Server for VN ctest-vn-20906711 passed
2025-06-12 02:20:01,692 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/1121e462-ab15-4146-b817-326401c248f8
2025-06-12 02:20:01,706 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/5c1e4506-f71e-4682-bbba-cc90e437f50a
2025-06-12 02:20:01,716 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/5c1e4506-f71e-4682-bbba-cc90e437f50a
2025-06-12 02:20:01,726 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/e27146ac-1f30-4741-8d74-41fd748d9789
2025-06-12 02:20:01,742 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-26647523:ctest-vn-20906711', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-26647523', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1234518885304451398', 'uuid-lslong': '13265126632550713592'}, 'enable': 'true', 'created': '2025-06-12T02:19:59', 'last-modified': '2025-06-12T02:20:00', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.534704'}
2025-06-12 02:20:01,749 - DEBUG - Route Targets: ['target:64512:8000006']
2025-06-12 02:20:01,749 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-20906711 passed
2025-06-12 02:20:01,749 - DEBUG - ====Verifying policy data for ctest-vn-20906711 in API_Server ======
2025-06-12 02:20:01,749 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-06-12 02:20:01,756 - DEBUG - Requesting: http://10.0.0.254:8082/domain/0d574b80-4e7f-4a9e-9842-4f35956bf8a2
2025-06-12 02:20:01,769 - DEBUG - Requesting: http://10.0.0.254:8082/project/946e9a3e-8e1b-457f-84ca-3ef4a638a372
2025-06-12 02:20:01,853 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/1121e462-ab15-4146-b817-326401c248f8
2025-06-12 02:20:01,868 - DEBUG - ==>Verifying data for policy with id: 83d34a50-0662-4e4b-ac6d-2b7b10118368, fqn: ['default-domain', 'ctest-TestBasicPolicy-26647523', 'ctest-policy-allow-all-32045757']
2025-06-12 02:20:01,868 - INFO - VN ctest-vn-20906711 Policy verification: verify_vn_policy_in_api_server, status: True
2025-06-12 02:20:01,868 - DEBUG - Verifying the vn in opserver
2025-06-12 02:20:01,869 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-26647523:ctest-vn-20906711 virtual network link through opserver 10.0.0.254
2025-06-12 02:20:01,869 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-06-12 02:20:01,884 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-26647523:ctest-vn-20906711', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-26647523:ctest-vn-20906711?flat'}
2025-06-12 02:20:01,884 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-26647523:ctest-vn-20906711 is found in opserver
2025-06-12 02:20:01,904 - DEBUG - Do not have enough data to verify VN in agent
2025-06-12 02:20:01,912 - DEBUG - VRF ids for VN ctest-vn-20906711: {}
2025-06-12 02:20:01,987 - DEBUG - Services list from nova: [