2025-01-13 11:44:16,638 - INFO - Domain Default found not creating
2025-01-13 11:44:16,843 - INFO - Project ctest-TestBasicPolicy-14334464 not found, creating it
2025-01-13 11:44:17,346 - INFO - Created Project:ctest-TestBasicPolicy-14334464, ID : 739f54cc-113a-4120-9ea9-772676ccbb55
2025-01-13 11:44:18,910 - INFO - ================================================================================
2025-01-13 11:44:18,910 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-01-13 11:44:18,910 - 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-01-13 11:44:19,187 - DEBUG - Nothing to compare xmpp stats {'10.0.0.23': {'10.20.0.24': '0'}} with
2025-01-13 11:44:19,187 - INFO - Initial checks done. Running the testcase now
2025-01-13 11:44:19,187 - INFO -
2025-01-13 11:44:19,781 - DEBUG - Response for create_network : {'network': {'id': 'c5ce19cb-1b6a-4432-869d-443f5a13b0f6', 'name': 'ctest-vn-13963494', 'tenant_id': '739f54cc113a41209ea9772676ccbb55', 'project_id': '739f54cc113a41209ea9772676ccbb55', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-14334464', 'ctest-vn-13963494'], 'port_security_enabled': True, 'description': ''}}
2025-01-13 11:44:20,010 - DEBUG - Response for create_subnet : {'subnet': {'id': '0953fce4-9832-48b4-9d52-87162fc04ded', 'name': '', 'tenant_id': '739f54cc113a41209ea9772676ccbb55', 'network_id': 'c5ce19cb-1b6a-4432-869d-443f5a13b0f6', 'ip_version': 4, 'cidr': '154.102.172.0/26', 'allocation_pools': [{'start': '154.102.172.2', 'end': '154.102.172.62'}], 'gateway_ip': '154.102.172.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '154.102.172.2', 'tags': [], 'project_id': '739f54cc113a41209ea9772676ccbb55'}}
2025-01-13 11:44:20,032 - INFO - Created VN ctest-vn-13963494
2025-01-13 11:44:20,087 - DEBUG - VN ctest-vn-13963494 UUID is c5ce19cb-1b6a-4432-869d-443f5a13b0f6
2025-01-13 11:44:20,403 - DEBUG - Response for create_network : {'network': {'id': '8d5be4a6-78f7-47da-bfff-0ec893da1c00', 'name': 'ctest-vn-85029616', 'tenant_id': '739f54cc113a41209ea9772676ccbb55', 'project_id': '739f54cc113a41209ea9772676ccbb55', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-14334464', 'ctest-vn-85029616'], 'port_security_enabled': True, 'description': ''}}
2025-01-13 11:44:20,645 - DEBUG - Response for create_subnet : {'subnet': {'id': '1ccb0fb6-a67c-490b-a56f-d475e00b0ae1', 'name': '', 'tenant_id': '739f54cc113a41209ea9772676ccbb55', 'network_id': '8d5be4a6-78f7-47da-bfff-0ec893da1c00', 'ip_version': 4, 'cidr': '17.216.85.0/26', 'allocation_pools': [{'start': '17.216.85.2', 'end': '17.216.85.62'}], 'gateway_ip': '17.216.85.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '17.216.85.2', 'tags': [], 'project_id': '739f54cc113a41209ea9772676ccbb55'}}
2025-01-13 11:44:20,666 - INFO - Created VN ctest-vn-85029616
2025-01-13 11:44:20,719 - DEBUG - VN ctest-vn-85029616 UUID is 8d5be4a6-78f7-47da-bfff-0ec893da1c00
2025-01-13 11:44:20,845 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-14334464:ctest-vn-13963494, 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-14334464:ctest-vn-85029616, 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-01-13 11:44:21,179 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'c5ce19cb-1b6a-4432-869d-443f5a13b0f6', 'name': 'ctest-vn-13963494', 'tenant_id': '739f54cc113a41209ea9772676ccbb55', 'project_id': '739f54cc113a41209ea9772676ccbb55', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['0953fce4-9832-48b4-9d52-87162fc04ded'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-14334464', 'ctest-vn-13963494'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-14334464', 'ctest-policy-allow-all-85834168']], 'subnet_ipam': [{'subnet_cidr': '154.102.172.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-01-13 11:44:21,427 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '8d5be4a6-78f7-47da-bfff-0ec893da1c00', 'name': 'ctest-vn-85029616', 'tenant_id': '739f54cc113a41209ea9772676ccbb55', 'project_id': '739f54cc113a41209ea9772676ccbb55', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['1ccb0fb6-a67c-490b-a56f-d475e00b0ae1'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-14334464', 'ctest-vn-85029616'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-14334464', 'ctest-policy-allow-all-85834168']], 'subnet_ipam': [{'subnet_cidr': '17.216.85.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-01-13 11:44:21,617 - DEBUG - Requesting: http://10.0.0.23:8082/domains
2025-01-13 11:44:21,923 - DEBUG - Requesting: http://10.0.0.23:8082/domains
2025-01-13 11:44:21,963 - DEBUG - Requesting: http://10.0.0.23:8082/domain/194711d6-e52e-455d-a2f8-a64214d8d752
2025-01-13 11:44:21,981 - DEBUG - Requesting: http://10.0.0.23:8082/project/739f54cc-113a-4120-9ea9-772676ccbb55
2025-01-13 11:44:22,067 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/c5ce19cb-1b6a-4432-869d-443f5a13b0f6
2025-01-13 11:44:22,080 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/c5ce19cb-1b6a-4432-869d-443f5a13b0f6
2025-01-13 11:44:22,092 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/373b9ec2-535a-45ae-b967-965b5502cbbe
2025-01-13 11:44:22,100 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/373b9ec2-535a-45ae-b967-965b5502cbbe
2025-01-13 11:44:22,110 - DEBUG - Requesting: http://10.0.0.23:8082/route-target/9a2fdb57-7098-4ad1-9dbe-1401da46fbe8
2025-01-13 11:44:22,118 - DEBUG - Route Targets: ['target:64512:8000004']
2025-01-13 11:44:22,118 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/c5ce19cb-1b6a-4432-869d-443f5a13b0f6
2025-01-13 11:44:22,132 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/373b9ec2-535a-45ae-b967-965b5502cbbe
2025-01-13 11:44:22,151 - INFO - Verified VN network id 8 for VN c5ce19cb-1b6a-4432-869d-443f5a13b0f6
2025-01-13 11:44:22,151 - INFO - Verifications in API Server for VN ctest-vn-13963494 passed
2025-01-13 11:44:22,151 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/c5ce19cb-1b6a-4432-869d-443f5a13b0f6
2025-01-13 11:44:22,163 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/373b9ec2-535a-45ae-b967-965b5502cbbe
2025-01-13 11:44:22,172 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/373b9ec2-535a-45ae-b967-965b5502cbbe
2025-01-13 11:44:22,182 - DEBUG - Requesting: http://10.0.0.23:8082/route-target/9a2fdb57-7098-4ad1-9dbe-1401da46fbe8
2025-01-13 11:44:22,196 - DEBUG - Control-node 10.0.0.23 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-14334464:ctest-vn-13963494', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-14334464', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '14253358230803203122', 'uuid-lslong': '9699984211310784758'}, 'enable': 'true', 'created': '2025-01-13T11:44:19', 'last-modified': '2025-01-13T11:44:21', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.039324'}
2025-01-13 11:44:22,207 - DEBUG - Route Targets: ['target:64512:8000004']
2025-01-13 11:44:22,207 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-13963494 passed
2025-01-13 11:44:22,207 - DEBUG - ====Verifying policy data for ctest-vn-13963494 in API_Server ======
2025-01-13 11:44:22,207 - DEBUG - Requesting: http://10.0.0.23:8082/domains
2025-01-13 11:44:22,216 - DEBUG - Requesting: http://10.0.0.23:8082/domain/194711d6-e52e-455d-a2f8-a64214d8d752
2025-01-13 11:44:22,229 - DEBUG - Requesting: http://10.0.0.23:8082/project/739f54cc-113a-4120-9ea9-772676ccbb55
2025-01-13 11:44:22,308 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/c5ce19cb-1b6a-4432-869d-443f5a13b0f6
2025-01-13 11:44:22,321 - DEBUG - ==>Verifying data for policy with id: 37793c06-5f9e-41fb-b55e-d247d348833f, fqn: ['default-domain', 'ctest-TestBasicPolicy-14334464', 'ctest-policy-allow-all-85834168']
2025-01-13 11:44:22,321 - INFO - VN ctest-vn-13963494 Policy verification: verify_vn_policy_in_api_server, status: True
2025-01-13 11:44:22,321 - DEBUG - Verifying the vn in opserver
2025-01-13 11:44:22,321 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-14334464:ctest-vn-13963494 virtual network link through opserver 10.0.0.23
2025-01-13 11:44:22,321 - DEBUG - Requesting: http://10.0.0.23:8081/analytics/uves/virtual-networks
2025-01-13 11:44:22,623 - DEBUG - Requesting: http://10.0.0.23:8081/analytics/uves/virtual-networks
2025-01-13 11:44:22,702 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-14334464:ctest-vn-13963494', 'href': 'http://10.0.0.23:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-14334464:ctest-vn-13963494?flat'}
2025-01-13 11:44:22,702 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-14334464:ctest-vn-13963494 is found in opserver
2025-01-13 11:44:22,716 - DEBUG - Do not have enough data to verify VN in agent
2025-01-13 11:44:22,726 - DEBUG - VRF ids for VN ctest-vn-13963494: {}
2025-01-13 11:44:22,726 - DEBUG - Requesting: http://10.0.0.23:8082/domains
2025-01-13 11:44:22,736 - DEBUG - Requesting: http://10.0.0.23:8082/domain/194711d6-e52e-455d-a2f8-a64214d8d752
2025-01-13 11:44:22,754 - DEBUG - Requesting: http://10.0.0.23:8082/project/739f54cc-113a-4120-9ea9-772676ccbb55
2025-01-13 11:44:22,828 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/8d5be4a6-78f7-47da-bfff-0ec893da1c00
2025-01-13 11:44:22,842 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/8d5be4a6-78f7-47da-bfff-0ec893da1c00
2025-01-13 11:44:22,853 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/a7cba942-90f5-4873-a28b-f5aebaea918d
2025-01-13 11:44:22,863 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/a7cba942-90f5-4873-a28b-f5aebaea918d
2025-01-13 11:44:22,872 - DEBUG - Requesting: http://10.0.0.23:8082/route-target/4c4cd862-9d4b-4e1c-81a9-1c27b4a96ceb
2025-01-13 11:44:22,881 - DEBUG - Route Targets: ['target:64512:8000005']
2025-01-13 11:44:22,881 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/8d5be4a6-78f7-47da-bfff-0ec893da1c00
2025-01-13 11:44:22,892 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/a7cba942-90f5-4873-a28b-f5aebaea918d
2025-01-13 11:44:22,908 - INFO - Verified VN network id 9 for VN 8d5be4a6-78f7-47da-bfff-0ec893da1c00
2025-01-13 11:44:22,908 - INFO - Verifications in API Server for VN ctest-vn-85029616 passed
2025-01-13 11:44:22,909 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/8d5be4a6-78f7-47da-bfff-0ec893da1c00
2025-01-13 11:44:22,921 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/a7cba942-90f5-4873-a28b-f5aebaea918d
2025-01-13 11:44:22,930 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/a7cba942-90f5-4873-a28b-f5aebaea918d
2025-01-13 11:44:22,939 - DEBUG - Requesting: http://10.0.0.23:8082/route-target/4c4cd862-9d4b-4e1c-81a9-1c27b4a96ceb
2025-01-13 11:44:22,954 - DEBUG - Control-node 10.0.0.23 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-14334464:ctest-vn-85029616', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-14334464', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10185986385873684442', 'uuid-lslong': '13834792834942245888'}, 'enable': 'true', 'created': '2025-01-13T11:44:20', 'last-modified': '2025-01-13T11:44:21', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.552982'}
2025-01-13 11:44:22,964 - DEBUG - Route Targets: ['target:64512:8000005']
2025-01-13 11:44:22,964 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-85029616 passed
2025-01-13 11:44:22,964 - DEBUG - ====Verifying policy data for ctest-vn-85029616 in API_Server ======
2025-01-13 11:44:22,964 - DEBUG - Requesting: http://10.0.0.23:8082/domains
2025-01-13 11:44:22,971 - DEBUG - Requesting: http://10.0.0.23:8082/domain/194711d6-e52e-455d-a2f8-a64214d8d752
2025-01-13 11:44:22,984 - DEBUG - Requesting: http://10.0.0.23:8082/project/739f54cc-113a-4120-9ea9-772676ccbb55
2025-01-13 11:44:23,060 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/8d5be4a6-78f7-47da-bfff-0ec893da1c00
2025-01-13 11:44:23,072 - DEBUG - ==>Verifying data for policy with id: 37793c06-5f9e-41fb-b55e-d247d348833f, fqn: ['default-domain', 'ctest-TestBasicPolicy-14334464', 'ctest-policy-allow-all-85834168']
2025-01-13 11:44:23,072 - INFO - VN ctest-vn-85029616 Policy verification: verify_vn_policy_in_api_server, status: True
2025-01-13 11:44:23,072 - DEBUG - Verifying the vn in opserver
2025-01-13 11:44:23,072 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-14334464:ctest-vn-85029616 virtual network link through opserver 10.0.0.23
2025-01-13 11:44:23,072 - DEBUG - Requesting: http://10.0.0.23:8081/analytics/uves/virtual-networks
2025-01-13 11:44:23,084 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-14334464:ctest-vn-85029616', 'href': 'http://10.0.0.23:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-14334464:ctest-vn-85029616?flat'}
2025-01-13 11:44:23,084 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-14334464:ctest-vn-85029616 is found in opserver
2025-01-13 11:44:23,096 - DEBUG - Do not have enough data to verify VN in agent
2025-01-13 11:44:23,102 - DEBUG - VRF ids for VN ctest-vn-85029616: {}
2025-01-13 11:44:23,166 - DEBUG - Services list from nova: [