2024-10-28 16:31:09,501 - INFO - Domain Default found not creating
2024-10-28 16:31:09,687 - INFO - Project ctest-TestBasicPolicy-44007831 not found, creating it
2024-10-28 16:31:10,250 - INFO - Created Project:ctest-TestBasicPolicy-44007831, ID : 498c77dc-71a7-4284-8637-5c3240ab72f6
2024-10-28 16:31:11,854 - INFO - ================================================================================
2024-10-28 16:31:11,854 - INFO - STARTING TEST : test_basic_policy_allow_deny
2024-10-28 16:31:11,854 - 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-10-28 16:31:12,115 - DEBUG - Nothing to compare xmpp stats {'10.0.0.40': {'10.20.0.31': '0'}} with
2024-10-28 16:31:12,115 - INFO - Initial checks done. Running the testcase now
2024-10-28 16:31:12,115 - INFO -
2024-10-28 16:31:12,795 - DEBUG - Response for create_network : {'network': {'id': '62f67b78-ecd1-4194-a912-56fdfd489d95', 'name': 'ctest-vn-86494652', 'tenant_id': '498c77dc71a7428486375c3240ab72f6', 'project_id': '498c77dc71a7428486375c3240ab72f6', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-44007831', 'ctest-vn-86494652'], 'port_security_enabled': True, 'description': ''}}
2024-10-28 16:31:12,967 - DEBUG - Response for create_subnet : {'subnet': {'id': '55080487-c395-4e36-a06a-b1552d815f84', 'name': '', 'tenant_id': '498c77dc71a7428486375c3240ab72f6', 'network_id': '62f67b78-ecd1-4194-a912-56fdfd489d95', 'ip_version': 4, 'cidr': '167.255.29.64/26', 'allocation_pools': [{'start': '167.255.29.66', 'end': '167.255.29.126'}], 'gateway_ip': '167.255.29.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '167.255.29.66', 'tags': [], 'project_id': '498c77dc71a7428486375c3240ab72f6'}}
2024-10-28 16:31:12,990 - INFO - Created VN ctest-vn-86494652
2024-10-28 16:31:13,048 - DEBUG - VN ctest-vn-86494652 UUID is 62f67b78-ecd1-4194-a912-56fdfd489d95
2024-10-28 16:31:13,399 - DEBUG - Response for create_network : {'network': {'id': '077d091c-2cdc-4256-b4d2-fd6f44e1ff12', 'name': 'ctest-vn-56783079', 'tenant_id': '498c77dc71a7428486375c3240ab72f6', 'project_id': '498c77dc71a7428486375c3240ab72f6', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-44007831', 'ctest-vn-56783079'], 'port_security_enabled': True, 'description': ''}}
2024-10-28 16:31:13,607 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b0267271-b525-40e8-ae2f-50a33488593d', 'name': '', 'tenant_id': '498c77dc71a7428486375c3240ab72f6', 'network_id': '077d091c-2cdc-4256-b4d2-fd6f44e1ff12', 'ip_version': 4, 'cidr': '79.18.142.128/26', 'allocation_pools': [{'start': '79.18.142.130', 'end': '79.18.142.190'}], 'gateway_ip': '79.18.142.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '79.18.142.130', 'tags': [], 'project_id': '498c77dc71a7428486375c3240ab72f6'}}
2024-10-28 16:31:13,631 - INFO - Created VN ctest-vn-56783079
2024-10-28 16:31:13,692 - DEBUG - VN ctest-vn-56783079 UUID is 077d091c-2cdc-4256-b4d2-fd6f44e1ff12
2024-10-28 16:31:13,833 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-44007831:ctest-vn-86494652, 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-44007831:ctest-vn-56783079, 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-10-28 16:31:14,166 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '62f67b78-ecd1-4194-a912-56fdfd489d95', 'name': 'ctest-vn-86494652', 'tenant_id': '498c77dc71a7428486375c3240ab72f6', 'project_id': '498c77dc71a7428486375c3240ab72f6', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['55080487-c395-4e36-a06a-b1552d815f84'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-44007831', 'ctest-vn-86494652'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-44007831', 'ctest-policy-allow-all-07915570']], 'subnet_ipam': [{'subnet_cidr': '167.255.29.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-10-28 16:31:14,420 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '077d091c-2cdc-4256-b4d2-fd6f44e1ff12', 'name': 'ctest-vn-56783079', 'tenant_id': '498c77dc71a7428486375c3240ab72f6', 'project_id': '498c77dc71a7428486375c3240ab72f6', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['b0267271-b525-40e8-ae2f-50a33488593d'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-44007831', 'ctest-vn-56783079'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-44007831', 'ctest-policy-allow-all-07915570']], 'subnet_ipam': [{'subnet_cidr': '79.18.142.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-10-28 16:31:14,564 - DEBUG - Requesting: http://10.0.0.40:8082/domains
2024-10-28 16:31:14,886 - DEBUG - Requesting: http://10.0.0.40:8082/domains
2024-10-28 16:31:14,921 - DEBUG - Requesting: http://10.0.0.40:8082/domain/5274d552-d800-4c4f-90d0-debc9940531b
2024-10-28 16:31:14,938 - DEBUG - Requesting: http://10.0.0.40:8082/project/498c77dc-71a7-4284-8637-5c3240ab72f6
2024-10-28 16:31:15,034 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-network/62f67b78-ecd1-4194-a912-56fdfd489d95
2024-10-28 16:31:15,052 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-network/62f67b78-ecd1-4194-a912-56fdfd489d95
2024-10-28 16:31:15,069 - DEBUG - Requesting: http://10.0.0.40:8082/routing-instance/bfacfe90-1dc6-45ba-8b9e-2bd77f69646c
2024-10-28 16:31:15,081 - DEBUG - Requesting: http://10.0.0.40:8082/routing-instance/bfacfe90-1dc6-45ba-8b9e-2bd77f69646c
2024-10-28 16:31:15,091 - DEBUG - Requesting: http://10.0.0.40:8082/route-target/4906fc3b-cd48-4aa3-8cd6-5ace149aab65
2024-10-28 16:31:15,103 - DEBUG - Route Targets: ['target:64512:8000005']
2024-10-28 16:31:15,103 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-network/62f67b78-ecd1-4194-a912-56fdfd489d95
2024-10-28 16:31:15,120 - DEBUG - Requesting: http://10.0.0.40:8082/routing-instance/bfacfe90-1dc6-45ba-8b9e-2bd77f69646c
2024-10-28 16:31:15,141 - INFO - Verified VN network id 8 for VN 62f67b78-ecd1-4194-a912-56fdfd489d95
2024-10-28 16:31:15,142 - INFO - Verifications in API Server for VN ctest-vn-86494652 passed
2024-10-28 16:31:15,142 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-network/62f67b78-ecd1-4194-a912-56fdfd489d95
2024-10-28 16:31:15,157 - DEBUG - Requesting: http://10.0.0.40:8082/routing-instance/bfacfe90-1dc6-45ba-8b9e-2bd77f69646c
2024-10-28 16:31:15,169 - DEBUG - Requesting: http://10.0.0.40:8082/routing-instance/bfacfe90-1dc6-45ba-8b9e-2bd77f69646c
2024-10-28 16:31:15,178 - DEBUG - Requesting: http://10.0.0.40:8082/route-target/4906fc3b-cd48-4aa3-8cd6-5ace149aab65
2024-10-28 16:31:15,193 - DEBUG - Control-node 10.0.0.40 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-44007831:ctest-vn-86494652', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-44007831', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7131022819287187860', 'uuid-lslong': '12182895590866722197'}, 'enable': 'true', 'created': '2024-10-28T16:31:12', 'last-modified': '2024-10-28T16:31:14', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.057718'}
2024-10-28 16:31:15,201 - DEBUG - Route Targets: ['target:64512:8000005']
2024-10-28 16:31:15,202 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-86494652 passed
2024-10-28 16:31:15,202 - DEBUG - ====Verifying policy data for ctest-vn-86494652 in API_Server ======
2024-10-28 16:31:15,202 - DEBUG - Requesting: http://10.0.0.40:8082/domains
2024-10-28 16:31:15,208 - DEBUG - Requesting: http://10.0.0.40:8082/domain/5274d552-d800-4c4f-90d0-debc9940531b
2024-10-28 16:31:15,222 - DEBUG - Requesting: http://10.0.0.40:8082/project/498c77dc-71a7-4284-8637-5c3240ab72f6
2024-10-28 16:31:15,307 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-network/62f67b78-ecd1-4194-a912-56fdfd489d95
2024-10-28 16:31:15,327 - DEBUG - ==>Verifying data for policy with id: 3e38998f-5bf3-4e49-b643-baa4b4128d7a, fqn: ['default-domain', 'ctest-TestBasicPolicy-44007831', 'ctest-policy-allow-all-07915570']
2024-10-28 16:31:15,328 - INFO - VN ctest-vn-86494652 Policy verification: verify_vn_policy_in_api_server, status: True
2024-10-28 16:31:15,329 - DEBUG - Verifying the vn in opserver
2024-10-28 16:31:15,329 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-44007831:ctest-vn-86494652 virtual network link through opserver 10.0.0.40
2024-10-28 16:31:15,329 - DEBUG - Requesting: http://10.0.0.40:8081/analytics/uves/virtual-networks
2024-10-28 16:31:15,631 - DEBUG - Requesting: http://10.0.0.40:8081/analytics/uves/virtual-networks
2024-10-28 16:31:15,700 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-44007831:ctest-vn-86494652', 'href': 'http://10.0.0.40:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-44007831:ctest-vn-86494652?flat'}
2024-10-28 16:31:15,700 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-44007831:ctest-vn-86494652 is found in opserver
2024-10-28 16:31:15,712 - DEBUG - Do not have enough data to verify VN in agent
2024-10-28 16:31:15,717 - DEBUG - VRF ids for VN ctest-vn-86494652: {}
2024-10-28 16:31:15,718 - DEBUG - Requesting: http://10.0.0.40:8082/domains
2024-10-28 16:31:15,724 - DEBUG - Requesting: http://10.0.0.40:8082/domain/5274d552-d800-4c4f-90d0-debc9940531b
2024-10-28 16:31:15,740 - DEBUG - Requesting: http://10.0.0.40:8082/project/498c77dc-71a7-4284-8637-5c3240ab72f6
2024-10-28 16:31:15,828 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-network/077d091c-2cdc-4256-b4d2-fd6f44e1ff12
2024-10-28 16:31:15,856 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-network/077d091c-2cdc-4256-b4d2-fd6f44e1ff12
2024-10-28 16:31:15,871 - DEBUG - Requesting: http://10.0.0.40:8082/routing-instance/bb680454-ab56-47a0-a1b9-6b6bd3deb4f8
2024-10-28 16:31:15,881 - DEBUG - Requesting: http://10.0.0.40:8082/routing-instance/bb680454-ab56-47a0-a1b9-6b6bd3deb4f8
2024-10-28 16:31:15,891 - DEBUG - Requesting: http://10.0.0.40:8082/route-target/504cda9c-f276-4014-b337-ebc3d52dcc1a
2024-10-28 16:31:15,901 - DEBUG - Route Targets: ['target:64512:8000006']
2024-10-28 16:31:15,901 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-network/077d091c-2cdc-4256-b4d2-fd6f44e1ff12
2024-10-28 16:31:15,916 - DEBUG - Requesting: http://10.0.0.40:8082/routing-instance/bb680454-ab56-47a0-a1b9-6b6bd3deb4f8
2024-10-28 16:31:15,943 - INFO - Verified VN network id 9 for VN 077d091c-2cdc-4256-b4d2-fd6f44e1ff12
2024-10-28 16:31:15,943 - INFO - Verifications in API Server for VN ctest-vn-56783079 passed
2024-10-28 16:31:15,943 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-network/077d091c-2cdc-4256-b4d2-fd6f44e1ff12
2024-10-28 16:31:15,961 - DEBUG - Requesting: http://10.0.0.40:8082/routing-instance/bb680454-ab56-47a0-a1b9-6b6bd3deb4f8
2024-10-28 16:31:15,970 - DEBUG - Requesting: http://10.0.0.40:8082/routing-instance/bb680454-ab56-47a0-a1b9-6b6bd3deb4f8
2024-10-28 16:31:15,980 - DEBUG - Requesting: http://10.0.0.40:8082/route-target/504cda9c-f276-4014-b337-ebc3d52dcc1a
2024-10-28 16:31:15,996 - DEBUG - Control-node 10.0.0.40 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-44007831:ctest-vn-56783079', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-44007831', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '539597546970694230', 'uuid-lslong': '13029755326275125010'}, 'enable': 'true', 'created': '2024-10-28T16:31:13', 'last-modified': '2024-10-28T16:31:14', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.599349'}
2024-10-28 16:31:16,002 - DEBUG - Route Targets: ['target:64512:8000006']
2024-10-28 16:31:16,002 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-56783079 passed
2024-10-28 16:31:16,003 - DEBUG - ====Verifying policy data for ctest-vn-56783079 in API_Server ======
2024-10-28 16:31:16,003 - DEBUG - Requesting: http://10.0.0.40:8082/domains
2024-10-28 16:31:16,009 - DEBUG - Requesting: http://10.0.0.40:8082/domain/5274d552-d800-4c4f-90d0-debc9940531b
2024-10-28 16:31:16,023 - DEBUG - Requesting: http://10.0.0.40:8082/project/498c77dc-71a7-4284-8637-5c3240ab72f6
2024-10-28 16:31:16,110 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-network/077d091c-2cdc-4256-b4d2-fd6f44e1ff12
2024-10-28 16:31:16,124 - DEBUG - ==>Verifying data for policy with id: 3e38998f-5bf3-4e49-b643-baa4b4128d7a, fqn: ['default-domain', 'ctest-TestBasicPolicy-44007831', 'ctest-policy-allow-all-07915570']
2024-10-28 16:31:16,124 - INFO - VN ctest-vn-56783079 Policy verification: verify_vn_policy_in_api_server, status: True
2024-10-28 16:31:16,124 - DEBUG - Verifying the vn in opserver
2024-10-28 16:31:16,124 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-44007831:ctest-vn-56783079 virtual network link through opserver 10.0.0.40
2024-10-28 16:31:16,124 - DEBUG - Requesting: http://10.0.0.40:8081/analytics/uves/virtual-networks
2024-10-28 16:31:16,136 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-44007831:ctest-vn-56783079', 'href': 'http://10.0.0.40:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-44007831:ctest-vn-56783079?flat'}
2024-10-28 16:31:16,136 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-44007831:ctest-vn-56783079 is found in opserver
2024-10-28 16:31:16,148 - DEBUG - Do not have enough data to verify VN in agent
2024-10-28 16:31:16,155 - DEBUG - VRF ids for VN ctest-vn-56783079: {}
2024-10-28 16:31:16,221 - DEBUG - Services list from nova: [