2025-06-21 13:58:38,403 - INFO - Domain Default found not creating
2025-06-21 13:58:38,582 - INFO - Project ctest-TestBasicPolicy-09288477 not found, creating it
2025-06-21 13:58:39,088 - INFO - Created Project:ctest-TestBasicPolicy-09288477, ID : 327b5f86-64c6-475a-8584-7150bf1f450e
2025-06-21 13:58:40,686 - INFO - ================================================================================
2025-06-21 13:58:40,687 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-06-21 13:58:40,687 - 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-21 13:58:40,957 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with
2025-06-21 13:58:40,957 - INFO - Initial checks done. Running the testcase now
2025-06-21 13:58:40,957 - INFO -
2025-06-21 13:58:41,590 - DEBUG - Response for create_network : {'network': {'id': 'c9f0e104-d3fc-43f1-a30c-ea47a1adf975', 'name': 'ctest-vn-46769761', 'tenant_id': '327b5f8664c6475a85847150bf1f450e', 'project_id': '327b5f8664c6475a85847150bf1f450e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-09288477', 'ctest-vn-46769761'], 'port_security_enabled': True, 'description': ''}}
2025-06-21 13:58:41,796 - DEBUG - Response for create_subnet : {'subnet': {'id': '781d3280-9653-4202-90d5-8be283571e57', 'name': '', 'tenant_id': '327b5f8664c6475a85847150bf1f450e', 'network_id': 'c9f0e104-d3fc-43f1-a30c-ea47a1adf975', 'ip_version': 4, 'cidr': '190.118.154.192/26', 'allocation_pools': [{'start': '190.118.154.194', 'end': '190.118.154.254'}], 'gateway_ip': '190.118.154.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '190.118.154.194', 'tags': [], 'project_id': '327b5f8664c6475a85847150bf1f450e'}}
2025-06-21 13:58:41,818 - INFO - Created VN ctest-vn-46769761
2025-06-21 13:58:41,871 - DEBUG - VN ctest-vn-46769761 UUID is c9f0e104-d3fc-43f1-a30c-ea47a1adf975
2025-06-21 13:58:42,227 - DEBUG - Response for create_network : {'network': {'id': 'fbccc767-f8e6-40e1-beba-553f98ebc77d', 'name': 'ctest-vn-31338802', 'tenant_id': '327b5f8664c6475a85847150bf1f450e', 'project_id': '327b5f8664c6475a85847150bf1f450e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-09288477', 'ctest-vn-31338802'], 'port_security_enabled': True, 'description': ''}}
2025-06-21 13:58:42,428 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b5f69d04-a068-41b8-84dc-2ece2d5cf1e8', 'name': '', 'tenant_id': '327b5f8664c6475a85847150bf1f450e', 'network_id': 'fbccc767-f8e6-40e1-beba-553f98ebc77d', 'ip_version': 4, 'cidr': '77.203.110.128/26', 'allocation_pools': [{'start': '77.203.110.130', 'end': '77.203.110.190'}], 'gateway_ip': '77.203.110.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '77.203.110.130', 'tags': [], 'project_id': '327b5f8664c6475a85847150bf1f450e'}}
2025-06-21 13:58:42,452 - INFO - Created VN ctest-vn-31338802
2025-06-21 13:58:42,511 - DEBUG - VN ctest-vn-31338802 UUID is fbccc767-f8e6-40e1-beba-553f98ebc77d
2025-06-21 13:58:42,667 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-09288477:ctest-vn-46769761, 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-09288477:ctest-vn-31338802, 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-21 13:58:43,058 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'c9f0e104-d3fc-43f1-a30c-ea47a1adf975', 'name': 'ctest-vn-46769761', 'tenant_id': '327b5f8664c6475a85847150bf1f450e', 'project_id': '327b5f8664c6475a85847150bf1f450e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['781d3280-9653-4202-90d5-8be283571e57'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-09288477', 'ctest-vn-46769761'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-09288477', 'ctest-policy-allow-all-76029979']], 'subnet_ipam': [{'subnet_cidr': '190.118.154.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-06-21 13:58:43,323 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'fbccc767-f8e6-40e1-beba-553f98ebc77d', 'name': 'ctest-vn-31338802', 'tenant_id': '327b5f8664c6475a85847150bf1f450e', 'project_id': '327b5f8664c6475a85847150bf1f450e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['b5f69d04-a068-41b8-84dc-2ece2d5cf1e8'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-09288477', 'ctest-vn-31338802'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-09288477', 'ctest-policy-allow-all-76029979']], 'subnet_ipam': [{'subnet_cidr': '77.203.110.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-06-21 13:58:43,499 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-06-21 13:58:43,799 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-06-21 13:58:43,877 - DEBUG - Requesting: http://10.0.0.38:8082/domain/bd95e5d1-f437-44a1-a797-a837542f3fd5
2025-06-21 13:58:43,897 - DEBUG - Requesting: http://10.0.0.38:8082/project/327b5f86-64c6-475a-8584-7150bf1f450e
2025-06-21 13:58:43,981 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/c9f0e104-d3fc-43f1-a30c-ea47a1adf975
2025-06-21 13:58:43,997 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/c9f0e104-d3fc-43f1-a30c-ea47a1adf975
2025-06-21 13:58:44,013 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/44902a97-d420-48fa-a0fe-9401b35bbf79
2025-06-21 13:58:44,023 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/44902a97-d420-48fa-a0fe-9401b35bbf79
2025-06-21 13:58:44,031 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/b93f4a11-1f3c-47a7-bc1b-2cbc86dc1cef
2025-06-21 13:58:44,039 - DEBUG - Route Targets: ['target:64512:8000005']
2025-06-21 13:58:44,040 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/c9f0e104-d3fc-43f1-a30c-ea47a1adf975
2025-06-21 13:58:44,052 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/44902a97-d420-48fa-a0fe-9401b35bbf79
2025-06-21 13:58:44,072 - INFO - Verified VN network id 8 for VN c9f0e104-d3fc-43f1-a30c-ea47a1adf975
2025-06-21 13:58:44,072 - INFO - Verifications in API Server for VN ctest-vn-46769761 passed
2025-06-21 13:58:44,072 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/c9f0e104-d3fc-43f1-a30c-ea47a1adf975
2025-06-21 13:58:44,083 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/44902a97-d420-48fa-a0fe-9401b35bbf79
2025-06-21 13:58:44,093 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/44902a97-d420-48fa-a0fe-9401b35bbf79
2025-06-21 13:58:44,101 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/b93f4a11-1f3c-47a7-bc1b-2cbc86dc1cef
2025-06-21 13:58:44,114 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-09288477:ctest-vn-46769761', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-09288477', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '14551377806886716401', 'uuid-lslong': '11749023121278892405'}, 'enable': 'true', 'created': '2025-06-21T13:58:41', 'last-modified': '2025-06-21T13:58:43', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.091002'}
2025-06-21 13:58:44,121 - DEBUG - Route Targets: ['target:64512:8000005']
2025-06-21 13:58:44,121 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-46769761 passed
2025-06-21 13:58:44,121 - DEBUG - ====Verifying policy data for ctest-vn-46769761 in API_Server ======
2025-06-21 13:58:44,121 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-06-21 13:58:44,128 - DEBUG - Requesting: http://10.0.0.38:8082/domain/bd95e5d1-f437-44a1-a797-a837542f3fd5
2025-06-21 13:58:44,146 - DEBUG - Requesting: http://10.0.0.38:8082/project/327b5f86-64c6-475a-8584-7150bf1f450e
2025-06-21 13:58:44,222 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/c9f0e104-d3fc-43f1-a30c-ea47a1adf975
2025-06-21 13:58:44,234 - DEBUG - ==>Verifying data for policy with id: 54ac5684-f921-4b9d-baab-7ebb8c7c79e0, fqn: ['default-domain', 'ctest-TestBasicPolicy-09288477', 'ctest-policy-allow-all-76029979']
2025-06-21 13:58:44,234 - INFO - VN ctest-vn-46769761 Policy verification: verify_vn_policy_in_api_server, status: True
2025-06-21 13:58:44,234 - DEBUG - Verifying the vn in opserver
2025-06-21 13:58:44,234 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-09288477:ctest-vn-46769761 virtual network link through opserver 10.0.0.38
2025-06-21 13:58:44,235 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-06-21 13:58:44,535 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-06-21 13:58:44,621 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-09288477:ctest-vn-46769761', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-09288477:ctest-vn-46769761?flat'}
2025-06-21 13:58:44,622 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-09288477:ctest-vn-46769761 is found in opserver
2025-06-21 13:58:44,647 - DEBUG - Do not have enough data to verify VN in agent
2025-06-21 13:58:44,653 - DEBUG - VRF ids for VN ctest-vn-46769761: {}
2025-06-21 13:58:44,653 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-06-21 13:58:44,666 - DEBUG - Requesting: http://10.0.0.38:8082/domain/bd95e5d1-f437-44a1-a797-a837542f3fd5
2025-06-21 13:58:44,680 - DEBUG - Requesting: http://10.0.0.38:8082/project/327b5f86-64c6-475a-8584-7150bf1f450e
2025-06-21 13:58:44,773 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/fbccc767-f8e6-40e1-beba-553f98ebc77d
2025-06-21 13:58:44,790 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/fbccc767-f8e6-40e1-beba-553f98ebc77d
2025-06-21 13:58:44,805 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/7c885c4a-11c1-4c4d-993b-0b9cde52b145
2025-06-21 13:58:44,817 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/7c885c4a-11c1-4c4d-993b-0b9cde52b145
2025-06-21 13:58:44,825 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/06275581-9083-4967-b26e-e972538b262c
2025-06-21 13:58:44,833 - DEBUG - Route Targets: ['target:64512:8000006']
2025-06-21 13:58:44,833 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/fbccc767-f8e6-40e1-beba-553f98ebc77d
2025-06-21 13:58:44,845 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/7c885c4a-11c1-4c4d-993b-0b9cde52b145
2025-06-21 13:58:44,865 - INFO - Verified VN network id 9 for VN fbccc767-f8e6-40e1-beba-553f98ebc77d
2025-06-21 13:58:44,865 - INFO - Verifications in API Server for VN ctest-vn-31338802 passed
2025-06-21 13:58:44,865 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/fbccc767-f8e6-40e1-beba-553f98ebc77d
2025-06-21 13:58:44,878 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/7c885c4a-11c1-4c4d-993b-0b9cde52b145
2025-06-21 13:58:44,887 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/7c885c4a-11c1-4c4d-993b-0b9cde52b145
2025-06-21 13:58:44,896 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/06275581-9083-4967-b26e-e972538b262c
2025-06-21 13:58:44,911 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-09288477:ctest-vn-31338802', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-09288477', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '18144096248140284129', 'uuid-lslong': '13743390944511379325'}, 'enable': 'true', 'created': '2025-06-21T13:58:42', 'last-modified': '2025-06-21T13:58:43', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.625533'}
2025-06-21 13:58:44,919 - DEBUG - Route Targets: ['target:64512:8000006']
2025-06-21 13:58:44,919 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-31338802 passed
2025-06-21 13:58:44,919 - DEBUG - ====Verifying policy data for ctest-vn-31338802 in API_Server ======
2025-06-21 13:58:44,919 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-06-21 13:58:44,925 - DEBUG - Requesting: http://10.0.0.38:8082/domain/bd95e5d1-f437-44a1-a797-a837542f3fd5
2025-06-21 13:58:44,939 - DEBUG - Requesting: http://10.0.0.38:8082/project/327b5f86-64c6-475a-8584-7150bf1f450e
2025-06-21 13:58:45,013 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/fbccc767-f8e6-40e1-beba-553f98ebc77d
2025-06-21 13:58:45,025 - DEBUG - ==>Verifying data for policy with id: 54ac5684-f921-4b9d-baab-7ebb8c7c79e0, fqn: ['default-domain', 'ctest-TestBasicPolicy-09288477', 'ctest-policy-allow-all-76029979']
2025-06-21 13:58:45,025 - INFO - VN ctest-vn-31338802 Policy verification: verify_vn_policy_in_api_server, status: True
2025-06-21 13:58:45,025 - DEBUG - Verifying the vn in opserver
2025-06-21 13:58:45,025 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-09288477:ctest-vn-31338802 virtual network link through opserver 10.0.0.38
2025-06-21 13:58:45,025 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-06-21 13:58:45,038 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-09288477:ctest-vn-31338802', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-09288477:ctest-vn-31338802?flat'}
2025-06-21 13:58:45,038 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-09288477:ctest-vn-31338802 is found in opserver
2025-06-21 13:58:45,049 - DEBUG - Do not have enough data to verify VN in agent
2025-06-21 13:58:45,055 - DEBUG - VRF ids for VN ctest-vn-31338802: {}
2025-06-21 13:58:45,126 - DEBUG - Services list from nova: [