2025-09-15 02:10:04,087 - INFO - Domain Default found not creating
2025-09-15 02:10:04,224 - INFO - Project ctest-TestBasicPolicy-95934497 not found, creating it
2025-09-15 02:10:04,729 - INFO - Created Project:ctest-TestBasicPolicy-95934497, ID : 987c3a01-598a-40c2-9c09-f4e3ed5a2423
2025-09-15 02:10:06,187 - INFO - ================================================================================
2025-09-15 02:10:06,187 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-09-15 02:10:06,187 - 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-09-15 02:10:06,448 - DEBUG - Nothing to compare xmpp stats {'10.0.0.141': {'10.20.0.249': '0'}} with
2025-09-15 02:10:06,448 - INFO - Initial checks done. Running the testcase now
2025-09-15 02:10:06,448 - INFO -
2025-09-15 02:10:06,982 - DEBUG - Response for create_network : {'network': {'id': 'e83d3f62-4857-4f92-942d-a45188984931', 'name': 'ctest-vn-20126557', 'tenant_id': '987c3a01598a40c29c09f4e3ed5a2423', 'project_id': '987c3a01598a40c29c09f4e3ed5a2423', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-95934497', 'ctest-vn-20126557'], 'port_security_enabled': True, 'description': ''}}
2025-09-15 02:10:07,178 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b031142d-c623-4dd4-910c-e532fcd441cc', 'name': '', 'tenant_id': '987c3a01598a40c29c09f4e3ed5a2423', 'network_id': 'e83d3f62-4857-4f92-942d-a45188984931', 'ip_version': 4, 'cidr': '213.47.238.0/26', 'allocation_pools': [{'start': '213.47.238.2', 'end': '213.47.238.62'}], 'gateway_ip': '213.47.238.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '213.47.238.2', 'tags': [], 'project_id': '987c3a01598a40c29c09f4e3ed5a2423'}}
2025-09-15 02:10:07,197 - INFO - Created VN ctest-vn-20126557
2025-09-15 02:10:07,249 - DEBUG - VN ctest-vn-20126557 UUID is e83d3f62-4857-4f92-942d-a45188984931
2025-09-15 02:10:07,583 - DEBUG - Response for create_network : {'network': {'id': '46434280-e987-4401-94af-96cdf3a5c162', 'name': 'ctest-vn-15809161', 'tenant_id': '987c3a01598a40c29c09f4e3ed5a2423', 'project_id': '987c3a01598a40c29c09f4e3ed5a2423', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-95934497', 'ctest-vn-15809161'], 'port_security_enabled': True, 'description': ''}}
2025-09-15 02:10:07,794 - DEBUG - Response for create_subnet : {'subnet': {'id': '66d7da57-91e7-4d41-adf9-cb08849cc664', 'name': '', 'tenant_id': '987c3a01598a40c29c09f4e3ed5a2423', 'network_id': '46434280-e987-4401-94af-96cdf3a5c162', 'ip_version': 4, 'cidr': '82.48.145.64/26', 'allocation_pools': [{'start': '82.48.145.66', 'end': '82.48.145.126'}], 'gateway_ip': '82.48.145.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '82.48.145.66', 'tags': [], 'project_id': '987c3a01598a40c29c09f4e3ed5a2423'}}
2025-09-15 02:10:07,813 - INFO - Created VN ctest-vn-15809161
2025-09-15 02:10:07,865 - DEBUG - VN ctest-vn-15809161 UUID is 46434280-e987-4401-94af-96cdf3a5c162
2025-09-15 02:10:08,013 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-95934497:ctest-vn-20126557, 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-95934497:ctest-vn-15809161, 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-09-15 02:10:08,301 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'e83d3f62-4857-4f92-942d-a45188984931', 'name': 'ctest-vn-20126557', 'tenant_id': '987c3a01598a40c29c09f4e3ed5a2423', 'project_id': '987c3a01598a40c29c09f4e3ed5a2423', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['b031142d-c623-4dd4-910c-e532fcd441cc'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-95934497', 'ctest-vn-20126557'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-95934497', 'ctest-policy-allow-all-65885527']], 'subnet_ipam': [{'subnet_cidr': '213.47.238.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-09-15 02:10:08,567 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '46434280-e987-4401-94af-96cdf3a5c162', 'name': 'ctest-vn-15809161', 'tenant_id': '987c3a01598a40c29c09f4e3ed5a2423', 'project_id': '987c3a01598a40c29c09f4e3ed5a2423', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['66d7da57-91e7-4d41-adf9-cb08849cc664'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-95934497', 'ctest-vn-15809161'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-95934497', 'ctest-policy-allow-all-65885527']], 'subnet_ipam': [{'subnet_cidr': '82.48.145.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-09-15 02:10:08,717 - DEBUG - Requesting: http://10.0.0.141:8082/domains
2025-09-15 02:10:09,009 - DEBUG - Requesting: http://10.0.0.141:8082/domains
2025-09-15 02:10:09,034 - DEBUG - Requesting: http://10.0.0.141:8082/domain/378cc995-6219-495f-a260-3d3cddf6d01c
2025-09-15 02:10:09,045 - DEBUG - Requesting: http://10.0.0.141:8082/project/987c3a01-598a-40c2-9c09-f4e3ed5a2423
2025-09-15 02:10:09,113 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/e83d3f62-4857-4f92-942d-a45188984931
2025-09-15 02:10:09,124 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/e83d3f62-4857-4f92-942d-a45188984931
2025-09-15 02:10:09,132 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/864e3166-3bec-427c-a737-d14d5c37e8be
2025-09-15 02:10:09,139 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/864e3166-3bec-427c-a737-d14d5c37e8be
2025-09-15 02:10:09,145 - DEBUG - Requesting: http://10.0.0.141:8082/route-target/a28537cb-e6a6-472d-8b64-c1634f13b13d
2025-09-15 02:10:09,151 - DEBUG - Route Targets: ['target:64512:8000004']
2025-09-15 02:10:09,151 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/e83d3f62-4857-4f92-942d-a45188984931
2025-09-15 02:10:09,158 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/864e3166-3bec-427c-a737-d14d5c37e8be
2025-09-15 02:10:09,171 - INFO - Verified VN network id 11 for VN e83d3f62-4857-4f92-942d-a45188984931
2025-09-15 02:10:09,171 - INFO - Verifications in API Server for VN ctest-vn-20126557 passed
2025-09-15 02:10:09,171 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/e83d3f62-4857-4f92-942d-a45188984931
2025-09-15 02:10:09,179 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/864e3166-3bec-427c-a737-d14d5c37e8be
2025-09-15 02:10:09,185 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/864e3166-3bec-427c-a737-d14d5c37e8be
2025-09-15 02:10:09,193 - DEBUG - Requesting: http://10.0.0.141:8082/route-target/a28537cb-e6a6-472d-8b64-c1634f13b13d
2025-09-15 02:10:09,203 - DEBUG - Control-node 10.0.0.141 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-95934497:ctest-vn-20126557', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-95934497', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16734601481731657618', 'uuid-lslong': '10677370961656301873'}, 'enable': 'true', 'created': '2025-09-15T02:10:06', 'last-modified': '2025-09-15T02:10:08', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.923091'}
2025-09-15 02:10:09,210 - DEBUG - Route Targets: ['target:64512:8000004']
2025-09-15 02:10:09,211 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-20126557 passed
2025-09-15 02:10:09,211 - DEBUG - ====Verifying policy data for ctest-vn-20126557 in API_Server ======
2025-09-15 02:10:09,211 - DEBUG - Requesting: http://10.0.0.141:8082/domains
2025-09-15 02:10:09,216 - DEBUG - Requesting: http://10.0.0.141:8082/domain/378cc995-6219-495f-a260-3d3cddf6d01c
2025-09-15 02:10:09,225 - DEBUG - Requesting: http://10.0.0.141:8082/project/987c3a01-598a-40c2-9c09-f4e3ed5a2423
2025-09-15 02:10:09,292 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/e83d3f62-4857-4f92-942d-a45188984931
2025-09-15 02:10:09,300 - DEBUG - ==>Verifying data for policy with id: f5202fa4-5adf-4eaf-9d3a-f00cea60d877, fqn: ['default-domain', 'ctest-TestBasicPolicy-95934497', 'ctest-policy-allow-all-65885527']
2025-09-15 02:10:09,300 - INFO - VN ctest-vn-20126557 Policy verification: verify_vn_policy_in_api_server, status: True
2025-09-15 02:10:09,300 - DEBUG - Verifying the vn in opserver
2025-09-15 02:10:09,300 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-95934497:ctest-vn-20126557 virtual network link through opserver 10.0.0.141
2025-09-15 02:10:09,300 - DEBUG - Requesting: http://10.0.0.141:8081/analytics/uves/virtual-networks
2025-09-15 02:10:09,590 - DEBUG - Requesting: http://10.0.0.141:8081/analytics/uves/virtual-networks
2025-09-15 02:10:09,639 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-95934497:ctest-vn-20126557', 'href': 'http://10.0.0.141:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-95934497:ctest-vn-20126557?flat'}
2025-09-15 02:10:09,639 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-95934497:ctest-vn-20126557 is found in opserver
2025-09-15 02:10:09,647 - DEBUG - Do not have enough data to verify VN in agent
2025-09-15 02:10:09,651 - DEBUG - VRF ids for VN ctest-vn-20126557: {}
2025-09-15 02:10:09,652 - DEBUG - Requesting: http://10.0.0.141:8082/domains
2025-09-15 02:10:09,656 - DEBUG - Requesting: http://10.0.0.141:8082/domain/378cc995-6219-495f-a260-3d3cddf6d01c
2025-09-15 02:10:09,666 - DEBUG - Requesting: http://10.0.0.141:8082/project/987c3a01-598a-40c2-9c09-f4e3ed5a2423
2025-09-15 02:10:09,733 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/46434280-e987-4401-94af-96cdf3a5c162
2025-09-15 02:10:09,743 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/46434280-e987-4401-94af-96cdf3a5c162
2025-09-15 02:10:09,751 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/d582764d-8857-4ff5-8b1c-9056fc198d59
2025-09-15 02:10:09,757 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/d582764d-8857-4ff5-8b1c-9056fc198d59
2025-09-15 02:10:09,763 - DEBUG - Requesting: http://10.0.0.141:8082/route-target/c18cdcdb-ca27-4059-b531-a6554754fe6a
2025-09-15 02:10:09,769 - DEBUG - Route Targets: ['target:64512:8000005']
2025-09-15 02:10:09,769 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/46434280-e987-4401-94af-96cdf3a5c162
2025-09-15 02:10:09,777 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/d582764d-8857-4ff5-8b1c-9056fc198d59
2025-09-15 02:10:09,789 - INFO - Verified VN network id 12 for VN 46434280-e987-4401-94af-96cdf3a5c162
2025-09-15 02:10:09,789 - INFO - Verifications in API Server for VN ctest-vn-15809161 passed
2025-09-15 02:10:09,789 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/46434280-e987-4401-94af-96cdf3a5c162
2025-09-15 02:10:09,797 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/d582764d-8857-4ff5-8b1c-9056fc198d59
2025-09-15 02:10:09,803 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/d582764d-8857-4ff5-8b1c-9056fc198d59
2025-09-15 02:10:09,808 - DEBUG - Requesting: http://10.0.0.141:8082/route-target/c18cdcdb-ca27-4059-b531-a6554754fe6a
2025-09-15 02:10:09,818 - DEBUG - Control-node 10.0.0.141 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-95934497:ctest-vn-15809161', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-95934497', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5062963527535772673', 'uuid-lslong': '10713947849837887842'}, 'enable': 'true', 'created': '2025-09-15T02:10:07', 'last-modified': '2025-09-15T02:10:08', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.312362'}
2025-09-15 02:10:09,823 - DEBUG - Route Targets: ['target:64512:8000005']
2025-09-15 02:10:09,823 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-15809161 passed
2025-09-15 02:10:09,823 - DEBUG - ====Verifying policy data for ctest-vn-15809161 in API_Server ======
2025-09-15 02:10:09,823 - DEBUG - Requesting: http://10.0.0.141:8082/domains
2025-09-15 02:10:09,828 - DEBUG - Requesting: http://10.0.0.141:8082/domain/378cc995-6219-495f-a260-3d3cddf6d01c
2025-09-15 02:10:09,836 - DEBUG - Requesting: http://10.0.0.141:8082/project/987c3a01-598a-40c2-9c09-f4e3ed5a2423
2025-09-15 02:10:09,904 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/46434280-e987-4401-94af-96cdf3a5c162
2025-09-15 02:10:09,913 - DEBUG - ==>Verifying data for policy with id: f5202fa4-5adf-4eaf-9d3a-f00cea60d877, fqn: ['default-domain', 'ctest-TestBasicPolicy-95934497', 'ctest-policy-allow-all-65885527']
2025-09-15 02:10:09,913 - INFO - VN ctest-vn-15809161 Policy verification: verify_vn_policy_in_api_server, status: True
2025-09-15 02:10:09,913 - DEBUG - Verifying the vn in opserver
2025-09-15 02:10:09,913 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-95934497:ctest-vn-15809161 virtual network link through opserver 10.0.0.141
2025-09-15 02:10:09,913 - DEBUG - Requesting: http://10.0.0.141:8081/analytics/uves/virtual-networks
2025-09-15 02:10:09,921 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-95934497:ctest-vn-15809161', 'href': 'http://10.0.0.141:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-95934497:ctest-vn-15809161?flat'}
2025-09-15 02:10:09,921 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-95934497:ctest-vn-15809161 is found in opserver
2025-09-15 02:10:09,929 - DEBUG - Do not have enough data to verify VN in agent
2025-09-15 02:10:09,934 - DEBUG - VRF ids for VN ctest-vn-15809161: {}
2025-09-15 02:10:09,987 - DEBUG - Services list from nova: [