2024-12-23 02:24:22,138 - INFO - Domain Default found not creating
2024-12-23 02:24:22,297 - INFO - Project ctest-TestBasicPolicy-88167385 not found, creating it
2024-12-23 02:24:22,770 - INFO - Created Project:ctest-TestBasicPolicy-88167385, ID : 23637627-9b41-41d8-9903-f3934d6a741a
2024-12-23 02:24:24,458 - INFO - ================================================================================
2024-12-23 02:24:24,459 - INFO - STARTING TEST : test_basic_policy_allow_deny
2024-12-23 02:24:24,459 - 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-12-23 02:24:24,720 - DEBUG - Nothing to compare xmpp stats {'10.0.0.57': {'10.0.0.57': '0'}} with
2024-12-23 02:24:24,720 - INFO - Initial checks done. Running the testcase now
2024-12-23 02:24:24,720 - INFO -
2024-12-23 02:24:25,352 - DEBUG - Response for create_network : {'network': {'id': '410b5b9c-b695-45b4-a7b7-05a2f4f04167', 'name': 'ctest-vn-38677151', 'tenant_id': '236376279b4141d89903f3934d6a741a', 'project_id': '236376279b4141d89903f3934d6a741a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-88167385', 'ctest-vn-38677151'], 'port_security_enabled': True, 'description': ''}}
2024-12-23 02:24:25,568 - DEBUG - Response for create_subnet : {'subnet': {'id': '6992f62d-df63-48c3-ad85-147571469477', 'name': '', 'tenant_id': '236376279b4141d89903f3934d6a741a', 'network_id': '410b5b9c-b695-45b4-a7b7-05a2f4f04167', 'ip_version': 4, 'cidr': '82.104.32.128/26', 'allocation_pools': [{'start': '82.104.32.130', 'end': '82.104.32.190'}], 'gateway_ip': '82.104.32.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '82.104.32.130', 'tags': [], 'project_id': '236376279b4141d89903f3934d6a741a'}}
2024-12-23 02:24:25,588 - INFO - Created VN ctest-vn-38677151
2024-12-23 02:24:25,644 - DEBUG - VN ctest-vn-38677151 UUID is 410b5b9c-b695-45b4-a7b7-05a2f4f04167
2024-12-23 02:24:25,959 - DEBUG - Response for create_network : {'network': {'id': '3db06806-22ab-4e93-9a7c-0f9cd5c04a66', 'name': 'ctest-vn-74607552', 'tenant_id': '236376279b4141d89903f3934d6a741a', 'project_id': '236376279b4141d89903f3934d6a741a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-88167385', 'ctest-vn-74607552'], 'port_security_enabled': True, 'description': ''}}
2024-12-23 02:24:26,159 - DEBUG - Response for create_subnet : {'subnet': {'id': '4e1602be-5470-4e58-b60a-4739af5b6bc1', 'name': '', 'tenant_id': '236376279b4141d89903f3934d6a741a', 'network_id': '3db06806-22ab-4e93-9a7c-0f9cd5c04a66', 'ip_version': 4, 'cidr': '34.58.49.64/26', 'allocation_pools': [{'start': '34.58.49.66', 'end': '34.58.49.126'}], 'gateway_ip': '34.58.49.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '34.58.49.66', 'tags': [], 'project_id': '236376279b4141d89903f3934d6a741a'}}
2024-12-23 02:24:26,180 - INFO - Created VN ctest-vn-74607552
2024-12-23 02:24:26,236 - DEBUG - VN ctest-vn-74607552 UUID is 3db06806-22ab-4e93-9a7c-0f9cd5c04a66
2024-12-23 02:24:26,367 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-88167385:ctest-vn-38677151, 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-88167385:ctest-vn-74607552, 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-12-23 02:24:26,694 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '410b5b9c-b695-45b4-a7b7-05a2f4f04167', 'name': 'ctest-vn-38677151', 'tenant_id': '236376279b4141d89903f3934d6a741a', 'project_id': '236376279b4141d89903f3934d6a741a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['6992f62d-df63-48c3-ad85-147571469477'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-88167385', 'ctest-vn-38677151'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-88167385', 'ctest-policy-allow-all-42907874']], 'subnet_ipam': [{'subnet_cidr': '82.104.32.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-12-23 02:24:26,988 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '3db06806-22ab-4e93-9a7c-0f9cd5c04a66', 'name': 'ctest-vn-74607552', 'tenant_id': '236376279b4141d89903f3934d6a741a', 'project_id': '236376279b4141d89903f3934d6a741a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['4e1602be-5470-4e58-b60a-4739af5b6bc1'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-88167385', 'ctest-vn-74607552'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-88167385', 'ctest-policy-allow-all-42907874']], 'subnet_ipam': [{'subnet_cidr': '34.58.49.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-12-23 02:24:27,144 - DEBUG - Requesting: http://10.0.0.57:8082/domains
2024-12-23 02:24:27,484 - DEBUG - Requesting: http://10.0.0.57:8082/domains
2024-12-23 02:24:27,518 - DEBUG - Requesting: http://10.0.0.57:8082/domain/d130573f-4644-49e9-b724-57a6ac92f9a1
2024-12-23 02:24:27,536 - DEBUG - Requesting: http://10.0.0.57:8082/project/23637627-9b41-41d8-9903-f3934d6a741a
2024-12-23 02:24:27,622 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/410b5b9c-b695-45b4-a7b7-05a2f4f04167
2024-12-23 02:24:27,637 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/410b5b9c-b695-45b4-a7b7-05a2f4f04167
2024-12-23 02:24:27,650 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/279bedc1-a030-4cc0-a629-70b2ae81f0c8
2024-12-23 02:24:27,660 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/279bedc1-a030-4cc0-a629-70b2ae81f0c8
2024-12-23 02:24:27,669 - DEBUG - Requesting: http://10.0.0.57:8082/route-target/bbb5aea9-f7c1-4bd3-a5b7-1c2cecbba0ed
2024-12-23 02:24:27,677 - DEBUG - Route Targets: ['target:64512:8000005']
2024-12-23 02:24:27,677 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/410b5b9c-b695-45b4-a7b7-05a2f4f04167
2024-12-23 02:24:27,689 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/279bedc1-a030-4cc0-a629-70b2ae81f0c8
2024-12-23 02:24:27,707 - INFO - Verified VN network id 8 for VN 410b5b9c-b695-45b4-a7b7-05a2f4f04167
2024-12-23 02:24:27,707 - INFO - Verifications in API Server for VN ctest-vn-38677151 passed
2024-12-23 02:24:27,707 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/410b5b9c-b695-45b4-a7b7-05a2f4f04167
2024-12-23 02:24:27,719 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/279bedc1-a030-4cc0-a629-70b2ae81f0c8
2024-12-23 02:24:27,729 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/279bedc1-a030-4cc0-a629-70b2ae81f0c8
2024-12-23 02:24:27,738 - DEBUG - Requesting: http://10.0.0.57:8082/route-target/bbb5aea9-f7c1-4bd3-a5b7-1c2cecbba0ed
2024-12-23 02:24:27,754 - DEBUG - Control-node 10.0.0.57 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-88167385:ctest-vn-38677151', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-88167385', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '4686940565845394868', 'uuid-lslong': '12085134322524242279'}, 'enable': 'true', 'created': '2024-12-23T02:24:25', 'last-modified': '2024-12-23T02:24:26', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.090269'}
2024-12-23 02:24:27,762 - DEBUG - Route Targets: ['target:64512:8000005']
2024-12-23 02:24:27,762 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-38677151 passed
2024-12-23 02:24:27,762 - DEBUG - ====Verifying policy data for ctest-vn-38677151 in API_Server ======
2024-12-23 02:24:27,762 - DEBUG - Requesting: http://10.0.0.57:8082/domains
2024-12-23 02:24:27,769 - DEBUG - Requesting: http://10.0.0.57:8082/domain/d130573f-4644-49e9-b724-57a6ac92f9a1
2024-12-23 02:24:27,781 - DEBUG - Requesting: http://10.0.0.57:8082/project/23637627-9b41-41d8-9903-f3934d6a741a
2024-12-23 02:24:27,858 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/410b5b9c-b695-45b4-a7b7-05a2f4f04167
2024-12-23 02:24:27,868 - DEBUG - ==>Verifying data for policy with id: f2b44a34-5af2-4b59-bb9d-db1394afaf09, fqn: ['default-domain', 'ctest-TestBasicPolicy-88167385', 'ctest-policy-allow-all-42907874']
2024-12-23 02:24:27,869 - INFO - VN ctest-vn-38677151 Policy verification: verify_vn_policy_in_api_server, status: True
2024-12-23 02:24:27,869 - DEBUG - Verifying the vn in opserver
2024-12-23 02:24:27,869 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-88167385:ctest-vn-38677151 virtual network link through opserver 10.0.0.57
2024-12-23 02:24:27,869 - DEBUG - Requesting: http://10.0.0.57:8081/analytics/uves/virtual-networks
2024-12-23 02:24:28,203 - DEBUG - Requesting: http://10.0.0.57:8081/analytics/uves/virtual-networks
2024-12-23 02:24:28,273 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-88167385:ctest-vn-38677151', 'href': 'http://10.0.0.57:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-88167385:ctest-vn-38677151?flat'}
2024-12-23 02:24:28,273 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-88167385:ctest-vn-38677151 is found in opserver
2024-12-23 02:24:28,288 - DEBUG - Do not have enough data to verify VN in agent
2024-12-23 02:24:28,295 - DEBUG - VRF ids for VN ctest-vn-38677151: {}
2024-12-23 02:24:28,295 - DEBUG - Requesting: http://10.0.0.57:8082/domains
2024-12-23 02:24:28,304 - DEBUG - Requesting: http://10.0.0.57:8082/domain/d130573f-4644-49e9-b724-57a6ac92f9a1
2024-12-23 02:24:28,321 - DEBUG - Requesting: http://10.0.0.57:8082/project/23637627-9b41-41d8-9903-f3934d6a741a
2024-12-23 02:24:28,407 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/3db06806-22ab-4e93-9a7c-0f9cd5c04a66
2024-12-23 02:24:28,423 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/3db06806-22ab-4e93-9a7c-0f9cd5c04a66
2024-12-23 02:24:28,434 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/0ee49645-e079-48d2-aaa4-c2a0efb048e5
2024-12-23 02:24:28,444 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/0ee49645-e079-48d2-aaa4-c2a0efb048e5
2024-12-23 02:24:28,454 - DEBUG - Requesting: http://10.0.0.57:8082/route-target/3b96d321-aa12-4a35-9ea8-e28e69481f62
2024-12-23 02:24:28,462 - DEBUG - Route Targets: ['target:64512:8000006']
2024-12-23 02:24:28,462 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/3db06806-22ab-4e93-9a7c-0f9cd5c04a66
2024-12-23 02:24:28,472 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/0ee49645-e079-48d2-aaa4-c2a0efb048e5
2024-12-23 02:24:28,488 - INFO - Verified VN network id 9 for VN 3db06806-22ab-4e93-9a7c-0f9cd5c04a66
2024-12-23 02:24:28,488 - INFO - Verifications in API Server for VN ctest-vn-74607552 passed
2024-12-23 02:24:28,488 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/3db06806-22ab-4e93-9a7c-0f9cd5c04a66
2024-12-23 02:24:28,499 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/0ee49645-e079-48d2-aaa4-c2a0efb048e5
2024-12-23 02:24:28,508 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/0ee49645-e079-48d2-aaa4-c2a0efb048e5
2024-12-23 02:24:28,516 - DEBUG - Requesting: http://10.0.0.57:8082/route-target/3b96d321-aa12-4a35-9ea8-e28e69481f62
2024-12-23 02:24:28,531 - DEBUG - Control-node 10.0.0.57 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-88167385:ctest-vn-74607552', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-88167385', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '4445167207775424147', 'uuid-lslong': '11131789545228487270'}, 'enable': 'true', 'created': '2024-12-23T02:24:25', 'last-modified': '2024-12-23T02:24:26', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.616944'}
2024-12-23 02:24:28,538 - DEBUG - Route Targets: ['target:64512:8000006']
2024-12-23 02:24:28,538 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-74607552 passed
2024-12-23 02:24:28,538 - DEBUG - ====Verifying policy data for ctest-vn-74607552 in API_Server ======
2024-12-23 02:24:28,539 - DEBUG - Requesting: http://10.0.0.57:8082/domains
2024-12-23 02:24:28,545 - DEBUG - Requesting: http://10.0.0.57:8082/domain/d130573f-4644-49e9-b724-57a6ac92f9a1
2024-12-23 02:24:28,560 - DEBUG - Requesting: http://10.0.0.57:8082/project/23637627-9b41-41d8-9903-f3934d6a741a
2024-12-23 02:24:28,641 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/3db06806-22ab-4e93-9a7c-0f9cd5c04a66
2024-12-23 02:24:28,655 - DEBUG - ==>Verifying data for policy with id: f2b44a34-5af2-4b59-bb9d-db1394afaf09, fqn: ['default-domain', 'ctest-TestBasicPolicy-88167385', 'ctest-policy-allow-all-42907874']
2024-12-23 02:24:28,655 - INFO - VN ctest-vn-74607552 Policy verification: verify_vn_policy_in_api_server, status: True
2024-12-23 02:24:28,655 - DEBUG - Verifying the vn in opserver
2024-12-23 02:24:28,655 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-88167385:ctest-vn-74607552 virtual network link through opserver 10.0.0.57
2024-12-23 02:24:28,655 - DEBUG - Requesting: http://10.0.0.57:8081/analytics/uves/virtual-networks
2024-12-23 02:24:28,667 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-88167385:ctest-vn-74607552', 'href': 'http://10.0.0.57:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-88167385:ctest-vn-74607552?flat'}
2024-12-23 02:24:28,667 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-88167385:ctest-vn-74607552 is found in opserver
2024-12-23 02:24:28,679 - DEBUG - Do not have enough data to verify VN in agent
2024-12-23 02:24:28,685 - DEBUG - VRF ids for VN ctest-vn-74607552: {}
2024-12-23 02:24:28,752 - DEBUG - Services list from nova: [