2025-08-28 16:48:39,596 - INFO - Domain Default found not creating
2025-08-28 16:48:39,735 - INFO - Project ctest-TestBasicPolicy-23099839 not found, creating it
2025-08-28 16:48:40,193 - INFO - Created Project:ctest-TestBasicPolicy-23099839, ID : efb35396-5c55-4e47-85b1-dc7f2373454a
2025-08-28 16:48:41,635 - INFO - ================================================================================
2025-08-28 16:48:41,635 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-08-28 16:48:41,635 - 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-08-28 16:48:41,889 - DEBUG - Nothing to compare xmpp stats {'10.0.0.130': {'10.20.0.17': '0'}} with
2025-08-28 16:48:41,889 - INFO - Initial checks done. Running the testcase now
2025-08-28 16:48:41,890 - INFO -
2025-08-28 16:48:42,433 - DEBUG - Response for create_network : {'network': {'id': '737b4a9d-c782-4596-abff-7ab6105e8f8c', 'name': 'ctest-vn-10258078', 'tenant_id': 'efb353965c554e4785b1dc7f2373454a', 'project_id': 'efb353965c554e4785b1dc7f2373454a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-23099839', 'ctest-vn-10258078'], 'port_security_enabled': True, 'description': ''}}
2025-08-28 16:48:42,623 - DEBUG - Response for create_subnet : {'subnet': {'id': '35959d3d-52f5-4a35-88fd-4d00018570ac', 'name': '', 'tenant_id': 'efb353965c554e4785b1dc7f2373454a', 'network_id': '737b4a9d-c782-4596-abff-7ab6105e8f8c', 'ip_version': 4, 'cidr': '51.1.194.192/26', 'allocation_pools': [{'start': '51.1.194.194', 'end': '51.1.194.254'}], 'gateway_ip': '51.1.194.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '51.1.194.194', 'tags': [], 'project_id': 'efb353965c554e4785b1dc7f2373454a'}}
2025-08-28 16:48:42,640 - INFO - Created VN ctest-vn-10258078
2025-08-28 16:48:42,692 - DEBUG - VN ctest-vn-10258078 UUID is 737b4a9d-c782-4596-abff-7ab6105e8f8c
2025-08-28 16:48:42,979 - DEBUG - Response for create_network : {'network': {'id': 'e1ec425c-4ade-47f8-8e3f-9820fa124eaa', 'name': 'ctest-vn-80957173', 'tenant_id': 'efb353965c554e4785b1dc7f2373454a', 'project_id': 'efb353965c554e4785b1dc7f2373454a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-23099839', 'ctest-vn-80957173'], 'port_security_enabled': True, 'description': ''}}
2025-08-28 16:48:43,204 - DEBUG - Response for create_subnet : {'subnet': {'id': '94c17a4d-7239-4ec6-a73a-2349a7231e1b', 'name': '', 'tenant_id': 'efb353965c554e4785b1dc7f2373454a', 'network_id': 'e1ec425c-4ade-47f8-8e3f-9820fa124eaa', 'ip_version': 4, 'cidr': '138.167.229.0/26', 'allocation_pools': [{'start': '138.167.229.2', 'end': '138.167.229.62'}], 'gateway_ip': '138.167.229.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '138.167.229.2', 'tags': [], 'project_id': 'efb353965c554e4785b1dc7f2373454a'}}
2025-08-28 16:48:43,222 - INFO - Created VN ctest-vn-80957173
2025-08-28 16:48:43,276 - DEBUG - VN ctest-vn-80957173 UUID is e1ec425c-4ade-47f8-8e3f-9820fa124eaa
2025-08-28 16:48:43,424 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-23099839:ctest-vn-10258078, 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-23099839:ctest-vn-80957173, 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-08-28 16:48:43,726 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '737b4a9d-c782-4596-abff-7ab6105e8f8c', 'name': 'ctest-vn-10258078', 'tenant_id': 'efb353965c554e4785b1dc7f2373454a', 'project_id': 'efb353965c554e4785b1dc7f2373454a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['35959d3d-52f5-4a35-88fd-4d00018570ac'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-23099839', 'ctest-vn-10258078'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-23099839', 'ctest-policy-allow-all-16844136']], 'subnet_ipam': [{'subnet_cidr': '51.1.194.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-08-28 16:48:43,953 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'e1ec425c-4ade-47f8-8e3f-9820fa124eaa', 'name': 'ctest-vn-80957173', 'tenant_id': 'efb353965c554e4785b1dc7f2373454a', 'project_id': 'efb353965c554e4785b1dc7f2373454a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['94c17a4d-7239-4ec6-a73a-2349a7231e1b'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-23099839', 'ctest-vn-80957173'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-23099839', 'ctest-policy-allow-all-16844136']], 'subnet_ipam': [{'subnet_cidr': '138.167.229.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-08-28 16:48:44,120 - DEBUG - Requesting: http://10.0.0.130:8082/domains
2025-08-28 16:48:44,417 - DEBUG - Requesting: http://10.0.0.130:8082/domains
2025-08-28 16:48:44,442 - DEBUG - Requesting: http://10.0.0.130:8082/domain/22e36fb3-aebf-43d3-b36a-15c45bdee204
2025-08-28 16:48:44,454 - DEBUG - Requesting: http://10.0.0.130:8082/project/efb35396-5c55-4e47-85b1-dc7f2373454a
2025-08-28 16:48:44,525 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/737b4a9d-c782-4596-abff-7ab6105e8f8c
2025-08-28 16:48:44,535 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/737b4a9d-c782-4596-abff-7ab6105e8f8c
2025-08-28 16:48:44,545 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/27e87a57-c11c-49af-87a6-ecc2f60eb6cf
2025-08-28 16:48:44,552 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/27e87a57-c11c-49af-87a6-ecc2f60eb6cf
2025-08-28 16:48:44,558 - DEBUG - Requesting: http://10.0.0.130:8082/route-target/57f0c629-2ca3-4184-a3c6-6924932be518
2025-08-28 16:48:44,564 - DEBUG - Route Targets: ['target:64512:8000005']
2025-08-28 16:48:44,564 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/737b4a9d-c782-4596-abff-7ab6105e8f8c
2025-08-28 16:48:44,573 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/27e87a57-c11c-49af-87a6-ecc2f60eb6cf
2025-08-28 16:48:44,589 - INFO - Verified VN network id 11 for VN 737b4a9d-c782-4596-abff-7ab6105e8f8c
2025-08-28 16:48:44,589 - INFO - Verifications in API Server for VN ctest-vn-10258078 passed
2025-08-28 16:48:44,589 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/737b4a9d-c782-4596-abff-7ab6105e8f8c
2025-08-28 16:48:44,600 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/27e87a57-c11c-49af-87a6-ecc2f60eb6cf
2025-08-28 16:48:44,606 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/27e87a57-c11c-49af-87a6-ecc2f60eb6cf
2025-08-28 16:48:44,614 - DEBUG - Requesting: http://10.0.0.130:8082/route-target/57f0c629-2ca3-4184-a3c6-6924932be518
2025-08-28 16:48:44,625 - DEBUG - Control-node 10.0.0.130 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-23099839:ctest-vn-10258078', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-23099839', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8321326778014647702', 'uuid-lslong': '12393759621924163468'}, 'enable': 'true', 'created': '2025-08-28T16:48:42', 'last-modified': '2025-08-28T16:48:43', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.924778'}
2025-08-28 16:48:44,630 - DEBUG - Route Targets: ['target:64512:8000005']
2025-08-28 16:48:44,631 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-10258078 passed
2025-08-28 16:48:44,631 - DEBUG - ====Verifying policy data for ctest-vn-10258078 in API_Server ======
2025-08-28 16:48:44,631 - DEBUG - Requesting: http://10.0.0.130:8082/domains
2025-08-28 16:48:44,636 - DEBUG - Requesting: http://10.0.0.130:8082/domain/22e36fb3-aebf-43d3-b36a-15c45bdee204
2025-08-28 16:48:44,647 - DEBUG - Requesting: http://10.0.0.130:8082/project/efb35396-5c55-4e47-85b1-dc7f2373454a
2025-08-28 16:48:44,715 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/737b4a9d-c782-4596-abff-7ab6105e8f8c
2025-08-28 16:48:44,724 - DEBUG - ==>Verifying data for policy with id: 18645a65-a253-422a-a656-b9bd8a388a40, fqn: ['default-domain', 'ctest-TestBasicPolicy-23099839', 'ctest-policy-allow-all-16844136']
2025-08-28 16:48:44,724 - INFO - VN ctest-vn-10258078 Policy verification: verify_vn_policy_in_api_server, status: True
2025-08-28 16:48:44,724 - DEBUG - Verifying the vn in opserver
2025-08-28 16:48:44,725 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-23099839:ctest-vn-10258078 virtual network link through opserver 10.0.0.130
2025-08-28 16:48:44,725 - DEBUG - Requesting: http://10.0.0.130:8081/analytics/uves/virtual-networks
2025-08-28 16:48:45,020 - DEBUG - Requesting: http://10.0.0.130:8081/analytics/uves/virtual-networks
2025-08-28 16:48:45,076 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-23099839:ctest-vn-10258078', 'href': 'http://10.0.0.130:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-23099839:ctest-vn-10258078?flat'}
2025-08-28 16:48:45,076 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-23099839:ctest-vn-10258078 is found in opserver
2025-08-28 16:48:45,085 - DEBUG - Do not have enough data to verify VN in agent
2025-08-28 16:48:45,089 - DEBUG - VRF ids for VN ctest-vn-10258078: {}
2025-08-28 16:48:45,089 - DEBUG - Requesting: http://10.0.0.130:8082/domains
2025-08-28 16:48:45,094 - DEBUG - Requesting: http://10.0.0.130:8082/domain/22e36fb3-aebf-43d3-b36a-15c45bdee204
2025-08-28 16:48:45,105 - DEBUG - Requesting: http://10.0.0.130:8082/project/efb35396-5c55-4e47-85b1-dc7f2373454a
2025-08-28 16:48:45,173 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/e1ec425c-4ade-47f8-8e3f-9820fa124eaa
2025-08-28 16:48:45,184 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/e1ec425c-4ade-47f8-8e3f-9820fa124eaa
2025-08-28 16:48:45,193 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/508ff6af-7539-4c8f-91d5-46b5fc6829c4
2025-08-28 16:48:45,200 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/508ff6af-7539-4c8f-91d5-46b5fc6829c4
2025-08-28 16:48:45,205 - DEBUG - Requesting: http://10.0.0.130:8082/route-target/56dd84a3-669b-4bdf-a220-f1f8a47a13dc
2025-08-28 16:48:45,211 - DEBUG - Route Targets: ['target:64512:8000006']
2025-08-28 16:48:45,211 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/e1ec425c-4ade-47f8-8e3f-9820fa124eaa
2025-08-28 16:48:45,218 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/508ff6af-7539-4c8f-91d5-46b5fc6829c4
2025-08-28 16:48:45,231 - INFO - Verified VN network id 12 for VN e1ec425c-4ade-47f8-8e3f-9820fa124eaa
2025-08-28 16:48:45,231 - INFO - Verifications in API Server for VN ctest-vn-80957173 passed
2025-08-28 16:48:45,231 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/e1ec425c-4ade-47f8-8e3f-9820fa124eaa
2025-08-28 16:48:45,241 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/508ff6af-7539-4c8f-91d5-46b5fc6829c4
2025-08-28 16:48:45,248 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/508ff6af-7539-4c8f-91d5-46b5fc6829c4
2025-08-28 16:48:45,255 - DEBUG - Requesting: http://10.0.0.130:8082/route-target/56dd84a3-669b-4bdf-a220-f1f8a47a13dc
2025-08-28 16:48:45,266 - DEBUG - Control-node 10.0.0.130 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-23099839:ctest-vn-80957173', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-23099839', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16279459717198006264', 'uuid-lslong': '10250078544320417450'}, 'enable': 'true', 'created': '2025-08-28T16:48:42', 'last-modified': '2025-08-28T16:48:43', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.338001'}
2025-08-28 16:48:45,272 - DEBUG - Route Targets: ['target:64512:8000006']
2025-08-28 16:48:45,272 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-80957173 passed
2025-08-28 16:48:45,273 - DEBUG - ====Verifying policy data for ctest-vn-80957173 in API_Server ======
2025-08-28 16:48:45,273 - DEBUG - Requesting: http://10.0.0.130:8082/domains
2025-08-28 16:48:45,278 - DEBUG - Requesting: http://10.0.0.130:8082/domain/22e36fb3-aebf-43d3-b36a-15c45bdee204
2025-08-28 16:48:45,288 - DEBUG - Requesting: http://10.0.0.130:8082/project/efb35396-5c55-4e47-85b1-dc7f2373454a
2025-08-28 16:48:45,356 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/e1ec425c-4ade-47f8-8e3f-9820fa124eaa
2025-08-28 16:48:45,366 - DEBUG - ==>Verifying data for policy with id: 18645a65-a253-422a-a656-b9bd8a388a40, fqn: ['default-domain', 'ctest-TestBasicPolicy-23099839', 'ctest-policy-allow-all-16844136']
2025-08-28 16:48:45,366 - INFO - VN ctest-vn-80957173 Policy verification: verify_vn_policy_in_api_server, status: True
2025-08-28 16:48:45,366 - DEBUG - Verifying the vn in opserver
2025-08-28 16:48:45,366 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-23099839:ctest-vn-80957173 virtual network link through opserver 10.0.0.130
2025-08-28 16:48:45,366 - DEBUG - Requesting: http://10.0.0.130:8081/analytics/uves/virtual-networks
2025-08-28 16:48:45,375 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-23099839:ctest-vn-80957173', 'href': 'http://10.0.0.130:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-23099839:ctest-vn-80957173?flat'}
2025-08-28 16:48:45,376 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-23099839:ctest-vn-80957173 is found in opserver
2025-08-28 16:48:45,387 - DEBUG - Do not have enough data to verify VN in agent
2025-08-28 16:48:45,393 - DEBUG - VRF ids for VN ctest-vn-80957173: {}
2025-08-28 16:48:45,448 - DEBUG - Services list from nova: [