2025-04-21 02:17:40,446 - INFO - Domain Default found not creating
2025-04-21 02:17:40,680 - INFO - Project ctest-TestBasicPolicy-23433883 not found, creating it
2025-04-21 02:17:41,130 - INFO - Created Project:ctest-TestBasicPolicy-23433883, ID : 1ce884d7-c089-45dd-a55e-1ad5aee4517d
2025-04-21 02:17:42,594 - INFO - ================================================================================
2025-04-21 02:17:42,594 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-04-21 02:17:42,594 - 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-04-21 02:17:42,851 - DEBUG - Nothing to compare xmpp stats {'10.0.0.130': {'10.20.0.17': '0'}} with
2025-04-21 02:17:42,851 - INFO - Initial checks done. Running the testcase now
2025-04-21 02:17:42,851 - INFO -
2025-04-21 02:17:43,386 - DEBUG - Response for create_network : {'network': {'id': 'a35fc51c-9eb2-4611-8b1e-dea9dee16bc1', 'name': 'ctest-vn-01610794', 'tenant_id': '1ce884d7c08945dda55e1ad5aee4517d', 'project_id': '1ce884d7c08945dda55e1ad5aee4517d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-23433883', 'ctest-vn-01610794'], 'port_security_enabled': True, 'description': ''}}
2025-04-21 02:17:43,598 - DEBUG - Response for create_subnet : {'subnet': {'id': 'f38b68a3-e6b8-4b0a-9f0c-2e5ba5277927', 'name': '', 'tenant_id': '1ce884d7c08945dda55e1ad5aee4517d', 'network_id': 'a35fc51c-9eb2-4611-8b1e-dea9dee16bc1', 'ip_version': 4, 'cidr': '208.211.241.192/26', 'allocation_pools': [{'start': '208.211.241.194', 'end': '208.211.241.254'}], 'gateway_ip': '208.211.241.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '208.211.241.194', 'tags': [], 'project_id': '1ce884d7c08945dda55e1ad5aee4517d'}}
2025-04-21 02:17:43,615 - INFO - Created VN ctest-vn-01610794
2025-04-21 02:17:43,669 - DEBUG - VN ctest-vn-01610794 UUID is a35fc51c-9eb2-4611-8b1e-dea9dee16bc1
2025-04-21 02:17:43,957 - DEBUG - Response for create_network : {'network': {'id': 'ff82101d-45c4-42f1-af56-2755c986e3fd', 'name': 'ctest-vn-23178868', 'tenant_id': '1ce884d7c08945dda55e1ad5aee4517d', 'project_id': '1ce884d7c08945dda55e1ad5aee4517d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-23433883', 'ctest-vn-23178868'], 'port_security_enabled': True, 'description': ''}}
2025-04-21 02:17:44,155 - DEBUG - Response for create_subnet : {'subnet': {'id': '76daac4c-f381-49ee-a32d-a233e39c2ca6', 'name': '', 'tenant_id': '1ce884d7c08945dda55e1ad5aee4517d', 'network_id': 'ff82101d-45c4-42f1-af56-2755c986e3fd', 'ip_version': 4, 'cidr': '12.154.226.192/26', 'allocation_pools': [{'start': '12.154.226.194', 'end': '12.154.226.254'}], 'gateway_ip': '12.154.226.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '12.154.226.194', 'tags': [], 'project_id': '1ce884d7c08945dda55e1ad5aee4517d'}}
2025-04-21 02:17:44,173 - INFO - Created VN ctest-vn-23178868
2025-04-21 02:17:44,225 - DEBUG - VN ctest-vn-23178868 UUID is ff82101d-45c4-42f1-af56-2755c986e3fd
2025-04-21 02:17:44,336 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-23433883:ctest-vn-01610794, 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-23433883:ctest-vn-23178868, 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-04-21 02:17:44,629 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'a35fc51c-9eb2-4611-8b1e-dea9dee16bc1', 'name': 'ctest-vn-01610794', 'tenant_id': '1ce884d7c08945dda55e1ad5aee4517d', 'project_id': '1ce884d7c08945dda55e1ad5aee4517d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['f38b68a3-e6b8-4b0a-9f0c-2e5ba5277927'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-23433883', 'ctest-vn-01610794'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-23433883', 'ctest-policy-allow-all-00176623']], 'subnet_ipam': [{'subnet_cidr': '208.211.241.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-04-21 02:17:44,853 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'ff82101d-45c4-42f1-af56-2755c986e3fd', 'name': 'ctest-vn-23178868', 'tenant_id': '1ce884d7c08945dda55e1ad5aee4517d', 'project_id': '1ce884d7c08945dda55e1ad5aee4517d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['76daac4c-f381-49ee-a32d-a233e39c2ca6'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-23433883', 'ctest-vn-23178868'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-23433883', 'ctest-policy-allow-all-00176623']], 'subnet_ipam': [{'subnet_cidr': '12.154.226.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-04-21 02:17:45,001 - DEBUG - Requesting: http://10.0.0.130:8082/domains
2025-04-21 02:17:45,297 - DEBUG - Requesting: http://10.0.0.130:8082/domains
2025-04-21 02:17:45,322 - DEBUG - Requesting: http://10.0.0.130:8082/domain/664ed5a6-6ec0-4e3d-bfbe-2a247298e038
2025-04-21 02:17:45,334 - DEBUG - Requesting: http://10.0.0.130:8082/project/1ce884d7-c089-45dd-a55e-1ad5aee4517d
2025-04-21 02:17:45,414 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/a35fc51c-9eb2-4611-8b1e-dea9dee16bc1
2025-04-21 02:17:45,426 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/a35fc51c-9eb2-4611-8b1e-dea9dee16bc1
2025-04-21 02:17:45,436 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/17f12254-5c68-4a3e-9efc-0b51421d419c
2025-04-21 02:17:45,444 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/17f12254-5c68-4a3e-9efc-0b51421d419c
2025-04-21 02:17:45,451 - DEBUG - Requesting: http://10.0.0.130:8082/route-target/5deba3fc-607a-4d59-a898-7093a31af514
2025-04-21 02:17:45,457 - DEBUG - Route Targets: ['target:64512:8000005']
2025-04-21 02:17:45,457 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/a35fc51c-9eb2-4611-8b1e-dea9dee16bc1
2025-04-21 02:17:45,466 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/17f12254-5c68-4a3e-9efc-0b51421d419c
2025-04-21 02:17:45,482 - INFO - Verified VN network id 8 for VN a35fc51c-9eb2-4611-8b1e-dea9dee16bc1
2025-04-21 02:17:45,482 - INFO - Verifications in API Server for VN ctest-vn-01610794 passed
2025-04-21 02:17:45,483 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/a35fc51c-9eb2-4611-8b1e-dea9dee16bc1
2025-04-21 02:17:45,493 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/17f12254-5c68-4a3e-9efc-0b51421d419c
2025-04-21 02:17:45,500 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/17f12254-5c68-4a3e-9efc-0b51421d419c
2025-04-21 02:17:45,507 - DEBUG - Requesting: http://10.0.0.130:8082/route-target/5deba3fc-607a-4d59-a898-7093a31af514
2025-04-21 02:17:45,519 - DEBUG - Control-node 10.0.0.130 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-23433883:ctest-vn-01610794', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-23433883', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11772344677682005521', 'uuid-lslong': '10024694641743457217'}, 'enable': 'true', 'created': '2025-04-21T02:17:43', 'last-modified': '2025-04-21T02:17:44', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.914475'}
2025-04-21 02:17:45,526 - DEBUG - Route Targets: ['target:64512:8000005']
2025-04-21 02:17:45,526 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-01610794 passed
2025-04-21 02:17:45,526 - DEBUG - ====Verifying policy data for ctest-vn-01610794 in API_Server ======
2025-04-21 02:17:45,526 - DEBUG - Requesting: http://10.0.0.130:8082/domains
2025-04-21 02:17:45,531 - DEBUG - Requesting: http://10.0.0.130:8082/domain/664ed5a6-6ec0-4e3d-bfbe-2a247298e038
2025-04-21 02:17:45,543 - DEBUG - Requesting: http://10.0.0.130:8082/project/1ce884d7-c089-45dd-a55e-1ad5aee4517d
2025-04-21 02:17:45,622 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/a35fc51c-9eb2-4611-8b1e-dea9dee16bc1
2025-04-21 02:17:45,633 - DEBUG - ==>Verifying data for policy with id: 4c5d298b-64d9-4bad-9769-304e1c96326f, fqn: ['default-domain', 'ctest-TestBasicPolicy-23433883', 'ctest-policy-allow-all-00176623']
2025-04-21 02:17:45,633 - INFO - VN ctest-vn-01610794 Policy verification: verify_vn_policy_in_api_server, status: True
2025-04-21 02:17:45,633 - DEBUG - Verifying the vn in opserver
2025-04-21 02:17:45,633 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-23433883:ctest-vn-01610794 virtual network link through opserver 10.0.0.130
2025-04-21 02:17:45,634 - DEBUG - Requesting: http://10.0.0.130:8081/analytics/uves/virtual-networks
2025-04-21 02:17:45,926 - DEBUG - Requesting: http://10.0.0.130:8081/analytics/uves/virtual-networks
2025-04-21 02:17:45,981 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-23433883:ctest-vn-01610794', 'href': 'http://10.0.0.130:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-23433883:ctest-vn-01610794?flat'}
2025-04-21 02:17:45,981 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-23433883:ctest-vn-01610794 is found in opserver
2025-04-21 02:17:45,993 - DEBUG - Do not have enough data to verify VN in agent
2025-04-21 02:17:45,999 - DEBUG - VRF ids for VN ctest-vn-01610794: {}
2025-04-21 02:17:45,999 - DEBUG - Requesting: http://10.0.0.130:8082/domains
2025-04-21 02:17:46,004 - DEBUG - Requesting: http://10.0.0.130:8082/domain/664ed5a6-6ec0-4e3d-bfbe-2a247298e038
2025-04-21 02:17:46,016 - DEBUG - Requesting: http://10.0.0.130:8082/project/1ce884d7-c089-45dd-a55e-1ad5aee4517d
2025-04-21 02:17:46,086 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/ff82101d-45c4-42f1-af56-2755c986e3fd
2025-04-21 02:17:46,100 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/ff82101d-45c4-42f1-af56-2755c986e3fd
2025-04-21 02:17:46,111 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/486de92e-35d7-4fb0-a130-e89295c64d26
2025-04-21 02:17:46,118 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/486de92e-35d7-4fb0-a130-e89295c64d26
2025-04-21 02:17:46,124 - DEBUG - Requesting: http://10.0.0.130:8082/route-target/2c83c8e0-0559-4351-9c7e-364f41103a60
2025-04-21 02:17:46,131 - DEBUG - Route Targets: ['target:64512:8000006']
2025-04-21 02:17:46,131 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/ff82101d-45c4-42f1-af56-2755c986e3fd
2025-04-21 02:17:46,139 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/486de92e-35d7-4fb0-a130-e89295c64d26
2025-04-21 02:17:46,153 - INFO - Verified VN network id 9 for VN ff82101d-45c4-42f1-af56-2755c986e3fd
2025-04-21 02:17:46,153 - INFO - Verifications in API Server for VN ctest-vn-23178868 passed
2025-04-21 02:17:46,153 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/ff82101d-45c4-42f1-af56-2755c986e3fd
2025-04-21 02:17:46,163 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/486de92e-35d7-4fb0-a130-e89295c64d26
2025-04-21 02:17:46,172 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/486de92e-35d7-4fb0-a130-e89295c64d26
2025-04-21 02:17:46,179 - DEBUG - Requesting: http://10.0.0.130:8082/route-target/2c83c8e0-0559-4351-9c7e-364f41103a60
2025-04-21 02:17:46,192 - DEBUG - Control-node 10.0.0.130 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-23433883:ctest-vn-23178868', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-23433883', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '18411295944554595057', 'uuid-lslong': '12634329054041269245'}, 'enable': 'true', 'created': '2025-04-21T02:17:43', 'last-modified': '2025-04-21T02:17:44', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.361246'}
2025-04-21 02:17:46,198 - DEBUG - Route Targets: ['target:64512:8000006']
2025-04-21 02:17:46,199 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-23178868 passed
2025-04-21 02:17:46,199 - DEBUG - ====Verifying policy data for ctest-vn-23178868 in API_Server ======
2025-04-21 02:17:46,199 - DEBUG - Requesting: http://10.0.0.130:8082/domains
2025-04-21 02:17:46,205 - DEBUG - Requesting: http://10.0.0.130:8082/domain/664ed5a6-6ec0-4e3d-bfbe-2a247298e038
2025-04-21 02:17:46,217 - DEBUG - Requesting: http://10.0.0.130:8082/project/1ce884d7-c089-45dd-a55e-1ad5aee4517d
2025-04-21 02:17:46,288 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/ff82101d-45c4-42f1-af56-2755c986e3fd
2025-04-21 02:17:46,298 - DEBUG - ==>Verifying data for policy with id: 4c5d298b-64d9-4bad-9769-304e1c96326f, fqn: ['default-domain', 'ctest-TestBasicPolicy-23433883', 'ctest-policy-allow-all-00176623']
2025-04-21 02:17:46,298 - INFO - VN ctest-vn-23178868 Policy verification: verify_vn_policy_in_api_server, status: True
2025-04-21 02:17:46,298 - DEBUG - Verifying the vn in opserver
2025-04-21 02:17:46,298 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-23433883:ctest-vn-23178868 virtual network link through opserver 10.0.0.130
2025-04-21 02:17:46,298 - DEBUG - Requesting: http://10.0.0.130:8081/analytics/uves/virtual-networks
2025-04-21 02:17:46,308 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-23433883:ctest-vn-23178868', 'href': 'http://10.0.0.130:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-23433883:ctest-vn-23178868?flat'}
2025-04-21 02:17:46,308 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-23433883:ctest-vn-23178868 is found in opserver
2025-04-21 02:17:46,318 - DEBUG - Do not have enough data to verify VN in agent
2025-04-21 02:17:46,324 - DEBUG - VRF ids for VN ctest-vn-23178868: {}
2025-04-21 02:17:46,375 - DEBUG - Services list from nova: [