2025-06-19 08:08:26,508 - INFO - Domain Default found not creating
2025-06-19 08:08:26,644 - INFO - Project ctest-TestBasicPolicy-60449486 not found, creating it
2025-06-19 08:08:27,114 - INFO - Created Project:ctest-TestBasicPolicy-60449486, ID : 4d6e3dd6-b9fc-4268-b2ed-5a33b411e187
2025-06-19 08:08:28,700 - INFO - ================================================================================
2025-06-19 08:08:28,700 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-06-19 08:08:28,700 - 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-06-19 08:08:28,964 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.254': '0'}} with
2025-06-19 08:08:28,964 - INFO - Initial checks done. Running the testcase now
2025-06-19 08:08:28,964 - INFO -
2025-06-19 08:08:29,565 - DEBUG - Response for create_network : {'network': {'id': '64418a17-7d35-4430-ad71-5bd157c0442d', 'name': 'ctest-vn-08525513', 'tenant_id': '4d6e3dd6b9fc4268b2ed5a33b411e187', 'project_id': '4d6e3dd6b9fc4268b2ed5a33b411e187', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-60449486', 'ctest-vn-08525513'], 'port_security_enabled': True, 'description': ''}}
2025-06-19 08:08:29,740 - DEBUG - Response for create_subnet : {'subnet': {'id': '1bda32df-252d-4a7b-b776-a11183dd5346', 'name': '', 'tenant_id': '4d6e3dd6b9fc4268b2ed5a33b411e187', 'network_id': '64418a17-7d35-4430-ad71-5bd157c0442d', 'ip_version': 4, 'cidr': '197.55.251.64/26', 'allocation_pools': [{'start': '197.55.251.66', 'end': '197.55.251.126'}], 'gateway_ip': '197.55.251.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '197.55.251.66', 'tags': [], 'project_id': '4d6e3dd6b9fc4268b2ed5a33b411e187'}}
2025-06-19 08:08:29,762 - INFO - Created VN ctest-vn-08525513
2025-06-19 08:08:29,818 - DEBUG - VN ctest-vn-08525513 UUID is 64418a17-7d35-4430-ad71-5bd157c0442d
2025-06-19 08:08:30,165 - DEBUG - Response for create_network : {'network': {'id': '67e1e074-6752-4adc-b2f1-96d89792eed4', 'name': 'ctest-vn-85501307', 'tenant_id': '4d6e3dd6b9fc4268b2ed5a33b411e187', 'project_id': '4d6e3dd6b9fc4268b2ed5a33b411e187', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-60449486', 'ctest-vn-85501307'], 'port_security_enabled': True, 'description': ''}}
2025-06-19 08:08:30,371 - DEBUG - Response for create_subnet : {'subnet': {'id': '3a453f89-641b-43ce-a552-995b425311bb', 'name': '', 'tenant_id': '4d6e3dd6b9fc4268b2ed5a33b411e187', 'network_id': '67e1e074-6752-4adc-b2f1-96d89792eed4', 'ip_version': 4, 'cidr': '120.16.222.64/26', 'allocation_pools': [{'start': '120.16.222.66', 'end': '120.16.222.126'}], 'gateway_ip': '120.16.222.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '120.16.222.66', 'tags': [], 'project_id': '4d6e3dd6b9fc4268b2ed5a33b411e187'}}
2025-06-19 08:08:30,391 - INFO - Created VN ctest-vn-85501307
2025-06-19 08:08:30,446 - DEBUG - VN ctest-vn-85501307 UUID is 67e1e074-6752-4adc-b2f1-96d89792eed4
2025-06-19 08:08:30,568 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-60449486:ctest-vn-08525513, 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-60449486:ctest-vn-85501307, 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-06-19 08:08:30,873 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '64418a17-7d35-4430-ad71-5bd157c0442d', 'name': 'ctest-vn-08525513', 'tenant_id': '4d6e3dd6b9fc4268b2ed5a33b411e187', 'project_id': '4d6e3dd6b9fc4268b2ed5a33b411e187', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['1bda32df-252d-4a7b-b776-a11183dd5346'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-60449486', 'ctest-vn-08525513'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-60449486', 'ctest-policy-allow-all-54697152']], 'subnet_ipam': [{'subnet_cidr': '197.55.251.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-06-19 08:08:31,192 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '67e1e074-6752-4adc-b2f1-96d89792eed4', 'name': 'ctest-vn-85501307', 'tenant_id': '4d6e3dd6b9fc4268b2ed5a33b411e187', 'project_id': '4d6e3dd6b9fc4268b2ed5a33b411e187', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['3a453f89-641b-43ce-a552-995b425311bb'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-60449486', 'ctest-vn-85501307'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-60449486', 'ctest-policy-allow-all-54697152']], 'subnet_ipam': [{'subnet_cidr': '120.16.222.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-06-19 08:08:31,342 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-06-19 08:08:31,689 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-06-19 08:08:31,720 - DEBUG - Requesting: http://10.0.0.254:8082/domain/ac2177e2-85cb-448b-aa83-8e377ff2e421
2025-06-19 08:08:31,737 - DEBUG - Requesting: http://10.0.0.254:8082/project/4d6e3dd6-b9fc-4268-b2ed-5a33b411e187
2025-06-19 08:08:31,818 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/64418a17-7d35-4430-ad71-5bd157c0442d
2025-06-19 08:08:31,831 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/64418a17-7d35-4430-ad71-5bd157c0442d
2025-06-19 08:08:31,843 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/36415e67-c79c-474d-bcd0-7e9b5b64a547
2025-06-19 08:08:31,852 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/36415e67-c79c-474d-bcd0-7e9b5b64a547
2025-06-19 08:08:31,860 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/fc556beb-11c1-4119-9858-61a87e9b8a61
2025-06-19 08:08:31,868 - DEBUG - Route Targets: ['target:64512:8000005']
2025-06-19 08:08:31,868 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/64418a17-7d35-4430-ad71-5bd157c0442d
2025-06-19 08:08:31,879 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/36415e67-c79c-474d-bcd0-7e9b5b64a547
2025-06-19 08:08:31,897 - INFO - Verified VN network id 8 for VN 64418a17-7d35-4430-ad71-5bd157c0442d
2025-06-19 08:08:31,897 - INFO - Verifications in API Server for VN ctest-vn-08525513 passed
2025-06-19 08:08:31,897 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/64418a17-7d35-4430-ad71-5bd157c0442d
2025-06-19 08:08:31,910 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/36415e67-c79c-474d-bcd0-7e9b5b64a547
2025-06-19 08:08:31,919 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/36415e67-c79c-474d-bcd0-7e9b5b64a547
2025-06-19 08:08:31,927 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/fc556beb-11c1-4119-9858-61a87e9b8a61
2025-06-19 08:08:31,942 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-60449486:ctest-vn-08525513', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-60449486', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7224207110768510000', 'uuid-lslong': '12497871395608347693'}, 'enable': 'true', 'created': '2025-06-19T08:08:29', 'last-modified': '2025-06-19T08:08:30', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.092853'}
2025-06-19 08:08:31,951 - DEBUG - Route Targets: ['target:64512:8000005']
2025-06-19 08:08:31,951 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-08525513 passed
2025-06-19 08:08:31,951 - DEBUG - ====Verifying policy data for ctest-vn-08525513 in API_Server ======
2025-06-19 08:08:31,951 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-06-19 08:08:31,963 - DEBUG - Requesting: http://10.0.0.254:8082/domain/ac2177e2-85cb-448b-aa83-8e377ff2e421
2025-06-19 08:08:31,979 - DEBUG - Requesting: http://10.0.0.254:8082/project/4d6e3dd6-b9fc-4268-b2ed-5a33b411e187
2025-06-19 08:08:32,057 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/64418a17-7d35-4430-ad71-5bd157c0442d
2025-06-19 08:08:32,071 - DEBUG - ==>Verifying data for policy with id: 77468cb1-e198-4e64-a41e-760fbe7e9379, fqn: ['default-domain', 'ctest-TestBasicPolicy-60449486', 'ctest-policy-allow-all-54697152']
2025-06-19 08:08:32,071 - INFO - VN ctest-vn-08525513 Policy verification: verify_vn_policy_in_api_server, status: True
2025-06-19 08:08:32,071 - DEBUG - Verifying the vn in opserver
2025-06-19 08:08:32,071 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-60449486:ctest-vn-08525513 virtual network link through opserver 10.0.0.254
2025-06-19 08:08:32,071 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-06-19 08:08:32,405 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-06-19 08:08:32,475 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-60449486:ctest-vn-08525513', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-60449486:ctest-vn-08525513?flat'}
2025-06-19 08:08:32,475 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-60449486:ctest-vn-08525513 is found in opserver
2025-06-19 08:08:32,490 - DEBUG - Do not have enough data to verify VN in agent
2025-06-19 08:08:32,498 - DEBUG - VRF ids for VN ctest-vn-08525513: {}
2025-06-19 08:08:32,498 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-06-19 08:08:32,505 - DEBUG - Requesting: http://10.0.0.254:8082/domain/ac2177e2-85cb-448b-aa83-8e377ff2e421
2025-06-19 08:08:32,520 - DEBUG - Requesting: http://10.0.0.254:8082/project/4d6e3dd6-b9fc-4268-b2ed-5a33b411e187
2025-06-19 08:08:32,597 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/67e1e074-6752-4adc-b2f1-96d89792eed4
2025-06-19 08:08:32,613 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/67e1e074-6752-4adc-b2f1-96d89792eed4
2025-06-19 08:08:32,623 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/163dce3d-ee23-47d9-8382-b19358665c07
2025-06-19 08:08:32,631 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/163dce3d-ee23-47d9-8382-b19358665c07
2025-06-19 08:08:32,637 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/b2770683-151b-491b-a195-531016b6f69a
2025-06-19 08:08:32,644 - DEBUG - Route Targets: ['target:64512:8000006']
2025-06-19 08:08:32,644 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/67e1e074-6752-4adc-b2f1-96d89792eed4
2025-06-19 08:08:32,654 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/163dce3d-ee23-47d9-8382-b19358665c07
2025-06-19 08:08:32,668 - INFO - Verified VN network id 9 for VN 67e1e074-6752-4adc-b2f1-96d89792eed4
2025-06-19 08:08:32,668 - INFO - Verifications in API Server for VN ctest-vn-85501307 passed
2025-06-19 08:08:32,668 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/67e1e074-6752-4adc-b2f1-96d89792eed4
2025-06-19 08:08:32,679 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/163dce3d-ee23-47d9-8382-b19358665c07
2025-06-19 08:08:32,687 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/163dce3d-ee23-47d9-8382-b19358665c07
2025-06-19 08:08:32,695 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/b2770683-151b-491b-a195-531016b6f69a
2025-06-19 08:08:32,710 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-60449486:ctest-vn-85501307', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-60449486', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7485510846220749532', 'uuid-lslong': '12894253065138532052'}, 'enable': 'true', 'created': '2025-06-19T08:08:30', 'last-modified': '2025-06-19T08:08:31', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.598859'}
2025-06-19 08:08:32,717 - DEBUG - Route Targets: ['target:64512:8000006']
2025-06-19 08:08:32,717 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-85501307 passed
2025-06-19 08:08:32,717 - DEBUG - ====Verifying policy data for ctest-vn-85501307 in API_Server ======
2025-06-19 08:08:32,717 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-06-19 08:08:32,724 - DEBUG - Requesting: http://10.0.0.254:8082/domain/ac2177e2-85cb-448b-aa83-8e377ff2e421
2025-06-19 08:08:32,737 - DEBUG - Requesting: http://10.0.0.254:8082/project/4d6e3dd6-b9fc-4268-b2ed-5a33b411e187
2025-06-19 08:08:32,812 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/67e1e074-6752-4adc-b2f1-96d89792eed4
2025-06-19 08:08:32,823 - DEBUG - ==>Verifying data for policy with id: 77468cb1-e198-4e64-a41e-760fbe7e9379, fqn: ['default-domain', 'ctest-TestBasicPolicy-60449486', 'ctest-policy-allow-all-54697152']
2025-06-19 08:08:32,823 - INFO - VN ctest-vn-85501307 Policy verification: verify_vn_policy_in_api_server, status: True
2025-06-19 08:08:32,823 - DEBUG - Verifying the vn in opserver
2025-06-19 08:08:32,823 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-60449486:ctest-vn-85501307 virtual network link through opserver 10.0.0.254
2025-06-19 08:08:32,823 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-06-19 08:08:32,834 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-60449486:ctest-vn-85501307', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-60449486:ctest-vn-85501307?flat'}
2025-06-19 08:08:32,835 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-60449486:ctest-vn-85501307 is found in opserver
2025-06-19 08:08:32,847 - DEBUG - Do not have enough data to verify VN in agent
2025-06-19 08:08:32,852 - DEBUG - VRF ids for VN ctest-vn-85501307: {}
2025-06-19 08:08:32,916 - DEBUG - Services list from nova: [