2025-03-27 02:24:14,159 - INFO - Domain Default found not creating
2025-03-27 02:24:14,299 - INFO - Project ctest-TestBasicPolicy-06109998 not found, creating it
2025-03-27 02:24:14,756 - INFO - Created Project:ctest-TestBasicPolicy-06109998, ID : 40b6e1b8-7e64-49b4-86df-c7af1e6fa18c
2025-03-27 02:24:16,184 - INFO - ================================================================================
2025-03-27 02:24:16,184 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-03-27 02:24:16,184 - 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-03-27 02:24:16,438 - DEBUG - Nothing to compare xmpp stats {'10.0.0.27': {'10.0.0.27': '0'}} with
2025-03-27 02:24:16,438 - INFO - Initial checks done. Running the testcase now
2025-03-27 02:24:16,438 - INFO -
2025-03-27 02:24:16,977 - DEBUG - Response for create_network : {'network': {'id': '5a36cf71-d01d-4be3-929d-17eab3df069c', 'name': 'ctest-vn-86338628', 'tenant_id': '40b6e1b87e6449b486dfc7af1e6fa18c', 'project_id': '40b6e1b87e6449b486dfc7af1e6fa18c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-06109998', 'ctest-vn-86338628'], 'port_security_enabled': True, 'description': ''}}
2025-03-27 02:24:17,148 - DEBUG - Response for create_subnet : {'subnet': {'id': '5cacc4db-cb12-4482-a412-b7e16210113b', 'name': '', 'tenant_id': '40b6e1b87e6449b486dfc7af1e6fa18c', 'network_id': '5a36cf71-d01d-4be3-929d-17eab3df069c', 'ip_version': 4, 'cidr': '33.174.147.128/26', 'allocation_pools': [{'start': '33.174.147.130', 'end': '33.174.147.190'}], 'gateway_ip': '33.174.147.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '33.174.147.130', 'tags': [], 'project_id': '40b6e1b87e6449b486dfc7af1e6fa18c'}}
2025-03-27 02:24:17,165 - INFO - Created VN ctest-vn-86338628
2025-03-27 02:24:17,219 - DEBUG - VN ctest-vn-86338628 UUID is 5a36cf71-d01d-4be3-929d-17eab3df069c
2025-03-27 02:24:17,521 - DEBUG - Response for create_network : {'network': {'id': '59809178-b4f4-41b9-8837-4ddbf884dc3f', 'name': 'ctest-vn-81226139', 'tenant_id': '40b6e1b87e6449b486dfc7af1e6fa18c', 'project_id': '40b6e1b87e6449b486dfc7af1e6fa18c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-06109998', 'ctest-vn-81226139'], 'port_security_enabled': True, 'description': ''}}
2025-03-27 02:24:17,717 - DEBUG - Response for create_subnet : {'subnet': {'id': 'a5ab7298-71a5-4699-bf90-60d6711f38a3', 'name': '', 'tenant_id': '40b6e1b87e6449b486dfc7af1e6fa18c', 'network_id': '59809178-b4f4-41b9-8837-4ddbf884dc3f', 'ip_version': 4, 'cidr': '205.197.193.0/26', 'allocation_pools': [{'start': '205.197.193.2', 'end': '205.197.193.62'}], 'gateway_ip': '205.197.193.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '205.197.193.2', 'tags': [], 'project_id': '40b6e1b87e6449b486dfc7af1e6fa18c'}}
2025-03-27 02:24:17,737 - INFO - Created VN ctest-vn-81226139
2025-03-27 02:24:17,791 - DEBUG - VN ctest-vn-81226139 UUID is 59809178-b4f4-41b9-8837-4ddbf884dc3f
2025-03-27 02:24:17,943 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-06109998:ctest-vn-86338628, 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-06109998:ctest-vn-81226139, 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-03-27 02:24:18,256 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '5a36cf71-d01d-4be3-929d-17eab3df069c', 'name': 'ctest-vn-86338628', 'tenant_id': '40b6e1b87e6449b486dfc7af1e6fa18c', 'project_id': '40b6e1b87e6449b486dfc7af1e6fa18c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['5cacc4db-cb12-4482-a412-b7e16210113b'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-06109998', 'ctest-vn-86338628'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-06109998', 'ctest-policy-allow-all-60845774']], 'subnet_ipam': [{'subnet_cidr': '33.174.147.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-03-27 02:24:18,493 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '59809178-b4f4-41b9-8837-4ddbf884dc3f', 'name': 'ctest-vn-81226139', 'tenant_id': '40b6e1b87e6449b486dfc7af1e6fa18c', 'project_id': '40b6e1b87e6449b486dfc7af1e6fa18c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['a5ab7298-71a5-4699-bf90-60d6711f38a3'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-06109998', 'ctest-vn-81226139'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-06109998', 'ctest-policy-allow-all-60845774']], 'subnet_ipam': [{'subnet_cidr': '205.197.193.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-03-27 02:24:18,663 - DEBUG - Requesting: http://10.0.0.27:8082/domains
2025-03-27 02:24:18,964 - DEBUG - Requesting: http://10.0.0.27:8082/domains
2025-03-27 02:24:18,992 - DEBUG - Requesting: http://10.0.0.27:8082/domain/3a2a0a2d-2877-49b8-b25f-09507f0c252d
2025-03-27 02:24:19,005 - DEBUG - Requesting: http://10.0.0.27:8082/project/40b6e1b8-7e64-49b4-86df-c7af1e6fa18c
2025-03-27 02:24:19,088 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/5a36cf71-d01d-4be3-929d-17eab3df069c
2025-03-27 02:24:19,102 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/5a36cf71-d01d-4be3-929d-17eab3df069c
2025-03-27 02:24:19,112 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/d7c704be-a76d-40ac-9627-05a6b56a5c0f
2025-03-27 02:24:19,120 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/d7c704be-a76d-40ac-9627-05a6b56a5c0f
2025-03-27 02:24:19,127 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/23b55712-81b2-41c3-b8bc-4def34b2c320
2025-03-27 02:24:19,134 - DEBUG - Route Targets: ['target:64512:8000004']
2025-03-27 02:24:19,134 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/5a36cf71-d01d-4be3-929d-17eab3df069c
2025-03-27 02:24:19,144 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/d7c704be-a76d-40ac-9627-05a6b56a5c0f
2025-03-27 02:24:19,158 - INFO - Verified VN network id 8 for VN 5a36cf71-d01d-4be3-929d-17eab3df069c
2025-03-27 02:24:19,158 - INFO - Verifications in API Server for VN ctest-vn-86338628 passed
2025-03-27 02:24:19,158 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/5a36cf71-d01d-4be3-929d-17eab3df069c
2025-03-27 02:24:19,168 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/d7c704be-a76d-40ac-9627-05a6b56a5c0f
2025-03-27 02:24:19,177 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/d7c704be-a76d-40ac-9627-05a6b56a5c0f
2025-03-27 02:24:19,184 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/23b55712-81b2-41c3-b8bc-4def34b2c320
2025-03-27 02:24:19,196 - DEBUG - Control-node 10.0.0.27 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-06109998:ctest-vn-86338628', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-06109998', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6500611199885724643', 'uuid-lslong': '10564626597688575644'}, 'enable': 'true', 'created': '2025-03-27T02:24:16', 'last-modified': '2025-03-27T02:24:18', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.968417'}
2025-03-27 02:24:19,203 - DEBUG - Route Targets: ['target:64512:8000004']
2025-03-27 02:24:19,204 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-86338628 passed
2025-03-27 02:24:19,204 - DEBUG - ====Verifying policy data for ctest-vn-86338628 in API_Server ======
2025-03-27 02:24:19,204 - DEBUG - Requesting: http://10.0.0.27:8082/domains
2025-03-27 02:24:19,211 - DEBUG - Requesting: http://10.0.0.27:8082/domain/3a2a0a2d-2877-49b8-b25f-09507f0c252d
2025-03-27 02:24:19,223 - DEBUG - Requesting: http://10.0.0.27:8082/project/40b6e1b8-7e64-49b4-86df-c7af1e6fa18c
2025-03-27 02:24:19,296 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/5a36cf71-d01d-4be3-929d-17eab3df069c
2025-03-27 02:24:19,309 - DEBUG - ==>Verifying data for policy with id: a9ad706c-f968-4782-96fe-f4595a1e4f3e, fqn: ['default-domain', 'ctest-TestBasicPolicy-06109998', 'ctest-policy-allow-all-60845774']
2025-03-27 02:24:19,309 - INFO - VN ctest-vn-86338628 Policy verification: verify_vn_policy_in_api_server, status: True
2025-03-27 02:24:19,309 - DEBUG - Verifying the vn in opserver
2025-03-27 02:24:19,309 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-06109998:ctest-vn-86338628 virtual network link through opserver 10.0.0.27
2025-03-27 02:24:19,309 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks
2025-03-27 02:24:19,601 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks
2025-03-27 02:24:19,660 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-06109998:ctest-vn-86338628', 'href': 'http://10.0.0.27:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-06109998:ctest-vn-86338628?flat'}
2025-03-27 02:24:19,660 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-06109998:ctest-vn-86338628 is found in opserver
2025-03-27 02:24:19,672 - DEBUG - Do not have enough data to verify VN in agent
2025-03-27 02:24:19,678 - DEBUG - VRF ids for VN ctest-vn-86338628: {}
2025-03-27 02:24:19,678 - DEBUG - Requesting: http://10.0.0.27:8082/domains
2025-03-27 02:24:19,684 - DEBUG - Requesting: http://10.0.0.27:8082/domain/3a2a0a2d-2877-49b8-b25f-09507f0c252d
2025-03-27 02:24:19,697 - DEBUG - Requesting: http://10.0.0.27:8082/project/40b6e1b8-7e64-49b4-86df-c7af1e6fa18c
2025-03-27 02:24:19,769 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/59809178-b4f4-41b9-8837-4ddbf884dc3f
2025-03-27 02:24:19,784 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/59809178-b4f4-41b9-8837-4ddbf884dc3f
2025-03-27 02:24:19,795 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/55e68bf7-f28e-45d3-9246-6faf29302beb
2025-03-27 02:24:19,802 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/55e68bf7-f28e-45d3-9246-6faf29302beb
2025-03-27 02:24:19,811 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/7f000e7e-7e61-4730-8ee6-11b1b6a2e284
2025-03-27 02:24:19,818 - DEBUG - Route Targets: ['target:64512:8000005']
2025-03-27 02:24:19,818 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/59809178-b4f4-41b9-8837-4ddbf884dc3f
2025-03-27 02:24:19,828 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/55e68bf7-f28e-45d3-9246-6faf29302beb
2025-03-27 02:24:19,844 - INFO - Verified VN network id 9 for VN 59809178-b4f4-41b9-8837-4ddbf884dc3f
2025-03-27 02:24:19,844 - INFO - Verifications in API Server for VN ctest-vn-81226139 passed
2025-03-27 02:24:19,844 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/59809178-b4f4-41b9-8837-4ddbf884dc3f
2025-03-27 02:24:19,855 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/55e68bf7-f28e-45d3-9246-6faf29302beb
2025-03-27 02:24:19,862 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/55e68bf7-f28e-45d3-9246-6faf29302beb
2025-03-27 02:24:19,870 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/7f000e7e-7e61-4730-8ee6-11b1b6a2e284
2025-03-27 02:24:19,883 - DEBUG - Control-node 10.0.0.27 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-06109998:ctest-vn-81226139', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-06109998', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6449314614012559801', 'uuid-lslong': '9815399520039918655'}, 'enable': 'true', 'created': '2025-03-27T02:24:17', 'last-modified': '2025-03-27T02:24:18', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.402762'}
2025-03-27 02:24:19,890 - DEBUG - Route Targets: ['target:64512:8000005']
2025-03-27 02:24:19,890 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-81226139 passed
2025-03-27 02:24:19,890 - DEBUG - ====Verifying policy data for ctest-vn-81226139 in API_Server ======
2025-03-27 02:24:19,890 - DEBUG - Requesting: http://10.0.0.27:8082/domains
2025-03-27 02:24:19,896 - DEBUG - Requesting: http://10.0.0.27:8082/domain/3a2a0a2d-2877-49b8-b25f-09507f0c252d
2025-03-27 02:24:19,909 - DEBUG - Requesting: http://10.0.0.27:8082/project/40b6e1b8-7e64-49b4-86df-c7af1e6fa18c
2025-03-27 02:24:19,981 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/59809178-b4f4-41b9-8837-4ddbf884dc3f
2025-03-27 02:24:19,991 - DEBUG - ==>Verifying data for policy with id: a9ad706c-f968-4782-96fe-f4595a1e4f3e, fqn: ['default-domain', 'ctest-TestBasicPolicy-06109998', 'ctest-policy-allow-all-60845774']
2025-03-27 02:24:19,992 - INFO - VN ctest-vn-81226139 Policy verification: verify_vn_policy_in_api_server, status: True
2025-03-27 02:24:19,992 - DEBUG - Verifying the vn in opserver
2025-03-27 02:24:19,992 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-06109998:ctest-vn-81226139 virtual network link through opserver 10.0.0.27
2025-03-27 02:24:19,992 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks
2025-03-27 02:24:20,002 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-06109998:ctest-vn-81226139', 'href': 'http://10.0.0.27:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-06109998:ctest-vn-81226139?flat'}
2025-03-27 02:24:20,002 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-06109998:ctest-vn-81226139 is found in opserver
2025-03-27 02:24:20,014 - DEBUG - Do not have enough data to verify VN in agent
2025-03-27 02:24:20,020 - DEBUG - VRF ids for VN ctest-vn-81226139: {}
2025-03-27 02:24:20,077 - DEBUG - Services list from nova: [