2026-02-09 13:35:41,856 - INFO - Domain Default found not creating
2026-02-09 13:35:42,107 - INFO - Project ctest-TestBasicPolicy-26584868 not found, creating it
2026-02-09 13:35:42,703 - INFO - Created Project:ctest-TestBasicPolicy-26584868, ID : bb8f18f4-2465-43e3-8874-2e98098e5601
2026-02-09 13:35:44,564 - INFO - ================================================================================
2026-02-09 13:35:44,564 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-02-09 13:35:44,565 - 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-09 13:35:44,839 - DEBUG - Nothing to compare xmpp stats {'10.0.0.19': {'10.20.0.14': '0'}} with
2026-02-09 13:35:44,839 - INFO - Initial checks done. Running the testcase now
2026-02-09 13:35:44,840 - INFO -
2026-02-09 13:35:45,481 - DEBUG - Response for create_network : {'network': {'id': 'f1385c3e-21c5-461f-b26b-11ec4678ffd4', 'name': 'ctest-vn-39861212', 'tenant_id': 'bb8f18f4246543e388742e98098e5601', 'project_id': 'bb8f18f4246543e388742e98098e5601', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-26584868', 'ctest-vn-39861212'], 'port_security_enabled': True, 'description': ''}}
2026-02-09 13:35:45,688 - DEBUG - Response for create_subnet : {'subnet': {'id': '61894b9c-d646-49a8-9b89-1c15a81dfb18', 'name': '', 'tenant_id': 'bb8f18f4246543e388742e98098e5601', 'network_id': 'f1385c3e-21c5-461f-b26b-11ec4678ffd4', 'ip_version': 4, 'cidr': '40.12.38.0/26', 'allocation_pools': [{'start': '40.12.38.2', 'end': '40.12.38.62'}], 'gateway_ip': '40.12.38.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '40.12.38.2', 'tags': [], 'project_id': 'bb8f18f4246543e388742e98098e5601'}}
2026-02-09 13:35:45,713 - INFO - Created VN ctest-vn-39861212
2026-02-09 13:35:45,767 - DEBUG - VN ctest-vn-39861212 UUID is f1385c3e-21c5-461f-b26b-11ec4678ffd4
2026-02-09 13:35:46,105 - DEBUG - Response for create_network : {'network': {'id': 'b235d1cc-48f9-4371-af16-f3fbaa1b94e7', 'name': 'ctest-vn-55495170', 'tenant_id': 'bb8f18f4246543e388742e98098e5601', 'project_id': 'bb8f18f4246543e388742e98098e5601', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-26584868', 'ctest-vn-55495170'], 'port_security_enabled': True, 'description': ''}}
2026-02-09 13:35:46,345 - DEBUG - Response for create_subnet : {'subnet': {'id': '1229f721-a67d-4c38-90a4-23aa0eb813f3', 'name': '', 'tenant_id': 'bb8f18f4246543e388742e98098e5601', 'network_id': 'b235d1cc-48f9-4371-af16-f3fbaa1b94e7', 'ip_version': 4, 'cidr': '54.98.235.0/26', 'allocation_pools': [{'start': '54.98.235.2', 'end': '54.98.235.62'}], 'gateway_ip': '54.98.235.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '54.98.235.2', 'tags': [], 'project_id': 'bb8f18f4246543e388742e98098e5601'}}
2026-02-09 13:35:46,369 - INFO - Created VN ctest-vn-55495170
2026-02-09 13:35:46,427 - DEBUG - VN ctest-vn-55495170 UUID is b235d1cc-48f9-4371-af16-f3fbaa1b94e7
2026-02-09 13:35:46,564 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-26584868:ctest-vn-39861212, 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-26584868:ctest-vn-55495170, 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-09 13:35:46,917 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'f1385c3e-21c5-461f-b26b-11ec4678ffd4', 'name': 'ctest-vn-39861212', 'tenant_id': 'bb8f18f4246543e388742e98098e5601', 'project_id': 'bb8f18f4246543e388742e98098e5601', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['61894b9c-d646-49a8-9b89-1c15a81dfb18'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-26584868', 'ctest-vn-39861212'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-26584868', 'ctest-policy-allow-all-89750896']], 'subnet_ipam': [{'subnet_cidr': '40.12.38.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-02-09 13:35:47,188 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'b235d1cc-48f9-4371-af16-f3fbaa1b94e7', 'name': 'ctest-vn-55495170', 'tenant_id': 'bb8f18f4246543e388742e98098e5601', 'project_id': 'bb8f18f4246543e388742e98098e5601', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['1229f721-a67d-4c38-90a4-23aa0eb813f3'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-26584868', 'ctest-vn-55495170'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-26584868', 'ctest-policy-allow-all-89750896']], 'subnet_ipam': [{'subnet_cidr': '54.98.235.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-02-09 13:35:47,363 - DEBUG - Requesting: http://10.0.0.19:8082/domains
2026-02-09 13:35:47,711 - DEBUG - Requesting: http://10.0.0.19:8082/domains
2026-02-09 13:35:47,758 - DEBUG - Requesting: http://10.0.0.19:8082/domain/651f5d78-5857-4ec7-a36a-14b4270f69ff
2026-02-09 13:35:47,775 - DEBUG - Requesting: http://10.0.0.19:8082/project/bb8f18f4-2465-43e3-8874-2e98098e5601
2026-02-09 13:35:47,862 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/f1385c3e-21c5-461f-b26b-11ec4678ffd4
2026-02-09 13:35:47,877 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/f1385c3e-21c5-461f-b26b-11ec4678ffd4
2026-02-09 13:35:47,889 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/28fcff8d-a544-4752-9195-0dfbe21d3989
2026-02-09 13:35:47,898 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/28fcff8d-a544-4752-9195-0dfbe21d3989
2026-02-09 13:35:47,908 - DEBUG - Requesting: http://10.0.0.19:8082/route-target/a7869fbe-4545-4efb-b7d7-009f3dd21481
2026-02-09 13:35:47,918 - DEBUG - Route Targets: ['target:64512:8000004']
2026-02-09 13:35:47,918 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/f1385c3e-21c5-461f-b26b-11ec4678ffd4
2026-02-09 13:35:47,929 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/28fcff8d-a544-4752-9195-0dfbe21d3989
2026-02-09 13:35:47,950 - INFO - Verified VN network id 9 for VN f1385c3e-21c5-461f-b26b-11ec4678ffd4
2026-02-09 13:35:47,950 - INFO - Verifications in API Server for VN ctest-vn-39861212 passed
2026-02-09 13:35:47,950 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/f1385c3e-21c5-461f-b26b-11ec4678ffd4
2026-02-09 13:35:47,964 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/28fcff8d-a544-4752-9195-0dfbe21d3989
2026-02-09 13:35:47,975 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/28fcff8d-a544-4752-9195-0dfbe21d3989
2026-02-09 13:35:47,984 - DEBUG - Requesting: http://10.0.0.19:8082/route-target/a7869fbe-4545-4efb-b7d7-009f3dd21481
2026-02-09 13:35:48,001 - DEBUG - Control-node 10.0.0.19 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-26584868:ctest-vn-39861212', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-26584868', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17381744183760733727', 'uuid-lslong': '12856389267751501780'}, 'enable': 'true', 'created': '2026-02-09T13:35:45', 'last-modified': '2026-02-09T13:35:46', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.116598'}
2026-02-09 13:35:48,009 - DEBUG - Route Targets: ['target:64512:8000004']
2026-02-09 13:35:48,009 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-39861212 passed
2026-02-09 13:35:48,009 - DEBUG - ====Verifying policy data for ctest-vn-39861212 in API_Server ======
2026-02-09 13:35:48,009 - DEBUG - Requesting: http://10.0.0.19:8082/domains
2026-02-09 13:35:48,016 - DEBUG - Requesting: http://10.0.0.19:8082/domain/651f5d78-5857-4ec7-a36a-14b4270f69ff
2026-02-09 13:35:48,031 - DEBUG - Requesting: http://10.0.0.19:8082/project/bb8f18f4-2465-43e3-8874-2e98098e5601
2026-02-09 13:35:48,118 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/f1385c3e-21c5-461f-b26b-11ec4678ffd4
2026-02-09 13:35:48,132 - DEBUG - ==>Verifying data for policy with id: 61f42fae-1828-4ab6-b919-9778df4aaac1, fqn: ['default-domain', 'ctest-TestBasicPolicy-26584868', 'ctest-policy-allow-all-89750896']
2026-02-09 13:35:48,132 - INFO - VN ctest-vn-39861212 Policy verification: verify_vn_policy_in_api_server, status: True
2026-02-09 13:35:48,132 - DEBUG - Verifying the vn in opserver
2026-02-09 13:35:48,132 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-26584868:ctest-vn-39861212 virtual network link through opserver 10.0.0.19
2026-02-09 13:35:48,132 - DEBUG - Requesting: http://10.0.0.19:8081/analytics/uves/virtual-networks
2026-02-09 13:35:48,446 - DEBUG - Requesting: http://10.0.0.19:8081/analytics/uves/virtual-networks
2026-02-09 13:35:48,537 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-26584868:ctest-vn-39861212', 'href': 'http://10.0.0.19:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-26584868:ctest-vn-39861212?flat'}
2026-02-09 13:35:48,537 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-26584868:ctest-vn-39861212 is found in opserver
2026-02-09 13:35:48,550 - DEBUG - Do not have enough data to verify VN in agent
2026-02-09 13:35:48,555 - DEBUG - VRF ids for VN ctest-vn-39861212: {}
2026-02-09 13:35:48,556 - DEBUG - Requesting: http://10.0.0.19:8082/domains
2026-02-09 13:35:48,563 - DEBUG - Requesting: http://10.0.0.19:8082/domain/651f5d78-5857-4ec7-a36a-14b4270f69ff
2026-02-09 13:35:48,580 - DEBUG - Requesting: http://10.0.0.19:8082/project/bb8f18f4-2465-43e3-8874-2e98098e5601
2026-02-09 13:35:48,660 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/b235d1cc-48f9-4371-af16-f3fbaa1b94e7
2026-02-09 13:35:48,674 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/b235d1cc-48f9-4371-af16-f3fbaa1b94e7
2026-02-09 13:35:48,685 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/fbc6e6b5-36a0-4a8a-a3ca-c2f6110db090
2026-02-09 13:35:48,694 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/fbc6e6b5-36a0-4a8a-a3ca-c2f6110db090
2026-02-09 13:35:48,704 - DEBUG - Requesting: http://10.0.0.19:8082/route-target/129dab42-6081-41f7-bdeb-8d6342c0753e
2026-02-09 13:35:48,715 - DEBUG - Route Targets: ['target:64512:8000005']
2026-02-09 13:35:48,715 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/b235d1cc-48f9-4371-af16-f3fbaa1b94e7
2026-02-09 13:35:48,726 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/fbc6e6b5-36a0-4a8a-a3ca-c2f6110db090
2026-02-09 13:35:48,743 - INFO - Verified VN network id 10 for VN b235d1cc-48f9-4371-af16-f3fbaa1b94e7
2026-02-09 13:35:48,743 - INFO - Verifications in API Server for VN ctest-vn-55495170 passed
2026-02-09 13:35:48,743 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/b235d1cc-48f9-4371-af16-f3fbaa1b94e7
2026-02-09 13:35:48,754 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/fbc6e6b5-36a0-4a8a-a3ca-c2f6110db090
2026-02-09 13:35:48,763 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/fbc6e6b5-36a0-4a8a-a3ca-c2f6110db090
2026-02-09 13:35:48,771 - DEBUG - Requesting: http://10.0.0.19:8082/route-target/129dab42-6081-41f7-bdeb-8d6342c0753e
2026-02-09 13:35:48,785 - DEBUG - Control-node 10.0.0.19 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-26584868:ctest-vn-55495170', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-26584868', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12841400587844666225', 'uuid-lslong': '12616539668341298407'}, 'enable': 'true', 'created': '2026-02-09T13:35:46', 'last-modified': '2026-02-09T13:35:47', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.624196'}
2026-02-09 13:35:48,793 - DEBUG - Route Targets: ['target:64512:8000005']
2026-02-09 13:35:48,794 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-55495170 passed
2026-02-09 13:35:48,794 - DEBUG - ====Verifying policy data for ctest-vn-55495170 in API_Server ======
2026-02-09 13:35:48,794 - DEBUG - Requesting: http://10.0.0.19:8082/domains
2026-02-09 13:35:48,802 - DEBUG - Requesting: http://10.0.0.19:8082/domain/651f5d78-5857-4ec7-a36a-14b4270f69ff
2026-02-09 13:35:48,816 - DEBUG - Requesting: http://10.0.0.19:8082/project/bb8f18f4-2465-43e3-8874-2e98098e5601
2026-02-09 13:35:48,897 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/b235d1cc-48f9-4371-af16-f3fbaa1b94e7
2026-02-09 13:35:48,909 - DEBUG - ==>Verifying data for policy with id: 61f42fae-1828-4ab6-b919-9778df4aaac1, fqn: ['default-domain', 'ctest-TestBasicPolicy-26584868', 'ctest-policy-allow-all-89750896']
2026-02-09 13:35:48,909 - INFO - VN ctest-vn-55495170 Policy verification: verify_vn_policy_in_api_server, status: True
2026-02-09 13:35:48,909 - DEBUG - Verifying the vn in opserver
2026-02-09 13:35:48,909 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-26584868:ctest-vn-55495170 virtual network link through opserver 10.0.0.19
2026-02-09 13:35:48,909 - DEBUG - Requesting: http://10.0.0.19:8081/analytics/uves/virtual-networks
2026-02-09 13:35:48,922 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-26584868:ctest-vn-55495170', 'href': 'http://10.0.0.19:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-26584868:ctest-vn-55495170?flat'}
2026-02-09 13:35:48,922 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-26584868:ctest-vn-55495170 is found in opserver
2026-02-09 13:35:48,935 - DEBUG - Do not have enough data to verify VN in agent
2026-02-09 13:35:48,940 - DEBUG - VRF ids for VN ctest-vn-55495170: {}
2026-02-09 13:35:49,019 - DEBUG - Services list from nova: [