2025-09-25 06:52:07,940 - INFO - Domain Default found not creating
2025-09-25 06:52:08,096 - INFO - Project ctest-TestBasicPolicy-60739841 not found, creating it
2025-09-25 06:52:08,563 - INFO - Created Project:ctest-TestBasicPolicy-60739841, ID : 94104d58-8442-49f8-a443-111936c1134d
2025-09-25 06:52:09,982 - INFO - ================================================================================
2025-09-25 06:52:09,983 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-09-25 06:52:09,983 - 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-25 06:52:10,235 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.17': '0'}} with
2025-09-25 06:52:10,236 - INFO - Initial checks done. Running the testcase now
2025-09-25 06:52:10,236 - INFO -
2025-09-25 06:52:10,829 - DEBUG - Response for create_network : {'network': {'id': 'a73881c3-e7d3-44e6-8aad-dd40e6c708b1', 'name': 'ctest-vn-89937109', 'tenant_id': '94104d58844249f8a443111936c1134d', 'project_id': '94104d58844249f8a443111936c1134d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-60739841', 'ctest-vn-89937109'], 'port_security_enabled': True, 'description': ''}}
2025-09-25 06:52:11,043 - DEBUG - Response for create_subnet : {'subnet': {'id': '57360d75-6cf4-43be-b791-510fa6926a78', 'name': '', 'tenant_id': '94104d58844249f8a443111936c1134d', 'network_id': 'a73881c3-e7d3-44e6-8aad-dd40e6c708b1', 'ip_version': 4, 'cidr': '99.16.34.192/26', 'allocation_pools': [{'start': '99.16.34.194', 'end': '99.16.34.254'}], 'gateway_ip': '99.16.34.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '99.16.34.194', 'tags': [], 'project_id': '94104d58844249f8a443111936c1134d'}}
2025-09-25 06:52:11,062 - INFO - Created VN ctest-vn-89937109
2025-09-25 06:52:11,113 - DEBUG - VN ctest-vn-89937109 UUID is a73881c3-e7d3-44e6-8aad-dd40e6c708b1
2025-09-25 06:52:11,419 - DEBUG - Response for create_network : {'network': {'id': '93476dc9-0748-480a-98f7-85c05316af8a', 'name': 'ctest-vn-73412914', 'tenant_id': '94104d58844249f8a443111936c1134d', 'project_id': '94104d58844249f8a443111936c1134d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-60739841', 'ctest-vn-73412914'], 'port_security_enabled': True, 'description': ''}}
2025-09-25 06:52:11,595 - DEBUG - Response for create_subnet : {'subnet': {'id': 'dbc62e45-a394-4176-96d7-ebfd956c46fa', 'name': '', 'tenant_id': '94104d58844249f8a443111936c1134d', 'network_id': '93476dc9-0748-480a-98f7-85c05316af8a', 'ip_version': 4, 'cidr': '110.39.170.64/26', 'allocation_pools': [{'start': '110.39.170.66', 'end': '110.39.170.126'}], 'gateway_ip': '110.39.170.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '110.39.170.66', 'tags': [], 'project_id': '94104d58844249f8a443111936c1134d'}}
2025-09-25 06:52:11,612 - INFO - Created VN ctest-vn-73412914
2025-09-25 06:52:11,665 - DEBUG - VN ctest-vn-73412914 UUID is 93476dc9-0748-480a-98f7-85c05316af8a
2025-09-25 06:52:11,817 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-60739841:ctest-vn-89937109, 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-60739841:ctest-vn-73412914, 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-25 06:52:12,119 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'a73881c3-e7d3-44e6-8aad-dd40e6c708b1', 'name': 'ctest-vn-89937109', 'tenant_id': '94104d58844249f8a443111936c1134d', 'project_id': '94104d58844249f8a443111936c1134d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['57360d75-6cf4-43be-b791-510fa6926a78'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-60739841', 'ctest-vn-89937109'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-60739841', 'ctest-policy-allow-all-24262654']], 'subnet_ipam': [{'subnet_cidr': '99.16.34.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-09-25 06:52:12,387 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '93476dc9-0748-480a-98f7-85c05316af8a', 'name': 'ctest-vn-73412914', 'tenant_id': '94104d58844249f8a443111936c1134d', 'project_id': '94104d58844249f8a443111936c1134d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['dbc62e45-a394-4176-96d7-ebfd956c46fa'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-60739841', 'ctest-vn-73412914'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-60739841', 'ctest-policy-allow-all-24262654']], 'subnet_ipam': [{'subnet_cidr': '110.39.170.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-09-25 06:52:12,537 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-09-25 06:52:12,839 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-09-25 06:52:12,870 - DEBUG - Requesting: http://10.0.0.50:8082/domain/32632b1e-4a5a-440a-b1f6-e3b7a8adae45
2025-09-25 06:52:12,887 - DEBUG - Requesting: http://10.0.0.50:8082/project/94104d58-8442-49f8-a443-111936c1134d
2025-09-25 06:52:12,960 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/a73881c3-e7d3-44e6-8aad-dd40e6c708b1
2025-09-25 06:52:12,971 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/a73881c3-e7d3-44e6-8aad-dd40e6c708b1
2025-09-25 06:52:12,983 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/fe449ca7-efbb-4aa2-90c5-ef78ae1d9b14
2025-09-25 06:52:12,992 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/fe449ca7-efbb-4aa2-90c5-ef78ae1d9b14
2025-09-25 06:52:13,000 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/ee3a2188-9733-40d8-8a34-37da8086be0a
2025-09-25 06:52:13,008 - DEBUG - Route Targets: ['target:64512:8000004']
2025-09-25 06:52:13,008 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/a73881c3-e7d3-44e6-8aad-dd40e6c708b1
2025-09-25 06:52:13,017 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/fe449ca7-efbb-4aa2-90c5-ef78ae1d9b14
2025-09-25 06:52:13,032 - INFO - Verified VN network id 11 for VN a73881c3-e7d3-44e6-8aad-dd40e6c708b1
2025-09-25 06:52:13,032 - INFO - Verifications in API Server for VN ctest-vn-89937109 passed
2025-09-25 06:52:13,032 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/a73881c3-e7d3-44e6-8aad-dd40e6c708b1
2025-09-25 06:52:13,042 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/fe449ca7-efbb-4aa2-90c5-ef78ae1d9b14
2025-09-25 06:52:13,052 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/fe449ca7-efbb-4aa2-90c5-ef78ae1d9b14
2025-09-25 06:52:13,062 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/ee3a2188-9733-40d8-8a34-37da8086be0a
2025-09-25 06:52:13,075 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-60739841:ctest-vn-89937109', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-60739841', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12049523481437750502', 'uuid-lslong': '9992886419024447665'}, 'enable': 'true', 'created': '2025-09-25T06:52:10', 'last-modified': '2025-09-25T06:52:12', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.985102'}
2025-09-25 06:52:13,083 - DEBUG - Route Targets: ['target:64512:8000004']
2025-09-25 06:52:13,083 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-89937109 passed
2025-09-25 06:52:13,083 - DEBUG - ====Verifying policy data for ctest-vn-89937109 in API_Server ======
2025-09-25 06:52:13,083 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-09-25 06:52:13,089 - DEBUG - Requesting: http://10.0.0.50:8082/domain/32632b1e-4a5a-440a-b1f6-e3b7a8adae45
2025-09-25 06:52:13,101 - DEBUG - Requesting: http://10.0.0.50:8082/project/94104d58-8442-49f8-a443-111936c1134d
2025-09-25 06:52:13,171 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/a73881c3-e7d3-44e6-8aad-dd40e6c708b1
2025-09-25 06:52:13,182 - DEBUG - ==>Verifying data for policy with id: be7747d4-8526-4fa7-a810-4fed0c7a322a, fqn: ['default-domain', 'ctest-TestBasicPolicy-60739841', 'ctest-policy-allow-all-24262654']
2025-09-25 06:52:13,182 - INFO - VN ctest-vn-89937109 Policy verification: verify_vn_policy_in_api_server, status: True
2025-09-25 06:52:13,182 - DEBUG - Verifying the vn in opserver
2025-09-25 06:52:13,182 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-60739841:ctest-vn-89937109 virtual network link through opserver 10.0.0.50
2025-09-25 06:52:13,183 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2025-09-25 06:52:13,477 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2025-09-25 06:52:13,586 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-60739841:ctest-vn-89937109', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-60739841:ctest-vn-89937109?flat'}
2025-09-25 06:52:13,586 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-60739841:ctest-vn-89937109 is found in opserver
2025-09-25 06:52:13,595 - DEBUG - Do not have enough data to verify VN in agent
2025-09-25 06:52:13,600 - DEBUG - VRF ids for VN ctest-vn-89937109: {}
2025-09-25 06:52:13,600 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-09-25 06:52:13,606 - DEBUG - Requesting: http://10.0.0.50:8082/domain/32632b1e-4a5a-440a-b1f6-e3b7a8adae45
2025-09-25 06:52:13,618 - DEBUG - Requesting: http://10.0.0.50:8082/project/94104d58-8442-49f8-a443-111936c1134d
2025-09-25 06:52:13,690 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/93476dc9-0748-480a-98f7-85c05316af8a
2025-09-25 06:52:13,701 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/93476dc9-0748-480a-98f7-85c05316af8a
2025-09-25 06:52:13,710 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/925863d6-f47e-48f5-b79a-8b8e27952013
2025-09-25 06:52:13,718 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/925863d6-f47e-48f5-b79a-8b8e27952013
2025-09-25 06:52:13,725 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/029d18e6-ce30-45eb-aa63-583f0627b12c
2025-09-25 06:52:13,734 - DEBUG - Route Targets: ['target:64512:8000005']
2025-09-25 06:52:13,734 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/93476dc9-0748-480a-98f7-85c05316af8a
2025-09-25 06:52:13,743 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/925863d6-f47e-48f5-b79a-8b8e27952013
2025-09-25 06:52:13,757 - INFO - Verified VN network id 12 for VN 93476dc9-0748-480a-98f7-85c05316af8a
2025-09-25 06:52:13,757 - INFO - Verifications in API Server for VN ctest-vn-73412914 passed
2025-09-25 06:52:13,757 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/93476dc9-0748-480a-98f7-85c05316af8a
2025-09-25 06:52:13,766 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/925863d6-f47e-48f5-b79a-8b8e27952013
2025-09-25 06:52:13,772 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/925863d6-f47e-48f5-b79a-8b8e27952013
2025-09-25 06:52:13,777 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/029d18e6-ce30-45eb-aa63-583f0627b12c
2025-09-25 06:52:13,787 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-60739841:ctest-vn-73412914', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-60739841', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10612571757099894794', 'uuid-lslong': '11022425674086789002'}, 'enable': 'true', 'created': '2025-09-25T06:52:11', 'last-modified': '2025-09-25T06:52:12', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.471947'}
2025-09-25 06:52:13,792 - DEBUG - Route Targets: ['target:64512:8000005']
2025-09-25 06:52:13,792 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-73412914 passed
2025-09-25 06:52:13,792 - DEBUG - ====Verifying policy data for ctest-vn-73412914 in API_Server ======
2025-09-25 06:52:13,792 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-09-25 06:52:13,798 - DEBUG - Requesting: http://10.0.0.50:8082/domain/32632b1e-4a5a-440a-b1f6-e3b7a8adae45
2025-09-25 06:52:13,808 - DEBUG - Requesting: http://10.0.0.50:8082/project/94104d58-8442-49f8-a443-111936c1134d
2025-09-25 06:52:13,876 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/93476dc9-0748-480a-98f7-85c05316af8a
2025-09-25 06:52:13,886 - DEBUG - ==>Verifying data for policy with id: be7747d4-8526-4fa7-a810-4fed0c7a322a, fqn: ['default-domain', 'ctest-TestBasicPolicy-60739841', 'ctest-policy-allow-all-24262654']
2025-09-25 06:52:13,886 - INFO - VN ctest-vn-73412914 Policy verification: verify_vn_policy_in_api_server, status: True
2025-09-25 06:52:13,886 - DEBUG - Verifying the vn in opserver
2025-09-25 06:52:13,886 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-60739841:ctest-vn-73412914 virtual network link through opserver 10.0.0.50
2025-09-25 06:52:13,886 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2025-09-25 06:52:13,895 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-60739841:ctest-vn-73412914', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-60739841:ctest-vn-73412914?flat'}
2025-09-25 06:52:13,895 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-60739841:ctest-vn-73412914 is found in opserver
2025-09-25 06:52:13,906 - DEBUG - Do not have enough data to verify VN in agent
2025-09-25 06:52:13,911 - DEBUG - VRF ids for VN ctest-vn-73412914: {}
2025-09-25 06:52:13,975 - DEBUG - Services list from nova: [