2026-02-16 02:06:47,113 - INFO - Domain Default found not creating
2026-02-16 02:06:47,323 - INFO - Project ctest-TestBasicPolicy-98256711 not found, creating it
2026-02-16 02:06:47,816 - INFO - Created Project:ctest-TestBasicPolicy-98256711, ID : 3f49791b-7c3f-4c7d-9890-0b8e14a1e009
2026-02-16 02:06:49,471 - INFO - ================================================================================
2026-02-16 02:06:49,472 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-02-16 02:06:49,472 - 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-16 02:06:49,727 - DEBUG - Nothing to compare xmpp stats {'10.0.0.130': {'10.20.0.241': '0'}} with
2026-02-16 02:06:49,727 - INFO - Initial checks done. Running the testcase now
2026-02-16 02:06:49,727 - INFO -
2026-02-16 02:06:50,273 - DEBUG - Response for create_network : {'network': {'id': 'cd47d20e-ce5b-4e8b-8169-8275c55f6546', 'name': 'ctest-vn-81719099', 'tenant_id': '3f49791b7c3f4c7d98900b8e14a1e009', 'project_id': '3f49791b7c3f4c7d98900b8e14a1e009', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-98256711', 'ctest-vn-81719099'], 'port_security_enabled': True, 'description': ''}}
2026-02-16 02:06:50,435 - DEBUG - Response for create_subnet : {'subnet': {'id': 'ff28aa22-7010-457c-9e03-b19d5625bea0', 'name': '', 'tenant_id': '3f49791b7c3f4c7d98900b8e14a1e009', 'network_id': 'cd47d20e-ce5b-4e8b-8169-8275c55f6546', 'ip_version': 4, 'cidr': '113.4.7.64/26', 'allocation_pools': [{'start': '113.4.7.66', 'end': '113.4.7.126'}], 'gateway_ip': '113.4.7.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '113.4.7.66', 'tags': [], 'project_id': '3f49791b7c3f4c7d98900b8e14a1e009'}}
2026-02-16 02:06:50,453 - INFO - Created VN ctest-vn-81719099
2026-02-16 02:06:50,506 - DEBUG - VN ctest-vn-81719099 UUID is cd47d20e-ce5b-4e8b-8169-8275c55f6546
2026-02-16 02:06:50,795 - DEBUG - Response for create_network : {'network': {'id': '13a84a6f-3e83-4bd3-bb7e-c65123d5ff60', 'name': 'ctest-vn-43128740', 'tenant_id': '3f49791b7c3f4c7d98900b8e14a1e009', 'project_id': '3f49791b7c3f4c7d98900b8e14a1e009', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-98256711', 'ctest-vn-43128740'], 'port_security_enabled': True, 'description': ''}}
2026-02-16 02:06:51,001 - DEBUG - Response for create_subnet : {'subnet': {'id': '08bf5f95-c863-4a2a-aba0-0b7130950db2', 'name': '', 'tenant_id': '3f49791b7c3f4c7d98900b8e14a1e009', 'network_id': '13a84a6f-3e83-4bd3-bb7e-c65123d5ff60', 'ip_version': 4, 'cidr': '19.98.4.64/26', 'allocation_pools': [{'start': '19.98.4.66', 'end': '19.98.4.126'}], 'gateway_ip': '19.98.4.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '19.98.4.66', 'tags': [], 'project_id': '3f49791b7c3f4c7d98900b8e14a1e009'}}
2026-02-16 02:06:51,019 - INFO - Created VN ctest-vn-43128740
2026-02-16 02:06:51,070 - DEBUG - VN ctest-vn-43128740 UUID is 13a84a6f-3e83-4bd3-bb7e-c65123d5ff60
2026-02-16 02:06:51,185 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-98256711:ctest-vn-81719099, 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-98256711:ctest-vn-43128740, 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-16 02:06:51,492 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'cd47d20e-ce5b-4e8b-8169-8275c55f6546', 'name': 'ctest-vn-81719099', 'tenant_id': '3f49791b7c3f4c7d98900b8e14a1e009', 'project_id': '3f49791b7c3f4c7d98900b8e14a1e009', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['ff28aa22-7010-457c-9e03-b19d5625bea0'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-98256711', 'ctest-vn-81719099'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-98256711', 'ctest-policy-allow-all-70592546']], 'subnet_ipam': [{'subnet_cidr': '113.4.7.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-02-16 02:06:51,716 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '13a84a6f-3e83-4bd3-bb7e-c65123d5ff60', 'name': 'ctest-vn-43128740', 'tenant_id': '3f49791b7c3f4c7d98900b8e14a1e009', 'project_id': '3f49791b7c3f4c7d98900b8e14a1e009', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['08bf5f95-c863-4a2a-aba0-0b7130950db2'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-98256711', 'ctest-vn-43128740'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-98256711', 'ctest-policy-allow-all-70592546']], 'subnet_ipam': [{'subnet_cidr': '19.98.4.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-02-16 02:06:51,878 - DEBUG - Requesting: http://10.0.0.130:8082/domains
2026-02-16 02:06:52,172 - DEBUG - Requesting: http://10.0.0.130:8082/domains
2026-02-16 02:06:52,204 - DEBUG - Requesting: http://10.0.0.130:8082/domain/e8337375-e237-4612-ba9d-f84db96d6475
2026-02-16 02:06:52,215 - DEBUG - Requesting: http://10.0.0.130:8082/project/3f49791b-7c3f-4c7d-9890-0b8e14a1e009
2026-02-16 02:06:52,286 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/cd47d20e-ce5b-4e8b-8169-8275c55f6546
2026-02-16 02:06:52,296 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/cd47d20e-ce5b-4e8b-8169-8275c55f6546
2026-02-16 02:06:52,304 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/1684f0b3-2189-44ca-8792-dae2800ee914
2026-02-16 02:06:52,310 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/1684f0b3-2189-44ca-8792-dae2800ee914
2026-02-16 02:06:52,316 - DEBUG - Requesting: http://10.0.0.130:8082/route-target/55b61161-9a49-436a-b637-3c4c18ab62df
2026-02-16 02:06:52,322 - DEBUG - Route Targets: ['target:64512:8000004']
2026-02-16 02:06:52,322 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/cd47d20e-ce5b-4e8b-8169-8275c55f6546
2026-02-16 02:06:52,331 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/1684f0b3-2189-44ca-8792-dae2800ee914
2026-02-16 02:06:52,346 - INFO - Verified VN network id 12 for VN cd47d20e-ce5b-4e8b-8169-8275c55f6546
2026-02-16 02:06:52,346 - INFO - Verifications in API Server for VN ctest-vn-81719099 passed
2026-02-16 02:06:52,346 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/cd47d20e-ce5b-4e8b-8169-8275c55f6546
2026-02-16 02:06:52,356 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/1684f0b3-2189-44ca-8792-dae2800ee914
2026-02-16 02:06:52,362 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/1684f0b3-2189-44ca-8792-dae2800ee914
2026-02-16 02:06:52,369 - DEBUG - Requesting: http://10.0.0.130:8082/route-target/55b61161-9a49-436a-b637-3c4c18ab62df
2026-02-16 02:06:52,381 - DEBUG - Control-node 10.0.0.130 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-98256711:ctest-vn-81719099', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-98256711', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '14792022462155148939', 'uuid-lslong': '9325127945781470534'}, 'enable': 'true', 'created': '2026-02-16T02:06:50', 'last-modified': '2026-02-16T02:06:51', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.914698'}
2026-02-16 02:06:52,388 - DEBUG - Route Targets: ['target:64512:8000004']
2026-02-16 02:06:52,388 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-81719099 passed
2026-02-16 02:06:52,388 - DEBUG - ====Verifying policy data for ctest-vn-81719099 in API_Server ======
2026-02-16 02:06:52,388 - DEBUG - Requesting: http://10.0.0.130:8082/domains
2026-02-16 02:06:52,394 - DEBUG - Requesting: http://10.0.0.130:8082/domain/e8337375-e237-4612-ba9d-f84db96d6475
2026-02-16 02:06:52,404 - DEBUG - Requesting: http://10.0.0.130:8082/project/3f49791b-7c3f-4c7d-9890-0b8e14a1e009
2026-02-16 02:06:52,471 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/cd47d20e-ce5b-4e8b-8169-8275c55f6546
2026-02-16 02:06:52,481 - DEBUG - ==>Verifying data for policy with id: e00ee083-12b5-4fe8-8fee-a815f69a6e5b, fqn: ['default-domain', 'ctest-TestBasicPolicy-98256711', 'ctest-policy-allow-all-70592546']
2026-02-16 02:06:52,481 - INFO - VN ctest-vn-81719099 Policy verification: verify_vn_policy_in_api_server, status: True
2026-02-16 02:06:52,481 - DEBUG - Verifying the vn in opserver
2026-02-16 02:06:52,481 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-98256711:ctest-vn-81719099 virtual network link through opserver 10.0.0.130
2026-02-16 02:06:52,481 - DEBUG - Requesting: http://10.0.0.130:8081/analytics/uves/virtual-networks
2026-02-16 02:06:52,775 - DEBUG - Requesting: http://10.0.0.130:8081/analytics/uves/virtual-networks
2026-02-16 02:06:52,833 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-98256711:ctest-vn-81719099', 'href': 'http://10.0.0.130:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-98256711:ctest-vn-81719099?flat'}
2026-02-16 02:06:52,833 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-98256711:ctest-vn-81719099 is found in opserver
2026-02-16 02:06:52,843 - DEBUG - Do not have enough data to verify VN in agent
2026-02-16 02:06:52,848 - DEBUG - VRF ids for VN ctest-vn-81719099: {}
2026-02-16 02:06:52,848 - DEBUG - Requesting: http://10.0.0.130:8082/domains
2026-02-16 02:06:52,854 - DEBUG - Requesting: http://10.0.0.130:8082/domain/e8337375-e237-4612-ba9d-f84db96d6475
2026-02-16 02:06:52,865 - DEBUG - Requesting: http://10.0.0.130:8082/project/3f49791b-7c3f-4c7d-9890-0b8e14a1e009
2026-02-16 02:06:52,935 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/13a84a6f-3e83-4bd3-bb7e-c65123d5ff60
2026-02-16 02:06:52,949 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/13a84a6f-3e83-4bd3-bb7e-c65123d5ff60
2026-02-16 02:06:52,960 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/603cbd08-e231-48c2-af79-185b85068ce5
2026-02-16 02:06:52,968 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/603cbd08-e231-48c2-af79-185b85068ce5
2026-02-16 02:06:52,976 - DEBUG - Requesting: http://10.0.0.130:8082/route-target/f1b91ef4-28ee-4338-9b2d-c3e11bfe5a6f
2026-02-16 02:06:52,983 - DEBUG - Route Targets: ['target:64512:8000005']
2026-02-16 02:06:52,983 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/13a84a6f-3e83-4bd3-bb7e-c65123d5ff60
2026-02-16 02:06:52,991 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/603cbd08-e231-48c2-af79-185b85068ce5
2026-02-16 02:06:53,005 - INFO - Verified VN network id 13 for VN 13a84a6f-3e83-4bd3-bb7e-c65123d5ff60
2026-02-16 02:06:53,005 - INFO - Verifications in API Server for VN ctest-vn-43128740 passed
2026-02-16 02:06:53,005 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/13a84a6f-3e83-4bd3-bb7e-c65123d5ff60
2026-02-16 02:06:53,014 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/603cbd08-e231-48c2-af79-185b85068ce5
2026-02-16 02:06:53,022 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/603cbd08-e231-48c2-af79-185b85068ce5
2026-02-16 02:06:53,028 - DEBUG - Requesting: http://10.0.0.130:8082/route-target/f1b91ef4-28ee-4338-9b2d-c3e11bfe5a6f
2026-02-16 02:06:53,043 - DEBUG - Control-node 10.0.0.130 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-98256711:ctest-vn-43128740', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-98256711', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1416463924458638291', 'uuid-lslong': '13510453983953944416'}, 'enable': 'true', 'created': '2026-02-16T02:06:50', 'last-modified': '2026-02-16T02:06:51', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.350946'}
2026-02-16 02:06:53,049 - DEBUG - Route Targets: ['target:64512:8000005']
2026-02-16 02:06:53,050 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-43128740 passed
2026-02-16 02:06:53,050 - DEBUG - ====Verifying policy data for ctest-vn-43128740 in API_Server ======
2026-02-16 02:06:53,050 - DEBUG - Requesting: http://10.0.0.130:8082/domains
2026-02-16 02:06:53,056 - DEBUG - Requesting: http://10.0.0.130:8082/domain/e8337375-e237-4612-ba9d-f84db96d6475
2026-02-16 02:06:53,069 - DEBUG - Requesting: http://10.0.0.130:8082/project/3f49791b-7c3f-4c7d-9890-0b8e14a1e009
2026-02-16 02:06:53,138 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/13a84a6f-3e83-4bd3-bb7e-c65123d5ff60
2026-02-16 02:06:53,148 - DEBUG - ==>Verifying data for policy with id: e00ee083-12b5-4fe8-8fee-a815f69a6e5b, fqn: ['default-domain', 'ctest-TestBasicPolicy-98256711', 'ctest-policy-allow-all-70592546']
2026-02-16 02:06:53,148 - INFO - VN ctest-vn-43128740 Policy verification: verify_vn_policy_in_api_server, status: True
2026-02-16 02:06:53,148 - DEBUG - Verifying the vn in opserver
2026-02-16 02:06:53,148 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-98256711:ctest-vn-43128740 virtual network link through opserver 10.0.0.130
2026-02-16 02:06:53,148 - DEBUG - Requesting: http://10.0.0.130:8081/analytics/uves/virtual-networks
2026-02-16 02:06:53,158 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-98256711:ctest-vn-43128740', 'href': 'http://10.0.0.130:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-98256711:ctest-vn-43128740?flat'}
2026-02-16 02:06:53,158 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-98256711:ctest-vn-43128740 is found in opserver
2026-02-16 02:06:53,169 - DEBUG - Do not have enough data to verify VN in agent
2026-02-16 02:06:53,174 - DEBUG - VRF ids for VN ctest-vn-43128740: {}
2026-02-16 02:06:53,233 - DEBUG - Services list from nova: [