2025-01-07 13:54:31,845 - INFO - Domain Default found not creating
2025-01-07 13:54:31,988 - INFO - Project ctest-TestBasicPolicy-38961603 not found, creating it
2025-01-07 13:54:32,449 - INFO - Created Project:ctest-TestBasicPolicy-38961603, ID : 94c17ffc-0d47-4556-8e6f-dc27bb773ea5
2025-01-07 13:54:33,888 - INFO - ================================================================================
2025-01-07 13:54:33,888 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-01-07 13:54:33,888 - 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-07 13:54:34,141 - DEBUG - Nothing to compare xmpp stats {'10.0.0.12': {'10.20.0.5': '0'}} with
2025-01-07 13:54:34,141 - INFO - Initial checks done. Running the testcase now
2025-01-07 13:54:34,141 - INFO -
2025-01-07 13:54:34,680 - DEBUG - Response for create_network : {'network': {'id': 'ab4c46e5-4968-4e75-90f4-7c2072ba7d7d', 'name': 'ctest-vn-13377162', 'tenant_id': '94c17ffc0d4745568e6fdc27bb773ea5', 'project_id': '94c17ffc0d4745568e6fdc27bb773ea5', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-38961603', 'ctest-vn-13377162'], 'port_security_enabled': True, 'description': ''}}
2025-01-07 13:54:34,870 - DEBUG - Response for create_subnet : {'subnet': {'id': '01cfa4e6-dec0-4b01-b6b7-17d1523dc63c', 'name': '', 'tenant_id': '94c17ffc0d4745568e6fdc27bb773ea5', 'network_id': 'ab4c46e5-4968-4e75-90f4-7c2072ba7d7d', 'ip_version': 4, 'cidr': '156.57.253.64/26', 'allocation_pools': [{'start': '156.57.253.66', 'end': '156.57.253.126'}], 'gateway_ip': '156.57.253.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '156.57.253.66', 'tags': [], 'project_id': '94c17ffc0d4745568e6fdc27bb773ea5'}}
2025-01-07 13:54:34,889 - INFO - Created VN ctest-vn-13377162
2025-01-07 13:54:34,943 - DEBUG - VN ctest-vn-13377162 UUID is ab4c46e5-4968-4e75-90f4-7c2072ba7d7d
2025-01-07 13:54:35,235 - DEBUG - Response for create_network : {'network': {'id': 'f1338b4e-1566-4353-9298-45b2fe4a4705', 'name': 'ctest-vn-99963247', 'tenant_id': '94c17ffc0d4745568e6fdc27bb773ea5', 'project_id': '94c17ffc0d4745568e6fdc27bb773ea5', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-38961603', 'ctest-vn-99963247'], 'port_security_enabled': True, 'description': ''}}
2025-01-07 13:54:35,420 - DEBUG - Response for create_subnet : {'subnet': {'id': 'bea0cf7b-79a0-4b29-ab01-1b8dfa98955d', 'name': '', 'tenant_id': '94c17ffc0d4745568e6fdc27bb773ea5', 'network_id': 'f1338b4e-1566-4353-9298-45b2fe4a4705', 'ip_version': 4, 'cidr': '82.76.222.0/26', 'allocation_pools': [{'start': '82.76.222.2', 'end': '82.76.222.62'}], 'gateway_ip': '82.76.222.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '82.76.222.2', 'tags': [], 'project_id': '94c17ffc0d4745568e6fdc27bb773ea5'}}
2025-01-07 13:54:35,438 - INFO - Created VN ctest-vn-99963247
2025-01-07 13:54:35,491 - DEBUG - VN ctest-vn-99963247 UUID is f1338b4e-1566-4353-9298-45b2fe4a4705
2025-01-07 13:54:35,604 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-38961603:ctest-vn-13377162, 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-38961603:ctest-vn-99963247, 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-07 13:54:35,901 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'ab4c46e5-4968-4e75-90f4-7c2072ba7d7d', 'name': 'ctest-vn-13377162', 'tenant_id': '94c17ffc0d4745568e6fdc27bb773ea5', 'project_id': '94c17ffc0d4745568e6fdc27bb773ea5', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['01cfa4e6-dec0-4b01-b6b7-17d1523dc63c'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-38961603', 'ctest-vn-13377162'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-38961603', 'ctest-policy-allow-all-04229740']], 'subnet_ipam': [{'subnet_cidr': '156.57.253.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-01-07 13:54:36,178 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'f1338b4e-1566-4353-9298-45b2fe4a4705', 'name': 'ctest-vn-99963247', 'tenant_id': '94c17ffc0d4745568e6fdc27bb773ea5', 'project_id': '94c17ffc0d4745568e6fdc27bb773ea5', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['bea0cf7b-79a0-4b29-ab01-1b8dfa98955d'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-38961603', 'ctest-vn-99963247'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-38961603', 'ctest-policy-allow-all-04229740']], 'subnet_ipam': [{'subnet_cidr': '82.76.222.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-01-07 13:54:36,339 - DEBUG - Requesting: http://10.0.0.12:8082/domains
2025-01-07 13:54:36,638 - DEBUG - Requesting: http://10.0.0.12:8082/domains
2025-01-07 13:54:36,666 - DEBUG - Requesting: http://10.0.0.12:8082/domain/87c52906-3423-450c-9785-b252f5c88e7f
2025-01-07 13:54:36,679 - DEBUG - Requesting: http://10.0.0.12:8082/project/94c17ffc-0d47-4556-8e6f-dc27bb773ea5
2025-01-07 13:54:36,760 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/ab4c46e5-4968-4e75-90f4-7c2072ba7d7d
2025-01-07 13:54:36,772 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/ab4c46e5-4968-4e75-90f4-7c2072ba7d7d
2025-01-07 13:54:36,782 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/f1d7de2b-9534-4b0b-9647-4c96503cefd4
2025-01-07 13:54:36,790 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/f1d7de2b-9534-4b0b-9647-4c96503cefd4
2025-01-07 13:54:36,799 - DEBUG - Requesting: http://10.0.0.12:8082/route-target/c3cd534a-dd38-4e8a-97bd-71b1954e9fad
2025-01-07 13:54:36,806 - DEBUG - Route Targets: ['target:64512:8000004']
2025-01-07 13:54:36,806 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/ab4c46e5-4968-4e75-90f4-7c2072ba7d7d
2025-01-07 13:54:36,820 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/f1d7de2b-9534-4b0b-9647-4c96503cefd4
2025-01-07 13:54:36,838 - INFO - Verified VN network id 8 for VN ab4c46e5-4968-4e75-90f4-7c2072ba7d7d
2025-01-07 13:54:36,838 - INFO - Verifications in API Server for VN ctest-vn-13377162 passed
2025-01-07 13:54:36,839 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/ab4c46e5-4968-4e75-90f4-7c2072ba7d7d
2025-01-07 13:54:36,850 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/f1d7de2b-9534-4b0b-9647-4c96503cefd4
2025-01-07 13:54:36,857 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/f1d7de2b-9534-4b0b-9647-4c96503cefd4
2025-01-07 13:54:36,864 - DEBUG - Requesting: http://10.0.0.12:8082/route-target/c3cd534a-dd38-4e8a-97bd-71b1954e9fad
2025-01-07 13:54:36,876 - DEBUG - Control-node 10.0.0.12 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-38961603:ctest-vn-13377162', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-38961603', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12343318629308714613', 'uuid-lslong': '10445109914584644989'}, 'enable': 'true', 'created': '2025-01-07T13:54:34', 'last-modified': '2025-01-07T13:54:35', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.999810'}
2025-01-07 13:54:36,882 - DEBUG - Route Targets: ['target:64512:8000004']
2025-01-07 13:54:36,882 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-13377162 passed
2025-01-07 13:54:36,882 - DEBUG - ====Verifying policy data for ctest-vn-13377162 in API_Server ======
2025-01-07 13:54:36,882 - DEBUG - Requesting: http://10.0.0.12:8082/domains
2025-01-07 13:54:36,888 - DEBUG - Requesting: http://10.0.0.12:8082/domain/87c52906-3423-450c-9785-b252f5c88e7f
2025-01-07 13:54:36,902 - DEBUG - Requesting: http://10.0.0.12:8082/project/94c17ffc-0d47-4556-8e6f-dc27bb773ea5
2025-01-07 13:54:36,974 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/ab4c46e5-4968-4e75-90f4-7c2072ba7d7d
2025-01-07 13:54:36,985 - DEBUG - ==>Verifying data for policy with id: 01092773-4172-456c-8bc3-92f48555c683, fqn: ['default-domain', 'ctest-TestBasicPolicy-38961603', 'ctest-policy-allow-all-04229740']
2025-01-07 13:54:36,985 - INFO - VN ctest-vn-13377162 Policy verification: verify_vn_policy_in_api_server, status: True
2025-01-07 13:54:36,985 - DEBUG - Verifying the vn in opserver
2025-01-07 13:54:36,985 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-38961603:ctest-vn-13377162 virtual network link through opserver 10.0.0.12
2025-01-07 13:54:36,985 - DEBUG - Requesting: http://10.0.0.12:8081/analytics/uves/virtual-networks
2025-01-07 13:54:37,275 - DEBUG - Requesting: http://10.0.0.12:8081/analytics/uves/virtual-networks
2025-01-07 13:54:37,333 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-38961603:ctest-vn-13377162', 'href': 'http://10.0.0.12:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-38961603:ctest-vn-13377162?flat'}
2025-01-07 13:54:37,333 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-38961603:ctest-vn-13377162 is found in opserver
2025-01-07 13:54:37,345 - DEBUG - Do not have enough data to verify VN in agent
2025-01-07 13:54:37,351 - DEBUG - VRF ids for VN ctest-vn-13377162: {}
2025-01-07 13:54:37,352 - DEBUG - Requesting: http://10.0.0.12:8082/domains
2025-01-07 13:54:37,357 - DEBUG - Requesting: http://10.0.0.12:8082/domain/87c52906-3423-450c-9785-b252f5c88e7f
2025-01-07 13:54:37,370 - DEBUG - Requesting: http://10.0.0.12:8082/project/94c17ffc-0d47-4556-8e6f-dc27bb773ea5
2025-01-07 13:54:37,446 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/f1338b4e-1566-4353-9298-45b2fe4a4705
2025-01-07 13:54:37,459 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/f1338b4e-1566-4353-9298-45b2fe4a4705
2025-01-07 13:54:37,468 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/4ae9bd50-7e42-43d7-bda2-aaae7ce16dd6
2025-01-07 13:54:37,476 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/4ae9bd50-7e42-43d7-bda2-aaae7ce16dd6
2025-01-07 13:54:37,484 - DEBUG - Requesting: http://10.0.0.12:8082/route-target/81a80a43-8e91-40dc-93c8-138b44f2e781
2025-01-07 13:54:37,492 - DEBUG - Route Targets: ['target:64512:8000005']
2025-01-07 13:54:37,492 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/f1338b4e-1566-4353-9298-45b2fe4a4705
2025-01-07 13:54:37,502 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/4ae9bd50-7e42-43d7-bda2-aaae7ce16dd6
2025-01-07 13:54:37,517 - INFO - Verified VN network id 9 for VN f1338b4e-1566-4353-9298-45b2fe4a4705
2025-01-07 13:54:37,517 - INFO - Verifications in API Server for VN ctest-vn-99963247 passed
2025-01-07 13:54:37,517 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/f1338b4e-1566-4353-9298-45b2fe4a4705
2025-01-07 13:54:37,529 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/4ae9bd50-7e42-43d7-bda2-aaae7ce16dd6
2025-01-07 13:54:37,537 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/4ae9bd50-7e42-43d7-bda2-aaae7ce16dd6
2025-01-07 13:54:37,545 - DEBUG - Requesting: http://10.0.0.12:8082/route-target/81a80a43-8e91-40dc-93c8-138b44f2e781
2025-01-07 13:54:37,558 - DEBUG - Control-node 10.0.0.12 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-38961603:ctest-vn-99963247', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-38961603', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17380388554435609427', 'uuid-lslong': '10563269561070274309'}, 'enable': 'true', 'created': '2025-01-07T13:54:35', 'last-modified': '2025-01-07T13:54:36', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.444726'}
2025-01-07 13:54:37,566 - DEBUG - Route Targets: ['target:64512:8000005']
2025-01-07 13:54:37,566 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-99963247 passed
2025-01-07 13:54:37,566 - DEBUG - ====Verifying policy data for ctest-vn-99963247 in API_Server ======
2025-01-07 13:54:37,566 - DEBUG - Requesting: http://10.0.0.12:8082/domains
2025-01-07 13:54:37,572 - DEBUG - Requesting: http://10.0.0.12:8082/domain/87c52906-3423-450c-9785-b252f5c88e7f
2025-01-07 13:54:37,587 - DEBUG - Requesting: http://10.0.0.12:8082/project/94c17ffc-0d47-4556-8e6f-dc27bb773ea5
2025-01-07 13:54:37,663 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/f1338b4e-1566-4353-9298-45b2fe4a4705
2025-01-07 13:54:37,675 - DEBUG - ==>Verifying data for policy with id: 01092773-4172-456c-8bc3-92f48555c683, fqn: ['default-domain', 'ctest-TestBasicPolicy-38961603', 'ctest-policy-allow-all-04229740']
2025-01-07 13:54:37,675 - INFO - VN ctest-vn-99963247 Policy verification: verify_vn_policy_in_api_server, status: True
2025-01-07 13:54:37,675 - DEBUG - Verifying the vn in opserver
2025-01-07 13:54:37,675 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-38961603:ctest-vn-99963247 virtual network link through opserver 10.0.0.12
2025-01-07 13:54:37,675 - DEBUG - Requesting: http://10.0.0.12:8081/analytics/uves/virtual-networks
2025-01-07 13:54:37,687 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-38961603:ctest-vn-99963247', 'href': 'http://10.0.0.12:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-38961603:ctest-vn-99963247?flat'}
2025-01-07 13:54:37,687 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-38961603:ctest-vn-99963247 is found in opserver
2025-01-07 13:54:37,698 - DEBUG - Do not have enough data to verify VN in agent
2025-01-07 13:54:37,704 - DEBUG - VRF ids for VN ctest-vn-99963247: {}
2025-01-07 13:54:37,763 - DEBUG - Services list from nova: [