2026-11-20 13:57:31,731 - INFO - Domain Default found not creating
2026-11-20 13:57:31,909 - INFO - Project ctest-TestBasicPolicy-02372110 not found, creating it
2026-11-20 13:57:32,378 - INFO - Created Project:ctest-TestBasicPolicy-02372110, ID : 10d7b404-a1e9-46dd-abd8-dd6aa544c177
2026-11-20 13:57:34,020 - INFO - ================================================================================
2026-11-20 13:57:34,020 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-11-20 13:57:34,020 - 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-11-20 13:57:34,280 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with
2026-11-20 13:57:34,280 - INFO - Initial checks done. Running the testcase now
2026-11-20 13:57:34,280 - INFO -
2026-11-20 13:57:34,877 - DEBUG - Response for create_network : {'network': {'id': '745118e0-f47b-45c9-99de-dd1176da6c45', 'name': 'ctest-vn-66059129', 'tenant_id': '10d7b404a1e946ddabd8dd6aa544c177', 'project_id': '10d7b404a1e946ddabd8dd6aa544c177', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-02372110', 'ctest-vn-66059129'], 'port_security_enabled': True, 'description': ''}}
2026-11-20 13:57:35,076 - DEBUG - Response for create_subnet : {'subnet': {'id': '96f6c411-f4d6-4274-ad5f-6b3540f0c99f', 'name': '', 'tenant_id': '10d7b404a1e946ddabd8dd6aa544c177', 'network_id': '745118e0-f47b-45c9-99de-dd1176da6c45', 'ip_version': 4, 'cidr': '75.126.61.0/26', 'allocation_pools': [{'start': '75.126.61.2', 'end': '75.126.61.62'}], 'gateway_ip': '75.126.61.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '75.126.61.2', 'tags': [], 'project_id': '10d7b404a1e946ddabd8dd6aa544c177'}}
2026-11-20 13:57:35,091 - INFO - Created VN ctest-vn-66059129
2026-11-20 13:57:35,142 - DEBUG - VN ctest-vn-66059129 UUID is 745118e0-f47b-45c9-99de-dd1176da6c45
2026-11-20 13:57:35,443 - DEBUG - Response for create_network : {'network': {'id': '46e9e1bb-0ffd-4bdd-921f-5b1b83e3806e', 'name': 'ctest-vn-68455595', 'tenant_id': '10d7b404a1e946ddabd8dd6aa544c177', 'project_id': '10d7b404a1e946ddabd8dd6aa544c177', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-02372110', 'ctest-vn-68455595'], 'port_security_enabled': True, 'description': ''}}
2026-11-20 13:57:35,619 - DEBUG - Response for create_subnet : {'subnet': {'id': '1cd68ee2-8299-4573-9a29-49305b4386c4', 'name': '', 'tenant_id': '10d7b404a1e946ddabd8dd6aa544c177', 'network_id': '46e9e1bb-0ffd-4bdd-921f-5b1b83e3806e', 'ip_version': 4, 'cidr': '18.233.237.128/26', 'allocation_pools': [{'start': '18.233.237.130', 'end': '18.233.237.190'}], 'gateway_ip': '18.233.237.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '18.233.237.130', 'tags': [], 'project_id': '10d7b404a1e946ddabd8dd6aa544c177'}}
2026-11-20 13:57:35,638 - INFO - Created VN ctest-vn-68455595
2026-11-20 13:57:35,690 - DEBUG - VN ctest-vn-68455595 UUID is 46e9e1bb-0ffd-4bdd-921f-5b1b83e3806e
2026-11-20 13:57:35,834 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-02372110:ctest-vn-66059129, 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-02372110:ctest-vn-68455595, 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-11-20 13:57:36,124 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '745118e0-f47b-45c9-99de-dd1176da6c45', 'name': 'ctest-vn-66059129', 'tenant_id': '10d7b404a1e946ddabd8dd6aa544c177', 'project_id': '10d7b404a1e946ddabd8dd6aa544c177', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': ['96f6c411-f4d6-4274-ad5f-6b3540f0c99f'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-02372110', 'ctest-vn-66059129'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-02372110', 'ctest-policy-allow-all-93631595']], 'subnet_ipam': [{'subnet_cidr': '75.126.61.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-11-20 13:57:36,348 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '46e9e1bb-0ffd-4bdd-921f-5b1b83e3806e', 'name': 'ctest-vn-68455595', 'tenant_id': '10d7b404a1e946ddabd8dd6aa544c177', 'project_id': '10d7b404a1e946ddabd8dd6aa544c177', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': ['1cd68ee2-8299-4573-9a29-49305b4386c4'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-02372110', 'ctest-vn-68455595'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-02372110', 'ctest-policy-allow-all-93631595']], 'subnet_ipam': [{'subnet_cidr': '18.233.237.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-11-20 13:57:36,510 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-11-20 13:57:36,871 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-11-20 13:57:36,895 - DEBUG - Requesting: http://10.0.0.38:8082/domain/d2c29ae8-e6d9-490f-a451-6b65a3bad507
2026-11-20 13:57:36,905 - DEBUG - Requesting: http://10.0.0.38:8082/project/10d7b404-a1e9-46dd-abd8-dd6aa544c177
2026-11-20 13:57:36,976 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/745118e0-f47b-45c9-99de-dd1176da6c45
2026-11-20 13:57:36,986 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/745118e0-f47b-45c9-99de-dd1176da6c45
2026-11-20 13:57:36,994 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/86220571-49b8-48b5-b2f7-30529b1ceef6
2026-11-20 13:57:37,000 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/86220571-49b8-48b5-b2f7-30529b1ceef6
2026-11-20 13:57:37,005 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/426c82ef-1a47-4191-bfaf-389a48673cd3
2026-11-20 13:57:37,010 - DEBUG - Route Targets: ['target:64512:8000005']
2026-11-20 13:57:37,010 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/745118e0-f47b-45c9-99de-dd1176da6c45
2026-11-20 13:57:37,018 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/86220571-49b8-48b5-b2f7-30529b1ceef6
2026-11-20 13:57:37,029 - INFO - Verified VN network id 11 for VN 745118e0-f47b-45c9-99de-dd1176da6c45
2026-11-20 13:57:37,029 - INFO - Verifications in API Server for VN ctest-vn-66059129 passed
2026-11-20 13:57:37,029 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/745118e0-f47b-45c9-99de-dd1176da6c45
2026-11-20 13:57:37,037 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/86220571-49b8-48b5-b2f7-30529b1ceef6
2026-11-20 13:57:37,043 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/86220571-49b8-48b5-b2f7-30529b1ceef6
2026-11-20 13:57:37,050 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/426c82ef-1a47-4191-bfaf-389a48673cd3
2026-11-20 13:57:37,061 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-02372110:ctest-vn-66059129', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-02372110', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8381507735966664137', 'uuid-lslong': '11087542399710948421'}, 'enable': 'true', 'created': '2026-11-20T13:57:34', 'last-modified': '2026-11-20T13:57:36', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.958238'}
2026-11-20 13:57:37,068 - DEBUG - Route Targets: ['target:64512:8000005']
2026-11-20 13:57:37,068 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-66059129 passed
2026-11-20 13:57:37,068 - DEBUG - ====Verifying policy data for ctest-vn-66059129 in API_Server ======
2026-11-20 13:57:37,068 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-11-20 13:57:37,073 - DEBUG - Requesting: http://10.0.0.38:8082/domain/d2c29ae8-e6d9-490f-a451-6b65a3bad507
2026-11-20 13:57:37,082 - DEBUG - Requesting: http://10.0.0.38:8082/project/10d7b404-a1e9-46dd-abd8-dd6aa544c177
2026-11-20 13:57:37,174 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/745118e0-f47b-45c9-99de-dd1176da6c45
2026-11-20 13:57:37,199 - DEBUG - ==>Verifying data for policy with id: 32a976c1-d2bd-4495-9e27-e9a0b95e95ae, fqn: ['default-domain', 'ctest-TestBasicPolicy-02372110', 'ctest-policy-allow-all-93631595']
2026-11-20 13:57:37,199 - INFO - VN ctest-vn-66059129 Policy verification: verify_vn_policy_in_api_server, status: True
2026-11-20 13:57:37,199 - DEBUG - Verifying the vn in opserver
2026-11-20 13:57:37,200 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-02372110:ctest-vn-66059129 virtual network link through opserver 10.0.0.38
2026-11-20 13:57:37,200 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2026-11-20 13:57:37,592 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2026-11-20 13:57:37,645 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-02372110:ctest-vn-66059129', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-02372110:ctest-vn-66059129?flat'}
2026-11-20 13:57:37,645 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-02372110:ctest-vn-66059129 is found in opserver
2026-11-20 13:57:37,655 - DEBUG - Do not have enough data to verify VN in agent
2026-11-20 13:57:37,659 - DEBUG - VRF ids for VN ctest-vn-66059129: {}
2026-11-20 13:57:37,659 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-11-20 13:57:37,664 - DEBUG - Requesting: http://10.0.0.38:8082/domain/d2c29ae8-e6d9-490f-a451-6b65a3bad507
2026-11-20 13:57:37,674 - DEBUG - Requesting: http://10.0.0.38:8082/project/10d7b404-a1e9-46dd-abd8-dd6aa544c177
2026-11-20 13:57:37,748 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/46e9e1bb-0ffd-4bdd-921f-5b1b83e3806e
2026-11-20 13:57:37,759 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/46e9e1bb-0ffd-4bdd-921f-5b1b83e3806e
2026-11-20 13:57:37,767 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/76fea417-35fc-427d-ba32-b539c0c6e84d
2026-11-20 13:57:37,772 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/76fea417-35fc-427d-ba32-b539c0c6e84d
2026-11-20 13:57:37,783 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/48077aca-fe8d-4cfc-b5bb-6680a0353871
2026-11-20 13:57:37,790 - DEBUG - Route Targets: ['target:64512:8000006']
2026-11-20 13:57:37,790 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/46e9e1bb-0ffd-4bdd-921f-5b1b83e3806e
2026-11-20 13:57:37,802 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/76fea417-35fc-427d-ba32-b539c0c6e84d
2026-11-20 13:57:37,814 - INFO - Verified VN network id 12 for VN 46e9e1bb-0ffd-4bdd-921f-5b1b83e3806e
2026-11-20 13:57:37,814 - INFO - Verifications in API Server for VN ctest-vn-68455595 passed
2026-11-20 13:57:37,814 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/46e9e1bb-0ffd-4bdd-921f-5b1b83e3806e
2026-11-20 13:57:37,822 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/76fea417-35fc-427d-ba32-b539c0c6e84d
2026-11-20 13:57:37,828 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/76fea417-35fc-427d-ba32-b539c0c6e84d
2026-11-20 13:57:37,834 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/48077aca-fe8d-4cfc-b5bb-6680a0353871
2026-11-20 13:57:37,844 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-02372110:ctest-vn-68455595', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-02372110', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5109863445771930589', 'uuid-lslong': '10529234627550478446'}, 'enable': 'true', 'created': '2026-11-20T13:57:35', 'last-modified': '2026-11-20T13:57:36', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.517032'}
2026-11-20 13:57:37,849 - DEBUG - Route Targets: ['target:64512:8000006']
2026-11-20 13:57:37,849 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-68455595 passed
2026-11-20 13:57:37,849 - DEBUG - ====Verifying policy data for ctest-vn-68455595 in API_Server ======
2026-11-20 13:57:37,849 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-11-20 13:57:37,854 - DEBUG - Requesting: http://10.0.0.38:8082/domain/d2c29ae8-e6d9-490f-a451-6b65a3bad507
2026-11-20 13:57:37,862 - DEBUG - Requesting: http://10.0.0.38:8082/project/10d7b404-a1e9-46dd-abd8-dd6aa544c177
2026-11-20 13:57:37,931 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/46e9e1bb-0ffd-4bdd-921f-5b1b83e3806e
2026-11-20 13:57:37,940 - DEBUG - ==>Verifying data for policy with id: 32a976c1-d2bd-4495-9e27-e9a0b95e95ae, fqn: ['default-domain', 'ctest-TestBasicPolicy-02372110', 'ctest-policy-allow-all-93631595']
2026-11-20 13:57:37,940 - INFO - VN ctest-vn-68455595 Policy verification: verify_vn_policy_in_api_server, status: True
2026-11-20 13:57:37,940 - DEBUG - Verifying the vn in opserver
2026-11-20 13:57:37,940 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-02372110:ctest-vn-68455595 virtual network link through opserver 10.0.0.38
2026-11-20 13:57:37,940 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2026-11-20 13:57:37,948 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-02372110:ctest-vn-68455595', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-02372110:ctest-vn-68455595?flat'}
2026-11-20 13:57:37,948 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-02372110:ctest-vn-68455595 is found in opserver
2026-11-20 13:57:37,958 - DEBUG - Do not have enough data to verify VN in agent
2026-11-20 13:57:37,963 - DEBUG - VRF ids for VN ctest-vn-68455595: {}
2026-11-20 13:57:38,016 - DEBUG - Services list from nova: [