2025-10-09 12:08:09,908 - INFO - Domain Default found not creating
2025-10-09 12:08:10,112 - INFO - Project ctest-TestBasicPolicy-47056204 not found, creating it
2025-10-09 12:08:10,663 - INFO - Created Project:ctest-TestBasicPolicy-47056204, ID : cfe593c7-6d41-4d4c-b68d-ece6b2e65fcb
2025-10-09 12:08:12,438 - INFO - ================================================================================
2025-10-09 12:08:12,438 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-10-09 12:08:12,438 - 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-10-09 12:08:12,717 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.17': '0'}} with
2025-10-09 12:08:12,717 - INFO - Initial checks done. Running the testcase now
2025-10-09 12:08:12,717 - INFO -
2025-10-09 12:08:13,361 - DEBUG - Response for create_network : {'network': {'id': 'd8d20754-ff46-4b89-90e6-f1fef1a7f393', 'name': 'ctest-vn-06871587', 'tenant_id': 'cfe593c76d414d4cb68dece6b2e65fcb', 'project_id': 'cfe593c76d414d4cb68dece6b2e65fcb', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-47056204', 'ctest-vn-06871587'], 'port_security_enabled': True, 'description': ''}}
2025-10-09 12:08:13,584 - DEBUG - Response for create_subnet : {'subnet': {'id': '6e7dbc1e-17de-482a-9f7d-973b2c6873e6', 'name': '', 'tenant_id': 'cfe593c76d414d4cb68dece6b2e65fcb', 'network_id': 'd8d20754-ff46-4b89-90e6-f1fef1a7f393', 'ip_version': 4, 'cidr': '114.59.113.128/26', 'allocation_pools': [{'start': '114.59.113.130', 'end': '114.59.113.190'}], 'gateway_ip': '114.59.113.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '114.59.113.130', 'tags': [], 'project_id': 'cfe593c76d414d4cb68dece6b2e65fcb'}}
2025-10-09 12:08:13,614 - INFO - Created VN ctest-vn-06871587
2025-10-09 12:08:13,671 - DEBUG - VN ctest-vn-06871587 UUID is d8d20754-ff46-4b89-90e6-f1fef1a7f393
2025-10-09 12:08:14,025 - DEBUG - Response for create_network : {'network': {'id': '91b20888-3b0b-47c1-84b9-95157990a45f', 'name': 'ctest-vn-70126065', 'tenant_id': 'cfe593c76d414d4cb68dece6b2e65fcb', 'project_id': 'cfe593c76d414d4cb68dece6b2e65fcb', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-47056204', 'ctest-vn-70126065'], 'port_security_enabled': True, 'description': ''}}
2025-10-09 12:08:14,213 - DEBUG - Response for create_subnet : {'subnet': {'id': '9d8d31f3-027d-4a5a-a0c3-b07ce8a17eaf', 'name': '', 'tenant_id': 'cfe593c76d414d4cb68dece6b2e65fcb', 'network_id': '91b20888-3b0b-47c1-84b9-95157990a45f', 'ip_version': 4, 'cidr': '33.163.179.64/26', 'allocation_pools': [{'start': '33.163.179.66', 'end': '33.163.179.126'}], 'gateway_ip': '33.163.179.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '33.163.179.66', 'tags': [], 'project_id': 'cfe593c76d414d4cb68dece6b2e65fcb'}}
2025-10-09 12:08:14,234 - INFO - Created VN ctest-vn-70126065
2025-10-09 12:08:14,291 - DEBUG - VN ctest-vn-70126065 UUID is 91b20888-3b0b-47c1-84b9-95157990a45f
2025-10-09 12:08:14,429 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-47056204:ctest-vn-06871587, 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-47056204:ctest-vn-70126065, 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-10-09 12:08:14,764 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'd8d20754-ff46-4b89-90e6-f1fef1a7f393', 'name': 'ctest-vn-06871587', 'tenant_id': 'cfe593c76d414d4cb68dece6b2e65fcb', 'project_id': 'cfe593c76d414d4cb68dece6b2e65fcb', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['6e7dbc1e-17de-482a-9f7d-973b2c6873e6'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-47056204', 'ctest-vn-06871587'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-47056204', 'ctest-policy-allow-all-13684671']], 'subnet_ipam': [{'subnet_cidr': '114.59.113.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-09 12:08:15,041 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '91b20888-3b0b-47c1-84b9-95157990a45f', 'name': 'ctest-vn-70126065', 'tenant_id': 'cfe593c76d414d4cb68dece6b2e65fcb', 'project_id': 'cfe593c76d414d4cb68dece6b2e65fcb', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['9d8d31f3-027d-4a5a-a0c3-b07ce8a17eaf'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-47056204', 'ctest-vn-70126065'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-47056204', 'ctest-policy-allow-all-13684671']], 'subnet_ipam': [{'subnet_cidr': '33.163.179.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-09 12:08:15,227 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-10-09 12:08:15,558 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-10-09 12:08:15,613 - DEBUG - Requesting: http://10.0.0.50:8082/domain/9981e1e7-d038-4ba3-823c-88411c30bfd5
2025-10-09 12:08:15,629 - DEBUG - Requesting: http://10.0.0.50:8082/project/cfe593c7-6d41-4d4c-b68d-ece6b2e65fcb
2025-10-09 12:08:15,712 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/d8d20754-ff46-4b89-90e6-f1fef1a7f393
2025-10-09 12:08:15,727 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/d8d20754-ff46-4b89-90e6-f1fef1a7f393
2025-10-09 12:08:15,741 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/6d93f979-50dd-46f5-9ab4-3d4de1ea5e3a
2025-10-09 12:08:15,750 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/6d93f979-50dd-46f5-9ab4-3d4de1ea5e3a
2025-10-09 12:08:15,759 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/44bf044e-c032-4125-aab7-dcb21f7fb06f
2025-10-09 12:08:15,766 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-09 12:08:15,766 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/d8d20754-ff46-4b89-90e6-f1fef1a7f393
2025-10-09 12:08:15,778 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/6d93f979-50dd-46f5-9ab4-3d4de1ea5e3a
2025-10-09 12:08:15,797 - INFO - Verified VN network id 11 for VN d8d20754-ff46-4b89-90e6-f1fef1a7f393
2025-10-09 12:08:15,797 - INFO - Verifications in API Server for VN ctest-vn-06871587 passed
2025-10-09 12:08:15,797 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/d8d20754-ff46-4b89-90e6-f1fef1a7f393
2025-10-09 12:08:15,808 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/6d93f979-50dd-46f5-9ab4-3d4de1ea5e3a
2025-10-09 12:08:15,816 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/6d93f979-50dd-46f5-9ab4-3d4de1ea5e3a
2025-10-09 12:08:15,824 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/44bf044e-c032-4125-aab7-dcb21f7fb06f
2025-10-09 12:08:15,840 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-47056204:ctest-vn-06871587', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-47056204', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15623558118943116169', 'uuid-lslong': '10441298863383376787'}, 'enable': 'true', 'created': '2025-10-09T12:08:13', 'last-modified': '2025-10-09T12:08:14', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.110965'}
2025-10-09 12:08:15,849 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-09 12:08:15,849 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-06871587 passed
2025-10-09 12:08:15,849 - DEBUG - ====Verifying policy data for ctest-vn-06871587 in API_Server ======
2025-10-09 12:08:15,849 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-10-09 12:08:15,856 - DEBUG - Requesting: http://10.0.0.50:8082/domain/9981e1e7-d038-4ba3-823c-88411c30bfd5
2025-10-09 12:08:15,870 - DEBUG - Requesting: http://10.0.0.50:8082/project/cfe593c7-6d41-4d4c-b68d-ece6b2e65fcb
2025-10-09 12:08:15,950 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/d8d20754-ff46-4b89-90e6-f1fef1a7f393
2025-10-09 12:08:15,966 - DEBUG - ==>Verifying data for policy with id: bb458a46-37d3-483c-a59d-7064ea4136ec, fqn: ['default-domain', 'ctest-TestBasicPolicy-47056204', 'ctest-policy-allow-all-13684671']
2025-10-09 12:08:15,966 - INFO - VN ctest-vn-06871587 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-09 12:08:15,966 - DEBUG - Verifying the vn in opserver
2025-10-09 12:08:15,967 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-47056204:ctest-vn-06871587 virtual network link through opserver 10.0.0.50
2025-10-09 12:08:15,967 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2025-10-09 12:08:16,299 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2025-10-09 12:08:16,374 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-47056204:ctest-vn-06871587', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-47056204:ctest-vn-06871587?flat'}
2025-10-09 12:08:16,374 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-47056204:ctest-vn-06871587 is found in opserver
2025-10-09 12:08:16,387 - DEBUG - Do not have enough data to verify VN in agent
2025-10-09 12:08:16,394 - DEBUG - VRF ids for VN ctest-vn-06871587: {}
2025-10-09 12:08:16,395 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-10-09 12:08:16,402 - DEBUG - Requesting: http://10.0.0.50:8082/domain/9981e1e7-d038-4ba3-823c-88411c30bfd5
2025-10-09 12:08:16,416 - DEBUG - Requesting: http://10.0.0.50:8082/project/cfe593c7-6d41-4d4c-b68d-ece6b2e65fcb
2025-10-09 12:08:16,495 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/91b20888-3b0b-47c1-84b9-95157990a45f
2025-10-09 12:08:16,508 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/91b20888-3b0b-47c1-84b9-95157990a45f
2025-10-09 12:08:16,519 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/7599bc3d-04ce-4e7d-9b75-589644d0b058
2025-10-09 12:08:16,528 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/7599bc3d-04ce-4e7d-9b75-589644d0b058
2025-10-09 12:08:16,537 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/70c76d2d-419a-41d0-a963-d1b2bf931cc0
2025-10-09 12:08:16,544 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-09 12:08:16,544 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/91b20888-3b0b-47c1-84b9-95157990a45f
2025-10-09 12:08:16,555 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/7599bc3d-04ce-4e7d-9b75-589644d0b058
2025-10-09 12:08:16,573 - INFO - Verified VN network id 12 for VN 91b20888-3b0b-47c1-84b9-95157990a45f
2025-10-09 12:08:16,573 - INFO - Verifications in API Server for VN ctest-vn-70126065 passed
2025-10-09 12:08:16,573 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/91b20888-3b0b-47c1-84b9-95157990a45f
2025-10-09 12:08:16,585 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/7599bc3d-04ce-4e7d-9b75-589644d0b058
2025-10-09 12:08:16,596 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/7599bc3d-04ce-4e7d-9b75-589644d0b058
2025-10-09 12:08:16,604 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/70c76d2d-419a-41d0-a963-d1b2bf931cc0
2025-10-09 12:08:16,619 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-47056204:ctest-vn-70126065', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-47056204', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10498463062553216961', 'uuid-lslong': '9563839203164333151'}, 'enable': 'true', 'created': '2025-10-09T12:08:13', 'last-modified': '2025-10-09T12:08:14', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.617666'}
2025-10-09 12:08:16,628 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-09 12:08:16,628 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-70126065 passed
2025-10-09 12:08:16,628 - DEBUG - ====Verifying policy data for ctest-vn-70126065 in API_Server ======
2025-10-09 12:08:16,628 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-10-09 12:08:16,635 - DEBUG - Requesting: http://10.0.0.50:8082/domain/9981e1e7-d038-4ba3-823c-88411c30bfd5
2025-10-09 12:08:16,649 - DEBUG - Requesting: http://10.0.0.50:8082/project/cfe593c7-6d41-4d4c-b68d-ece6b2e65fcb
2025-10-09 12:08:16,728 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/91b20888-3b0b-47c1-84b9-95157990a45f
2025-10-09 12:08:16,740 - DEBUG - ==>Verifying data for policy with id: bb458a46-37d3-483c-a59d-7064ea4136ec, fqn: ['default-domain', 'ctest-TestBasicPolicy-47056204', 'ctest-policy-allow-all-13684671']
2025-10-09 12:08:16,740 - INFO - VN ctest-vn-70126065 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-09 12:08:16,741 - DEBUG - Verifying the vn in opserver
2025-10-09 12:08:16,741 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-47056204:ctest-vn-70126065 virtual network link through opserver 10.0.0.50
2025-10-09 12:08:16,741 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2025-10-09 12:08:16,753 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-47056204:ctest-vn-70126065', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-47056204:ctest-vn-70126065?flat'}
2025-10-09 12:08:16,753 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-47056204:ctest-vn-70126065 is found in opserver
2025-10-09 12:08:16,765 - DEBUG - Do not have enough data to verify VN in agent
2025-10-09 12:08:16,772 - DEBUG - VRF ids for VN ctest-vn-70126065: {}
2025-10-09 12:08:16,848 - DEBUG - Services list from nova: [