2025-01-13 14:46:38,387 - INFO - Domain Default found not creating
2025-01-13 14:46:38,556 - INFO - Project ctest-TestBasicPolicy-67354272 not found, creating it
2025-01-13 14:46:39,048 - INFO - Created Project:ctest-TestBasicPolicy-67354272, ID : 688ec403-d1e7-46ee-a102-07d8d68fa9f9
2025-01-13 14:46:40,655 - INFO - ================================================================================
2025-01-13 14:46:40,655 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-01-13 14:46:40,655 - 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 14:46:40,915 - DEBUG - Nothing to compare xmpp stats {'10.0.0.27': {'10.20.0.6': '0'}} with
2025-01-13 14:46:40,915 - INFO - Initial checks done. Running the testcase now
2025-01-13 14:46:40,915 - INFO -
2025-01-13 14:46:41,566 - DEBUG - Response for create_network : {'network': {'id': '75823f45-0e02-40f1-99ee-325ba58c097c', 'name': 'ctest-vn-03279688', 'tenant_id': '688ec403d1e746eea10207d8d68fa9f9', 'project_id': '688ec403d1e746eea10207d8d68fa9f9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-67354272', 'ctest-vn-03279688'], 'port_security_enabled': True, 'description': ''}}
2025-01-13 14:46:41,741 - DEBUG - Response for create_subnet : {'subnet': {'id': '4876eaed-b1b3-454c-9aaf-3678f9351add', 'name': '', 'tenant_id': '688ec403d1e746eea10207d8d68fa9f9', 'network_id': '75823f45-0e02-40f1-99ee-325ba58c097c', 'ip_version': 4, 'cidr': '156.250.82.0/26', 'allocation_pools': [{'start': '156.250.82.2', 'end': '156.250.82.62'}], 'gateway_ip': '156.250.82.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '156.250.82.2', 'tags': [], 'project_id': '688ec403d1e746eea10207d8d68fa9f9'}}
2025-01-13 14:46:41,763 - INFO - Created VN ctest-vn-03279688
2025-01-13 14:46:41,819 - DEBUG - VN ctest-vn-03279688 UUID is 75823f45-0e02-40f1-99ee-325ba58c097c
2025-01-13 14:46:42,146 - DEBUG - Response for create_network : {'network': {'id': '1c78709d-ad6c-46b3-89e9-8d00653200cf', 'name': 'ctest-vn-59096006', 'tenant_id': '688ec403d1e746eea10207d8d68fa9f9', 'project_id': '688ec403d1e746eea10207d8d68fa9f9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-67354272', 'ctest-vn-59096006'], 'port_security_enabled': True, 'description': ''}}
2025-01-13 14:46:42,363 - DEBUG - Response for create_subnet : {'subnet': {'id': '4e24ca1f-65eb-4883-a763-ef11da55b430', 'name': '', 'tenant_id': '688ec403d1e746eea10207d8d68fa9f9', 'network_id': '1c78709d-ad6c-46b3-89e9-8d00653200cf', 'ip_version': 4, 'cidr': '118.111.230.192/26', 'allocation_pools': [{'start': '118.111.230.194', 'end': '118.111.230.254'}], 'gateway_ip': '118.111.230.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '118.111.230.194', 'tags': [], 'project_id': '688ec403d1e746eea10207d8d68fa9f9'}}
2025-01-13 14:46:42,383 - INFO - Created VN ctest-vn-59096006
2025-01-13 14:46:42,439 - DEBUG - VN ctest-vn-59096006 UUID is 1c78709d-ad6c-46b3-89e9-8d00653200cf
2025-01-13 14:46:42,562 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-67354272:ctest-vn-03279688, 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-67354272:ctest-vn-59096006, 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 14:46:42,886 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '75823f45-0e02-40f1-99ee-325ba58c097c', 'name': 'ctest-vn-03279688', 'tenant_id': '688ec403d1e746eea10207d8d68fa9f9', 'project_id': '688ec403d1e746eea10207d8d68fa9f9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['4876eaed-b1b3-454c-9aaf-3678f9351add'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-67354272', 'ctest-vn-03279688'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-67354272', 'ctest-policy-allow-all-71039484']], 'subnet_ipam': [{'subnet_cidr': '156.250.82.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-01-13 14:46:43,138 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '1c78709d-ad6c-46b3-89e9-8d00653200cf', 'name': 'ctest-vn-59096006', 'tenant_id': '688ec403d1e746eea10207d8d68fa9f9', 'project_id': '688ec403d1e746eea10207d8d68fa9f9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['4e24ca1f-65eb-4883-a763-ef11da55b430'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-67354272', 'ctest-vn-59096006'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-67354272', 'ctest-policy-allow-all-71039484']], 'subnet_ipam': [{'subnet_cidr': '118.111.230.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-01-13 14:46:43,292 - DEBUG - Requesting: http://10.0.0.27:8082/domains
2025-01-13 14:46:43,592 - DEBUG - Requesting: http://10.0.0.27:8082/domains
2025-01-13 14:46:43,629 - DEBUG - Requesting: http://10.0.0.27:8082/domain/6a234bfa-1e6e-4c07-9925-3a80bccca340
2025-01-13 14:46:43,647 - DEBUG - Requesting: http://10.0.0.27:8082/project/688ec403-d1e7-46ee-a102-07d8d68fa9f9
2025-01-13 14:46:43,733 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/75823f45-0e02-40f1-99ee-325ba58c097c
2025-01-13 14:46:43,748 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/75823f45-0e02-40f1-99ee-325ba58c097c
2025-01-13 14:46:43,761 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/7e7f03b7-d95e-4a9f-9c1f-4150bb7e962a
2025-01-13 14:46:43,772 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/7e7f03b7-d95e-4a9f-9c1f-4150bb7e962a
2025-01-13 14:46:43,781 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/fc97e7d2-cdc6-43ea-8bca-f0968e2d3993
2025-01-13 14:46:43,791 - DEBUG - Route Targets: ['target:64512:8000004']
2025-01-13 14:46:43,791 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/75823f45-0e02-40f1-99ee-325ba58c097c
2025-01-13 14:46:43,803 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/7e7f03b7-d95e-4a9f-9c1f-4150bb7e962a
2025-01-13 14:46:43,820 - INFO - Verified VN network id 8 for VN 75823f45-0e02-40f1-99ee-325ba58c097c
2025-01-13 14:46:43,820 - INFO - Verifications in API Server for VN ctest-vn-03279688 passed
2025-01-13 14:46:43,820 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/75823f45-0e02-40f1-99ee-325ba58c097c
2025-01-13 14:46:43,832 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/7e7f03b7-d95e-4a9f-9c1f-4150bb7e962a
2025-01-13 14:46:43,842 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/7e7f03b7-d95e-4a9f-9c1f-4150bb7e962a
2025-01-13 14:46:43,850 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/fc97e7d2-cdc6-43ea-8bca-f0968e2d3993
2025-01-13 14:46:43,865 - DEBUG - Control-node 10.0.0.27 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-67354272:ctest-vn-03279688', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-67354272', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8467399815230275825', 'uuid-lslong': '11091858301460941180'}, 'enable': 'true', 'created': '2025-01-13T14:46:41', 'last-modified': '2025-01-13T14:46:42', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.011266'}
2025-01-13 14:46:43,873 - DEBUG - Route Targets: ['target:64512:8000004']
2025-01-13 14:46:43,873 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-03279688 passed
2025-01-13 14:46:43,873 - DEBUG - ====Verifying policy data for ctest-vn-03279688 in API_Server ======
2025-01-13 14:46:43,873 - DEBUG - Requesting: http://10.0.0.27:8082/domains
2025-01-13 14:46:43,882 - DEBUG - Requesting: http://10.0.0.27:8082/domain/6a234bfa-1e6e-4c07-9925-3a80bccca340
2025-01-13 14:46:43,895 - DEBUG - Requesting: http://10.0.0.27:8082/project/688ec403-d1e7-46ee-a102-07d8d68fa9f9
2025-01-13 14:46:43,977 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/75823f45-0e02-40f1-99ee-325ba58c097c
2025-01-13 14:46:43,993 - DEBUG - ==>Verifying data for policy with id: 9bbf69ad-c582-4a74-a116-60a8d3f2c53c, fqn: ['default-domain', 'ctest-TestBasicPolicy-67354272', 'ctest-policy-allow-all-71039484']
2025-01-13 14:46:43,993 - INFO - VN ctest-vn-03279688 Policy verification: verify_vn_policy_in_api_server, status: True
2025-01-13 14:46:43,993 - DEBUG - Verifying the vn in opserver
2025-01-13 14:46:43,993 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-67354272:ctest-vn-03279688 virtual network link through opserver 10.0.0.27
2025-01-13 14:46:43,994 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks
2025-01-13 14:46:44,308 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks
2025-01-13 14:46:44,383 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-67354272:ctest-vn-03279688', 'href': 'http://10.0.0.27:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-67354272:ctest-vn-03279688?flat'}
2025-01-13 14:46:44,383 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-67354272:ctest-vn-03279688 is found in opserver
2025-01-13 14:46:44,397 - DEBUG - Do not have enough data to verify VN in agent
2025-01-13 14:46:44,403 - DEBUG - VRF ids for VN ctest-vn-03279688: {}
2025-01-13 14:46:44,403 - DEBUG - Requesting: http://10.0.0.27:8082/domains
2025-01-13 14:46:44,410 - DEBUG - Requesting: http://10.0.0.27:8082/domain/6a234bfa-1e6e-4c07-9925-3a80bccca340
2025-01-13 14:46:44,438 - DEBUG - Requesting: http://10.0.0.27:8082/project/688ec403-d1e7-46ee-a102-07d8d68fa9f9
2025-01-13 14:46:44,517 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/1c78709d-ad6c-46b3-89e9-8d00653200cf
2025-01-13 14:46:44,531 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/1c78709d-ad6c-46b3-89e9-8d00653200cf
2025-01-13 14:46:44,542 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/d9619cdc-7b65-43c3-9b3e-27e7f95fb40c
2025-01-13 14:46:44,552 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/d9619cdc-7b65-43c3-9b3e-27e7f95fb40c
2025-01-13 14:46:44,561 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/c1455945-bc87-437e-83e2-6b090bcde397
2025-01-13 14:46:44,569 - DEBUG - Route Targets: ['target:64512:8000005']
2025-01-13 14:46:44,569 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/1c78709d-ad6c-46b3-89e9-8d00653200cf
2025-01-13 14:46:44,580 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/d9619cdc-7b65-43c3-9b3e-27e7f95fb40c
2025-01-13 14:46:44,597 - INFO - Verified VN network id 9 for VN 1c78709d-ad6c-46b3-89e9-8d00653200cf
2025-01-13 14:46:44,597 - INFO - Verifications in API Server for VN ctest-vn-59096006 passed
2025-01-13 14:46:44,597 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/1c78709d-ad6c-46b3-89e9-8d00653200cf
2025-01-13 14:46:44,609 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/d9619cdc-7b65-43c3-9b3e-27e7f95fb40c
2025-01-13 14:46:44,617 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/d9619cdc-7b65-43c3-9b3e-27e7f95fb40c
2025-01-13 14:46:44,626 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/c1455945-bc87-437e-83e2-6b090bcde397
2025-01-13 14:46:44,641 - DEBUG - Control-node 10.0.0.27 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-67354272:ctest-vn-59096006', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-67354272', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '2051513452788991667', 'uuid-lslong': '9937629085607002319'}, 'enable': 'true', 'created': '2025-01-13T14:46:42', 'last-modified': '2025-01-13T14:46:43', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.531271'}
2025-01-13 14:46:44,650 - DEBUG - Route Targets: ['target:64512:8000005']
2025-01-13 14:46:44,650 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-59096006 passed
2025-01-13 14:46:44,651 - DEBUG - ====Verifying policy data for ctest-vn-59096006 in API_Server ======
2025-01-13 14:46:44,651 - DEBUG - Requesting: http://10.0.0.27:8082/domains
2025-01-13 14:46:44,656 - DEBUG - Requesting: http://10.0.0.27:8082/domain/6a234bfa-1e6e-4c07-9925-3a80bccca340
2025-01-13 14:46:44,669 - DEBUG - Requesting: http://10.0.0.27:8082/project/688ec403-d1e7-46ee-a102-07d8d68fa9f9
2025-01-13 14:46:44,748 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/1c78709d-ad6c-46b3-89e9-8d00653200cf
2025-01-13 14:46:44,759 - DEBUG - ==>Verifying data for policy with id: 9bbf69ad-c582-4a74-a116-60a8d3f2c53c, fqn: ['default-domain', 'ctest-TestBasicPolicy-67354272', 'ctest-policy-allow-all-71039484']
2025-01-13 14:46:44,759 - INFO - VN ctest-vn-59096006 Policy verification: verify_vn_policy_in_api_server, status: True
2025-01-13 14:46:44,759 - DEBUG - Verifying the vn in opserver
2025-01-13 14:46:44,759 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-67354272:ctest-vn-59096006 virtual network link through opserver 10.0.0.27
2025-01-13 14:46:44,759 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks
2025-01-13 14:46:44,772 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-67354272:ctest-vn-59096006', 'href': 'http://10.0.0.27:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-67354272:ctest-vn-59096006?flat'}
2025-01-13 14:46:44,772 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-67354272:ctest-vn-59096006 is found in opserver
2025-01-13 14:46:44,784 - DEBUG - Do not have enough data to verify VN in agent
2025-01-13 14:46:44,790 - DEBUG - VRF ids for VN ctest-vn-59096006: {}
2025-01-13 14:46:44,863 - DEBUG - Services list from nova: [