2024-09-20 16:29:42,795 - INFO - Domain Default found not creating
2024-09-20 16:29:42,972 - INFO - Project ctest-TestBasicPolicy-16731886 not found, creating it
2024-09-20 16:29:43,492 - INFO - Created Project:ctest-TestBasicPolicy-16731886, ID : ba20c0a0-c429-488e-a074-ddfffdb6345e
2024-09-20 16:29:45,113 - INFO - ================================================================================
2024-09-20 16:29:45,113 - INFO - STARTING TEST : test_basic_policy_allow_deny
2024-09-20 16:29:45,113 - 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
2024-09-20 16:29:45,368 - DEBUG - Nothing to compare xmpp stats {'10.0.0.23': {'10.20.0.22': '0'}} with
2024-09-20 16:29:45,368 - INFO - Initial checks done. Running the testcase now
2024-09-20 16:29:45,368 - INFO -
2024-09-20 16:29:45,969 - DEBUG - Response for create_network : {'network': {'id': 'c119fbd9-e57f-4b22-b30e-9674f9f2d276', 'name': 'ctest-vn-19608567', 'tenant_id': 'ba20c0a0c429488ea074ddfffdb6345e', 'project_id': 'ba20c0a0c429488ea074ddfffdb6345e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-16731886', 'ctest-vn-19608567'], 'port_security_enabled': True, 'description': ''}}
2024-09-20 16:29:46,192 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b8cb0772-e07e-4bc2-a516-d4b0706ebded', 'name': '', 'tenant_id': 'ba20c0a0c429488ea074ddfffdb6345e', 'network_id': 'c119fbd9-e57f-4b22-b30e-9674f9f2d276', 'ip_version': 4, 'cidr': '196.95.185.128/26', 'allocation_pools': [{'start': '196.95.185.130', 'end': '196.95.185.190'}], 'gateway_ip': '196.95.185.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '196.95.185.130', 'tags': [], 'project_id': 'ba20c0a0c429488ea074ddfffdb6345e'}}
2024-09-20 16:29:46,212 - INFO - Created VN ctest-vn-19608567
2024-09-20 16:29:46,270 - DEBUG - VN ctest-vn-19608567 UUID is c119fbd9-e57f-4b22-b30e-9674f9f2d276
2024-09-20 16:29:46,593 - DEBUG - Response for create_network : {'network': {'id': '7b1a2cc1-85c0-4fd0-bfe5-3250ffcb6d66', 'name': 'ctest-vn-53249799', 'tenant_id': 'ba20c0a0c429488ea074ddfffdb6345e', 'project_id': 'ba20c0a0c429488ea074ddfffdb6345e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-16731886', 'ctest-vn-53249799'], 'port_security_enabled': True, 'description': ''}}
2024-09-20 16:29:46,764 - DEBUG - Response for create_subnet : {'subnet': {'id': 'ec5e8b70-e39e-46a3-8bdd-2dded6b11028', 'name': '', 'tenant_id': 'ba20c0a0c429488ea074ddfffdb6345e', 'network_id': '7b1a2cc1-85c0-4fd0-bfe5-3250ffcb6d66', 'ip_version': 4, 'cidr': '137.126.59.128/26', 'allocation_pools': [{'start': '137.126.59.130', 'end': '137.126.59.190'}], 'gateway_ip': '137.126.59.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '137.126.59.130', 'tags': [], 'project_id': 'ba20c0a0c429488ea074ddfffdb6345e'}}
2024-09-20 16:29:46,785 - INFO - Created VN ctest-vn-53249799
2024-09-20 16:29:46,842 - DEBUG - VN ctest-vn-53249799 UUID is 7b1a2cc1-85c0-4fd0-bfe5-3250ffcb6d66
2024-09-20 16:29:46,972 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-16731886:ctest-vn-19608567, 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-16731886:ctest-vn-53249799, 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]
2024-09-20 16:29:47,298 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'c119fbd9-e57f-4b22-b30e-9674f9f2d276', 'name': 'ctest-vn-19608567', 'tenant_id': 'ba20c0a0c429488ea074ddfffdb6345e', 'project_id': 'ba20c0a0c429488ea074ddfffdb6345e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['b8cb0772-e07e-4bc2-a516-d4b0706ebded'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-16731886', 'ctest-vn-19608567'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-16731886', 'ctest-policy-allow-all-44297576']], 'subnet_ipam': [{'subnet_cidr': '196.95.185.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-09-20 16:29:47,560 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '7b1a2cc1-85c0-4fd0-bfe5-3250ffcb6d66', 'name': 'ctest-vn-53249799', 'tenant_id': 'ba20c0a0c429488ea074ddfffdb6345e', 'project_id': 'ba20c0a0c429488ea074ddfffdb6345e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['ec5e8b70-e39e-46a3-8bdd-2dded6b11028'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-16731886', 'ctest-vn-53249799'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-16731886', 'ctest-policy-allow-all-44297576']], 'subnet_ipam': [{'subnet_cidr': '137.126.59.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-09-20 16:29:47,738 - DEBUG - Requesting: http://10.0.0.23:8082/domains
2024-09-20 16:29:48,045 - DEBUG - Requesting: http://10.0.0.23:8082/domains
2024-09-20 16:29:48,083 - DEBUG - Requesting: http://10.0.0.23:8082/domain/06b7c7d3-cb96-4afe-a6a3-7cbd2037159e
2024-09-20 16:29:48,099 - DEBUG - Requesting: http://10.0.0.23:8082/project/ba20c0a0-c429-488e-a074-ddfffdb6345e
2024-09-20 16:29:48,183 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/c119fbd9-e57f-4b22-b30e-9674f9f2d276
2024-09-20 16:29:48,199 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/c119fbd9-e57f-4b22-b30e-9674f9f2d276
2024-09-20 16:29:48,214 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/5dd48cd0-8733-4eda-a839-df8b27ece80c
2024-09-20 16:29:48,223 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/5dd48cd0-8733-4eda-a839-df8b27ece80c
2024-09-20 16:29:48,232 - DEBUG - Requesting: http://10.0.0.23:8082/route-target/7129fe20-6d4f-407a-a8ad-649482440256
2024-09-20 16:29:48,242 - DEBUG - Route Targets: ['target:64512:8000005']
2024-09-20 16:29:48,242 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/c119fbd9-e57f-4b22-b30e-9674f9f2d276
2024-09-20 16:29:48,257 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/5dd48cd0-8733-4eda-a839-df8b27ece80c
2024-09-20 16:29:48,279 - INFO - Verified VN network id 8 for VN c119fbd9-e57f-4b22-b30e-9674f9f2d276
2024-09-20 16:29:48,279 - INFO - Verifications in API Server for VN ctest-vn-19608567 passed
2024-09-20 16:29:48,280 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/c119fbd9-e57f-4b22-b30e-9674f9f2d276
2024-09-20 16:29:48,297 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/5dd48cd0-8733-4eda-a839-df8b27ece80c
2024-09-20 16:29:48,307 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/5dd48cd0-8733-4eda-a839-df8b27ece80c
2024-09-20 16:29:48,316 - DEBUG - Requesting: http://10.0.0.23:8082/route-target/7129fe20-6d4f-407a-a8ad-649482440256
2024-09-20 16:29:48,334 - DEBUG - Control-node 10.0.0.23 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-16731886:ctest-vn-19608567', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-16731886', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13914429437014657826', 'uuid-lslong': '12902415411616862838'}, 'enable': 'true', 'created': '2024-09-20T16:29:45', 'last-modified': '2024-09-20T16:29:47', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.068246'}
2024-09-20 16:29:48,343 - DEBUG - Route Targets: ['target:64512:8000005']
2024-09-20 16:29:48,343 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-19608567 passed
2024-09-20 16:29:48,343 - DEBUG - ====Verifying policy data for ctest-vn-19608567 in API_Server ======
2024-09-20 16:29:48,343 - DEBUG - Requesting: http://10.0.0.23:8082/domains
2024-09-20 16:29:48,350 - DEBUG - Requesting: http://10.0.0.23:8082/domain/06b7c7d3-cb96-4afe-a6a3-7cbd2037159e
2024-09-20 16:29:48,365 - DEBUG - Requesting: http://10.0.0.23:8082/project/ba20c0a0-c429-488e-a074-ddfffdb6345e
2024-09-20 16:29:48,450 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/c119fbd9-e57f-4b22-b30e-9674f9f2d276
2024-09-20 16:29:48,465 - DEBUG - ==>Verifying data for policy with id: f56e63b1-0a1f-4a81-8d21-44030d301825, fqn: ['default-domain', 'ctest-TestBasicPolicy-16731886', 'ctest-policy-allow-all-44297576']
2024-09-20 16:29:48,465 - INFO - VN ctest-vn-19608567 Policy verification: verify_vn_policy_in_api_server, status: True
2024-09-20 16:29:48,466 - DEBUG - Verifying the vn in opserver
2024-09-20 16:29:48,466 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-16731886:ctest-vn-19608567 virtual network link through opserver 10.0.0.23
2024-09-20 16:29:48,466 - DEBUG - Requesting: http://10.0.0.23:8081/analytics/uves/virtual-networks
2024-09-20 16:29:48,767 - DEBUG - Requesting: http://10.0.0.23:8081/analytics/uves/virtual-networks
2024-09-20 16:29:48,838 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-16731886:ctest-vn-19608567', 'href': 'http://10.0.0.23:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-16731886:ctest-vn-19608567?flat'}
2024-09-20 16:29:48,838 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-16731886:ctest-vn-19608567 is found in opserver
2024-09-20 16:29:48,851 - DEBUG - Do not have enough data to verify VN in agent
2024-09-20 16:29:48,857 - DEBUG - VRF ids for VN ctest-vn-19608567: {}
2024-09-20 16:29:48,857 - DEBUG - Requesting: http://10.0.0.23:8082/domains
2024-09-20 16:29:48,864 - DEBUG - Requesting: http://10.0.0.23:8082/domain/06b7c7d3-cb96-4afe-a6a3-7cbd2037159e
2024-09-20 16:29:48,890 - DEBUG - Requesting: http://10.0.0.23:8082/project/ba20c0a0-c429-488e-a074-ddfffdb6345e
2024-09-20 16:29:48,975 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/7b1a2cc1-85c0-4fd0-bfe5-3250ffcb6d66
2024-09-20 16:29:48,993 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/7b1a2cc1-85c0-4fd0-bfe5-3250ffcb6d66
2024-09-20 16:29:49,009 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/e0c2e9e2-49d2-4374-8ec5-c34517f75243
2024-09-20 16:29:49,020 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/e0c2e9e2-49d2-4374-8ec5-c34517f75243
2024-09-20 16:29:49,030 - DEBUG - Requesting: http://10.0.0.23:8082/route-target/416ac220-7888-48b3-94fc-cd120a500aa9
2024-09-20 16:29:49,038 - DEBUG - Route Targets: ['target:64512:8000006']
2024-09-20 16:29:49,038 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/7b1a2cc1-85c0-4fd0-bfe5-3250ffcb6d66
2024-09-20 16:29:49,053 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/e0c2e9e2-49d2-4374-8ec5-c34517f75243
2024-09-20 16:29:49,079 - INFO - Verified VN network id 9 for VN 7b1a2cc1-85c0-4fd0-bfe5-3250ffcb6d66
2024-09-20 16:29:49,079 - INFO - Verifications in API Server for VN ctest-vn-53249799 passed
2024-09-20 16:29:49,080 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/7b1a2cc1-85c0-4fd0-bfe5-3250ffcb6d66
2024-09-20 16:29:49,095 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/e0c2e9e2-49d2-4374-8ec5-c34517f75243
2024-09-20 16:29:49,105 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/e0c2e9e2-49d2-4374-8ec5-c34517f75243
2024-09-20 16:29:49,115 - DEBUG - Requesting: http://10.0.0.23:8082/route-target/416ac220-7888-48b3-94fc-cd120a500aa9
2024-09-20 16:29:49,131 - DEBUG - Control-node 10.0.0.23 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-16731886:ctest-vn-53249799', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-16731886', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8870451625743896528', 'uuid-lslong': '13827513554381270374'}, 'enable': 'true', 'created': '2024-09-20T16:29:46', 'last-modified': '2024-09-20T16:29:47', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.602713'}
2024-09-20 16:29:49,137 - DEBUG - Route Targets: ['target:64512:8000006']
2024-09-20 16:29:49,138 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-53249799 passed
2024-09-20 16:29:49,138 - DEBUG - ====Verifying policy data for ctest-vn-53249799 in API_Server ======
2024-09-20 16:29:49,138 - DEBUG - Requesting: http://10.0.0.23:8082/domains
2024-09-20 16:29:49,145 - DEBUG - Requesting: http://10.0.0.23:8082/domain/06b7c7d3-cb96-4afe-a6a3-7cbd2037159e
2024-09-20 16:29:49,159 - DEBUG - Requesting: http://10.0.0.23:8082/project/ba20c0a0-c429-488e-a074-ddfffdb6345e
2024-09-20 16:29:49,243 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/7b1a2cc1-85c0-4fd0-bfe5-3250ffcb6d66
2024-09-20 16:29:49,258 - DEBUG - ==>Verifying data for policy with id: f56e63b1-0a1f-4a81-8d21-44030d301825, fqn: ['default-domain', 'ctest-TestBasicPolicy-16731886', 'ctest-policy-allow-all-44297576']
2024-09-20 16:29:49,258 - INFO - VN ctest-vn-53249799 Policy verification: verify_vn_policy_in_api_server, status: True
2024-09-20 16:29:49,258 - DEBUG - Verifying the vn in opserver
2024-09-20 16:29:49,258 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-16731886:ctest-vn-53249799 virtual network link through opserver 10.0.0.23
2024-09-20 16:29:49,258 - DEBUG - Requesting: http://10.0.0.23:8081/analytics/uves/virtual-networks
2024-09-20 16:29:49,271 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-16731886:ctest-vn-53249799', 'href': 'http://10.0.0.23:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-16731886:ctest-vn-53249799?flat'}
2024-09-20 16:29:49,271 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-16731886:ctest-vn-53249799 is found in opserver
2024-09-20 16:29:49,283 - DEBUG - Do not have enough data to verify VN in agent
2024-09-20 16:29:49,290 - DEBUG - VRF ids for VN ctest-vn-53249799: {}
2024-09-20 16:29:49,351 - DEBUG - Services list from nova: [