2026-02-05 02:09:22,595 - INFO - Domain Default found not creating
2026-02-05 02:09:22,807 - INFO - Project ctest-TestBasicPolicy-16983584 not found, creating it
2026-02-05 02:09:23,336 - INFO - Created Project:ctest-TestBasicPolicy-16983584, ID : be89edeb-a43a-48f1-b58e-7de13b518ff0
2026-02-05 02:09:25,114 - INFO - ================================================================================
2026-02-05 02:09:25,114 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-02-05 02:09:25,114 - 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
2026-02-05 02:09:25,379 - DEBUG - Nothing to compare xmpp stats {'10.0.0.41': {'10.20.0.14': '0'}} with
2026-02-05 02:09:25,379 - INFO - Initial checks done. Running the testcase now
2026-02-05 02:09:25,379 - INFO -
2026-02-05 02:09:26,040 - DEBUG - Response for create_network : {'network': {'id': '48bef87b-d0a3-46d8-8c08-3a6b4cda6b7d', 'name': 'ctest-vn-06802643', 'tenant_id': 'be89edeba43a48f1b58e7de13b518ff0', 'project_id': 'be89edeba43a48f1b58e7de13b518ff0', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-16983584', 'ctest-vn-06802643'], 'port_security_enabled': True, 'description': ''}}
2026-02-05 02:09:26,245 - DEBUG - Response for create_subnet : {'subnet': {'id': '07d7894b-c58c-4963-a70f-1a8042210ede', 'name': '', 'tenant_id': 'be89edeba43a48f1b58e7de13b518ff0', 'network_id': '48bef87b-d0a3-46d8-8c08-3a6b4cda6b7d', 'ip_version': 4, 'cidr': '65.176.132.64/26', 'allocation_pools': [{'start': '65.176.132.66', 'end': '65.176.132.126'}], 'gateway_ip': '65.176.132.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '65.176.132.66', 'tags': [], 'project_id': 'be89edeba43a48f1b58e7de13b518ff0'}}
2026-02-05 02:09:26,269 - INFO - Created VN ctest-vn-06802643
2026-02-05 02:09:26,328 - DEBUG - VN ctest-vn-06802643 UUID is 48bef87b-d0a3-46d8-8c08-3a6b4cda6b7d
2026-02-05 02:09:26,680 - DEBUG - Response for create_network : {'network': {'id': '046da7fe-0758-4724-8118-1859ea1b6c9d', 'name': 'ctest-vn-42243007', 'tenant_id': 'be89edeba43a48f1b58e7de13b518ff0', 'project_id': 'be89edeba43a48f1b58e7de13b518ff0', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-16983584', 'ctest-vn-42243007'], 'port_security_enabled': True, 'description': ''}}
2026-02-05 02:09:26,903 - DEBUG - Response for create_subnet : {'subnet': {'id': 'df7d0e43-b879-4c5e-9b03-555dd2702b4f', 'name': '', 'tenant_id': 'be89edeba43a48f1b58e7de13b518ff0', 'network_id': '046da7fe-0758-4724-8118-1859ea1b6c9d', 'ip_version': 4, 'cidr': '117.181.0.64/26', 'allocation_pools': [{'start': '117.181.0.66', 'end': '117.181.0.126'}], 'gateway_ip': '117.181.0.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '117.181.0.66', 'tags': [], 'project_id': 'be89edeba43a48f1b58e7de13b518ff0'}}
2026-02-05 02:09:26,923 - INFO - Created VN ctest-vn-42243007
2026-02-05 02:09:26,976 - DEBUG - VN ctest-vn-42243007 UUID is 046da7fe-0758-4724-8118-1859ea1b6c9d
2026-02-05 02:09:27,111 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-16983584:ctest-vn-06802643, 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-16983584:ctest-vn-42243007, 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]
2026-02-05 02:09:27,437 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '48bef87b-d0a3-46d8-8c08-3a6b4cda6b7d', 'name': 'ctest-vn-06802643', 'tenant_id': 'be89edeba43a48f1b58e7de13b518ff0', 'project_id': 'be89edeba43a48f1b58e7de13b518ff0', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['07d7894b-c58c-4963-a70f-1a8042210ede'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-16983584', 'ctest-vn-06802643'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-16983584', 'ctest-policy-allow-all-33078306']], 'subnet_ipam': [{'subnet_cidr': '65.176.132.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-02-05 02:09:27,743 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '046da7fe-0758-4724-8118-1859ea1b6c9d', 'name': 'ctest-vn-42243007', 'tenant_id': 'be89edeba43a48f1b58e7de13b518ff0', 'project_id': 'be89edeba43a48f1b58e7de13b518ff0', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['df7d0e43-b879-4c5e-9b03-555dd2702b4f'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-16983584', 'ctest-vn-42243007'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-16983584', 'ctest-policy-allow-all-33078306']], 'subnet_ipam': [{'subnet_cidr': '117.181.0.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-02-05 02:09:27,904 - DEBUG - Requesting: http://10.0.0.41:8082/domains
2026-02-05 02:09:28,252 - DEBUG - Requesting: http://10.0.0.41:8082/domains
2026-02-05 02:09:28,288 - DEBUG - Requesting: http://10.0.0.41:8082/domain/e3d983cc-bba4-47bb-bee9-9ee7e244d68d
2026-02-05 02:09:28,303 - DEBUG - Requesting: http://10.0.0.41:8082/project/be89edeb-a43a-48f1-b58e-7de13b518ff0
2026-02-05 02:09:28,383 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/48bef87b-d0a3-46d8-8c08-3a6b4cda6b7d
2026-02-05 02:09:28,397 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/48bef87b-d0a3-46d8-8c08-3a6b4cda6b7d
2026-02-05 02:09:28,407 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/c702449a-203b-40dd-a577-b996c9b4fbfe
2026-02-05 02:09:28,416 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/c702449a-203b-40dd-a577-b996c9b4fbfe
2026-02-05 02:09:28,424 - DEBUG - Requesting: http://10.0.0.41:8082/route-target/91f495f3-a1e7-481a-b2bf-3b75b064a4f9
2026-02-05 02:09:28,431 - DEBUG - Route Targets: ['target:64512:8000004']
2026-02-05 02:09:28,431 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/48bef87b-d0a3-46d8-8c08-3a6b4cda6b7d
2026-02-05 02:09:28,441 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/c702449a-203b-40dd-a577-b996c9b4fbfe
2026-02-05 02:09:28,458 - INFO - Verified VN network id 11 for VN 48bef87b-d0a3-46d8-8c08-3a6b4cda6b7d
2026-02-05 02:09:28,458 - INFO - Verifications in API Server for VN ctest-vn-06802643 passed
2026-02-05 02:09:28,458 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/48bef87b-d0a3-46d8-8c08-3a6b4cda6b7d
2026-02-05 02:09:28,472 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/c702449a-203b-40dd-a577-b996c9b4fbfe
2026-02-05 02:09:28,480 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/c702449a-203b-40dd-a577-b996c9b4fbfe
2026-02-05 02:09:28,488 - DEBUG - Requesting: http://10.0.0.41:8082/route-target/91f495f3-a1e7-481a-b2bf-3b75b064a4f9
2026-02-05 02:09:28,501 - DEBUG - Control-node 10.0.0.41 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-16983584:ctest-vn-06802643', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-16983584', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5241900226970863320', 'uuid-lslong': '10090379197648890749'}, 'enable': 'true', 'created': '2026-02-05T02:09:26', 'last-modified': '2026-02-05T02:09:27', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.092578'}
2026-02-05 02:09:28,508 - DEBUG - Route Targets: ['target:64512:8000004']
2026-02-05 02:09:28,508 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-06802643 passed
2026-02-05 02:09:28,508 - DEBUG - ====Verifying policy data for ctest-vn-06802643 in API_Server ======
2026-02-05 02:09:28,508 - DEBUG - Requesting: http://10.0.0.41:8082/domains
2026-02-05 02:09:28,515 - DEBUG - Requesting: http://10.0.0.41:8082/domain/e3d983cc-bba4-47bb-bee9-9ee7e244d68d
2026-02-05 02:09:28,528 - DEBUG - Requesting: http://10.0.0.41:8082/project/be89edeb-a43a-48f1-b58e-7de13b518ff0
2026-02-05 02:09:28,602 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/48bef87b-d0a3-46d8-8c08-3a6b4cda6b7d
2026-02-05 02:09:28,612 - DEBUG - ==>Verifying data for policy with id: d2b1935a-d178-4f32-98fd-bbdcfd7cdc98, fqn: ['default-domain', 'ctest-TestBasicPolicy-16983584', 'ctest-policy-allow-all-33078306']
2026-02-05 02:09:28,612 - INFO - VN ctest-vn-06802643 Policy verification: verify_vn_policy_in_api_server, status: True
2026-02-05 02:09:28,613 - DEBUG - Verifying the vn in opserver
2026-02-05 02:09:28,613 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-16983584:ctest-vn-06802643 virtual network link through opserver 10.0.0.41
2026-02-05 02:09:28,613 - DEBUG - Requesting: http://10.0.0.41:8081/analytics/uves/virtual-networks
2026-02-05 02:09:28,953 - DEBUG - Requesting: http://10.0.0.41:8081/analytics/uves/virtual-networks
2026-02-05 02:09:29,027 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-16983584:ctest-vn-06802643', 'href': 'http://10.0.0.41:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-16983584:ctest-vn-06802643?flat'}
2026-02-05 02:09:29,027 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-16983584:ctest-vn-06802643 is found in opserver
2026-02-05 02:09:29,038 - DEBUG - Do not have enough data to verify VN in agent
2026-02-05 02:09:29,044 - DEBUG - VRF ids for VN ctest-vn-06802643: {}
2026-02-05 02:09:29,044 - DEBUG - Requesting: http://10.0.0.41:8082/domains
2026-02-05 02:09:29,050 - DEBUG - Requesting: http://10.0.0.41:8082/domain/e3d983cc-bba4-47bb-bee9-9ee7e244d68d
2026-02-05 02:09:29,064 - DEBUG - Requesting: http://10.0.0.41:8082/project/be89edeb-a43a-48f1-b58e-7de13b518ff0
2026-02-05 02:09:29,145 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/046da7fe-0758-4724-8118-1859ea1b6c9d
2026-02-05 02:09:29,159 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/046da7fe-0758-4724-8118-1859ea1b6c9d
2026-02-05 02:09:29,170 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/fe86b038-bb36-4fce-a9d7-e0b4b651944b
2026-02-05 02:09:29,179 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/fe86b038-bb36-4fce-a9d7-e0b4b651944b
2026-02-05 02:09:29,187 - DEBUG - Requesting: http://10.0.0.41:8082/route-target/5b89d607-e84d-4aac-abc6-1b194d3b7f1e
2026-02-05 02:09:29,195 - DEBUG - Route Targets: ['target:64512:8000005']
2026-02-05 02:09:29,196 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/046da7fe-0758-4724-8118-1859ea1b6c9d
2026-02-05 02:09:29,206 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/fe86b038-bb36-4fce-a9d7-e0b4b651944b
2026-02-05 02:09:29,223 - INFO - Verified VN network id 12 for VN 046da7fe-0758-4724-8118-1859ea1b6c9d
2026-02-05 02:09:29,223 - INFO - Verifications in API Server for VN ctest-vn-42243007 passed
2026-02-05 02:09:29,223 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/046da7fe-0758-4724-8118-1859ea1b6c9d
2026-02-05 02:09:29,233 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/fe86b038-bb36-4fce-a9d7-e0b4b651944b
2026-02-05 02:09:29,242 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/fe86b038-bb36-4fce-a9d7-e0b4b651944b
2026-02-05 02:09:29,250 - DEBUG - Requesting: http://10.0.0.41:8082/route-target/5b89d607-e84d-4aac-abc6-1b194d3b7f1e
2026-02-05 02:09:29,265 - DEBUG - Control-node 10.0.0.41 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-16983584:ctest-vn-42243007', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-16983584', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '319095858099930916', 'uuid-lslong': '9302211804792581277'}, 'enable': 'true', 'created': '2026-02-05T02:09:26', 'last-modified': '2026-02-05T02:09:27', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.601965'}
2026-02-05 02:09:29,272 - DEBUG - Route Targets: ['target:64512:8000005']
2026-02-05 02:09:29,272 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-42243007 passed
2026-02-05 02:09:29,272 - DEBUG - ====Verifying policy data for ctest-vn-42243007 in API_Server ======
2026-02-05 02:09:29,272 - DEBUG - Requesting: http://10.0.0.41:8082/domains
2026-02-05 02:09:29,280 - DEBUG - Requesting: http://10.0.0.41:8082/domain/e3d983cc-bba4-47bb-bee9-9ee7e244d68d
2026-02-05 02:09:29,293 - DEBUG - Requesting: http://10.0.0.41:8082/project/be89edeb-a43a-48f1-b58e-7de13b518ff0
2026-02-05 02:09:29,364 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/046da7fe-0758-4724-8118-1859ea1b6c9d
2026-02-05 02:09:29,375 - DEBUG - ==>Verifying data for policy with id: d2b1935a-d178-4f32-98fd-bbdcfd7cdc98, fqn: ['default-domain', 'ctest-TestBasicPolicy-16983584', 'ctest-policy-allow-all-33078306']
2026-02-05 02:09:29,375 - INFO - VN ctest-vn-42243007 Policy verification: verify_vn_policy_in_api_server, status: True
2026-02-05 02:09:29,375 - DEBUG - Verifying the vn in opserver
2026-02-05 02:09:29,375 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-16983584:ctest-vn-42243007 virtual network link through opserver 10.0.0.41
2026-02-05 02:09:29,375 - DEBUG - Requesting: http://10.0.0.41:8081/analytics/uves/virtual-networks
2026-02-05 02:09:29,387 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-16983584:ctest-vn-42243007', 'href': 'http://10.0.0.41:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-16983584:ctest-vn-42243007?flat'}
2026-02-05 02:09:29,387 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-16983584:ctest-vn-42243007 is found in opserver
2026-02-05 02:09:29,397 - DEBUG - Do not have enough data to verify VN in agent
2026-02-05 02:09:29,401 - DEBUG - VRF ids for VN ctest-vn-42243007: {}
2026-02-05 02:09:29,481 - DEBUG - Services list from nova: [