2026-07-18 15:44:38,591 - INFO - Domain Default found not creating
2026-07-18 15:44:38,768 - INFO - Project ctest-TestBasicPolicy-00089134 not found, creating it
2026-07-18 15:44:39,263 - INFO - Created Project:ctest-TestBasicPolicy-00089134, ID : b420bbfd-bf0d-4f75-8cb9-b81c1e8853be
2026-07-18 15:44:41,055 - INFO - ================================================================================
2026-07-18 15:44:41,056 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-07-18 15:44:41,056 - 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-07-18 15:44:41,317 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.14': '0'}} with
2026-07-18 15:44:41,317 - INFO - Initial checks done. Running the testcase now
2026-07-18 15:44:41,317 - INFO -
2026-07-18 15:44:42,016 - DEBUG - Response for create_network : {'network': {'id': 'cb84458f-ab3e-4bbb-b00a-da3b83039072', 'name': 'ctest-vn-13447844', 'tenant_id': 'b420bbfdbf0d4f758cb9b81c1e8853be', 'project_id': 'b420bbfdbf0d4f758cb9b81c1e8853be', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-00089134', 'ctest-vn-13447844'], 'port_security_enabled': True, 'description': ''}}
2026-07-18 15:44:42,179 - DEBUG - Response for create_subnet : {'subnet': {'id': '14cac511-eb05-4f5d-92b2-3e7311464df4', 'name': '', 'tenant_id': 'b420bbfdbf0d4f758cb9b81c1e8853be', 'network_id': 'cb84458f-ab3e-4bbb-b00a-da3b83039072', 'ip_version': 4, 'cidr': '126.158.119.192/26', 'allocation_pools': [{'start': '126.158.119.194', 'end': '126.158.119.254'}], 'gateway_ip': '126.158.119.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '126.158.119.194', 'tags': [], 'project_id': 'b420bbfdbf0d4f758cb9b81c1e8853be'}}
2026-07-18 15:44:42,195 - INFO - Created VN ctest-vn-13447844
2026-07-18 15:44:42,251 - DEBUG - VN ctest-vn-13447844 UUID is cb84458f-ab3e-4bbb-b00a-da3b83039072
2026-07-18 15:44:42,597 - DEBUG - Response for create_network : {'network': {'id': '83cc6d53-7c6a-4fb4-9d1e-cd28981cc867', 'name': 'ctest-vn-62795190', 'tenant_id': 'b420bbfdbf0d4f758cb9b81c1e8853be', 'project_id': 'b420bbfdbf0d4f758cb9b81c1e8853be', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-00089134', 'ctest-vn-62795190'], 'port_security_enabled': True, 'description': ''}}
2026-07-18 15:44:42,833 - DEBUG - Response for create_subnet : {'subnet': {'id': '0a3b2045-dd49-4a09-bab9-87556e457525', 'name': '', 'tenant_id': 'b420bbfdbf0d4f758cb9b81c1e8853be', 'network_id': '83cc6d53-7c6a-4fb4-9d1e-cd28981cc867', 'ip_version': 4, 'cidr': '215.147.162.128/26', 'allocation_pools': [{'start': '215.147.162.130', 'end': '215.147.162.190'}], 'gateway_ip': '215.147.162.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '215.147.162.130', 'tags': [], 'project_id': 'b420bbfdbf0d4f758cb9b81c1e8853be'}}
2026-07-18 15:44:42,855 - INFO - Created VN ctest-vn-62795190
2026-07-18 15:44:42,907 - DEBUG - VN ctest-vn-62795190 UUID is 83cc6d53-7c6a-4fb4-9d1e-cd28981cc867
2026-07-18 15:44:43,059 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-00089134:ctest-vn-13447844, 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-00089134:ctest-vn-62795190, 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-07-18 15:44:43,382 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'cb84458f-ab3e-4bbb-b00a-da3b83039072', 'name': 'ctest-vn-13447844', 'tenant_id': 'b420bbfdbf0d4f758cb9b81c1e8853be', 'project_id': 'b420bbfdbf0d4f758cb9b81c1e8853be', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['14cac511-eb05-4f5d-92b2-3e7311464df4'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-00089134', 'ctest-vn-13447844'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-00089134', 'ctest-policy-allow-all-13590636']], 'subnet_ipam': [{'subnet_cidr': '126.158.119.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-07-18 15:44:43,632 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '83cc6d53-7c6a-4fb4-9d1e-cd28981cc867', 'name': 'ctest-vn-62795190', 'tenant_id': 'b420bbfdbf0d4f758cb9b81c1e8853be', 'project_id': 'b420bbfdbf0d4f758cb9b81c1e8853be', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['0a3b2045-dd49-4a09-bab9-87556e457525'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-00089134', 'ctest-vn-62795190'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-00089134', 'ctest-policy-allow-all-13590636']], 'subnet_ipam': [{'subnet_cidr': '215.147.162.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-07-18 15:44:43,803 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2026-07-18 15:44:44,176 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2026-07-18 15:44:44,203 - DEBUG - Requesting: http://10.0.0.22:8082/domain/57cf94c0-b0fc-4afc-b83e-cd5679560f9b
2026-07-18 15:44:44,219 - DEBUG - Requesting: http://10.0.0.22:8082/project/b420bbfd-bf0d-4f75-8cb9-b81c1e8853be
2026-07-18 15:44:44,300 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/cb84458f-ab3e-4bbb-b00a-da3b83039072
2026-07-18 15:44:44,317 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/cb84458f-ab3e-4bbb-b00a-da3b83039072
2026-07-18 15:44:44,329 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/ebe7585d-d417-4786-a267-b61dcb5fa0c1
2026-07-18 15:44:44,337 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/ebe7585d-d417-4786-a267-b61dcb5fa0c1
2026-07-18 15:44:44,346 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/e293c539-99d9-4e08-882d-8035fddbe27b
2026-07-18 15:44:44,355 - DEBUG - Route Targets: ['target:64512:8000004']
2026-07-18 15:44:44,355 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/cb84458f-ab3e-4bbb-b00a-da3b83039072
2026-07-18 15:44:44,365 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/ebe7585d-d417-4786-a267-b61dcb5fa0c1
2026-07-18 15:44:44,385 - INFO - Verified VN network id 11 for VN cb84458f-ab3e-4bbb-b00a-da3b83039072
2026-07-18 15:44:44,385 - INFO - Verifications in API Server for VN ctest-vn-13447844 passed
2026-07-18 15:44:44,385 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/cb84458f-ab3e-4bbb-b00a-da3b83039072
2026-07-18 15:44:44,398 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/ebe7585d-d417-4786-a267-b61dcb5fa0c1
2026-07-18 15:44:44,411 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/ebe7585d-d417-4786-a267-b61dcb5fa0c1
2026-07-18 15:44:44,421 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/e293c539-99d9-4e08-882d-8035fddbe27b
2026-07-18 15:44:44,435 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-00089134:ctest-vn-13447844', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-00089134', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '14664922769980804027', 'uuid-lslong': '12685191249578397810'}, 'enable': 'true', 'created': '2026-07-18T15:44:41', 'last-modified': '2026-07-18T15:44:43', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.072530'}
2026-07-18 15:44:44,444 - DEBUG - Route Targets: ['target:64512:8000004']
2026-07-18 15:44:44,444 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-13447844 passed
2026-07-18 15:44:44,444 - DEBUG - ====Verifying policy data for ctest-vn-13447844 in API_Server ======
2026-07-18 15:44:44,445 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2026-07-18 15:44:44,451 - DEBUG - Requesting: http://10.0.0.22:8082/domain/57cf94c0-b0fc-4afc-b83e-cd5679560f9b
2026-07-18 15:44:44,464 - DEBUG - Requesting: http://10.0.0.22:8082/project/b420bbfd-bf0d-4f75-8cb9-b81c1e8853be
2026-07-18 15:44:44,540 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/cb84458f-ab3e-4bbb-b00a-da3b83039072
2026-07-18 15:44:44,551 - DEBUG - ==>Verifying data for policy with id: 8977b450-4a6c-4733-970e-030532aec332, fqn: ['default-domain', 'ctest-TestBasicPolicy-00089134', 'ctest-policy-allow-all-13590636']
2026-07-18 15:44:44,551 - INFO - VN ctest-vn-13447844 Policy verification: verify_vn_policy_in_api_server, status: True
2026-07-18 15:44:44,551 - DEBUG - Verifying the vn in opserver
2026-07-18 15:44:44,551 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-00089134:ctest-vn-13447844 virtual network link through opserver 10.0.0.22
2026-07-18 15:44:44,551 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2026-07-18 15:44:44,921 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2026-07-18 15:44:44,986 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-00089134:ctest-vn-13447844', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-00089134:ctest-vn-13447844?flat'}
2026-07-18 15:44:44,986 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-00089134:ctest-vn-13447844 is found in opserver
2026-07-18 15:44:44,998 - DEBUG - Do not have enough data to verify VN in agent
2026-07-18 15:44:45,004 - DEBUG - VRF ids for VN ctest-vn-13447844: {}
2026-07-18 15:44:45,004 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2026-07-18 15:44:45,009 - DEBUG - Requesting: http://10.0.0.22:8082/domain/57cf94c0-b0fc-4afc-b83e-cd5679560f9b
2026-07-18 15:44:45,020 - DEBUG - Requesting: http://10.0.0.22:8082/project/b420bbfd-bf0d-4f75-8cb9-b81c1e8853be
2026-07-18 15:44:45,100 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/83cc6d53-7c6a-4fb4-9d1e-cd28981cc867
2026-07-18 15:44:45,121 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/83cc6d53-7c6a-4fb4-9d1e-cd28981cc867
2026-07-18 15:44:45,133 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/e3f97b86-b3f2-4928-83b4-4b0ec7b62bd3
2026-07-18 15:44:45,142 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/e3f97b86-b3f2-4928-83b4-4b0ec7b62bd3
2026-07-18 15:44:45,151 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/d616573c-bc9a-4696-b471-6e54605841ee
2026-07-18 15:44:45,158 - DEBUG - Route Targets: ['target:64512:8000005']
2026-07-18 15:44:45,158 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/83cc6d53-7c6a-4fb4-9d1e-cd28981cc867
2026-07-18 15:44:45,169 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/e3f97b86-b3f2-4928-83b4-4b0ec7b62bd3
2026-07-18 15:44:45,189 - INFO - Verified VN network id 12 for VN 83cc6d53-7c6a-4fb4-9d1e-cd28981cc867
2026-07-18 15:44:45,189 - INFO - Verifications in API Server for VN ctest-vn-62795190 passed
2026-07-18 15:44:45,189 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/83cc6d53-7c6a-4fb4-9d1e-cd28981cc867
2026-07-18 15:44:45,203 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/e3f97b86-b3f2-4928-83b4-4b0ec7b62bd3
2026-07-18 15:44:45,213 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/e3f97b86-b3f2-4928-83b4-4b0ec7b62bd3
2026-07-18 15:44:45,222 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/d616573c-bc9a-4696-b471-6e54605841ee
2026-07-18 15:44:45,236 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-00089134:ctest-vn-62795190', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-00089134', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9497085919554588596', 'uuid-lslong': '11321712087490414695'}, 'enable': 'true', 'created': '2026-07-18T15:44:42', 'last-modified': '2026-07-18T15:44:43', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.633755'}
2026-07-18 15:44:45,244 - DEBUG - Route Targets: ['target:64512:8000005']
2026-07-18 15:44:45,244 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-62795190 passed
2026-07-18 15:44:45,244 - DEBUG - ====Verifying policy data for ctest-vn-62795190 in API_Server ======
2026-07-18 15:44:45,244 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2026-07-18 15:44:45,251 - DEBUG - Requesting: http://10.0.0.22:8082/domain/57cf94c0-b0fc-4afc-b83e-cd5679560f9b
2026-07-18 15:44:45,264 - DEBUG - Requesting: http://10.0.0.22:8082/project/b420bbfd-bf0d-4f75-8cb9-b81c1e8853be
2026-07-18 15:44:45,343 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/83cc6d53-7c6a-4fb4-9d1e-cd28981cc867
2026-07-18 15:44:45,353 - DEBUG - ==>Verifying data for policy with id: 8977b450-4a6c-4733-970e-030532aec332, fqn: ['default-domain', 'ctest-TestBasicPolicy-00089134', 'ctest-policy-allow-all-13590636']
2026-07-18 15:44:45,353 - INFO - VN ctest-vn-62795190 Policy verification: verify_vn_policy_in_api_server, status: True
2026-07-18 15:44:45,353 - DEBUG - Verifying the vn in opserver
2026-07-18 15:44:45,353 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-00089134:ctest-vn-62795190 virtual network link through opserver 10.0.0.22
2026-07-18 15:44:45,353 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2026-07-18 15:44:45,364 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-00089134:ctest-vn-62795190', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-00089134:ctest-vn-62795190?flat'}
2026-07-18 15:44:45,364 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-00089134:ctest-vn-62795190 is found in opserver
2026-07-18 15:44:45,374 - DEBUG - Do not have enough data to verify VN in agent
2026-07-18 15:44:45,379 - DEBUG - VRF ids for VN ctest-vn-62795190: {}
2026-07-18 15:44:45,440 - DEBUG - Services list from nova: [