2025-09-05 13:39:46,233 - INFO - Domain Default found not creating
2025-09-05 13:39:46,372 - INFO - Project ctest-TestBasicPolicy-73318949 not found, creating it
2025-09-05 13:39:46,801 - INFO - Created Project:ctest-TestBasicPolicy-73318949, ID : 695fec8d-fa5a-47dd-9df7-5327b3244d0c
2025-09-05 13:39:48,164 - INFO - ================================================================================
2025-09-05 13:39:48,164 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-09-05 13:39:48,164 - 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-09-05 13:39:48,416 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.17': '0'}} with
2025-09-05 13:39:48,416 - INFO - Initial checks done. Running the testcase now
2025-09-05 13:39:48,416 - INFO -
2025-09-05 13:39:48,952 - DEBUG - Response for create_network : {'network': {'id': '218c0b68-f064-42a8-aa70-cacc69ca4973', 'name': 'ctest-vn-99004853', 'tenant_id': '695fec8dfa5a47dd9df75327b3244d0c', 'project_id': '695fec8dfa5a47dd9df75327b3244d0c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-73318949', 'ctest-vn-99004853'], 'port_security_enabled': True, 'description': ''}}
2025-09-05 13:39:49,116 - DEBUG - Response for create_subnet : {'subnet': {'id': '2bb95e03-a4bf-4008-ad03-f74b8d891e88', 'name': '', 'tenant_id': '695fec8dfa5a47dd9df75327b3244d0c', 'network_id': '218c0b68-f064-42a8-aa70-cacc69ca4973', 'ip_version': 4, 'cidr': '22.247.177.128/26', 'allocation_pools': [{'start': '22.247.177.130', 'end': '22.247.177.190'}], 'gateway_ip': '22.247.177.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '22.247.177.130', 'tags': [], 'project_id': '695fec8dfa5a47dd9df75327b3244d0c'}}
2025-09-05 13:39:49,131 - INFO - Created VN ctest-vn-99004853
2025-09-05 13:39:49,180 - DEBUG - VN ctest-vn-99004853 UUID is 218c0b68-f064-42a8-aa70-cacc69ca4973
2025-09-05 13:39:49,497 - DEBUG - Response for create_network : {'network': {'id': '18c3878e-443c-46f3-aec8-b608b11d58e9', 'name': 'ctest-vn-08502264', 'tenant_id': '695fec8dfa5a47dd9df75327b3244d0c', 'project_id': '695fec8dfa5a47dd9df75327b3244d0c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-73318949', 'ctest-vn-08502264'], 'port_security_enabled': True, 'description': ''}}
2025-09-05 13:39:49,631 - DEBUG - Response for create_subnet : {'subnet': {'id': 'ebf196bb-1991-46f6-9ff1-7c7d152fc11f', 'name': '', 'tenant_id': '695fec8dfa5a47dd9df75327b3244d0c', 'network_id': '18c3878e-443c-46f3-aec8-b608b11d58e9', 'ip_version': 4, 'cidr': '146.135.150.64/26', 'allocation_pools': [{'start': '146.135.150.66', 'end': '146.135.150.126'}], 'gateway_ip': '146.135.150.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '146.135.150.66', 'tags': [], 'project_id': '695fec8dfa5a47dd9df75327b3244d0c'}}
2025-09-05 13:39:49,647 - INFO - Created VN ctest-vn-08502264
2025-09-05 13:39:49,696 - DEBUG - VN ctest-vn-08502264 UUID is 18c3878e-443c-46f3-aec8-b608b11d58e9
2025-09-05 13:39:49,848 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-73318949:ctest-vn-99004853, 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-73318949:ctest-vn-08502264, 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-09-05 13:39:50,143 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '218c0b68-f064-42a8-aa70-cacc69ca4973', 'name': 'ctest-vn-99004853', 'tenant_id': '695fec8dfa5a47dd9df75327b3244d0c', 'project_id': '695fec8dfa5a47dd9df75327b3244d0c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['2bb95e03-a4bf-4008-ad03-f74b8d891e88'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-73318949', 'ctest-vn-99004853'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-73318949', 'ctest-policy-allow-all-63871129']], 'subnet_ipam': [{'subnet_cidr': '22.247.177.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-09-05 13:39:50,356 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '18c3878e-443c-46f3-aec8-b608b11d58e9', 'name': 'ctest-vn-08502264', 'tenant_id': '695fec8dfa5a47dd9df75327b3244d0c', 'project_id': '695fec8dfa5a47dd9df75327b3244d0c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['ebf196bb-1991-46f6-9ff1-7c7d152fc11f'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-73318949', 'ctest-vn-08502264'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-73318949', 'ctest-policy-allow-all-63871129']], 'subnet_ipam': [{'subnet_cidr': '146.135.150.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-09-05 13:39:50,524 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-09-05 13:39:50,820 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-09-05 13:39:50,848 - DEBUG - Requesting: http://10.0.0.254:8082/domain/45575216-447d-4e01-ba31-10643541734f
2025-09-05 13:39:50,862 - DEBUG - Requesting: http://10.0.0.254:8082/project/695fec8d-fa5a-47dd-9df7-5327b3244d0c
2025-09-05 13:39:50,941 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/218c0b68-f064-42a8-aa70-cacc69ca4973
2025-09-05 13:39:50,953 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/218c0b68-f064-42a8-aa70-cacc69ca4973
2025-09-05 13:39:50,962 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/08b37677-b799-475f-8874-f5978b4f1f01
2025-09-05 13:39:50,968 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/08b37677-b799-475f-8874-f5978b4f1f01
2025-09-05 13:39:50,973 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/6b78788d-66f7-4057-9bd1-767eba3e95d0
2025-09-05 13:39:50,978 - DEBUG - Route Targets: ['target:64512:8000004']
2025-09-05 13:39:50,978 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/218c0b68-f064-42a8-aa70-cacc69ca4973
2025-09-05 13:39:50,986 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/08b37677-b799-475f-8874-f5978b4f1f01
2025-09-05 13:39:50,998 - INFO - Verified VN network id 12 for VN 218c0b68-f064-42a8-aa70-cacc69ca4973
2025-09-05 13:39:50,998 - INFO - Verifications in API Server for VN ctest-vn-99004853 passed
2025-09-05 13:39:50,998 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/218c0b68-f064-42a8-aa70-cacc69ca4973
2025-09-05 13:39:51,005 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/08b37677-b799-475f-8874-f5978b4f1f01
2025-09-05 13:39:51,012 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/08b37677-b799-475f-8874-f5978b4f1f01
2025-09-05 13:39:51,017 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/6b78788d-66f7-4057-9bd1-767eba3e95d0
2025-09-05 13:39:51,027 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-73318949:ctest-vn-99004853', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-73318949', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '2417319645328720552', 'uuid-lslong': '12281539163136346483'}, 'enable': 'true', 'created': '2025-09-05T13:39:48', 'last-modified': '2025-09-05T13:39:50', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.905703'}
2025-09-05 13:39:51,032 - DEBUG - Route Targets: ['target:64512:8000004']
2025-09-05 13:39:51,032 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-99004853 passed
2025-09-05 13:39:51,032 - DEBUG - ====Verifying policy data for ctest-vn-99004853 in API_Server ======
2025-09-05 13:39:51,032 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-09-05 13:39:51,036 - DEBUG - Requesting: http://10.0.0.254:8082/domain/45575216-447d-4e01-ba31-10643541734f
2025-09-05 13:39:51,046 - DEBUG - Requesting: http://10.0.0.254:8082/project/695fec8d-fa5a-47dd-9df7-5327b3244d0c
2025-09-05 13:39:51,113 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/218c0b68-f064-42a8-aa70-cacc69ca4973
2025-09-05 13:39:51,121 - DEBUG - ==>Verifying data for policy with id: de605373-ff0c-4446-80ba-9fc27be9e72d, fqn: ['default-domain', 'ctest-TestBasicPolicy-73318949', 'ctest-policy-allow-all-63871129']
2025-09-05 13:39:51,121 - INFO - VN ctest-vn-99004853 Policy verification: verify_vn_policy_in_api_server, status: True
2025-09-05 13:39:51,121 - DEBUG - Verifying the vn in opserver
2025-09-05 13:39:51,121 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-73318949:ctest-vn-99004853 virtual network link through opserver 10.0.0.254
2025-09-05 13:39:51,121 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-09-05 13:39:51,418 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-09-05 13:39:51,468 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-73318949:ctest-vn-99004853', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-73318949:ctest-vn-99004853?flat'}
2025-09-05 13:39:51,468 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-73318949:ctest-vn-99004853 is found in opserver
2025-09-05 13:39:51,477 - DEBUG - Do not have enough data to verify VN in agent
2025-09-05 13:39:51,481 - DEBUG - VRF ids for VN ctest-vn-99004853: {}
2025-09-05 13:39:51,481 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-09-05 13:39:51,486 - DEBUG - Requesting: http://10.0.0.254:8082/domain/45575216-447d-4e01-ba31-10643541734f
2025-09-05 13:39:51,496 - DEBUG - Requesting: http://10.0.0.254:8082/project/695fec8d-fa5a-47dd-9df7-5327b3244d0c
2025-09-05 13:39:51,581 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/18c3878e-443c-46f3-aec8-b608b11d58e9
2025-09-05 13:39:51,592 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/18c3878e-443c-46f3-aec8-b608b11d58e9
2025-09-05 13:39:51,601 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/c0de3ac1-68e6-48a5-980c-af7f3e926802
2025-09-05 13:39:51,608 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/c0de3ac1-68e6-48a5-980c-af7f3e926802
2025-09-05 13:39:51,615 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/a78f956b-94c4-490d-abed-b9e29cfd359a
2025-09-05 13:39:51,621 - DEBUG - Route Targets: ['target:64512:8000005']
2025-09-05 13:39:51,622 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/18c3878e-443c-46f3-aec8-b608b11d58e9
2025-09-05 13:39:51,631 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/c0de3ac1-68e6-48a5-980c-af7f3e926802
2025-09-05 13:39:51,644 - INFO - Verified VN network id 13 for VN 18c3878e-443c-46f3-aec8-b608b11d58e9
2025-09-05 13:39:51,644 - INFO - Verifications in API Server for VN ctest-vn-08502264 passed
2025-09-05 13:39:51,645 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/18c3878e-443c-46f3-aec8-b608b11d58e9
2025-09-05 13:39:51,653 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/c0de3ac1-68e6-48a5-980c-af7f3e926802
2025-09-05 13:39:51,659 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/c0de3ac1-68e6-48a5-980c-af7f3e926802
2025-09-05 13:39:51,665 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/a78f956b-94c4-490d-abed-b9e29cfd359a
2025-09-05 13:39:51,677 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-73318949:ctest-vn-08502264', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-73318949', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1784418922468755187', 'uuid-lslong': '12594516506389076201'}, 'enable': 'true', 'created': '2025-09-05T13:39:49', 'last-modified': '2025-09-05T13:39:50', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.338884'}
2025-09-05 13:39:51,682 - DEBUG - Route Targets: ['target:64512:8000005']
2025-09-05 13:39:51,682 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-08502264 passed
2025-09-05 13:39:51,682 - DEBUG - ====Verifying policy data for ctest-vn-08502264 in API_Server ======
2025-09-05 13:39:51,682 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-09-05 13:39:51,687 - DEBUG - Requesting: http://10.0.0.254:8082/domain/45575216-447d-4e01-ba31-10643541734f
2025-09-05 13:39:51,697 - DEBUG - Requesting: http://10.0.0.254:8082/project/695fec8d-fa5a-47dd-9df7-5327b3244d0c
2025-09-05 13:39:51,763 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/18c3878e-443c-46f3-aec8-b608b11d58e9
2025-09-05 13:39:51,771 - DEBUG - ==>Verifying data for policy with id: de605373-ff0c-4446-80ba-9fc27be9e72d, fqn: ['default-domain', 'ctest-TestBasicPolicy-73318949', 'ctest-policy-allow-all-63871129']
2025-09-05 13:39:51,771 - INFO - VN ctest-vn-08502264 Policy verification: verify_vn_policy_in_api_server, status: True
2025-09-05 13:39:51,771 - DEBUG - Verifying the vn in opserver
2025-09-05 13:39:51,771 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-73318949:ctest-vn-08502264 virtual network link through opserver 10.0.0.254
2025-09-05 13:39:51,772 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-09-05 13:39:51,781 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-73318949:ctest-vn-08502264', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-73318949:ctest-vn-08502264?flat'}
2025-09-05 13:39:51,781 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-73318949:ctest-vn-08502264 is found in opserver
2025-09-05 13:39:51,789 - DEBUG - Do not have enough data to verify VN in agent
2025-09-05 13:39:51,793 - DEBUG - VRF ids for VN ctest-vn-08502264: {}
2025-09-05 13:39:51,843 - DEBUG - Services list from nova: [