2025-04-24 02:06:00,609 - INFO - Domain Default found not creating
2025-04-24 02:06:00,738 - INFO - Project ctest-TestBasicPolicy-56502885 not found, creating it
2025-04-24 02:06:01,175 - INFO - Created Project:ctest-TestBasicPolicy-56502885, ID : f0bda1c6-b90d-431d-93f7-cc39a4e57c11
2025-04-24 02:06:02,565 - INFO - ================================================================================
2025-04-24 02:06:02,565 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-04-24 02:06:02,565 - 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-24 02:06:02,818 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.14': '0'}} with
2025-04-24 02:06:02,818 - INFO - Initial checks done. Running the testcase now
2025-04-24 02:06:02,818 - INFO -
2025-04-24 02:06:03,335 - DEBUG - Response for create_network : {'network': {'id': '637b754e-13b5-45ff-8e51-a51c371154ea', 'name': 'ctest-vn-27422472', 'tenant_id': 'f0bda1c6b90d431d93f7cc39a4e57c11', 'project_id': 'f0bda1c6b90d431d93f7cc39a4e57c11', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-56502885', 'ctest-vn-27422472'], 'port_security_enabled': True, 'description': ''}}
2025-04-24 02:06:03,604 - DEBUG - Response for create_subnet : {'subnet': {'id': '4e607dce-3095-4b9b-9718-e9c1b68e36cd', 'name': '', 'tenant_id': 'f0bda1c6b90d431d93f7cc39a4e57c11', 'network_id': '637b754e-13b5-45ff-8e51-a51c371154ea', 'ip_version': 4, 'cidr': '193.127.251.192/26', 'allocation_pools': [{'start': '193.127.251.194', 'end': '193.127.251.254'}], 'gateway_ip': '193.127.251.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '193.127.251.194', 'tags': [], 'project_id': 'f0bda1c6b90d431d93f7cc39a4e57c11'}}
2025-04-24 02:06:03,620 - INFO - Created VN ctest-vn-27422472
2025-04-24 02:06:03,673 - DEBUG - VN ctest-vn-27422472 UUID is 637b754e-13b5-45ff-8e51-a51c371154ea
2025-04-24 02:06:03,995 - DEBUG - Response for create_network : {'network': {'id': '22205acd-47fd-46e5-b65a-37ac5d0261c7', 'name': 'ctest-vn-65327057', 'tenant_id': 'f0bda1c6b90d431d93f7cc39a4e57c11', 'project_id': 'f0bda1c6b90d431d93f7cc39a4e57c11', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-56502885', 'ctest-vn-65327057'], 'port_security_enabled': True, 'description': ''}}
2025-04-24 02:06:04,144 - DEBUG - Response for create_subnet : {'subnet': {'id': 'e3f138f7-9293-4ab5-b7e9-a98c3e207143', 'name': '', 'tenant_id': 'f0bda1c6b90d431d93f7cc39a4e57c11', 'network_id': '22205acd-47fd-46e5-b65a-37ac5d0261c7', 'ip_version': 4, 'cidr': '139.143.167.0/26', 'allocation_pools': [{'start': '139.143.167.2', 'end': '139.143.167.62'}], 'gateway_ip': '139.143.167.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '139.143.167.2', 'tags': [], 'project_id': 'f0bda1c6b90d431d93f7cc39a4e57c11'}}
2025-04-24 02:06:04,161 - INFO - Created VN ctest-vn-65327057
2025-04-24 02:06:04,213 - DEBUG - VN ctest-vn-65327057 UUID is 22205acd-47fd-46e5-b65a-37ac5d0261c7
2025-04-24 02:06:04,361 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-56502885:ctest-vn-27422472, 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-56502885:ctest-vn-65327057, 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-24 02:06:04,663 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '637b754e-13b5-45ff-8e51-a51c371154ea', 'name': 'ctest-vn-27422472', 'tenant_id': 'f0bda1c6b90d431d93f7cc39a4e57c11', 'project_id': 'f0bda1c6b90d431d93f7cc39a4e57c11', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['4e607dce-3095-4b9b-9718-e9c1b68e36cd'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-56502885', 'ctest-vn-27422472'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-56502885', 'ctest-policy-allow-all-44219427']], 'subnet_ipam': [{'subnet_cidr': '193.127.251.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-04-24 02:06:04,900 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '22205acd-47fd-46e5-b65a-37ac5d0261c7', 'name': 'ctest-vn-65327057', 'tenant_id': 'f0bda1c6b90d431d93f7cc39a4e57c11', 'project_id': 'f0bda1c6b90d431d93f7cc39a4e57c11', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['e3f138f7-9293-4ab5-b7e9-a98c3e207143'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-56502885', 'ctest-vn-65327057'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-56502885', 'ctest-policy-allow-all-44219427']], 'subnet_ipam': [{'subnet_cidr': '139.143.167.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-04-24 02:06:05,069 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-04-24 02:06:05,359 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-04-24 02:06:05,387 - DEBUG - Requesting: http://10.0.0.50:8082/domain/c31fc5d9-26d5-4138-b4e7-15c8f368ed0a
2025-04-24 02:06:05,402 - DEBUG - Requesting: http://10.0.0.50:8082/project/f0bda1c6-b90d-431d-93f7-cc39a4e57c11
2025-04-24 02:06:05,477 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/637b754e-13b5-45ff-8e51-a51c371154ea
2025-04-24 02:06:05,487 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/637b754e-13b5-45ff-8e51-a51c371154ea
2025-04-24 02:06:05,496 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/a992552e-0dfc-405c-b288-fe71ec033a4c
2025-04-24 02:06:05,503 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/a992552e-0dfc-405c-b288-fe71ec033a4c
2025-04-24 02:06:05,509 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/49ce09fc-bc3b-442f-8a7a-5437d4814523
2025-04-24 02:06:05,514 - DEBUG - Route Targets: ['target:64512:8000005']
2025-04-24 02:06:05,514 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/637b754e-13b5-45ff-8e51-a51c371154ea
2025-04-24 02:06:05,522 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/a992552e-0dfc-405c-b288-fe71ec033a4c
2025-04-24 02:06:05,536 - INFO - Verified VN network id 9 for VN 637b754e-13b5-45ff-8e51-a51c371154ea
2025-04-24 02:06:05,536 - INFO - Verifications in API Server for VN ctest-vn-27422472 passed
2025-04-24 02:06:05,536 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/637b754e-13b5-45ff-8e51-a51c371154ea
2025-04-24 02:06:05,544 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/a992552e-0dfc-405c-b288-fe71ec033a4c
2025-04-24 02:06:05,549 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/a992552e-0dfc-405c-b288-fe71ec033a4c
2025-04-24 02:06:05,555 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/49ce09fc-bc3b-442f-8a7a-5437d4814523
2025-04-24 02:06:05,565 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-56502885:ctest-vn-27422472', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-56502885', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7168452210088822271', 'uuid-lslong': '10255159367100880106'}, 'enable': 'true', 'created': '2025-04-24T02:06:03', 'last-modified': '2025-04-24T02:06:04', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.931050'}
2025-04-24 02:06:05,571 - DEBUG - Route Targets: ['target:64512:8000005']
2025-04-24 02:06:05,571 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-27422472 passed
2025-04-24 02:06:05,571 - DEBUG - ====Verifying policy data for ctest-vn-27422472 in API_Server ======
2025-04-24 02:06:05,571 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-04-24 02:06:05,578 - DEBUG - Requesting: http://10.0.0.50:8082/domain/c31fc5d9-26d5-4138-b4e7-15c8f368ed0a
2025-04-24 02:06:05,588 - DEBUG - Requesting: http://10.0.0.50:8082/project/f0bda1c6-b90d-431d-93f7-cc39a4e57c11
2025-04-24 02:06:05,696 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/637b754e-13b5-45ff-8e51-a51c371154ea
2025-04-24 02:06:05,734 - DEBUG - ==>Verifying data for policy with id: 3419387d-0dfd-497e-b032-772e3784ac06, fqn: ['default-domain', 'ctest-TestBasicPolicy-56502885', 'ctest-policy-allow-all-44219427']
2025-04-24 02:06:05,734 - INFO - VN ctest-vn-27422472 Policy verification: verify_vn_policy_in_api_server, status: True
2025-04-24 02:06:05,734 - DEBUG - Verifying the vn in opserver
2025-04-24 02:06:05,734 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-56502885:ctest-vn-27422472 virtual network link through opserver 10.0.0.50
2025-04-24 02:06:05,734 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2025-04-24 02:06:06,026 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2025-04-24 02:06:06,104 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-56502885:ctest-vn-27422472', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-56502885:ctest-vn-27422472?flat'}
2025-04-24 02:06:06,105 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-56502885:ctest-vn-27422472 is found in opserver
2025-04-24 02:06:06,117 - DEBUG - Do not have enough data to verify VN in agent
2025-04-24 02:06:06,123 - DEBUG - VRF ids for VN ctest-vn-27422472: {}
2025-04-24 02:06:06,124 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-04-24 02:06:06,151 - DEBUG - Requesting: http://10.0.0.50:8082/domain/c31fc5d9-26d5-4138-b4e7-15c8f368ed0a
2025-04-24 02:06:06,223 - DEBUG - Requesting: http://10.0.0.50:8082/project/f0bda1c6-b90d-431d-93f7-cc39a4e57c11
2025-04-24 02:06:06,305 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/22205acd-47fd-46e5-b65a-37ac5d0261c7
2025-04-24 02:06:06,333 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/22205acd-47fd-46e5-b65a-37ac5d0261c7
2025-04-24 02:06:06,343 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/9f5637f6-ccb9-4ba1-ab64-ad59823ac18c
2025-04-24 02:06:06,350 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/9f5637f6-ccb9-4ba1-ab64-ad59823ac18c
2025-04-24 02:06:06,357 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/08c6b853-a3f0-4c5c-9ecd-aeeca10482a8
2025-04-24 02:06:06,363 - DEBUG - Route Targets: ['target:64512:8000006']
2025-04-24 02:06:06,363 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/22205acd-47fd-46e5-b65a-37ac5d0261c7
2025-04-24 02:06:06,372 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/9f5637f6-ccb9-4ba1-ab64-ad59823ac18c
2025-04-24 02:06:06,385 - INFO - Verified VN network id 10 for VN 22205acd-47fd-46e5-b65a-37ac5d0261c7
2025-04-24 02:06:06,385 - INFO - Verifications in API Server for VN ctest-vn-65327057 passed
2025-04-24 02:06:06,385 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/22205acd-47fd-46e5-b65a-37ac5d0261c7
2025-04-24 02:06:06,393 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/9f5637f6-ccb9-4ba1-ab64-ad59823ac18c
2025-04-24 02:06:06,399 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/9f5637f6-ccb9-4ba1-ab64-ad59823ac18c
2025-04-24 02:06:06,405 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/08c6b853-a3f0-4c5c-9ecd-aeeca10482a8
2025-04-24 02:06:06,415 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-56502885:ctest-vn-65327057', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-56502885', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '2459065234266867429', 'uuid-lslong': '13139876076241183175'}, 'enable': 'true', 'created': '2025-04-24T02:06:03', 'last-modified': '2025-04-24T02:06:04', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.535591'}
2025-04-24 02:06:06,421 - DEBUG - Route Targets: ['target:64512:8000006']
2025-04-24 02:06:06,421 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-65327057 passed
2025-04-24 02:06:06,421 - DEBUG - ====Verifying policy data for ctest-vn-65327057 in API_Server ======
2025-04-24 02:06:06,421 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-04-24 02:06:06,425 - DEBUG - Requesting: http://10.0.0.50:8082/domain/c31fc5d9-26d5-4138-b4e7-15c8f368ed0a
2025-04-24 02:06:06,436 - DEBUG - Requesting: http://10.0.0.50:8082/project/f0bda1c6-b90d-431d-93f7-cc39a4e57c11
2025-04-24 02:06:06,504 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/22205acd-47fd-46e5-b65a-37ac5d0261c7
2025-04-24 02:06:06,512 - DEBUG - ==>Verifying data for policy with id: 3419387d-0dfd-497e-b032-772e3784ac06, fqn: ['default-domain', 'ctest-TestBasicPolicy-56502885', 'ctest-policy-allow-all-44219427']
2025-04-24 02:06:06,512 - INFO - VN ctest-vn-65327057 Policy verification: verify_vn_policy_in_api_server, status: True
2025-04-24 02:06:06,513 - DEBUG - Verifying the vn in opserver
2025-04-24 02:06:06,513 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-56502885:ctest-vn-65327057 virtual network link through opserver 10.0.0.50
2025-04-24 02:06:06,513 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2025-04-24 02:06:06,521 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-56502885:ctest-vn-65327057', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-56502885:ctest-vn-65327057?flat'}
2025-04-24 02:06:06,522 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-56502885:ctest-vn-65327057 is found in opserver
2025-04-24 02:06:06,531 - DEBUG - Do not have enough data to verify VN in agent
2025-04-24 02:06:06,536 - DEBUG - VRF ids for VN ctest-vn-65327057: {}
2025-04-24 02:06:06,586 - DEBUG - Services list from nova: [