2026-11-09 15:56:36,704 - INFO - Domain Default found not creating
2026-11-09 15:56:36,873 - INFO - Project ctest-TestBasicPolicy-66399369 not found, creating it
2026-11-09 15:56:37,325 - INFO - Created Project:ctest-TestBasicPolicy-66399369, ID : 670bdaee-f3c5-4d80-a116-e5790d073cc4
2026-11-09 15:56:38,979 - INFO - ================================================================================
2026-11-09 15:56:38,979 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-11-09 15:56:38,979 - 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-09 15:56:39,237 - DEBUG - Nothing to compare xmpp stats {'10.0.0.163': {'10.20.0.17': '0'}} with
2026-11-09 15:56:39,237 - INFO - Initial checks done. Running the testcase now
2026-11-09 15:56:39,237 - INFO -
2026-11-09 15:56:39,827 - DEBUG - Response for create_network : {'network': {'id': 'e30675a2-a745-4200-9dd6-82ffbfa3549d', 'name': 'ctest-vn-68146603', 'tenant_id': '670bdaeef3c54d80a116e5790d073cc4', 'project_id': '670bdaeef3c54d80a116e5790d073cc4', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-66399369', 'ctest-vn-68146603'], 'port_security_enabled': True, 'description': ''}}
2026-11-09 15:56:40,000 - DEBUG - Response for create_subnet : {'subnet': {'id': '450d98a1-a2c2-4180-863b-4f3b1d1e3690', 'name': '', 'tenant_id': '670bdaeef3c54d80a116e5790d073cc4', 'network_id': 'e30675a2-a745-4200-9dd6-82ffbfa3549d', 'ip_version': 4, 'cidr': '133.174.251.64/26', 'allocation_pools': [{'start': '133.174.251.66', 'end': '133.174.251.126'}], 'gateway_ip': '133.174.251.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '133.174.251.66', 'tags': [], 'project_id': '670bdaeef3c54d80a116e5790d073cc4'}}
2026-11-09 15:56:40,017 - INFO - Created VN ctest-vn-68146603
2026-11-09 15:56:40,070 - DEBUG - VN ctest-vn-68146603 UUID is e30675a2-a745-4200-9dd6-82ffbfa3549d
2026-11-09 15:56:40,404 - DEBUG - Response for create_network : {'network': {'id': '37125446-6c6d-47a8-816e-b3deda27f1d0', 'name': 'ctest-vn-32613793', 'tenant_id': '670bdaeef3c54d80a116e5790d073cc4', 'project_id': '670bdaeef3c54d80a116e5790d073cc4', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-66399369', 'ctest-vn-32613793'], 'port_security_enabled': True, 'description': ''}}
2026-11-09 15:56:40,593 - DEBUG - Response for create_subnet : {'subnet': {'id': 'ca2e6b8a-4950-405b-bd42-4567ffb2e018', 'name': '', 'tenant_id': '670bdaeef3c54d80a116e5790d073cc4', 'network_id': '37125446-6c6d-47a8-816e-b3deda27f1d0', 'ip_version': 4, 'cidr': '201.78.25.0/26', 'allocation_pools': [{'start': '201.78.25.2', 'end': '201.78.25.62'}], 'gateway_ip': '201.78.25.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '201.78.25.2', 'tags': [], 'project_id': '670bdaeef3c54d80a116e5790d073cc4'}}
2026-11-09 15:56:40,610 - INFO - Created VN ctest-vn-32613793
2026-11-09 15:56:40,663 - DEBUG - VN ctest-vn-32613793 UUID is 37125446-6c6d-47a8-816e-b3deda27f1d0
2026-11-09 15:56:40,802 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-66399369:ctest-vn-68146603, 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-66399369:ctest-vn-32613793, 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-09 15:56:41,108 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'e30675a2-a745-4200-9dd6-82ffbfa3549d', 'name': 'ctest-vn-68146603', 'tenant_id': '670bdaeef3c54d80a116e5790d073cc4', 'project_id': '670bdaeef3c54d80a116e5790d073cc4', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': ['450d98a1-a2c2-4180-863b-4f3b1d1e3690'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-66399369', 'ctest-vn-68146603'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-66399369', 'ctest-policy-allow-all-58166545']], 'subnet_ipam': [{'subnet_cidr': '133.174.251.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-11-09 15:56:41,290 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '37125446-6c6d-47a8-816e-b3deda27f1d0', 'name': 'ctest-vn-32613793', 'tenant_id': '670bdaeef3c54d80a116e5790d073cc4', 'project_id': '670bdaeef3c54d80a116e5790d073cc4', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': ['ca2e6b8a-4950-405b-bd42-4567ffb2e018'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-66399369', 'ctest-vn-32613793'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-66399369', 'ctest-policy-allow-all-58166545']], 'subnet_ipam': [{'subnet_cidr': '201.78.25.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-11-09 15:56:41,478 - DEBUG - Requesting: http://10.0.0.163:8082/domains
2026-11-09 15:56:41,843 - DEBUG - Requesting: http://10.0.0.163:8082/domains
2026-11-09 15:56:41,872 - DEBUG - Requesting: http://10.0.0.163:8082/domain/004d1e4e-d25c-4f1d-b649-20b0db97c4c1
2026-11-09 15:56:41,884 - DEBUG - Requesting: http://10.0.0.163:8082/project/670bdaee-f3c5-4d80-a116-e5790d073cc4
2026-11-09 15:56:41,954 - DEBUG - Requesting: http://10.0.0.163:8082/virtual-network/e30675a2-a745-4200-9dd6-82ffbfa3549d
2026-11-09 15:56:41,964 - DEBUG - Requesting: http://10.0.0.163:8082/virtual-network/e30675a2-a745-4200-9dd6-82ffbfa3549d
2026-11-09 15:56:41,975 - DEBUG - Requesting: http://10.0.0.163:8082/routing-instance/e4da35ac-5461-4f50-b0bf-0ac4796eb457
2026-11-09 15:56:41,984 - DEBUG - Requesting: http://10.0.0.163:8082/routing-instance/e4da35ac-5461-4f50-b0bf-0ac4796eb457
2026-11-09 15:56:41,993 - DEBUG - Requesting: http://10.0.0.163:8082/route-target/e3e2b8f2-9e5e-4294-a1bd-199b640dfe4f
2026-11-09 15:56:42,000 - DEBUG - Route Targets: ['target:64512:8000005']
2026-11-09 15:56:42,000 - DEBUG - Requesting: http://10.0.0.163:8082/virtual-network/e30675a2-a745-4200-9dd6-82ffbfa3549d
2026-11-09 15:56:42,010 - DEBUG - Requesting: http://10.0.0.163:8082/routing-instance/e4da35ac-5461-4f50-b0bf-0ac4796eb457
2026-11-09 15:56:42,023 - INFO - Verified VN network id 12 for VN e30675a2-a745-4200-9dd6-82ffbfa3549d
2026-11-09 15:56:42,024 - INFO - Verifications in API Server for VN ctest-vn-68146603 passed
2026-11-09 15:56:42,024 - DEBUG - Requesting: http://10.0.0.163:8082/virtual-network/e30675a2-a745-4200-9dd6-82ffbfa3549d
2026-11-09 15:56:42,033 - DEBUG - Requesting: http://10.0.0.163:8082/routing-instance/e4da35ac-5461-4f50-b0bf-0ac4796eb457
2026-11-09 15:56:42,040 - DEBUG - Requesting: http://10.0.0.163:8082/routing-instance/e4da35ac-5461-4f50-b0bf-0ac4796eb457
2026-11-09 15:56:42,046 - DEBUG - Requesting: http://10.0.0.163:8082/route-target/e3e2b8f2-9e5e-4294-a1bd-199b640dfe4f
2026-11-09 15:56:42,058 - DEBUG - Control-node 10.0.0.163 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-66399369:ctest-vn-68146603', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-66399369', 'owner-access': '7', 'group': 'manager', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16358892037921391104', 'uuid-lslong': '11373421943914189981'}, 'enable': 'true', 'created': '2026-11-09T15:56:39', 'last-modified': '2026-11-09T15:56:41', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.978106'}
2026-11-09 15:56:42,065 - DEBUG - Route Targets: ['target:64512:8000005']
2026-11-09 15:56:42,065 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-68146603 passed
2026-11-09 15:56:42,065 - DEBUG - ====Verifying policy data for ctest-vn-68146603 in API_Server ======
2026-11-09 15:56:42,065 - DEBUG - Requesting: http://10.0.0.163:8082/domains
2026-11-09 15:56:42,071 - DEBUG - Requesting: http://10.0.0.163:8082/domain/004d1e4e-d25c-4f1d-b649-20b0db97c4c1
2026-11-09 15:56:42,081 - DEBUG - Requesting: http://10.0.0.163:8082/project/670bdaee-f3c5-4d80-a116-e5790d073cc4
2026-11-09 15:56:42,160 - DEBUG - Requesting: http://10.0.0.163:8082/virtual-network/e30675a2-a745-4200-9dd6-82ffbfa3549d
2026-11-09 15:56:42,171 - DEBUG - ==>Verifying data for policy with id: 576318d1-2475-44be-89a1-c75ae0e1044d, fqn: ['default-domain', 'ctest-TestBasicPolicy-66399369', 'ctest-policy-allow-all-58166545']
2026-11-09 15:56:42,171 - INFO - VN ctest-vn-68146603 Policy verification: verify_vn_policy_in_api_server, status: True
2026-11-09 15:56:42,171 - DEBUG - Verifying the vn in opserver
2026-11-09 15:56:42,171 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-66399369:ctest-vn-68146603 virtual network link through opserver 10.0.0.163
2026-11-09 15:56:42,171 - DEBUG - Requesting: http://10.0.0.163:8081/analytics/uves/virtual-networks
2026-11-09 15:56:42,554 - DEBUG - Requesting: http://10.0.0.163:8081/analytics/uves/virtual-networks
2026-11-09 15:56:42,608 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-66399369:ctest-vn-68146603', 'href': 'http://10.0.0.163:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-66399369:ctest-vn-68146603?flat'}
2026-11-09 15:56:42,608 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-66399369:ctest-vn-68146603 is found in opserver
2026-11-09 15:56:42,620 - DEBUG - Do not have enough data to verify VN in agent
2026-11-09 15:56:42,624 - DEBUG - VRF ids for VN ctest-vn-68146603: {}
2026-11-09 15:56:42,624 - DEBUG - Requesting: http://10.0.0.163:8082/domains
2026-11-09 15:56:42,630 - DEBUG - Requesting: http://10.0.0.163:8082/domain/004d1e4e-d25c-4f1d-b649-20b0db97c4c1
2026-11-09 15:56:42,642 - DEBUG - Requesting: http://10.0.0.163:8082/project/670bdaee-f3c5-4d80-a116-e5790d073cc4
2026-11-09 15:56:42,708 - DEBUG - Requesting: http://10.0.0.163:8082/virtual-network/37125446-6c6d-47a8-816e-b3deda27f1d0
2026-11-09 15:56:42,719 - DEBUG - Requesting: http://10.0.0.163:8082/virtual-network/37125446-6c6d-47a8-816e-b3deda27f1d0
2026-11-09 15:56:42,727 - DEBUG - Requesting: http://10.0.0.163:8082/routing-instance/2307a35d-cfc8-4a02-93fa-0a94e76bc904
2026-11-09 15:56:42,733 - DEBUG - Requesting: http://10.0.0.163:8082/routing-instance/2307a35d-cfc8-4a02-93fa-0a94e76bc904
2026-11-09 15:56:42,739 - DEBUG - Requesting: http://10.0.0.163:8082/route-target/d62920a1-8fbb-4c17-8615-838d92033b87
2026-11-09 15:56:42,744 - DEBUG - Route Targets: ['target:64512:8000006']
2026-11-09 15:56:42,744 - DEBUG - Requesting: http://10.0.0.163:8082/virtual-network/37125446-6c6d-47a8-816e-b3deda27f1d0
2026-11-09 15:56:42,753 - DEBUG - Requesting: http://10.0.0.163:8082/routing-instance/2307a35d-cfc8-4a02-93fa-0a94e76bc904
2026-11-09 15:56:42,767 - INFO - Verified VN network id 13 for VN 37125446-6c6d-47a8-816e-b3deda27f1d0
2026-11-09 15:56:42,767 - INFO - Verifications in API Server for VN ctest-vn-32613793 passed
2026-11-09 15:56:42,768 - DEBUG - Requesting: http://10.0.0.163:8082/virtual-network/37125446-6c6d-47a8-816e-b3deda27f1d0
2026-11-09 15:56:42,778 - DEBUG - Requesting: http://10.0.0.163:8082/routing-instance/2307a35d-cfc8-4a02-93fa-0a94e76bc904
2026-11-09 15:56:42,786 - DEBUG - Requesting: http://10.0.0.163:8082/routing-instance/2307a35d-cfc8-4a02-93fa-0a94e76bc904
2026-11-09 15:56:42,793 - DEBUG - Requesting: http://10.0.0.163:8082/route-target/d62920a1-8fbb-4c17-8615-838d92033b87
2026-11-09 15:56:42,806 - DEBUG - Control-node 10.0.0.163 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-66399369:ctest-vn-32613793', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-66399369', 'owner-access': '7', 'group': 'manager', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3968326883110373288', 'uuid-lslong': '9326589648055038416'}, 'enable': 'true', 'created': '2026-11-09T15:56:40', 'last-modified': '2026-11-09T15:56:41', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.535981'}
2026-11-09 15:56:42,813 - DEBUG - Route Targets: ['target:64512:8000006']
2026-11-09 15:56:42,813 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-32613793 passed
2026-11-09 15:56:42,813 - DEBUG - ====Verifying policy data for ctest-vn-32613793 in API_Server ======
2026-11-09 15:56:42,813 - DEBUG - Requesting: http://10.0.0.163:8082/domains
2026-11-09 15:56:42,818 - DEBUG - Requesting: http://10.0.0.163:8082/domain/004d1e4e-d25c-4f1d-b649-20b0db97c4c1
2026-11-09 15:56:42,828 - DEBUG - Requesting: http://10.0.0.163:8082/project/670bdaee-f3c5-4d80-a116-e5790d073cc4
2026-11-09 15:56:42,897 - DEBUG - Requesting: http://10.0.0.163:8082/virtual-network/37125446-6c6d-47a8-816e-b3deda27f1d0
2026-11-09 15:56:42,906 - DEBUG - ==>Verifying data for policy with id: 576318d1-2475-44be-89a1-c75ae0e1044d, fqn: ['default-domain', 'ctest-TestBasicPolicy-66399369', 'ctest-policy-allow-all-58166545']
2026-11-09 15:56:42,906 - INFO - VN ctest-vn-32613793 Policy verification: verify_vn_policy_in_api_server, status: True
2026-11-09 15:56:42,906 - DEBUG - Verifying the vn in opserver
2026-11-09 15:56:42,906 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-66399369:ctest-vn-32613793 virtual network link through opserver 10.0.0.163
2026-11-09 15:56:42,906 - DEBUG - Requesting: http://10.0.0.163:8081/analytics/uves/virtual-networks
2026-11-09 15:56:42,915 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-66399369:ctest-vn-32613793', 'href': 'http://10.0.0.163:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-66399369:ctest-vn-32613793?flat'}
2026-11-09 15:56:42,915 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-66399369:ctest-vn-32613793 is found in opserver
2026-11-09 15:56:42,925 - DEBUG - Do not have enough data to verify VN in agent
2026-11-09 15:56:42,929 - DEBUG - VRF ids for VN ctest-vn-32613793: {}
2026-11-09 15:56:42,986 - DEBUG - Services list from nova: [