2025-04-28 15:35:23,289 - INFO - Domain Default found not creating
2025-04-28 15:35:23,453 - INFO - Project ctest-TestBasicPolicy-59820923 not found, creating it
2025-04-28 15:35:23,868 - INFO - Created Project:ctest-TestBasicPolicy-59820923, ID : b32d7f85-ff05-4d0c-9e69-2fb0b321b1f4
2025-04-28 15:35:25,424 - INFO - ================================================================================
2025-04-28 15:35:25,424 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-04-28 15:35:25,424 - 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-28 15:35:25,556 - DEBUG - Nothing to compare xmpp stats {'10.0.0.242': {'10.20.0.254': '0'}} with
2025-04-28 15:35:25,556 - INFO - Initial checks done. Running the testcase now
2025-04-28 15:35:25,556 - INFO -
2025-04-28 15:35:26,115 - DEBUG - Response for create_network : {'network': {'id': '8324964d-6a6a-4a9b-bc95-3d75e5d1c110', 'name': 'ctest-vn-53321762', 'tenant_id': 'b32d7f85ff054d0c9e692fb0b321b1f4', 'project_id': 'b32d7f85ff054d0c9e692fb0b321b1f4', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-59820923', 'ctest-vn-53321762'], 'port_security_enabled': True, 'description': ''}}
2025-04-28 15:35:26,335 - DEBUG - Response for create_subnet : {'subnet': {'id': '75e8ae45-f0ff-4eb0-9c31-6b8b5382c8f2', 'name': '', 'tenant_id': 'b32d7f85ff054d0c9e692fb0b321b1f4', 'network_id': '8324964d-6a6a-4a9b-bc95-3d75e5d1c110', 'ip_version': 4, 'cidr': '194.136.21.192/26', 'allocation_pools': [{'start': '194.136.21.194', 'end': '194.136.21.254'}], 'gateway_ip': '194.136.21.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '194.136.21.194', 'tags': [], 'project_id': 'b32d7f85ff054d0c9e692fb0b321b1f4'}}
2025-04-28 15:35:26,352 - INFO - Created VN ctest-vn-53321762
2025-04-28 15:35:26,362 - DEBUG - VN ctest-vn-53321762 UUID is 8324964d-6a6a-4a9b-bc95-3d75e5d1c110
2025-04-28 15:35:26,623 - DEBUG - Response for create_network : {'network': {'id': '4b2bcb4b-40b6-49c5-b94e-47713f6c651c', 'name': 'ctest-vn-35515101', 'tenant_id': 'b32d7f85ff054d0c9e692fb0b321b1f4', 'project_id': 'b32d7f85ff054d0c9e692fb0b321b1f4', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-59820923', 'ctest-vn-35515101'], 'port_security_enabled': True, 'description': ''}}
2025-04-28 15:35:26,810 - DEBUG - Response for create_subnet : {'subnet': {'id': '645b3c67-396b-4155-a808-d4776e10e003', 'name': '', 'tenant_id': 'b32d7f85ff054d0c9e692fb0b321b1f4', 'network_id': '4b2bcb4b-40b6-49c5-b94e-47713f6c651c', 'ip_version': 4, 'cidr': '20.17.254.0/26', 'allocation_pools': [{'start': '20.17.254.2', 'end': '20.17.254.62'}], 'gateway_ip': '20.17.254.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '20.17.254.2', 'tags': [], 'project_id': 'b32d7f85ff054d0c9e692fb0b321b1f4'}}
2025-04-28 15:35:26,828 - INFO - Created VN ctest-vn-35515101
2025-04-28 15:35:26,886 - DEBUG - VN ctest-vn-35515101 UUID is 4b2bcb4b-40b6-49c5-b94e-47713f6c651c
2025-04-28 15:35:26,952 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-59820923:ctest-vn-53321762, 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-59820923:ctest-vn-35515101, 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-28 15:35:27,179 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '8324964d-6a6a-4a9b-bc95-3d75e5d1c110', 'name': 'ctest-vn-53321762', 'tenant_id': 'b32d7f85ff054d0c9e692fb0b321b1f4', 'project_id': 'b32d7f85ff054d0c9e692fb0b321b1f4', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['75e8ae45-f0ff-4eb0-9c31-6b8b5382c8f2'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-59820923', 'ctest-vn-53321762'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-59820923', 'ctest-policy-allow-all-25552607']], 'subnet_ipam': [{'subnet_cidr': '194.136.21.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-04-28 15:35:27,333 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '4b2bcb4b-40b6-49c5-b94e-47713f6c651c', 'name': 'ctest-vn-35515101', 'tenant_id': 'b32d7f85ff054d0c9e692fb0b321b1f4', 'project_id': 'b32d7f85ff054d0c9e692fb0b321b1f4', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['645b3c67-396b-4155-a808-d4776e10e003'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-59820923', 'ctest-vn-35515101'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-59820923', 'ctest-policy-allow-all-25552607']], 'subnet_ipam': [{'subnet_cidr': '20.17.254.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-04-28 15:35:27,469 - DEBUG - Requesting: http://10.0.0.242:8082/domains
2025-04-28 15:35:27,810 - DEBUG - Requesting: http://10.0.0.242:8082/domains
2025-04-28 15:35:27,840 - DEBUG - Requesting: http://10.0.0.242:8082/domain/9e2bcec0-0ae6-4df0-a99f-45c06c7cdccf
2025-04-28 15:35:27,854 - DEBUG - Requesting: http://10.0.0.242:8082/project/b32d7f85-ff05-4d0c-9e69-2fb0b321b1f4
2025-04-28 15:35:27,930 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/8324964d-6a6a-4a9b-bc95-3d75e5d1c110
2025-04-28 15:35:27,941 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/8324964d-6a6a-4a9b-bc95-3d75e5d1c110
2025-04-28 15:35:27,951 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/95f99d1a-f178-4294-b639-e2ff27c31b1b
2025-04-28 15:35:27,958 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/95f99d1a-f178-4294-b639-e2ff27c31b1b
2025-04-28 15:35:27,964 - DEBUG - Requesting: http://10.0.0.242:8082/route-target/98b2dc40-c11c-4730-aa2d-311c86deee3d
2025-04-28 15:35:27,972 - DEBUG - Route Targets: ['target:64512:8000005']
2025-04-28 15:35:27,972 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/8324964d-6a6a-4a9b-bc95-3d75e5d1c110
2025-04-28 15:35:27,982 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/95f99d1a-f178-4294-b639-e2ff27c31b1b
2025-04-28 15:35:27,996 - INFO - Verified VN network id 8 for VN 8324964d-6a6a-4a9b-bc95-3d75e5d1c110
2025-04-28 15:35:27,996 - INFO - Verifications in API Server for VN ctest-vn-53321762 passed
2025-04-28 15:35:27,996 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/8324964d-6a6a-4a9b-bc95-3d75e5d1c110
2025-04-28 15:35:28,006 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/95f99d1a-f178-4294-b639-e2ff27c31b1b
2025-04-28 15:35:28,014 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/95f99d1a-f178-4294-b639-e2ff27c31b1b
2025-04-28 15:35:28,021 - DEBUG - Requesting: http://10.0.0.242:8082/route-target/98b2dc40-c11c-4730-aa2d-311c86deee3d
2025-04-28 15:35:28,033 - DEBUG - Control-node 10.0.0.242 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-59820923:ctest-vn-53321762', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-59820923', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9449843177372142235', 'uuid-lslong': '13588835027236536592'}, 'enable': 'true', 'created': '2025-04-28T15:35:26', 'last-modified': '2025-04-28T15:35:27', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.880636'}
2025-04-28 15:35:28,040 - DEBUG - Route Targets: ['target:64512:8000005']
2025-04-28 15:35:28,040 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-53321762 passed
2025-04-28 15:35:28,040 - DEBUG - ====Verifying policy data for ctest-vn-53321762 in API_Server ======
2025-04-28 15:35:28,040 - DEBUG - Requesting: http://10.0.0.242:8082/domains
2025-04-28 15:35:28,046 - DEBUG - Requesting: http://10.0.0.242:8082/domain/9e2bcec0-0ae6-4df0-a99f-45c06c7cdccf
2025-04-28 15:35:28,058 - DEBUG - Requesting: http://10.0.0.242:8082/project/b32d7f85-ff05-4d0c-9e69-2fb0b321b1f4
2025-04-28 15:35:28,090 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/8324964d-6a6a-4a9b-bc95-3d75e5d1c110
2025-04-28 15:35:28,102 - DEBUG - ==>Verifying data for policy with id: 7c218604-8a9a-4618-942d-bfbd2e315003, fqn: ['default-domain', 'ctest-TestBasicPolicy-59820923', 'ctest-policy-allow-all-25552607']
2025-04-28 15:35:28,102 - INFO - VN ctest-vn-53321762 Policy verification: verify_vn_policy_in_api_server, status: True
2025-04-28 15:35:28,102 - DEBUG - Verifying the vn in opserver
2025-04-28 15:35:28,102 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-59820923:ctest-vn-53321762 virtual network link through opserver 10.0.0.242
2025-04-28 15:35:28,102 - DEBUG - Requesting: http://10.0.0.242:8081/analytics/uves/virtual-networks
2025-04-28 15:35:28,433 - DEBUG - Requesting: http://10.0.0.242:8081/analytics/uves/virtual-networks
2025-04-28 15:35:28,489 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-59820923:ctest-vn-53321762', 'href': 'http://10.0.0.242:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-59820923:ctest-vn-53321762?flat'}
2025-04-28 15:35:28,489 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-59820923:ctest-vn-53321762 is found in opserver
2025-04-28 15:35:28,500 - DEBUG - Do not have enough data to verify VN in agent
2025-04-28 15:35:28,506 - DEBUG - VRF ids for VN ctest-vn-53321762: {}
2025-04-28 15:35:28,506 - DEBUG - Requesting: http://10.0.0.242:8082/domains
2025-04-28 15:35:28,513 - DEBUG - Requesting: http://10.0.0.242:8082/domain/9e2bcec0-0ae6-4df0-a99f-45c06c7cdccf
2025-04-28 15:35:28,525 - DEBUG - Requesting: http://10.0.0.242:8082/project/b32d7f85-ff05-4d0c-9e69-2fb0b321b1f4
2025-04-28 15:35:28,562 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/4b2bcb4b-40b6-49c5-b94e-47713f6c651c
2025-04-28 15:35:28,581 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/4b2bcb4b-40b6-49c5-b94e-47713f6c651c
2025-04-28 15:35:28,592 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/ceeaae6d-d0bf-48c3-8230-d5126fcfca33
2025-04-28 15:35:28,599 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/ceeaae6d-d0bf-48c3-8230-d5126fcfca33
2025-04-28 15:35:28,606 - DEBUG - Requesting: http://10.0.0.242:8082/route-target/ec77a09d-b233-49d1-ba89-6a97f6ba937f
2025-04-28 15:35:28,615 - DEBUG - Route Targets: ['target:64512:8000006']
2025-04-28 15:35:28,615 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/4b2bcb4b-40b6-49c5-b94e-47713f6c651c
2025-04-28 15:35:28,627 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/ceeaae6d-d0bf-48c3-8230-d5126fcfca33
2025-04-28 15:35:28,644 - INFO - Verified VN network id 9 for VN 4b2bcb4b-40b6-49c5-b94e-47713f6c651c
2025-04-28 15:35:28,644 - INFO - Verifications in API Server for VN ctest-vn-35515101 passed
2025-04-28 15:35:28,645 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/4b2bcb4b-40b6-49c5-b94e-47713f6c651c
2025-04-28 15:35:28,656 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/ceeaae6d-d0bf-48c3-8230-d5126fcfca33
2025-04-28 15:35:28,665 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/ceeaae6d-d0bf-48c3-8230-d5126fcfca33
2025-04-28 15:35:28,674 - DEBUG - Requesting: http://10.0.0.242:8082/route-target/ec77a09d-b233-49d1-ba89-6a97f6ba937f
2025-04-28 15:35:28,689 - DEBUG - Control-node 10.0.0.242 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-59820923:ctest-vn-35515101', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-59820923', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5416646500911827397', 'uuid-lslong': '13352688496921044252'}, 'enable': 'true', 'created': '2025-04-28T15:35:26', 'last-modified': '2025-04-28T15:35:27', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.390738'}
2025-04-28 15:35:28,696 - DEBUG - Route Targets: ['target:64512:8000006']
2025-04-28 15:35:28,696 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-35515101 passed
2025-04-28 15:35:28,696 - DEBUG - ====Verifying policy data for ctest-vn-35515101 in API_Server ======
2025-04-28 15:35:28,697 - DEBUG - Requesting: http://10.0.0.242:8082/domains
2025-04-28 15:35:28,703 - DEBUG - Requesting: http://10.0.0.242:8082/domain/9e2bcec0-0ae6-4df0-a99f-45c06c7cdccf
2025-04-28 15:35:28,714 - DEBUG - Requesting: http://10.0.0.242:8082/project/b32d7f85-ff05-4d0c-9e69-2fb0b321b1f4
2025-04-28 15:35:28,749 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/4b2bcb4b-40b6-49c5-b94e-47713f6c651c
2025-04-28 15:35:28,760 - DEBUG - ==>Verifying data for policy with id: 7c218604-8a9a-4618-942d-bfbd2e315003, fqn: ['default-domain', 'ctest-TestBasicPolicy-59820923', 'ctest-policy-allow-all-25552607']
2025-04-28 15:35:28,760 - INFO - VN ctest-vn-35515101 Policy verification: verify_vn_policy_in_api_server, status: True
2025-04-28 15:35:28,760 - DEBUG - Verifying the vn in opserver
2025-04-28 15:35:28,760 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-59820923:ctest-vn-35515101 virtual network link through opserver 10.0.0.242
2025-04-28 15:35:28,760 - DEBUG - Requesting: http://10.0.0.242:8081/analytics/uves/virtual-networks
2025-04-28 15:35:28,771 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-59820923:ctest-vn-35515101', 'href': 'http://10.0.0.242:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-59820923:ctest-vn-35515101?flat'}
2025-04-28 15:35:28,771 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-59820923:ctest-vn-35515101 is found in opserver
2025-04-28 15:35:28,782 - DEBUG - Do not have enough data to verify VN in agent
2025-04-28 15:35:28,788 - DEBUG - VRF ids for VN ctest-vn-35515101: {}
2025-04-28 15:35:28,843 - DEBUG - Services list from nova: [