2025-10-05 18:52:05,528 - INFO - Domain Default found not creating
2025-10-05 18:52:05,645 - INFO - Project ctest-TestBasicPolicy-94497914 not found, creating it
2025-10-05 18:52:06,120 - INFO - Created Project:ctest-TestBasicPolicy-94497914, ID : deb56109-808b-4888-9533-6110464626f2
2025-10-05 18:52:07,421 - INFO - ================================================================================
2025-10-05 18:52:07,422 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-10-05 18:52:07,422 - 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
2025-10-05 18:52:07,673 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.17': '0'}} with
2025-10-05 18:52:07,673 - INFO - Initial checks done. Running the testcase now
2025-10-05 18:52:07,673 - INFO -
2025-10-05 18:52:08,169 - DEBUG - Response for create_network : {'network': {'id': 'cac8e01b-9a03-420d-a93f-ee2741870044', 'name': 'ctest-vn-68439197', 'tenant_id': 'deb56109808b488895336110464626f2', 'project_id': 'deb56109808b488895336110464626f2', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-94497914', 'ctest-vn-68439197'], 'port_security_enabled': True, 'description': ''}}
2025-10-05 18:52:08,376 - DEBUG - Response for create_subnet : {'subnet': {'id': '2356dd0d-286a-4dcf-89c7-2129cdfdc1d6', 'name': '', 'tenant_id': 'deb56109808b488895336110464626f2', 'network_id': 'cac8e01b-9a03-420d-a93f-ee2741870044', 'ip_version': 4, 'cidr': '211.75.166.192/26', 'allocation_pools': [{'start': '211.75.166.194', 'end': '211.75.166.254'}], 'gateway_ip': '211.75.166.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '211.75.166.194', 'tags': [], 'project_id': 'deb56109808b488895336110464626f2'}}
2025-10-05 18:52:08,390 - INFO - Created VN ctest-vn-68439197
2025-10-05 18:52:08,439 - DEBUG - VN ctest-vn-68439197 UUID is cac8e01b-9a03-420d-a93f-ee2741870044
2025-10-05 18:52:08,721 - DEBUG - Response for create_network : {'network': {'id': '53470f44-049c-4cec-9213-7ace7c560c63', 'name': 'ctest-vn-01751164', 'tenant_id': 'deb56109808b488895336110464626f2', 'project_id': 'deb56109808b488895336110464626f2', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-94497914', 'ctest-vn-01751164'], 'port_security_enabled': True, 'description': ''}}
2025-10-05 18:52:08,902 - DEBUG - Response for create_subnet : {'subnet': {'id': '3bc114b9-3df3-4887-b99c-c3a84a45ded4', 'name': '', 'tenant_id': 'deb56109808b488895336110464626f2', 'network_id': '53470f44-049c-4cec-9213-7ace7c560c63', 'ip_version': 4, 'cidr': '89.15.221.64/26', 'allocation_pools': [{'start': '89.15.221.66', 'end': '89.15.221.126'}], 'gateway_ip': '89.15.221.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '89.15.221.66', 'tags': [], 'project_id': 'deb56109808b488895336110464626f2'}}
2025-10-05 18:52:08,916 - INFO - Created VN ctest-vn-01751164
2025-10-05 18:52:08,967 - DEBUG - VN ctest-vn-01751164 UUID is 53470f44-049c-4cec-9213-7ace7c560c63
2025-10-05 18:52:09,107 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-94497914:ctest-vn-68439197, 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-94497914:ctest-vn-01751164, 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]
2025-10-05 18:52:09,380 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'cac8e01b-9a03-420d-a93f-ee2741870044', 'name': 'ctest-vn-68439197', 'tenant_id': 'deb56109808b488895336110464626f2', 'project_id': 'deb56109808b488895336110464626f2', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['2356dd0d-286a-4dcf-89c7-2129cdfdc1d6'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-94497914', 'ctest-vn-68439197'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-94497914', 'ctest-policy-allow-all-52998030']], 'subnet_ipam': [{'subnet_cidr': '211.75.166.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-05 18:52:09,635 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '53470f44-049c-4cec-9213-7ace7c560c63', 'name': 'ctest-vn-01751164', 'tenant_id': 'deb56109808b488895336110464626f2', 'project_id': 'deb56109808b488895336110464626f2', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['3bc114b9-3df3-4887-b99c-c3a84a45ded4'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-94497914', 'ctest-vn-01751164'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-94497914', 'ctest-policy-allow-all-52998030']], 'subnet_ipam': [{'subnet_cidr': '89.15.221.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-05 18:52:09,783 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-10-05 18:52:10,072 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-10-05 18:52:10,096 - DEBUG - Requesting: http://10.0.0.254:8082/domain/995b2b3b-a114-42d5-a9a0-da3b5cc5c114
2025-10-05 18:52:10,106 - DEBUG - Requesting: http://10.0.0.254:8082/project/deb56109-808b-4888-9533-6110464626f2
2025-10-05 18:52:10,171 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/cac8e01b-9a03-420d-a93f-ee2741870044
2025-10-05 18:52:10,179 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/cac8e01b-9a03-420d-a93f-ee2741870044
2025-10-05 18:52:10,186 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/ae79edb2-30d7-46d6-88fc-c5b8ba5be52a
2025-10-05 18:52:10,195 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/ae79edb2-30d7-46d6-88fc-c5b8ba5be52a
2025-10-05 18:52:10,201 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/14533630-c36f-4c7d-a607-f59eed9eb050
2025-10-05 18:52:10,207 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-05 18:52:10,207 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/cac8e01b-9a03-420d-a93f-ee2741870044
2025-10-05 18:52:10,214 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/ae79edb2-30d7-46d6-88fc-c5b8ba5be52a
2025-10-05 18:52:10,226 - INFO - Verified VN network id 12 for VN cac8e01b-9a03-420d-a93f-ee2741870044
2025-10-05 18:52:10,226 - INFO - Verifications in API Server for VN ctest-vn-68439197 passed
2025-10-05 18:52:10,227 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/cac8e01b-9a03-420d-a93f-ee2741870044
2025-10-05 18:52:10,235 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/ae79edb2-30d7-46d6-88fc-c5b8ba5be52a
2025-10-05 18:52:10,242 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/ae79edb2-30d7-46d6-88fc-c5b8ba5be52a
2025-10-05 18:52:10,248 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/14533630-c36f-4c7d-a607-f59eed9eb050
2025-10-05 18:52:10,259 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-94497914:ctest-vn-68439197', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-94497914', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '14612175400156217869', 'uuid-lslong': '12195728168313094212'}, 'enable': 'true', 'created': '2025-10-05T18:52:08', 'last-modified': '2025-10-05T18:52:09', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.899192'}
2025-10-05 18:52:10,265 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-05 18:52:10,265 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-68439197 passed
2025-10-05 18:52:10,265 - DEBUG - ====Verifying policy data for ctest-vn-68439197 in API_Server ======
2025-10-05 18:52:10,265 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-10-05 18:52:10,270 - DEBUG - Requesting: http://10.0.0.254:8082/domain/995b2b3b-a114-42d5-a9a0-da3b5cc5c114
2025-10-05 18:52:10,280 - DEBUG - Requesting: http://10.0.0.254:8082/project/deb56109-808b-4888-9533-6110464626f2
2025-10-05 18:52:10,353 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/cac8e01b-9a03-420d-a93f-ee2741870044
2025-10-05 18:52:10,361 - DEBUG - ==>Verifying data for policy with id: d7c166f1-f581-46fc-a3cd-fd6e01fc7707, fqn: ['default-domain', 'ctest-TestBasicPolicy-94497914', 'ctest-policy-allow-all-52998030']
2025-10-05 18:52:10,361 - INFO - VN ctest-vn-68439197 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-05 18:52:10,361 - DEBUG - Verifying the vn in opserver
2025-10-05 18:52:10,361 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-94497914:ctest-vn-68439197 virtual network link through opserver 10.0.0.254
2025-10-05 18:52:10,362 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-10-05 18:52:10,647 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-10-05 18:52:10,692 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-94497914:ctest-vn-68439197', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-94497914:ctest-vn-68439197?flat'}
2025-10-05 18:52:10,693 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-94497914:ctest-vn-68439197 is found in opserver
2025-10-05 18:52:10,700 - DEBUG - Do not have enough data to verify VN in agent
2025-10-05 18:52:10,704 - DEBUG - VRF ids for VN ctest-vn-68439197: {}
2025-10-05 18:52:10,704 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-10-05 18:52:10,708 - DEBUG - Requesting: http://10.0.0.254:8082/domain/995b2b3b-a114-42d5-a9a0-da3b5cc5c114
2025-10-05 18:52:10,717 - DEBUG - Requesting: http://10.0.0.254:8082/project/deb56109-808b-4888-9533-6110464626f2
2025-10-05 18:52:10,782 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/53470f44-049c-4cec-9213-7ace7c560c63
2025-10-05 18:52:10,791 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/53470f44-049c-4cec-9213-7ace7c560c63
2025-10-05 18:52:10,803 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/123cc9cb-d62a-4480-b612-a6f157821bb4
2025-10-05 18:52:10,810 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/123cc9cb-d62a-4480-b612-a6f157821bb4
2025-10-05 18:52:10,815 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/d7fd0503-b755-4563-8b63-5c8dbc8bc2bb
2025-10-05 18:52:10,820 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-05 18:52:10,820 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/53470f44-049c-4cec-9213-7ace7c560c63
2025-10-05 18:52:10,828 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/123cc9cb-d62a-4480-b612-a6f157821bb4
2025-10-05 18:52:10,838 - INFO - Verified VN network id 13 for VN 53470f44-049c-4cec-9213-7ace7c560c63
2025-10-05 18:52:10,838 - INFO - Verifications in API Server for VN ctest-vn-01751164 passed
2025-10-05 18:52:10,839 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/53470f44-049c-4cec-9213-7ace7c560c63
2025-10-05 18:52:10,846 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/123cc9cb-d62a-4480-b612-a6f157821bb4
2025-10-05 18:52:10,852 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/123cc9cb-d62a-4480-b612-a6f157821bb4
2025-10-05 18:52:10,857 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/d7fd0503-b755-4563-8b63-5c8dbc8bc2bb
2025-10-05 18:52:10,866 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-94497914:ctest-vn-01751164', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-94497914', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6000781813304020204', 'uuid-lslong': '10525891781362846819'}, 'enable': 'true', 'created': '2025-10-05T18:52:08', 'last-modified': '2025-10-05T18:52:09', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.294739'}
2025-10-05 18:52:10,871 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-05 18:52:10,871 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-01751164 passed
2025-10-05 18:52:10,871 - DEBUG - ====Verifying policy data for ctest-vn-01751164 in API_Server ======
2025-10-05 18:52:10,871 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-10-05 18:52:10,876 - DEBUG - Requesting: http://10.0.0.254:8082/domain/995b2b3b-a114-42d5-a9a0-da3b5cc5c114
2025-10-05 18:52:10,884 - DEBUG - Requesting: http://10.0.0.254:8082/project/deb56109-808b-4888-9533-6110464626f2
2025-10-05 18:52:10,949 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/53470f44-049c-4cec-9213-7ace7c560c63
2025-10-05 18:52:10,956 - DEBUG - ==>Verifying data for policy with id: d7c166f1-f581-46fc-a3cd-fd6e01fc7707, fqn: ['default-domain', 'ctest-TestBasicPolicy-94497914', 'ctest-policy-allow-all-52998030']
2025-10-05 18:52:10,956 - INFO - VN ctest-vn-01751164 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-05 18:52:10,956 - DEBUG - Verifying the vn in opserver
2025-10-05 18:52:10,956 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-94497914:ctest-vn-01751164 virtual network link through opserver 10.0.0.254
2025-10-05 18:52:10,956 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-10-05 18:52:10,963 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-94497914:ctest-vn-01751164', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-94497914:ctest-vn-01751164?flat'}
2025-10-05 18:52:10,963 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-94497914:ctest-vn-01751164 is found in opserver
2025-10-05 18:52:10,971 - DEBUG - Do not have enough data to verify VN in agent
2025-10-05 18:52:10,974 - DEBUG - VRF ids for VN ctest-vn-01751164: {}
2025-10-05 18:52:11,021 - DEBUG - Services list from nova: [