2025-01-15 13:09:44,064 - INFO - Domain Default found not creating
2025-01-15 13:09:44,207 - INFO - Project ctest-TestBasicPolicy-51243517 not found, creating it
2025-01-15 13:09:44,675 - INFO - Created Project:ctest-TestBasicPolicy-51243517, ID : e3e31431-7b07-41af-9dac-3a8b1b43559a
2025-01-15 13:09:46,147 - INFO - ================================================================================
2025-01-15 13:09:46,147 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-01-15 13:09:46,147 - 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-15 13:09:46,404 - DEBUG - Nothing to compare xmpp stats {'10.0.0.41': {'10.20.0.8': '0'}} with
2025-01-15 13:09:46,404 - INFO - Initial checks done. Running the testcase now
2025-01-15 13:09:46,404 - INFO -
2025-01-15 13:09:46,964 - DEBUG - Response for create_network : {'network': {'id': 'e66be12d-5d0e-4b6e-a489-72624f63b71f', 'name': 'ctest-vn-99987110', 'tenant_id': 'e3e314317b0741af9dac3a8b1b43559a', 'project_id': 'e3e314317b0741af9dac3a8b1b43559a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-51243517', 'ctest-vn-99987110'], 'port_security_enabled': True, 'description': ''}}
2025-01-15 13:09:47,150 - DEBUG - Response for create_subnet : {'subnet': {'id': '405f1cc0-b6db-4e0b-b30d-6d8f4c0036a8', 'name': '', 'tenant_id': 'e3e314317b0741af9dac3a8b1b43559a', 'network_id': 'e66be12d-5d0e-4b6e-a489-72624f63b71f', 'ip_version': 4, 'cidr': '160.78.144.192/26', 'allocation_pools': [{'start': '160.78.144.194', 'end': '160.78.144.254'}], 'gateway_ip': '160.78.144.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '160.78.144.194', 'tags': [], 'project_id': 'e3e314317b0741af9dac3a8b1b43559a'}}
2025-01-15 13:09:47,171 - INFO - Created VN ctest-vn-99987110
2025-01-15 13:09:47,226 - DEBUG - VN ctest-vn-99987110 UUID is e66be12d-5d0e-4b6e-a489-72624f63b71f
2025-01-15 13:09:47,512 - DEBUG - Response for create_network : {'network': {'id': 'c7329f39-8ac3-4883-acaa-e2e5c72558a3', 'name': 'ctest-vn-99949290', 'tenant_id': 'e3e314317b0741af9dac3a8b1b43559a', 'project_id': 'e3e314317b0741af9dac3a8b1b43559a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-51243517', 'ctest-vn-99949290'], 'port_security_enabled': True, 'description': ''}}
2025-01-15 13:09:47,657 - DEBUG - Response for create_subnet : {'subnet': {'id': '6f373184-af58-45fd-ae3c-15ab38a3c2b4', 'name': '', 'tenant_id': 'e3e314317b0741af9dac3a8b1b43559a', 'network_id': 'c7329f39-8ac3-4883-acaa-e2e5c72558a3', 'ip_version': 4, 'cidr': '23.149.212.0/26', 'allocation_pools': [{'start': '23.149.212.2', 'end': '23.149.212.62'}], 'gateway_ip': '23.149.212.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '23.149.212.2', 'tags': [], 'project_id': 'e3e314317b0741af9dac3a8b1b43559a'}}
2025-01-15 13:09:47,674 - INFO - Created VN ctest-vn-99949290
2025-01-15 13:09:47,726 - DEBUG - VN ctest-vn-99949290 UUID is c7329f39-8ac3-4883-acaa-e2e5c72558a3
2025-01-15 13:09:47,844 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-51243517:ctest-vn-99987110, 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-51243517:ctest-vn-99949290, 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-15 13:09:48,145 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'e66be12d-5d0e-4b6e-a489-72624f63b71f', 'name': 'ctest-vn-99987110', 'tenant_id': 'e3e314317b0741af9dac3a8b1b43559a', 'project_id': 'e3e314317b0741af9dac3a8b1b43559a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['405f1cc0-b6db-4e0b-b30d-6d8f4c0036a8'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-51243517', 'ctest-vn-99987110'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-51243517', 'ctest-policy-allow-all-84500383']], 'subnet_ipam': [{'subnet_cidr': '160.78.144.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-01-15 13:09:48,382 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'c7329f39-8ac3-4883-acaa-e2e5c72558a3', 'name': 'ctest-vn-99949290', 'tenant_id': 'e3e314317b0741af9dac3a8b1b43559a', 'project_id': 'e3e314317b0741af9dac3a8b1b43559a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['6f373184-af58-45fd-ae3c-15ab38a3c2b4'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-51243517', 'ctest-vn-99949290'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-51243517', 'ctest-policy-allow-all-84500383']], 'subnet_ipam': [{'subnet_cidr': '23.149.212.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-01-15 13:09:48,534 - DEBUG - Requesting: http://10.0.0.41:8082/domains
2025-01-15 13:09:48,842 - DEBUG - Requesting: http://10.0.0.41:8082/domains
2025-01-15 13:09:48,871 - DEBUG - Requesting: http://10.0.0.41:8082/domain/17c6ac7d-b7b4-45f5-8930-2541b76b48e3
2025-01-15 13:09:48,887 - DEBUG - Requesting: http://10.0.0.41:8082/project/e3e31431-7b07-41af-9dac-3a8b1b43559a
2025-01-15 13:09:48,969 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/e66be12d-5d0e-4b6e-a489-72624f63b71f
2025-01-15 13:09:48,981 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/e66be12d-5d0e-4b6e-a489-72624f63b71f
2025-01-15 13:09:48,995 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/8a2c1c8c-7a1b-4be4-a11b-638ba43fdc72
2025-01-15 13:09:49,003 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/8a2c1c8c-7a1b-4be4-a11b-638ba43fdc72
2025-01-15 13:09:49,011 - DEBUG - Requesting: http://10.0.0.41:8082/route-target/154540a6-2160-4962-b512-d8b24f80ceda
2025-01-15 13:09:49,018 - DEBUG - Route Targets: ['target:64512:8000004']
2025-01-15 13:09:49,018 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/e66be12d-5d0e-4b6e-a489-72624f63b71f
2025-01-15 13:09:49,028 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/8a2c1c8c-7a1b-4be4-a11b-638ba43fdc72
2025-01-15 13:09:49,042 - INFO - Verified VN network id 8 for VN e66be12d-5d0e-4b6e-a489-72624f63b71f
2025-01-15 13:09:49,042 - INFO - Verifications in API Server for VN ctest-vn-99987110 passed
2025-01-15 13:09:49,042 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/e66be12d-5d0e-4b6e-a489-72624f63b71f
2025-01-15 13:09:49,053 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/8a2c1c8c-7a1b-4be4-a11b-638ba43fdc72
2025-01-15 13:09:49,060 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/8a2c1c8c-7a1b-4be4-a11b-638ba43fdc72
2025-01-15 13:09:49,067 - DEBUG - Requesting: http://10.0.0.41:8082/route-target/154540a6-2160-4962-b512-d8b24f80ceda
2025-01-15 13:09:49,080 - DEBUG - Control-node 10.0.0.41 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-51243517:ctest-vn-99987110', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-51243517', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16603612036182461294', 'uuid-lslong': '11856133260593837855'}, 'enable': 'true', 'created': '2025-01-15T13:09:46', 'last-modified': '2025-01-15T13:09:48', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.961235'}
2025-01-15 13:09:49,086 - DEBUG - Route Targets: ['target:64512:8000004']
2025-01-15 13:09:49,086 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-99987110 passed
2025-01-15 13:09:49,086 - DEBUG - ====Verifying policy data for ctest-vn-99987110 in API_Server ======
2025-01-15 13:09:49,086 - DEBUG - Requesting: http://10.0.0.41:8082/domains
2025-01-15 13:09:49,092 - DEBUG - Requesting: http://10.0.0.41:8082/domain/17c6ac7d-b7b4-45f5-8930-2541b76b48e3
2025-01-15 13:09:49,104 - DEBUG - Requesting: http://10.0.0.41:8082/project/e3e31431-7b07-41af-9dac-3a8b1b43559a
2025-01-15 13:09:49,184 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/e66be12d-5d0e-4b6e-a489-72624f63b71f
2025-01-15 13:09:49,193 - DEBUG - ==>Verifying data for policy with id: a123f74a-b0b8-4fa3-9339-74781219699a, fqn: ['default-domain', 'ctest-TestBasicPolicy-51243517', 'ctest-policy-allow-all-84500383']
2025-01-15 13:09:49,193 - INFO - VN ctest-vn-99987110 Policy verification: verify_vn_policy_in_api_server, status: True
2025-01-15 13:09:49,193 - DEBUG - Verifying the vn in opserver
2025-01-15 13:09:49,193 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-51243517:ctest-vn-99987110 virtual network link through opserver 10.0.0.41
2025-01-15 13:09:49,194 - DEBUG - Requesting: http://10.0.0.41:8081/analytics/uves/virtual-networks
2025-01-15 13:09:49,506 - DEBUG - Requesting: http://10.0.0.41:8081/analytics/uves/virtual-networks
2025-01-15 13:09:49,563 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-51243517:ctest-vn-99987110', 'href': 'http://10.0.0.41:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-51243517:ctest-vn-99987110?flat'}
2025-01-15 13:09:49,563 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-51243517:ctest-vn-99987110 is found in opserver
2025-01-15 13:09:49,574 - DEBUG - Do not have enough data to verify VN in agent
2025-01-15 13:09:49,579 - DEBUG - VRF ids for VN ctest-vn-99987110: {}
2025-01-15 13:09:49,579 - DEBUG - Requesting: http://10.0.0.41:8082/domains
2025-01-15 13:09:49,585 - DEBUG - Requesting: http://10.0.0.41:8082/domain/17c6ac7d-b7b4-45f5-8930-2541b76b48e3
2025-01-15 13:09:49,598 - DEBUG - Requesting: http://10.0.0.41:8082/project/e3e31431-7b07-41af-9dac-3a8b1b43559a
2025-01-15 13:09:49,670 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/c7329f39-8ac3-4883-acaa-e2e5c72558a3
2025-01-15 13:09:49,684 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/c7329f39-8ac3-4883-acaa-e2e5c72558a3
2025-01-15 13:09:49,698 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/91902946-df28-4401-92e3-2395fa76f650
2025-01-15 13:09:49,707 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/91902946-df28-4401-92e3-2395fa76f650
2025-01-15 13:09:49,717 - DEBUG - Requesting: http://10.0.0.41:8082/route-target/a83b8f8e-e51f-4bae-8d53-b522500a8adc
2025-01-15 13:09:49,727 - DEBUG - Route Targets: ['target:64512:8000005']
2025-01-15 13:09:49,727 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/c7329f39-8ac3-4883-acaa-e2e5c72558a3
2025-01-15 13:09:49,739 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/91902946-df28-4401-92e3-2395fa76f650
2025-01-15 13:09:49,754 - INFO - Verified VN network id 9 for VN c7329f39-8ac3-4883-acaa-e2e5c72558a3
2025-01-15 13:09:49,755 - INFO - Verifications in API Server for VN ctest-vn-99949290 passed
2025-01-15 13:09:49,755 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/c7329f39-8ac3-4883-acaa-e2e5c72558a3
2025-01-15 13:09:49,764 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/91902946-df28-4401-92e3-2395fa76f650
2025-01-15 13:09:49,772 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/91902946-df28-4401-92e3-2395fa76f650
2025-01-15 13:09:49,780 - DEBUG - Requesting: http://10.0.0.41:8082/route-target/a83b8f8e-e51f-4bae-8d53-b522500a8adc
2025-01-15 13:09:49,793 - DEBUG - Control-node 10.0.0.41 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-51243517:ctest-vn-99949290', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-51243517', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '14353710031873198211', 'uuid-lslong': '12442006397080918179'}, 'enable': 'true', 'created': '2025-01-15T13:09:47', 'last-modified': '2025-01-15T13:09:48', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.439674'}
2025-01-15 13:09:49,801 - DEBUG - Route Targets: ['target:64512:8000005']
2025-01-15 13:09:49,801 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-99949290 passed
2025-01-15 13:09:49,801 - DEBUG - ====Verifying policy data for ctest-vn-99949290 in API_Server ======
2025-01-15 13:09:49,801 - DEBUG - Requesting: http://10.0.0.41:8082/domains
2025-01-15 13:09:49,807 - DEBUG - Requesting: http://10.0.0.41:8082/domain/17c6ac7d-b7b4-45f5-8930-2541b76b48e3
2025-01-15 13:09:49,820 - DEBUG - Requesting: http://10.0.0.41:8082/project/e3e31431-7b07-41af-9dac-3a8b1b43559a
2025-01-15 13:09:49,890 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/c7329f39-8ac3-4883-acaa-e2e5c72558a3
2025-01-15 13:09:49,900 - DEBUG - ==>Verifying data for policy with id: a123f74a-b0b8-4fa3-9339-74781219699a, fqn: ['default-domain', 'ctest-TestBasicPolicy-51243517', 'ctest-policy-allow-all-84500383']
2025-01-15 13:09:49,900 - INFO - VN ctest-vn-99949290 Policy verification: verify_vn_policy_in_api_server, status: True
2025-01-15 13:09:49,900 - DEBUG - Verifying the vn in opserver
2025-01-15 13:09:49,900 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-51243517:ctest-vn-99949290 virtual network link through opserver 10.0.0.41
2025-01-15 13:09:49,900 - DEBUG - Requesting: http://10.0.0.41:8081/analytics/uves/virtual-networks
2025-01-15 13:09:49,911 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-51243517:ctest-vn-99949290', 'href': 'http://10.0.0.41:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-51243517:ctest-vn-99949290?flat'}
2025-01-15 13:09:49,911 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-51243517:ctest-vn-99949290 is found in opserver
2025-01-15 13:09:49,922 - DEBUG - Do not have enough data to verify VN in agent
2025-01-15 13:09:49,927 - DEBUG - VRF ids for VN ctest-vn-99949290: {}
2025-01-15 13:09:49,984 - DEBUG - Services list from nova: [