2025-02-05 14:19:39,804 - INFO - Domain Default found not creating
2025-02-05 14:19:39,973 - INFO - Project ctest-TestBasicPolicy-50712767 not found, creating it
2025-02-05 14:19:40,463 - INFO - Created Project:ctest-TestBasicPolicy-50712767, ID : 8c0b9168-c44e-400c-9c28-6ccc35ca8eff
2025-02-05 14:19:42,037 - INFO - ================================================================================
2025-02-05 14:19:42,037 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-02-05 14:19:42,037 - 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-02-05 14:19:42,315 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.27': '0'}} with
2025-02-05 14:19:42,315 - INFO - Initial checks done. Running the testcase now
2025-02-05 14:19:42,315 - INFO -
2025-02-05 14:19:42,890 - DEBUG - Response for create_network : {'network': {'id': '57c34f34-d553-4682-b653-85caceda7ca1', 'name': 'ctest-vn-98456304', 'tenant_id': '8c0b9168c44e400c9c286ccc35ca8eff', 'project_id': '8c0b9168c44e400c9c286ccc35ca8eff', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-50712767', 'ctest-vn-98456304'], 'port_security_enabled': True, 'description': ''}}
2025-02-05 14:19:43,074 - DEBUG - Response for create_subnet : {'subnet': {'id': '772917f1-95e6-4b25-822d-078e27825a6b', 'name': '', 'tenant_id': '8c0b9168c44e400c9c286ccc35ca8eff', 'network_id': '57c34f34-d553-4682-b653-85caceda7ca1', 'ip_version': 4, 'cidr': '23.8.84.64/26', 'allocation_pools': [{'start': '23.8.84.66', 'end': '23.8.84.126'}], 'gateway_ip': '23.8.84.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '23.8.84.66', 'tags': [], 'project_id': '8c0b9168c44e400c9c286ccc35ca8eff'}}
2025-02-05 14:19:43,093 - INFO - Created VN ctest-vn-98456304
2025-02-05 14:19:43,145 - DEBUG - VN ctest-vn-98456304 UUID is 57c34f34-d553-4682-b653-85caceda7ca1
2025-02-05 14:19:43,450 - DEBUG - Response for create_network : {'network': {'id': '757f437d-37e6-4630-a330-2939e625a6da', 'name': 'ctest-vn-25497184', 'tenant_id': '8c0b9168c44e400c9c286ccc35ca8eff', 'project_id': '8c0b9168c44e400c9c286ccc35ca8eff', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-50712767', 'ctest-vn-25497184'], 'port_security_enabled': True, 'description': ''}}
2025-02-05 14:19:43,662 - DEBUG - Response for create_subnet : {'subnet': {'id': '791bcff2-5f7e-47dc-9050-63eb5dd3c3de', 'name': '', 'tenant_id': '8c0b9168c44e400c9c286ccc35ca8eff', 'network_id': '757f437d-37e6-4630-a330-2939e625a6da', 'ip_version': 4, 'cidr': '185.193.57.128/26', 'allocation_pools': [{'start': '185.193.57.130', 'end': '185.193.57.190'}], 'gateway_ip': '185.193.57.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '185.193.57.130', 'tags': [], 'project_id': '8c0b9168c44e400c9c286ccc35ca8eff'}}
2025-02-05 14:19:43,684 - INFO - Created VN ctest-vn-25497184
2025-02-05 14:19:43,741 - DEBUG - VN ctest-vn-25497184 UUID is 757f437d-37e6-4630-a330-2939e625a6da
2025-02-05 14:19:43,878 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-50712767:ctest-vn-98456304, 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-50712767:ctest-vn-25497184, 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-02-05 14:19:44,204 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '57c34f34-d553-4682-b653-85caceda7ca1', 'name': 'ctest-vn-98456304', 'tenant_id': '8c0b9168c44e400c9c286ccc35ca8eff', 'project_id': '8c0b9168c44e400c9c286ccc35ca8eff', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['772917f1-95e6-4b25-822d-078e27825a6b'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-50712767', 'ctest-vn-98456304'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-50712767', 'ctest-policy-allow-all-93643711']], 'subnet_ipam': [{'subnet_cidr': '23.8.84.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-02-05 14:19:44,459 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '757f437d-37e6-4630-a330-2939e625a6da', 'name': 'ctest-vn-25497184', 'tenant_id': '8c0b9168c44e400c9c286ccc35ca8eff', 'project_id': '8c0b9168c44e400c9c286ccc35ca8eff', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['791bcff2-5f7e-47dc-9050-63eb5dd3c3de'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-50712767', 'ctest-vn-25497184'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-50712767', 'ctest-policy-allow-all-93643711']], 'subnet_ipam': [{'subnet_cidr': '185.193.57.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-02-05 14:19:44,641 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-02-05 14:19:44,947 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-02-05 14:19:44,982 - DEBUG - Requesting: http://10.0.0.38:8082/domain/e48a5b24-dda3-455b-bcbc-75c157be154e
2025-02-05 14:19:44,998 - DEBUG - Requesting: http://10.0.0.38:8082/project/8c0b9168-c44e-400c-9c28-6ccc35ca8eff
2025-02-05 14:19:45,077 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/57c34f34-d553-4682-b653-85caceda7ca1
2025-02-05 14:19:45,092 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/57c34f34-d553-4682-b653-85caceda7ca1
2025-02-05 14:19:45,105 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/3808883b-df67-4ee8-96f5-fa3ed1b4e434
2025-02-05 14:19:45,115 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/3808883b-df67-4ee8-96f5-fa3ed1b4e434
2025-02-05 14:19:45,123 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/db456349-ce7f-4cef-bd99-435899d0e7ef
2025-02-05 14:19:45,132 - DEBUG - Route Targets: ['target:64512:8000004']
2025-02-05 14:19:45,132 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/57c34f34-d553-4682-b653-85caceda7ca1
2025-02-05 14:19:45,143 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/3808883b-df67-4ee8-96f5-fa3ed1b4e434
2025-02-05 14:19:45,159 - INFO - Verified VN network id 9 for VN 57c34f34-d553-4682-b653-85caceda7ca1
2025-02-05 14:19:45,159 - INFO - Verifications in API Server for VN ctest-vn-98456304 passed
2025-02-05 14:19:45,159 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/57c34f34-d553-4682-b653-85caceda7ca1
2025-02-05 14:19:45,169 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/3808883b-df67-4ee8-96f5-fa3ed1b4e434
2025-02-05 14:19:45,177 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/3808883b-df67-4ee8-96f5-fa3ed1b4e434
2025-02-05 14:19:45,185 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/db456349-ce7f-4cef-bd99-435899d0e7ef
2025-02-05 14:19:45,199 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-50712767:ctest-vn-98456304', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-50712767', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6323985390094206594', 'uuid-lslong': '13137991644070182049'}, 'enable': 'true', 'created': '2025-02-05T14:19:42', 'last-modified': '2025-02-05T14:19:44', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.015546'}
2025-02-05 14:19:45,206 - DEBUG - Route Targets: ['target:64512:8000004']
2025-02-05 14:19:45,206 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-98456304 passed
2025-02-05 14:19:45,206 - DEBUG - ====Verifying policy data for ctest-vn-98456304 in API_Server ======
2025-02-05 14:19:45,206 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-02-05 14:19:45,214 - DEBUG - Requesting: http://10.0.0.38:8082/domain/e48a5b24-dda3-455b-bcbc-75c157be154e
2025-02-05 14:19:45,229 - DEBUG - Requesting: http://10.0.0.38:8082/project/8c0b9168-c44e-400c-9c28-6ccc35ca8eff
2025-02-05 14:19:45,301 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/57c34f34-d553-4682-b653-85caceda7ca1
2025-02-05 14:19:45,313 - DEBUG - ==>Verifying data for policy with id: bca84bc5-be8c-44e9-8a3c-45af6a59eada, fqn: ['default-domain', 'ctest-TestBasicPolicy-50712767', 'ctest-policy-allow-all-93643711']
2025-02-05 14:19:45,313 - INFO - VN ctest-vn-98456304 Policy verification: verify_vn_policy_in_api_server, status: True
2025-02-05 14:19:45,313 - DEBUG - Verifying the vn in opserver
2025-02-05 14:19:45,313 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-50712767:ctest-vn-98456304 virtual network link through opserver 10.0.0.38
2025-02-05 14:19:45,314 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-02-05 14:19:45,618 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-02-05 14:19:45,686 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-50712767:ctest-vn-98456304', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-50712767:ctest-vn-98456304?flat'}
2025-02-05 14:19:45,686 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-50712767:ctest-vn-98456304 is found in opserver
2025-02-05 14:19:45,699 - DEBUG - Do not have enough data to verify VN in agent
2025-02-05 14:19:45,706 - DEBUG - VRF ids for VN ctest-vn-98456304: {}
2025-02-05 14:19:45,706 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-02-05 14:19:45,713 - DEBUG - Requesting: http://10.0.0.38:8082/domain/e48a5b24-dda3-455b-bcbc-75c157be154e
2025-02-05 14:19:45,725 - DEBUG - Requesting: http://10.0.0.38:8082/project/8c0b9168-c44e-400c-9c28-6ccc35ca8eff
2025-02-05 14:19:45,799 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/757f437d-37e6-4630-a330-2939e625a6da
2025-02-05 14:19:45,814 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/757f437d-37e6-4630-a330-2939e625a6da
2025-02-05 14:19:45,825 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/375e0af7-3e85-4c20-90c2-e244decb04b0
2025-02-05 14:19:45,834 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/375e0af7-3e85-4c20-90c2-e244decb04b0
2025-02-05 14:19:45,845 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/3259a82f-3c73-4cad-b027-8d1d2b0549a1
2025-02-05 14:19:45,853 - DEBUG - Route Targets: ['target:64512:8000005']
2025-02-05 14:19:45,853 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/757f437d-37e6-4630-a330-2939e625a6da
2025-02-05 14:19:45,866 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/375e0af7-3e85-4c20-90c2-e244decb04b0
2025-02-05 14:19:45,885 - INFO - Verified VN network id 10 for VN 757f437d-37e6-4630-a330-2939e625a6da
2025-02-05 14:19:45,885 - INFO - Verifications in API Server for VN ctest-vn-25497184 passed
2025-02-05 14:19:45,885 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/757f437d-37e6-4630-a330-2939e625a6da
2025-02-05 14:19:45,897 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/375e0af7-3e85-4c20-90c2-e244decb04b0
2025-02-05 14:19:45,907 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/375e0af7-3e85-4c20-90c2-e244decb04b0
2025-02-05 14:19:45,917 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/3259a82f-3c73-4cad-b027-8d1d2b0549a1
2025-02-05 14:19:45,933 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-50712767:ctest-vn-25497184', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-50712767', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8466560029567632944', 'uuid-lslong': '11758943955715466970'}, 'enable': 'true', 'created': '2025-02-05T14:19:43', 'last-modified': '2025-02-05T14:19:44', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.500273'}
2025-02-05 14:19:45,939 - DEBUG - Route Targets: ['target:64512:8000005']
2025-02-05 14:19:45,939 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-25497184 passed
2025-02-05 14:19:45,940 - DEBUG - ====Verifying policy data for ctest-vn-25497184 in API_Server ======
2025-02-05 14:19:45,940 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-02-05 14:19:45,946 - DEBUG - Requesting: http://10.0.0.38:8082/domain/e48a5b24-dda3-455b-bcbc-75c157be154e
2025-02-05 14:19:45,959 - DEBUG - Requesting: http://10.0.0.38:8082/project/8c0b9168-c44e-400c-9c28-6ccc35ca8eff
2025-02-05 14:19:46,034 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/757f437d-37e6-4630-a330-2939e625a6da
2025-02-05 14:19:46,048 - DEBUG - ==>Verifying data for policy with id: bca84bc5-be8c-44e9-8a3c-45af6a59eada, fqn: ['default-domain', 'ctest-TestBasicPolicy-50712767', 'ctest-policy-allow-all-93643711']
2025-02-05 14:19:46,048 - INFO - VN ctest-vn-25497184 Policy verification: verify_vn_policy_in_api_server, status: True
2025-02-05 14:19:46,048 - DEBUG - Verifying the vn in opserver
2025-02-05 14:19:46,048 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-50712767:ctest-vn-25497184 virtual network link through opserver 10.0.0.38
2025-02-05 14:19:46,048 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-02-05 14:19:46,061 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-50712767:ctest-vn-25497184', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-50712767:ctest-vn-25497184?flat'}
2025-02-05 14:19:46,062 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-50712767:ctest-vn-25497184 is found in opserver
2025-02-05 14:19:46,073 - DEBUG - Do not have enough data to verify VN in agent
2025-02-05 14:19:46,078 - DEBUG - VRF ids for VN ctest-vn-25497184: {}
2025-02-05 14:19:46,139 - DEBUG - Services list from nova: [