2024-11-14 17:57:24,692 - INFO - Domain Default found not creating
2024-11-14 17:57:24,856 - INFO - Project ctest-TestBasicPolicy-80358388 not found, creating it
2024-11-14 17:57:25,375 - INFO - Created Project:ctest-TestBasicPolicy-80358388, ID : ef840314-6723-4d58-b2ea-ff2564e069da
2024-11-14 17:57:26,913 - INFO - ================================================================================
2024-11-14 17:57:26,913 - INFO - STARTING TEST : test_basic_policy_allow_deny
2024-11-14 17:57:26,913 - 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-11-14 17:57:27,170 - DEBUG - Nothing to compare xmpp stats {'10.0.0.17': {'10.20.0.8': '0'}} with
2024-11-14 17:57:27,171 - INFO - Initial checks done. Running the testcase now
2024-11-14 17:57:27,171 - INFO -
2024-11-14 17:57:27,768 - DEBUG - Response for create_network : {'network': {'id': 'b9338616-5c1c-4c8e-8586-a0b8d2f4d498', 'name': 'ctest-vn-48503577', 'tenant_id': 'ef84031467234d58b2eaff2564e069da', 'project_id': 'ef84031467234d58b2eaff2564e069da', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-80358388', 'ctest-vn-48503577'], 'port_security_enabled': True, 'description': ''}}
2024-11-14 17:57:27,960 - DEBUG - Response for create_subnet : {'subnet': {'id': '60351aa6-0773-48da-bb45-37a31d3048e3', 'name': '', 'tenant_id': 'ef84031467234d58b2eaff2564e069da', 'network_id': 'b9338616-5c1c-4c8e-8586-a0b8d2f4d498', 'ip_version': 4, 'cidr': '221.60.189.192/26', 'allocation_pools': [{'start': '221.60.189.194', 'end': '221.60.189.254'}], 'gateway_ip': '221.60.189.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '221.60.189.194', 'tags': [], 'project_id': 'ef84031467234d58b2eaff2564e069da'}}
2024-11-14 17:57:27,980 - INFO - Created VN ctest-vn-48503577
2024-11-14 17:57:28,040 - DEBUG - VN ctest-vn-48503577 UUID is b9338616-5c1c-4c8e-8586-a0b8d2f4d498
2024-11-14 17:57:28,355 - DEBUG - Response for create_network : {'network': {'id': '9a83609c-c94f-4a82-85cd-25fa8c649f22', 'name': 'ctest-vn-25681172', 'tenant_id': 'ef84031467234d58b2eaff2564e069da', 'project_id': 'ef84031467234d58b2eaff2564e069da', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-80358388', 'ctest-vn-25681172'], 'port_security_enabled': True, 'description': ''}}
2024-11-14 17:57:28,562 - DEBUG - Response for create_subnet : {'subnet': {'id': 'bff2c109-2ef5-4a29-8ea2-f9efcddb7ea6', 'name': '', 'tenant_id': 'ef84031467234d58b2eaff2564e069da', 'network_id': '9a83609c-c94f-4a82-85cd-25fa8c649f22', 'ip_version': 4, 'cidr': '105.114.52.128/26', 'allocation_pools': [{'start': '105.114.52.130', 'end': '105.114.52.190'}], 'gateway_ip': '105.114.52.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '105.114.52.130', 'tags': [], 'project_id': 'ef84031467234d58b2eaff2564e069da'}}
2024-11-14 17:57:28,584 - INFO - Created VN ctest-vn-25681172
2024-11-14 17:57:28,640 - DEBUG - VN ctest-vn-25681172 UUID is 9a83609c-c94f-4a82-85cd-25fa8c649f22
2024-11-14 17:57:28,761 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-80358388:ctest-vn-48503577, 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-80358388:ctest-vn-25681172, 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-11-14 17:57:29,075 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'b9338616-5c1c-4c8e-8586-a0b8d2f4d498', 'name': 'ctest-vn-48503577', 'tenant_id': 'ef84031467234d58b2eaff2564e069da', 'project_id': 'ef84031467234d58b2eaff2564e069da', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['60351aa6-0773-48da-bb45-37a31d3048e3'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-80358388', 'ctest-vn-48503577'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-80358388', 'ctest-policy-allow-all-59879345']], 'subnet_ipam': [{'subnet_cidr': '221.60.189.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-11-14 17:57:29,307 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '9a83609c-c94f-4a82-85cd-25fa8c649f22', 'name': 'ctest-vn-25681172', 'tenant_id': 'ef84031467234d58b2eaff2564e069da', 'project_id': 'ef84031467234d58b2eaff2564e069da', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['bff2c109-2ef5-4a29-8ea2-f9efcddb7ea6'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-80358388', 'ctest-vn-25681172'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-80358388', 'ctest-policy-allow-all-59879345']], 'subnet_ipam': [{'subnet_cidr': '105.114.52.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-11-14 17:57:29,488 - DEBUG - Requesting: http://10.0.0.17:8082/domains
2024-11-14 17:57:29,807 - DEBUG - Requesting: http://10.0.0.17:8082/domains
2024-11-14 17:57:29,839 - DEBUG - Requesting: http://10.0.0.17:8082/domain/61c04e61-f121-4d49-a8c1-d781b795f5bb
2024-11-14 17:57:29,854 - DEBUG - Requesting: http://10.0.0.17:8082/project/ef840314-6723-4d58-b2ea-ff2564e069da
2024-11-14 17:57:29,946 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/b9338616-5c1c-4c8e-8586-a0b8d2f4d498
2024-11-14 17:57:29,963 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/b9338616-5c1c-4c8e-8586-a0b8d2f4d498
2024-11-14 17:57:29,980 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/4bad8127-378c-4cfe-94bf-6756b39185fa
2024-11-14 17:57:29,989 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/4bad8127-378c-4cfe-94bf-6756b39185fa
2024-11-14 17:57:29,999 - DEBUG - Requesting: http://10.0.0.17:8082/route-target/d51f862c-fc93-4615-9085-5695682bbfc6
2024-11-14 17:57:30,009 - DEBUG - Route Targets: ['target:64512:8000005']
2024-11-14 17:57:30,009 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/b9338616-5c1c-4c8e-8586-a0b8d2f4d498
2024-11-14 17:57:30,026 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/4bad8127-378c-4cfe-94bf-6756b39185fa
2024-11-14 17:57:30,056 - INFO - Verified VN network id 8 for VN b9338616-5c1c-4c8e-8586-a0b8d2f4d498
2024-11-14 17:57:30,057 - INFO - Verifications in API Server for VN ctest-vn-48503577 passed
2024-11-14 17:57:30,057 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/b9338616-5c1c-4c8e-8586-a0b8d2f4d498
2024-11-14 17:57:30,075 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/4bad8127-378c-4cfe-94bf-6756b39185fa
2024-11-14 17:57:30,088 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/4bad8127-378c-4cfe-94bf-6756b39185fa
2024-11-14 17:57:30,101 - DEBUG - Requesting: http://10.0.0.17:8082/route-target/d51f862c-fc93-4615-9085-5695682bbfc6
2024-11-14 17:57:30,117 - DEBUG - Control-node 10.0.0.17 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-80358388:ctest-vn-48503577', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-80358388', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13345157551421672590', 'uuid-lslong': '9621554369597330584'}, 'enable': 'true', 'created': '2024-11-14T17:57:27', 'last-modified': '2024-11-14T17:57:29', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.072809'}
2024-11-14 17:57:30,127 - DEBUG - Route Targets: ['target:64512:8000005']
2024-11-14 17:57:30,127 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-48503577 passed
2024-11-14 17:57:30,128 - DEBUG - ====Verifying policy data for ctest-vn-48503577 in API_Server ======
2024-11-14 17:57:30,128 - DEBUG - Requesting: http://10.0.0.17:8082/domains
2024-11-14 17:57:30,136 - DEBUG - Requesting: http://10.0.0.17:8082/domain/61c04e61-f121-4d49-a8c1-d781b795f5bb
2024-11-14 17:57:30,154 - DEBUG - Requesting: http://10.0.0.17:8082/project/ef840314-6723-4d58-b2ea-ff2564e069da
2024-11-14 17:57:30,237 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/b9338616-5c1c-4c8e-8586-a0b8d2f4d498
2024-11-14 17:57:30,251 - DEBUG - ==>Verifying data for policy with id: f96b322c-c6e0-42c4-8a5d-0ba05c1029ee, fqn: ['default-domain', 'ctest-TestBasicPolicy-80358388', 'ctest-policy-allow-all-59879345']
2024-11-14 17:57:30,252 - INFO - VN ctest-vn-48503577 Policy verification: verify_vn_policy_in_api_server, status: True
2024-11-14 17:57:30,252 - DEBUG - Verifying the vn in opserver
2024-11-14 17:57:30,252 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-80358388:ctest-vn-48503577 virtual network link through opserver 10.0.0.17
2024-11-14 17:57:30,252 - DEBUG - Requesting: http://10.0.0.17:8081/analytics/uves/virtual-networks
2024-11-14 17:57:30,547 - DEBUG - Requesting: http://10.0.0.17:8081/analytics/uves/virtual-networks
2024-11-14 17:57:30,615 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-80358388:ctest-vn-48503577', 'href': 'http://10.0.0.17:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-80358388:ctest-vn-48503577?flat'}
2024-11-14 17:57:30,615 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-80358388:ctest-vn-48503577 is found in opserver
2024-11-14 17:57:30,629 - DEBUG - Do not have enough data to verify VN in agent
2024-11-14 17:57:30,636 - DEBUG - VRF ids for VN ctest-vn-48503577: {}
2024-11-14 17:57:30,636 - DEBUG - Requesting: http://10.0.0.17:8082/domains
2024-11-14 17:57:30,644 - DEBUG - Requesting: http://10.0.0.17:8082/domain/61c04e61-f121-4d49-a8c1-d781b795f5bb
2024-11-14 17:57:30,662 - DEBUG - Requesting: http://10.0.0.17:8082/project/ef840314-6723-4d58-b2ea-ff2564e069da
2024-11-14 17:57:30,745 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/9a83609c-c94f-4a82-85cd-25fa8c649f22
2024-11-14 17:57:30,768 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/9a83609c-c94f-4a82-85cd-25fa8c649f22
2024-11-14 17:57:30,783 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/ef79fe0e-28d8-42b1-a793-55c131faf20d
2024-11-14 17:57:30,804 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/ef79fe0e-28d8-42b1-a793-55c131faf20d
2024-11-14 17:57:30,814 - DEBUG - Requesting: http://10.0.0.17:8082/route-target/dc43c2ee-ea50-418a-aa2c-2a095a88167b
2024-11-14 17:57:30,822 - DEBUG - Route Targets: ['target:64512:8000006']
2024-11-14 17:57:30,822 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/9a83609c-c94f-4a82-85cd-25fa8c649f22
2024-11-14 17:57:30,840 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/ef79fe0e-28d8-42b1-a793-55c131faf20d
2024-11-14 17:57:30,862 - INFO - Verified VN network id 9 for VN 9a83609c-c94f-4a82-85cd-25fa8c649f22
2024-11-14 17:57:30,862 - INFO - Verifications in API Server for VN ctest-vn-25681172 passed
2024-11-14 17:57:30,862 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/9a83609c-c94f-4a82-85cd-25fa8c649f22
2024-11-14 17:57:30,878 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/ef79fe0e-28d8-42b1-a793-55c131faf20d
2024-11-14 17:57:30,887 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/ef79fe0e-28d8-42b1-a793-55c131faf20d
2024-11-14 17:57:30,897 - DEBUG - Requesting: http://10.0.0.17:8082/route-target/dc43c2ee-ea50-418a-aa2c-2a095a88167b
2024-11-14 17:57:30,913 - DEBUG - Control-node 10.0.0.17 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-80358388:ctest-vn-25681172', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-80358388', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11133848930298579586', 'uuid-lslong': '9641404135297556258'}, 'enable': 'true', 'created': '2024-11-14T17:57:28', 'last-modified': '2024-11-14T17:57:29', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.627871'}
2024-11-14 17:57:30,921 - DEBUG - Route Targets: ['target:64512:8000006']
2024-11-14 17:57:30,921 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-25681172 passed
2024-11-14 17:57:30,921 - DEBUG - ====Verifying policy data for ctest-vn-25681172 in API_Server ======
2024-11-14 17:57:30,921 - DEBUG - Requesting: http://10.0.0.17:8082/domains
2024-11-14 17:57:30,929 - DEBUG - Requesting: http://10.0.0.17:8082/domain/61c04e61-f121-4d49-a8c1-d781b795f5bb
2024-11-14 17:57:30,947 - DEBUG - Requesting: http://10.0.0.17:8082/project/ef840314-6723-4d58-b2ea-ff2564e069da
2024-11-14 17:57:31,034 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/9a83609c-c94f-4a82-85cd-25fa8c649f22
2024-11-14 17:57:31,049 - DEBUG - ==>Verifying data for policy with id: f96b322c-c6e0-42c4-8a5d-0ba05c1029ee, fqn: ['default-domain', 'ctest-TestBasicPolicy-80358388', 'ctest-policy-allow-all-59879345']
2024-11-14 17:57:31,049 - INFO - VN ctest-vn-25681172 Policy verification: verify_vn_policy_in_api_server, status: True
2024-11-14 17:57:31,050 - DEBUG - Verifying the vn in opserver
2024-11-14 17:57:31,050 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-80358388:ctest-vn-25681172 virtual network link through opserver 10.0.0.17
2024-11-14 17:57:31,050 - DEBUG - Requesting: http://10.0.0.17:8081/analytics/uves/virtual-networks
2024-11-14 17:57:31,062 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-80358388:ctest-vn-25681172', 'href': 'http://10.0.0.17:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-80358388:ctest-vn-25681172?flat'}
2024-11-14 17:57:31,062 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-80358388:ctest-vn-25681172 is found in opserver
2024-11-14 17:57:31,074 - DEBUG - Do not have enough data to verify VN in agent
2024-11-14 17:57:31,080 - DEBUG - VRF ids for VN ctest-vn-25681172: {}
2024-11-14 17:57:31,134 - DEBUG - Services list from nova: [