2025-10-22 16:37:05,101 - INFO - Domain Default found not creating
2025-10-22 16:37:05,275 - INFO - Project ctest-TestBasicPolicy-51752018 not found, creating it
2025-10-22 16:37:05,766 - INFO - Created Project:ctest-TestBasicPolicy-51752018, ID : ff2f2de4-b2d6-48bc-b0ec-478107a72cf1
2025-10-22 16:37:07,335 - INFO - ================================================================================
2025-10-22 16:37:07,336 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-10-22 16:37:07,336 - 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 16:37:07,595 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.17': '0'}} with
2025-10-22 16:37:07,595 - INFO - Initial checks done. Running the testcase now
2025-10-22 16:37:07,595 - INFO -
2025-10-22 16:37:08,208 - DEBUG - Response for create_network : {'network': {'id': '0f302520-2f03-4461-8693-b1862f5c2a76', 'name': 'ctest-vn-49526594', 'tenant_id': 'ff2f2de4b2d648bcb0ec478107a72cf1', 'project_id': 'ff2f2de4b2d648bcb0ec478107a72cf1', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-51752018', 'ctest-vn-49526594'], 'port_security_enabled': True, 'description': ''}}
2025-10-22 16:37:08,426 - DEBUG - Response for create_subnet : {'subnet': {'id': 'efc908f7-d29a-41d5-8a0c-fdad564b01bc', 'name': '', 'tenant_id': 'ff2f2de4b2d648bcb0ec478107a72cf1', 'network_id': '0f302520-2f03-4461-8693-b1862f5c2a76', 'ip_version': 4, 'cidr': '166.139.137.64/26', 'allocation_pools': [{'start': '166.139.137.66', 'end': '166.139.137.126'}], 'gateway_ip': '166.139.137.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '166.139.137.66', 'tags': [], 'project_id': 'ff2f2de4b2d648bcb0ec478107a72cf1'}}
2025-10-22 16:37:08,447 - INFO - Created VN ctest-vn-49526594
2025-10-22 16:37:08,501 - DEBUG - VN ctest-vn-49526594 UUID is 0f302520-2f03-4461-8693-b1862f5c2a76
2025-10-22 16:37:08,801 - DEBUG - Response for create_network : {'network': {'id': '0d1eaa3d-afbd-4a0c-87dd-ae8426238d96', 'name': 'ctest-vn-38495624', 'tenant_id': 'ff2f2de4b2d648bcb0ec478107a72cf1', 'project_id': 'ff2f2de4b2d648bcb0ec478107a72cf1', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-51752018', 'ctest-vn-38495624'], 'port_security_enabled': True, 'description': ''}}
2025-10-22 16:37:08,996 - DEBUG - Response for create_subnet : {'subnet': {'id': 'ea61a94b-c14e-48ea-b818-1be939a6be9c', 'name': '', 'tenant_id': 'ff2f2de4b2d648bcb0ec478107a72cf1', 'network_id': '0d1eaa3d-afbd-4a0c-87dd-ae8426238d96', 'ip_version': 4, 'cidr': '80.142.238.0/26', 'allocation_pools': [{'start': '80.142.238.2', 'end': '80.142.238.62'}], 'gateway_ip': '80.142.238.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '80.142.238.2', 'tags': [], 'project_id': 'ff2f2de4b2d648bcb0ec478107a72cf1'}}
2025-10-22 16:37:09,018 - INFO - Created VN ctest-vn-38495624
2025-10-22 16:37:09,073 - DEBUG - VN ctest-vn-38495624 UUID is 0d1eaa3d-afbd-4a0c-87dd-ae8426238d96
2025-10-22 16:37:09,207 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-51752018:ctest-vn-49526594, 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-51752018:ctest-vn-38495624, 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 16:37:09,501 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '0f302520-2f03-4461-8693-b1862f5c2a76', 'name': 'ctest-vn-49526594', 'tenant_id': 'ff2f2de4b2d648bcb0ec478107a72cf1', 'project_id': 'ff2f2de4b2d648bcb0ec478107a72cf1', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['efc908f7-d29a-41d5-8a0c-fdad564b01bc'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-51752018', 'ctest-vn-49526594'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-51752018', 'ctest-policy-allow-all-32911510']], 'subnet_ipam': [{'subnet_cidr': '166.139.137.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-22 16:37:09,756 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '0d1eaa3d-afbd-4a0c-87dd-ae8426238d96', 'name': 'ctest-vn-38495624', 'tenant_id': 'ff2f2de4b2d648bcb0ec478107a72cf1', 'project_id': 'ff2f2de4b2d648bcb0ec478107a72cf1', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['ea61a94b-c14e-48ea-b818-1be939a6be9c'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-51752018', 'ctest-vn-38495624'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-51752018', 'ctest-policy-allow-all-32911510']], 'subnet_ipam': [{'subnet_cidr': '80.142.238.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-22 16:37:09,933 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-10-22 16:37:10,228 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-10-22 16:37:10,265 - DEBUG - Requesting: http://10.0.0.254:8082/domain/1bb9370c-747f-4184-8ae3-70ba1971fcf7
2025-10-22 16:37:10,279 - DEBUG - Requesting: http://10.0.0.254:8082/project/ff2f2de4-b2d6-48bc-b0ec-478107a72cf1
2025-10-22 16:37:10,352 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/0f302520-2f03-4461-8693-b1862f5c2a76
2025-10-22 16:37:10,364 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/0f302520-2f03-4461-8693-b1862f5c2a76
2025-10-22 16:37:10,374 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/73599df6-1b5a-41bb-9a0c-68a0eddf19b7
2025-10-22 16:37:10,383 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/73599df6-1b5a-41bb-9a0c-68a0eddf19b7
2025-10-22 16:37:10,392 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/c75a908f-d398-41bb-918f-bb50592d7b82
2025-10-22 16:37:10,401 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-22 16:37:10,401 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/0f302520-2f03-4461-8693-b1862f5c2a76
2025-10-22 16:37:10,413 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/73599df6-1b5a-41bb-9a0c-68a0eddf19b7
2025-10-22 16:37:10,434 - INFO - Verified VN network id 11 for VN 0f302520-2f03-4461-8693-b1862f5c2a76
2025-10-22 16:37:10,434 - INFO - Verifications in API Server for VN ctest-vn-49526594 passed
2025-10-22 16:37:10,434 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/0f302520-2f03-4461-8693-b1862f5c2a76
2025-10-22 16:37:10,447 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/73599df6-1b5a-41bb-9a0c-68a0eddf19b7
2025-10-22 16:37:10,456 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/73599df6-1b5a-41bb-9a0c-68a0eddf19b7
2025-10-22 16:37:10,464 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/c75a908f-d398-41bb-918f-bb50592d7b82
2025-10-22 16:37:10,478 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-51752018:ctest-vn-49526594', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-51752018', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1094415529608954977', 'uuid-lslong': '9697289612537113206'}, 'enable': 'true', 'created': '2025-10-22T16:37:08', 'last-modified': '2025-10-22T16:37:09', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.000074'}
2025-10-22 16:37:10,487 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-22 16:37:10,487 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-49526594 passed
2025-10-22 16:37:10,487 - DEBUG - ====Verifying policy data for ctest-vn-49526594 in API_Server ======
2025-10-22 16:37:10,487 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-10-22 16:37:10,494 - DEBUG - Requesting: http://10.0.0.254:8082/domain/1bb9370c-747f-4184-8ae3-70ba1971fcf7
2025-10-22 16:37:10,506 - DEBUG - Requesting: http://10.0.0.254:8082/project/ff2f2de4-b2d6-48bc-b0ec-478107a72cf1
2025-10-22 16:37:10,581 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/0f302520-2f03-4461-8693-b1862f5c2a76
2025-10-22 16:37:10,591 - DEBUG - ==>Verifying data for policy with id: 93009453-9f90-433b-9e1f-41d3959b1015, fqn: ['default-domain', 'ctest-TestBasicPolicy-51752018', 'ctest-policy-allow-all-32911510']
2025-10-22 16:37:10,591 - INFO - VN ctest-vn-49526594 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-22 16:37:10,591 - DEBUG - Verifying the vn in opserver
2025-10-22 16:37:10,591 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-51752018:ctest-vn-49526594 virtual network link through opserver 10.0.0.254
2025-10-22 16:37:10,591 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-10-22 16:37:10,888 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-10-22 16:37:10,961 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-51752018:ctest-vn-49526594', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-51752018:ctest-vn-49526594?flat'}
2025-10-22 16:37:10,961 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-51752018:ctest-vn-49526594 is found in opserver
2025-10-22 16:37:10,972 - DEBUG - Do not have enough data to verify VN in agent
2025-10-22 16:37:10,976 - DEBUG - VRF ids for VN ctest-vn-49526594: {}
2025-10-22 16:37:10,976 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-10-22 16:37:10,983 - DEBUG - Requesting: http://10.0.0.254:8082/domain/1bb9370c-747f-4184-8ae3-70ba1971fcf7
2025-10-22 16:37:10,997 - DEBUG - Requesting: http://10.0.0.254:8082/project/ff2f2de4-b2d6-48bc-b0ec-478107a72cf1
2025-10-22 16:37:11,070 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/0d1eaa3d-afbd-4a0c-87dd-ae8426238d96
2025-10-22 16:37:11,083 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/0d1eaa3d-afbd-4a0c-87dd-ae8426238d96
2025-10-22 16:37:11,094 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/1aa565f2-d1fe-4b68-92c2-16f1e5e08526
2025-10-22 16:37:11,102 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/1aa565f2-d1fe-4b68-92c2-16f1e5e08526
2025-10-22 16:37:11,111 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/e6272b78-0e8f-47ad-a991-553d2fe88b3e
2025-10-22 16:37:11,121 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-22 16:37:11,121 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/0d1eaa3d-afbd-4a0c-87dd-ae8426238d96
2025-10-22 16:37:11,132 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/1aa565f2-d1fe-4b68-92c2-16f1e5e08526
2025-10-22 16:37:11,148 - INFO - Verified VN network id 12 for VN 0d1eaa3d-afbd-4a0c-87dd-ae8426238d96
2025-10-22 16:37:11,148 - INFO - Verifications in API Server for VN ctest-vn-38495624 passed
2025-10-22 16:37:11,148 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/0d1eaa3d-afbd-4a0c-87dd-ae8426238d96
2025-10-22 16:37:11,157 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/1aa565f2-d1fe-4b68-92c2-16f1e5e08526
2025-10-22 16:37:11,166 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/1aa565f2-d1fe-4b68-92c2-16f1e5e08526
2025-10-22 16:37:11,173 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/e6272b78-0e8f-47ad-a991-553d2fe88b3e
2025-10-22 16:37:11,187 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-51752018:ctest-vn-38495624', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-51752018', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '945380153712527884', 'uuid-lslong': '9790173047572106646'}, 'enable': 'true', 'created': '2025-10-22T16:37:08', 'last-modified': '2025-10-22T16:37:09', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.452903'}
2025-10-22 16:37:11,194 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-22 16:37:11,194 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-38495624 passed
2025-10-22 16:37:11,194 - DEBUG - ====Verifying policy data for ctest-vn-38495624 in API_Server ======
2025-10-22 16:37:11,194 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-10-22 16:37:11,200 - DEBUG - Requesting: http://10.0.0.254:8082/domain/1bb9370c-747f-4184-8ae3-70ba1971fcf7
2025-10-22 16:37:11,212 - DEBUG - Requesting: http://10.0.0.254:8082/project/ff2f2de4-b2d6-48bc-b0ec-478107a72cf1
2025-10-22 16:37:11,292 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/0d1eaa3d-afbd-4a0c-87dd-ae8426238d96
2025-10-22 16:37:11,301 - DEBUG - ==>Verifying data for policy with id: 93009453-9f90-433b-9e1f-41d3959b1015, fqn: ['default-domain', 'ctest-TestBasicPolicy-51752018', 'ctest-policy-allow-all-32911510']
2025-10-22 16:37:11,301 - INFO - VN ctest-vn-38495624 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-22 16:37:11,301 - DEBUG - Verifying the vn in opserver
2025-10-22 16:37:11,301 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-51752018:ctest-vn-38495624 virtual network link through opserver 10.0.0.254
2025-10-22 16:37:11,301 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-10-22 16:37:11,311 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-51752018:ctest-vn-38495624', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-51752018:ctest-vn-38495624?flat'}
2025-10-22 16:37:11,311 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-51752018:ctest-vn-38495624 is found in opserver
2025-10-22 16:37:11,324 - DEBUG - Do not have enough data to verify VN in agent
2025-10-22 16:37:11,329 - DEBUG - VRF ids for VN ctest-vn-38495624: {}
2025-10-22 16:37:11,394 - DEBUG - Services list from nova: [