2025-04-22 13:40:32,399 - INFO - Domain Default found not creating
2025-04-22 13:40:32,530 - INFO - Project ctest-TestBasicPolicy-87884293 not found, creating it
2025-04-22 13:40:32,966 - INFO - Created Project:ctest-TestBasicPolicy-87884293, ID : d3780f47-222d-4e0f-b459-40cea64c06e4
2025-04-22 13:40:34,323 - INFO - ================================================================================
2025-04-22 13:40:34,323 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-04-22 13:40:34,323 - 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-22 13:40:34,590 - DEBUG - Nothing to compare xmpp stats {'10.0.0.56': {'10.20.0.254': '0'}} with
2025-04-22 13:40:34,590 - INFO - Initial checks done. Running the testcase now
2025-04-22 13:40:34,590 - INFO -
2025-04-22 13:40:35,134 - DEBUG - Response for create_network : {'network': {'id': 'f894e9af-bdbb-48a7-9462-699d6b56a978', 'name': 'ctest-vn-05760607', 'tenant_id': 'd3780f47222d4e0fb45940cea64c06e4', 'project_id': 'd3780f47222d4e0fb45940cea64c06e4', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-87884293', 'ctest-vn-05760607'], 'port_security_enabled': True, 'description': ''}}
2025-04-22 13:40:35,336 - DEBUG - Response for create_subnet : {'subnet': {'id': 'a6118d95-bfbd-4e66-9e9c-9f5f8c97f2cb', 'name': '', 'tenant_id': 'd3780f47222d4e0fb45940cea64c06e4', 'network_id': 'f894e9af-bdbb-48a7-9462-699d6b56a978', 'ip_version': 4, 'cidr': '172.221.112.128/26', 'allocation_pools': [{'start': '172.221.112.130', 'end': '172.221.112.190'}], 'gateway_ip': '172.221.112.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '172.221.112.130', 'tags': [], 'project_id': 'd3780f47222d4e0fb45940cea64c06e4'}}
2025-04-22 13:40:35,354 - INFO - Created VN ctest-vn-05760607
2025-04-22 13:40:35,404 - DEBUG - VN ctest-vn-05760607 UUID is f894e9af-bdbb-48a7-9462-699d6b56a978
2025-04-22 13:40:35,729 - DEBUG - Response for create_network : {'network': {'id': '6088c8cf-cc0d-4d31-9334-404ce48a3e42', 'name': 'ctest-vn-85187344', 'tenant_id': 'd3780f47222d4e0fb45940cea64c06e4', 'project_id': 'd3780f47222d4e0fb45940cea64c06e4', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-87884293', 'ctest-vn-85187344'], 'port_security_enabled': True, 'description': ''}}
2025-04-22 13:40:35,948 - DEBUG - Response for create_subnet : {'subnet': {'id': 'bfcb8706-ba3c-4caf-bae5-3187996a02ac', 'name': '', 'tenant_id': 'd3780f47222d4e0fb45940cea64c06e4', 'network_id': '6088c8cf-cc0d-4d31-9334-404ce48a3e42', 'ip_version': 4, 'cidr': '146.147.204.0/26', 'allocation_pools': [{'start': '146.147.204.2', 'end': '146.147.204.62'}], 'gateway_ip': '146.147.204.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '146.147.204.2', 'tags': [], 'project_id': 'd3780f47222d4e0fb45940cea64c06e4'}}
2025-04-22 13:40:35,965 - INFO - Created VN ctest-vn-85187344
2025-04-22 13:40:36,020 - DEBUG - VN ctest-vn-85187344 UUID is 6088c8cf-cc0d-4d31-9334-404ce48a3e42
2025-04-22 13:40:36,176 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-87884293:ctest-vn-05760607, 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-87884293:ctest-vn-85187344, 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-22 13:40:36,473 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'f894e9af-bdbb-48a7-9462-699d6b56a978', 'name': 'ctest-vn-05760607', 'tenant_id': 'd3780f47222d4e0fb45940cea64c06e4', 'project_id': 'd3780f47222d4e0fb45940cea64c06e4', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['a6118d95-bfbd-4e66-9e9c-9f5f8c97f2cb'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-87884293', 'ctest-vn-05760607'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-87884293', 'ctest-policy-allow-all-80301997']], 'subnet_ipam': [{'subnet_cidr': '172.221.112.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-04-22 13:40:36,705 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '6088c8cf-cc0d-4d31-9334-404ce48a3e42', 'name': 'ctest-vn-85187344', 'tenant_id': 'd3780f47222d4e0fb45940cea64c06e4', 'project_id': 'd3780f47222d4e0fb45940cea64c06e4', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['bfcb8706-ba3c-4caf-bae5-3187996a02ac'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-87884293', 'ctest-vn-85187344'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-87884293', 'ctest-policy-allow-all-80301997']], 'subnet_ipam': [{'subnet_cidr': '146.147.204.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-04-22 13:40:36,852 - DEBUG - Requesting: http://10.0.0.56:8082/domains
2025-04-22 13:40:37,161 - DEBUG - Requesting: http://10.0.0.56:8082/domains
2025-04-22 13:40:37,187 - DEBUG - Requesting: http://10.0.0.56:8082/domain/8c726ea6-5801-4327-b4c7-a076bb85c377
2025-04-22 13:40:37,200 - DEBUG - Requesting: http://10.0.0.56:8082/project/d3780f47-222d-4e0f-b459-40cea64c06e4
2025-04-22 13:40:37,276 - DEBUG - Requesting: http://10.0.0.56:8082/virtual-network/f894e9af-bdbb-48a7-9462-699d6b56a978
2025-04-22 13:40:37,287 - DEBUG - Requesting: http://10.0.0.56:8082/virtual-network/f894e9af-bdbb-48a7-9462-699d6b56a978
2025-04-22 13:40:37,296 - DEBUG - Requesting: http://10.0.0.56:8082/routing-instance/f36a8b71-19a3-406b-9806-d432d89e89dc
2025-04-22 13:40:37,303 - DEBUG - Requesting: http://10.0.0.56:8082/routing-instance/f36a8b71-19a3-406b-9806-d432d89e89dc
2025-04-22 13:40:37,309 - DEBUG - Requesting: http://10.0.0.56:8082/route-target/621cd333-70e5-4885-846d-dda90c23bac7
2025-04-22 13:40:37,315 - DEBUG - Route Targets: ['target:64512:8000005']
2025-04-22 13:40:37,315 - DEBUG - Requesting: http://10.0.0.56:8082/virtual-network/f894e9af-bdbb-48a7-9462-699d6b56a978
2025-04-22 13:40:37,324 - DEBUG - Requesting: http://10.0.0.56:8082/routing-instance/f36a8b71-19a3-406b-9806-d432d89e89dc
2025-04-22 13:40:37,338 - INFO - Verified VN network id 8 for VN f894e9af-bdbb-48a7-9462-699d6b56a978
2025-04-22 13:40:37,338 - INFO - Verifications in API Server for VN ctest-vn-05760607 passed
2025-04-22 13:40:37,338 - DEBUG - Requesting: http://10.0.0.56:8082/virtual-network/f894e9af-bdbb-48a7-9462-699d6b56a978
2025-04-22 13:40:37,348 - DEBUG - Requesting: http://10.0.0.56:8082/routing-instance/f36a8b71-19a3-406b-9806-d432d89e89dc
2025-04-22 13:40:37,355 - DEBUG - Requesting: http://10.0.0.56:8082/routing-instance/f36a8b71-19a3-406b-9806-d432d89e89dc
2025-04-22 13:40:37,362 - DEBUG - Requesting: http://10.0.0.56:8082/route-target/621cd333-70e5-4885-846d-dda90c23bac7
2025-04-22 13:40:37,373 - DEBUG - Control-node 10.0.0.56 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-87884293:ctest-vn-05760607', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-87884293', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17912198558971021479', 'uuid-lslong': '10692224590162602360'}, 'enable': 'true', 'created': '2025-04-22T13:40:35', 'last-modified': '2025-04-22T13:40:36', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.929145'}
2025-04-22 13:40:37,379 - DEBUG - Route Targets: ['target:64512:8000005']
2025-04-22 13:40:37,379 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-05760607 passed
2025-04-22 13:40:37,379 - DEBUG - ====Verifying policy data for ctest-vn-05760607 in API_Server ======
2025-04-22 13:40:37,379 - DEBUG - Requesting: http://10.0.0.56:8082/domains
2025-04-22 13:40:37,384 - DEBUG - Requesting: http://10.0.0.56:8082/domain/8c726ea6-5801-4327-b4c7-a076bb85c377
2025-04-22 13:40:37,394 - DEBUG - Requesting: http://10.0.0.56:8082/project/d3780f47-222d-4e0f-b459-40cea64c06e4
2025-04-22 13:40:37,467 - DEBUG - Requesting: http://10.0.0.56:8082/virtual-network/f894e9af-bdbb-48a7-9462-699d6b56a978
2025-04-22 13:40:37,477 - DEBUG - ==>Verifying data for policy with id: 03ef6334-6146-4492-b000-f07429b6f185, fqn: ['default-domain', 'ctest-TestBasicPolicy-87884293', 'ctest-policy-allow-all-80301997']
2025-04-22 13:40:37,477 - INFO - VN ctest-vn-05760607 Policy verification: verify_vn_policy_in_api_server, status: True
2025-04-22 13:40:37,477 - DEBUG - Verifying the vn in opserver
2025-04-22 13:40:37,477 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-87884293:ctest-vn-05760607 virtual network link through opserver 10.0.0.56
2025-04-22 13:40:37,477 - DEBUG - Requesting: http://10.0.0.56:8081/analytics/uves/virtual-networks
2025-04-22 13:40:37,766 - DEBUG - Requesting: http://10.0.0.56:8081/analytics/uves/virtual-networks
2025-04-22 13:40:37,823 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-87884293:ctest-vn-05760607', 'href': 'http://10.0.0.56:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-87884293:ctest-vn-05760607?flat'}
2025-04-22 13:40:37,823 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-87884293:ctest-vn-05760607 is found in opserver
2025-04-22 13:40:37,834 - DEBUG - Do not have enough data to verify VN in agent
2025-04-22 13:40:37,839 - DEBUG - VRF ids for VN ctest-vn-05760607: {}
2025-04-22 13:40:37,839 - DEBUG - Requesting: http://10.0.0.56:8082/domains
2025-04-22 13:40:37,845 - DEBUG - Requesting: http://10.0.0.56:8082/domain/8c726ea6-5801-4327-b4c7-a076bb85c377
2025-04-22 13:40:37,858 - DEBUG - Requesting: http://10.0.0.56:8082/project/d3780f47-222d-4e0f-b459-40cea64c06e4
2025-04-22 13:40:37,937 - DEBUG - Requesting: http://10.0.0.56:8082/virtual-network/6088c8cf-cc0d-4d31-9334-404ce48a3e42
2025-04-22 13:40:37,951 - DEBUG - Requesting: http://10.0.0.56:8082/virtual-network/6088c8cf-cc0d-4d31-9334-404ce48a3e42
2025-04-22 13:40:37,960 - DEBUG - Requesting: http://10.0.0.56:8082/routing-instance/50d5c9f8-6a90-4cf3-90b7-5861eb793e5d
2025-04-22 13:40:37,967 - DEBUG - Requesting: http://10.0.0.56:8082/routing-instance/50d5c9f8-6a90-4cf3-90b7-5861eb793e5d
2025-04-22 13:40:37,973 - DEBUG - Requesting: http://10.0.0.56:8082/route-target/99662562-2dba-4930-89d9-8a28cc86a506
2025-04-22 13:40:37,979 - DEBUG - Route Targets: ['target:64512:8000006']
2025-04-22 13:40:37,979 - DEBUG - Requesting: http://10.0.0.56:8082/virtual-network/6088c8cf-cc0d-4d31-9334-404ce48a3e42
2025-04-22 13:40:37,988 - DEBUG - Requesting: http://10.0.0.56:8082/routing-instance/50d5c9f8-6a90-4cf3-90b7-5861eb793e5d
2025-04-22 13:40:38,001 - INFO - Verified VN network id 9 for VN 6088c8cf-cc0d-4d31-9334-404ce48a3e42
2025-04-22 13:40:38,001 - INFO - Verifications in API Server for VN ctest-vn-85187344 passed
2025-04-22 13:40:38,001 - DEBUG - Requesting: http://10.0.0.56:8082/virtual-network/6088c8cf-cc0d-4d31-9334-404ce48a3e42
2025-04-22 13:40:38,010 - DEBUG - Requesting: http://10.0.0.56:8082/routing-instance/50d5c9f8-6a90-4cf3-90b7-5861eb793e5d
2025-04-22 13:40:38,017 - DEBUG - Requesting: http://10.0.0.56:8082/routing-instance/50d5c9f8-6a90-4cf3-90b7-5861eb793e5d
2025-04-22 13:40:38,023 - DEBUG - Requesting: http://10.0.0.56:8082/route-target/99662562-2dba-4930-89d9-8a28cc86a506
2025-04-22 13:40:38,034 - DEBUG - Control-node 10.0.0.56 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-87884293:ctest-vn-85187344', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-87884293', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6956030419280940337', 'uuid-lslong': '10607173721360318018'}, 'enable': 'true', 'created': '2025-04-22T13:40:35', 'last-modified': '2025-04-22T13:40:36', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.349017'}
2025-04-22 13:40:38,040 - DEBUG - Route Targets: ['target:64512:8000006']
2025-04-22 13:40:38,040 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-85187344 passed
2025-04-22 13:40:38,040 - DEBUG - ====Verifying policy data for ctest-vn-85187344 in API_Server ======
2025-04-22 13:40:38,040 - DEBUG - Requesting: http://10.0.0.56:8082/domains
2025-04-22 13:40:38,045 - DEBUG - Requesting: http://10.0.0.56:8082/domain/8c726ea6-5801-4327-b4c7-a076bb85c377
2025-04-22 13:40:38,057 - DEBUG - Requesting: http://10.0.0.56:8082/project/d3780f47-222d-4e0f-b459-40cea64c06e4
2025-04-22 13:40:38,135 - DEBUG - Requesting: http://10.0.0.56:8082/virtual-network/6088c8cf-cc0d-4d31-9334-404ce48a3e42
2025-04-22 13:40:38,145 - DEBUG - ==>Verifying data for policy with id: 03ef6334-6146-4492-b000-f07429b6f185, fqn: ['default-domain', 'ctest-TestBasicPolicy-87884293', 'ctest-policy-allow-all-80301997']
2025-04-22 13:40:38,145 - INFO - VN ctest-vn-85187344 Policy verification: verify_vn_policy_in_api_server, status: True
2025-04-22 13:40:38,145 - DEBUG - Verifying the vn in opserver
2025-04-22 13:40:38,145 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-87884293:ctest-vn-85187344 virtual network link through opserver 10.0.0.56
2025-04-22 13:40:38,145 - DEBUG - Requesting: http://10.0.0.56:8081/analytics/uves/virtual-networks
2025-04-22 13:40:38,155 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-87884293:ctest-vn-85187344', 'href': 'http://10.0.0.56:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-87884293:ctest-vn-85187344?flat'}
2025-04-22 13:40:38,155 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-87884293:ctest-vn-85187344 is found in opserver
2025-04-22 13:40:38,165 - DEBUG - Do not have enough data to verify VN in agent
2025-04-22 13:40:38,170 - DEBUG - VRF ids for VN ctest-vn-85187344: {}
2025-04-22 13:40:38,224 - DEBUG - Services list from nova: [