2025-01-11 21:53:59,416 - INFO - Domain Default found not creating
2025-01-11 21:53:59,559 - INFO - Project ctest-TestBasicPolicy-31543938 not found, creating it
2025-01-11 21:54:00,100 - INFO - Created Project:ctest-TestBasicPolicy-31543938, ID : aa70ec6f-9e60-4408-895d-f232d703c647
2025-01-11 21:54:01,582 - INFO - ================================================================================
2025-01-11 21:54:01,582 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-01-11 21:54:01,582 - 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-11 21:54:01,840 - DEBUG - Nothing to compare xmpp stats {'10.0.0.23': {'10.20.0.33': '0'}} with
2025-01-11 21:54:01,840 - INFO - Initial checks done. Running the testcase now
2025-01-11 21:54:01,840 - INFO -
2025-01-11 21:54:02,408 - DEBUG - Response for create_network : {'network': {'id': 'd6b20f6e-7798-4ed8-a05a-e52a6a564492', 'name': 'ctest-vn-76005562', 'tenant_id': 'aa70ec6f9e604408895df232d703c647', 'project_id': 'aa70ec6f9e604408895df232d703c647', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-31543938', 'ctest-vn-76005562'], 'port_security_enabled': True, 'description': ''}}
2025-01-11 21:54:02,560 - DEBUG - Response for create_subnet : {'subnet': {'id': '6f90d298-9bd4-4ed1-b44d-769bc184eccb', 'name': '', 'tenant_id': 'aa70ec6f9e604408895df232d703c647', 'network_id': 'd6b20f6e-7798-4ed8-a05a-e52a6a564492', 'ip_version': 4, 'cidr': '62.31.196.192/26', 'allocation_pools': [{'start': '62.31.196.194', 'end': '62.31.196.254'}], 'gateway_ip': '62.31.196.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '62.31.196.194', 'tags': [], 'project_id': 'aa70ec6f9e604408895df232d703c647'}}
2025-01-11 21:54:02,577 - INFO - Created VN ctest-vn-76005562
2025-01-11 21:54:02,629 - DEBUG - VN ctest-vn-76005562 UUID is d6b20f6e-7798-4ed8-a05a-e52a6a564492
2025-01-11 21:54:02,922 - DEBUG - Response for create_network : {'network': {'id': 'dffd1c6c-62ed-48ac-8fb9-7d7198ae58c5', 'name': 'ctest-vn-94021626', 'tenant_id': 'aa70ec6f9e604408895df232d703c647', 'project_id': 'aa70ec6f9e604408895df232d703c647', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-31543938', 'ctest-vn-94021626'], 'port_security_enabled': True, 'description': ''}}
2025-01-11 21:54:03,149 - DEBUG - Response for create_subnet : {'subnet': {'id': 'bf7d1bfc-821a-4a95-9cc8-cf12ddfce431', 'name': '', 'tenant_id': 'aa70ec6f9e604408895df232d703c647', 'network_id': 'dffd1c6c-62ed-48ac-8fb9-7d7198ae58c5', 'ip_version': 4, 'cidr': '152.105.7.128/26', 'allocation_pools': [{'start': '152.105.7.130', 'end': '152.105.7.190'}], 'gateway_ip': '152.105.7.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '152.105.7.130', 'tags': [], 'project_id': 'aa70ec6f9e604408895df232d703c647'}}
2025-01-11 21:54:03,168 - INFO - Created VN ctest-vn-94021626
2025-01-11 21:54:03,221 - DEBUG - VN ctest-vn-94021626 UUID is dffd1c6c-62ed-48ac-8fb9-7d7198ae58c5
2025-01-11 21:54:03,335 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-31543938:ctest-vn-76005562, 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-31543938:ctest-vn-94021626, 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-11 21:54:03,662 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'd6b20f6e-7798-4ed8-a05a-e52a6a564492', 'name': 'ctest-vn-76005562', 'tenant_id': 'aa70ec6f9e604408895df232d703c647', 'project_id': 'aa70ec6f9e604408895df232d703c647', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['6f90d298-9bd4-4ed1-b44d-769bc184eccb'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-31543938', 'ctest-vn-76005562'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-31543938', 'ctest-policy-allow-all-82212252']], 'subnet_ipam': [{'subnet_cidr': '62.31.196.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-01-11 21:54:03,890 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'dffd1c6c-62ed-48ac-8fb9-7d7198ae58c5', 'name': 'ctest-vn-94021626', 'tenant_id': 'aa70ec6f9e604408895df232d703c647', 'project_id': 'aa70ec6f9e604408895df232d703c647', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['bf7d1bfc-821a-4a95-9cc8-cf12ddfce431'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-31543938', 'ctest-vn-94021626'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-31543938', 'ctest-policy-allow-all-82212252']], 'subnet_ipam': [{'subnet_cidr': '152.105.7.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-01-11 21:54:04,053 - DEBUG - Requesting: http://10.0.0.23:8082/domains
2025-01-11 21:54:04,350 - DEBUG - Requesting: http://10.0.0.23:8082/domains
2025-01-11 21:54:04,380 - DEBUG - Requesting: http://10.0.0.23:8082/domain/288e845b-53e6-4945-9c49-0890dba5d0d6
2025-01-11 21:54:04,394 - DEBUG - Requesting: http://10.0.0.23:8082/project/aa70ec6f-9e60-4408-895d-f232d703c647
2025-01-11 21:54:04,472 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/d6b20f6e-7798-4ed8-a05a-e52a6a564492
2025-01-11 21:54:04,484 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/d6b20f6e-7798-4ed8-a05a-e52a6a564492
2025-01-11 21:54:04,495 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/98866af9-3345-4d57-ad44-69bdee1a18f9
2025-01-11 21:54:04,504 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/98866af9-3345-4d57-ad44-69bdee1a18f9
2025-01-11 21:54:04,513 - DEBUG - Requesting: http://10.0.0.23:8082/route-target/6a9a48a4-1da6-4326-b148-1c9711f9c810
2025-01-11 21:54:04,523 - DEBUG - Route Targets: ['target:64512:8000004']
2025-01-11 21:54:04,523 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/d6b20f6e-7798-4ed8-a05a-e52a6a564492
2025-01-11 21:54:04,534 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/98866af9-3345-4d57-ad44-69bdee1a18f9
2025-01-11 21:54:04,551 - INFO - Verified VN network id 8 for VN d6b20f6e-7798-4ed8-a05a-e52a6a564492
2025-01-11 21:54:04,551 - INFO - Verifications in API Server for VN ctest-vn-76005562 passed
2025-01-11 21:54:04,552 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/d6b20f6e-7798-4ed8-a05a-e52a6a564492
2025-01-11 21:54:04,561 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/98866af9-3345-4d57-ad44-69bdee1a18f9
2025-01-11 21:54:04,570 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/98866af9-3345-4d57-ad44-69bdee1a18f9
2025-01-11 21:54:04,578 - DEBUG - Requesting: http://10.0.0.23:8082/route-target/6a9a48a4-1da6-4326-b148-1c9711f9c810
2025-01-11 21:54:04,590 - DEBUG - Control-node 10.0.0.23 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-31543938:ctest-vn-76005562', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-31543938', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15470444637098364632', 'uuid-lslong': '11554799764307854482'}, 'enable': 'true', 'created': '2025-01-11T21:54:02', 'last-modified': '2025-01-11T21:54:03', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.950021'}
2025-01-11 21:54:04,597 - DEBUG - Route Targets: ['target:64512:8000004']
2025-01-11 21:54:04,597 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-76005562 passed
2025-01-11 21:54:04,597 - DEBUG - ====Verifying policy data for ctest-vn-76005562 in API_Server ======
2025-01-11 21:54:04,597 - DEBUG - Requesting: http://10.0.0.23:8082/domains
2025-01-11 21:54:04,604 - DEBUG - Requesting: http://10.0.0.23:8082/domain/288e845b-53e6-4945-9c49-0890dba5d0d6
2025-01-11 21:54:04,616 - DEBUG - Requesting: http://10.0.0.23:8082/project/aa70ec6f-9e60-4408-895d-f232d703c647
2025-01-11 21:54:04,692 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/d6b20f6e-7798-4ed8-a05a-e52a6a564492
2025-01-11 21:54:04,705 - DEBUG - ==>Verifying data for policy with id: 27b583c6-0a1a-42a8-aaae-377ef655769f, fqn: ['default-domain', 'ctest-TestBasicPolicy-31543938', 'ctest-policy-allow-all-82212252']
2025-01-11 21:54:04,705 - INFO - VN ctest-vn-76005562 Policy verification: verify_vn_policy_in_api_server, status: True
2025-01-11 21:54:04,705 - DEBUG - Verifying the vn in opserver
2025-01-11 21:54:04,705 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-31543938:ctest-vn-76005562 virtual network link through opserver 10.0.0.23
2025-01-11 21:54:04,705 - DEBUG - Requesting: http://10.0.0.23:8081/analytics/uves/virtual-networks
2025-01-11 21:54:04,999 - DEBUG - Requesting: http://10.0.0.23:8081/analytics/uves/virtual-networks
2025-01-11 21:54:05,061 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-31543938:ctest-vn-76005562', 'href': 'http://10.0.0.23:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-31543938:ctest-vn-76005562?flat'}
2025-01-11 21:54:05,061 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-31543938:ctest-vn-76005562 is found in opserver
2025-01-11 21:54:05,073 - DEBUG - Do not have enough data to verify VN in agent
2025-01-11 21:54:05,079 - DEBUG - VRF ids for VN ctest-vn-76005562: {}
2025-01-11 21:54:05,079 - DEBUG - Requesting: http://10.0.0.23:8082/domains
2025-01-11 21:54:05,085 - DEBUG - Requesting: http://10.0.0.23:8082/domain/288e845b-53e6-4945-9c49-0890dba5d0d6
2025-01-11 21:54:05,099 - DEBUG - Requesting: http://10.0.0.23:8082/project/aa70ec6f-9e60-4408-895d-f232d703c647
2025-01-11 21:54:05,174 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/dffd1c6c-62ed-48ac-8fb9-7d7198ae58c5
2025-01-11 21:54:05,187 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/dffd1c6c-62ed-48ac-8fb9-7d7198ae58c5
2025-01-11 21:54:05,199 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/1253a647-bc1d-463b-8c56-84c77842aa64
2025-01-11 21:54:05,207 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/1253a647-bc1d-463b-8c56-84c77842aa64
2025-01-11 21:54:05,214 - DEBUG - Requesting: http://10.0.0.23:8082/route-target/fd3c375a-3d9b-4451-abe7-2e141ab80338
2025-01-11 21:54:05,221 - DEBUG - Route Targets: ['target:64512:8000005']
2025-01-11 21:54:05,221 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/dffd1c6c-62ed-48ac-8fb9-7d7198ae58c5
2025-01-11 21:54:05,232 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/1253a647-bc1d-463b-8c56-84c77842aa64
2025-01-11 21:54:05,247 - INFO - Verified VN network id 9 for VN dffd1c6c-62ed-48ac-8fb9-7d7198ae58c5
2025-01-11 21:54:05,247 - INFO - Verifications in API Server for VN ctest-vn-94021626 passed
2025-01-11 21:54:05,247 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/dffd1c6c-62ed-48ac-8fb9-7d7198ae58c5
2025-01-11 21:54:05,258 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/1253a647-bc1d-463b-8c56-84c77842aa64
2025-01-11 21:54:05,265 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/1253a647-bc1d-463b-8c56-84c77842aa64
2025-01-11 21:54:05,272 - DEBUG - Requesting: http://10.0.0.23:8082/route-target/fd3c375a-3d9b-4451-abe7-2e141ab80338
2025-01-11 21:54:05,286 - DEBUG - Control-node 10.0.0.23 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-31543938:ctest-vn-94021626', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-31543938', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16140087891407489196', 'uuid-lslong': '10356446744961505477'}, 'enable': 'true', 'created': '2025-01-11T21:54:02', 'last-modified': '2025-01-11T21:54:03', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.408608'}
2025-01-11 21:54:05,292 - DEBUG - Route Targets: ['target:64512:8000005']
2025-01-11 21:54:05,292 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-94021626 passed
2025-01-11 21:54:05,292 - DEBUG - ====Verifying policy data for ctest-vn-94021626 in API_Server ======
2025-01-11 21:54:05,292 - DEBUG - Requesting: http://10.0.0.23:8082/domains
2025-01-11 21:54:05,299 - DEBUG - Requesting: http://10.0.0.23:8082/domain/288e845b-53e6-4945-9c49-0890dba5d0d6
2025-01-11 21:54:05,310 - DEBUG - Requesting: http://10.0.0.23:8082/project/aa70ec6f-9e60-4408-895d-f232d703c647
2025-01-11 21:54:05,385 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/dffd1c6c-62ed-48ac-8fb9-7d7198ae58c5
2025-01-11 21:54:05,395 - DEBUG - ==>Verifying data for policy with id: 27b583c6-0a1a-42a8-aaae-377ef655769f, fqn: ['default-domain', 'ctest-TestBasicPolicy-31543938', 'ctest-policy-allow-all-82212252']
2025-01-11 21:54:05,395 - INFO - VN ctest-vn-94021626 Policy verification: verify_vn_policy_in_api_server, status: True
2025-01-11 21:54:05,395 - DEBUG - Verifying the vn in opserver
2025-01-11 21:54:05,395 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-31543938:ctest-vn-94021626 virtual network link through opserver 10.0.0.23
2025-01-11 21:54:05,395 - DEBUG - Requesting: http://10.0.0.23:8081/analytics/uves/virtual-networks
2025-01-11 21:54:05,407 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-31543938:ctest-vn-94021626', 'href': 'http://10.0.0.23:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-31543938:ctest-vn-94021626?flat'}
2025-01-11 21:54:05,407 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-31543938:ctest-vn-94021626 is found in opserver
2025-01-11 21:54:05,417 - DEBUG - Do not have enough data to verify VN in agent
2025-01-11 21:54:05,422 - DEBUG - VRF ids for VN ctest-vn-94021626: {}
2025-01-11 21:54:05,481 - DEBUG - Services list from nova: [