2024-08-21 16:30:16,033 - INFO - Domain Default found not creating
2024-08-21 16:30:16,193 - INFO - Project ctest-TestBasicPolicy-68995704 not found, creating it
2024-08-21 16:30:16,678 - INFO - Created Project:ctest-TestBasicPolicy-68995704, ID : 128354ab-1ed8-4d88-821a-4f9e2ea69725
2024-08-21 16:30:18,157 - INFO - ================================================================================
2024-08-21 16:30:18,157 - INFO - STARTING TEST : test_basic_policy_allow_deny
2024-08-21 16:30:18,157 - 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-08-21 16:30:18,419 - DEBUG - Nothing to compare xmpp stats {'10.0.0.42': {'10.20.0.5': '0'}} with
2024-08-21 16:30:18,419 - INFO - Initial checks done. Running the testcase now
2024-08-21 16:30:18,420 - INFO -
2024-08-21 16:30:18,989 - DEBUG - Response for create_network : {'network': {'id': '824d837f-2c6a-406f-b79d-d0ddf7d4b4ce', 'name': 'ctest-vn-39585354', 'tenant_id': '128354ab1ed84d88821a4f9e2ea69725', 'project_id': '128354ab1ed84d88821a4f9e2ea69725', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-68995704', 'ctest-vn-39585354'], 'port_security_enabled': True, 'description': ''}}
2024-08-21 16:30:19,165 - DEBUG - Response for create_subnet : {'subnet': {'id': 'c77db976-7615-4310-8996-095cf2c8161f', 'name': '', 'tenant_id': '128354ab1ed84d88821a4f9e2ea69725', 'network_id': '824d837f-2c6a-406f-b79d-d0ddf7d4b4ce', 'ip_version': 4, 'cidr': '6.204.199.64/26', 'allocation_pools': [{'start': '6.204.199.66', 'end': '6.204.199.126'}], 'gateway_ip': '6.204.199.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '6.204.199.66', 'tags': [], 'project_id': '128354ab1ed84d88821a4f9e2ea69725'}}
2024-08-21 16:30:19,185 - INFO - Created VN ctest-vn-39585354
2024-08-21 16:30:19,238 - DEBUG - VN ctest-vn-39585354 UUID is 824d837f-2c6a-406f-b79d-d0ddf7d4b4ce
2024-08-21 16:30:19,539 - DEBUG - Response for create_network : {'network': {'id': 'ac2669ab-799e-491f-97c1-f3d438474060', 'name': 'ctest-vn-97823509', 'tenant_id': '128354ab1ed84d88821a4f9e2ea69725', 'project_id': '128354ab1ed84d88821a4f9e2ea69725', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-68995704', 'ctest-vn-97823509'], 'port_security_enabled': True, 'description': ''}}
2024-08-21 16:30:19,753 - DEBUG - Response for create_subnet : {'subnet': {'id': '0a5e2e5a-ae18-468a-9a17-3c15134d05ff', 'name': '', 'tenant_id': '128354ab1ed84d88821a4f9e2ea69725', 'network_id': 'ac2669ab-799e-491f-97c1-f3d438474060', 'ip_version': 4, 'cidr': '200.107.128.192/26', 'allocation_pools': [{'start': '200.107.128.194', 'end': '200.107.128.254'}], 'gateway_ip': '200.107.128.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '200.107.128.194', 'tags': [], 'project_id': '128354ab1ed84d88821a4f9e2ea69725'}}
2024-08-21 16:30:19,772 - INFO - Created VN ctest-vn-97823509
2024-08-21 16:30:19,822 - DEBUG - VN ctest-vn-97823509 UUID is ac2669ab-799e-491f-97c1-f3d438474060
2024-08-21 16:30:19,931 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-68995704:ctest-vn-39585354, 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-68995704:ctest-vn-97823509, 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-08-21 16:30:20,215 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '824d837f-2c6a-406f-b79d-d0ddf7d4b4ce', 'name': 'ctest-vn-39585354', 'tenant_id': '128354ab1ed84d88821a4f9e2ea69725', 'project_id': '128354ab1ed84d88821a4f9e2ea69725', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['c77db976-7615-4310-8996-095cf2c8161f'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-68995704', 'ctest-vn-39585354'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-68995704', 'ctest-policy-allow-all-63252661']], 'subnet_ipam': [{'subnet_cidr': '6.204.199.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-08-21 16:30:20,450 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'ac2669ab-799e-491f-97c1-f3d438474060', 'name': 'ctest-vn-97823509', 'tenant_id': '128354ab1ed84d88821a4f9e2ea69725', 'project_id': '128354ab1ed84d88821a4f9e2ea69725', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['0a5e2e5a-ae18-468a-9a17-3c15134d05ff'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-68995704', 'ctest-vn-97823509'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-68995704', 'ctest-policy-allow-all-63252661']], 'subnet_ipam': [{'subnet_cidr': '200.107.128.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-08-21 16:30:20,630 - DEBUG - Requesting: http://10.0.0.42:8082/domains
2024-08-21 16:30:20,955 - DEBUG - Requesting: http://10.0.0.42:8082/domains
2024-08-21 16:30:21,000 - DEBUG - Requesting: http://10.0.0.42:8082/domain/5b309771-a273-4311-af6e-ed5e0e917c96
2024-08-21 16:30:21,063 - DEBUG - Requesting: http://10.0.0.42:8082/project/128354ab-1ed8-4d88-821a-4f9e2ea69725
2024-08-21 16:30:21,172 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-network/824d837f-2c6a-406f-b79d-d0ddf7d4b4ce
2024-08-21 16:30:21,201 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-network/824d837f-2c6a-406f-b79d-d0ddf7d4b4ce
2024-08-21 16:30:21,211 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/1a56e153-7b33-444b-9419-c135d8cf48ca
2024-08-21 16:30:21,222 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/1a56e153-7b33-444b-9419-c135d8cf48ca
2024-08-21 16:30:21,232 - DEBUG - Requesting: http://10.0.0.42:8082/route-target/fdf40d7f-aabf-408d-82ce-48bc3f6193d1
2024-08-21 16:30:21,246 - DEBUG - Route Targets: ['target:64512:8000005']
2024-08-21 16:30:21,246 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-network/824d837f-2c6a-406f-b79d-d0ddf7d4b4ce
2024-08-21 16:30:21,259 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/1a56e153-7b33-444b-9419-c135d8cf48ca
2024-08-21 16:30:21,283 - INFO - Verified VN network id 9 for VN 824d837f-2c6a-406f-b79d-d0ddf7d4b4ce
2024-08-21 16:30:21,283 - INFO - Verifications in API Server for VN ctest-vn-39585354 passed
2024-08-21 16:30:21,283 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-network/824d837f-2c6a-406f-b79d-d0ddf7d4b4ce
2024-08-21 16:30:21,291 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/1a56e153-7b33-444b-9419-c135d8cf48ca
2024-08-21 16:30:21,299 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/1a56e153-7b33-444b-9419-c135d8cf48ca
2024-08-21 16:30:21,306 - DEBUG - Requesting: http://10.0.0.42:8082/route-target/fdf40d7f-aabf-408d-82ce-48bc3f6193d1
2024-08-21 16:30:21,325 - DEBUG - Control-node 10.0.0.42 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-68995704:ctest-vn-39585354', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-68995704', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9389305380366598255', 'uuid-lslong': '13230960932048647374'}, 'enable': 'true', 'created': '2024-08-21T16:30:18', 'last-modified': '2024-08-21T16:30:20', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.129345'}
2024-08-21 16:30:21,332 - DEBUG - Route Targets: ['target:64512:8000005']
2024-08-21 16:30:21,332 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-39585354 passed
2024-08-21 16:30:21,332 - DEBUG - ====Verifying policy data for ctest-vn-39585354 in API_Server ======
2024-08-21 16:30:21,332 - DEBUG - Requesting: http://10.0.0.42:8082/domains
2024-08-21 16:30:21,338 - DEBUG - Requesting: http://10.0.0.42:8082/domain/5b309771-a273-4311-af6e-ed5e0e917c96
2024-08-21 16:30:21,352 - DEBUG - Requesting: http://10.0.0.42:8082/project/128354ab-1ed8-4d88-821a-4f9e2ea69725
2024-08-21 16:30:21,423 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-network/824d837f-2c6a-406f-b79d-d0ddf7d4b4ce
2024-08-21 16:30:21,439 - DEBUG - ==>Verifying data for policy with id: 8ef4df46-8432-49f8-9940-e575b289a8ab, fqn: ['default-domain', 'ctest-TestBasicPolicy-68995704', 'ctest-policy-allow-all-63252661']
2024-08-21 16:30:21,439 - INFO - VN ctest-vn-39585354 Policy verification: verify_vn_policy_in_api_server, status: True
2024-08-21 16:30:21,439 - DEBUG - Verifying the vn in opserver
2024-08-21 16:30:21,439 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-68995704:ctest-vn-39585354 virtual network link through opserver 10.0.0.42
2024-08-21 16:30:21,439 - DEBUG - Requesting: http://10.0.0.42:8081/analytics/uves/virtual-networks
2024-08-21 16:30:21,734 - DEBUG - Requesting: http://10.0.0.42:8081/analytics/uves/virtual-networks
2024-08-21 16:30:21,798 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-68995704:ctest-vn-39585354', 'href': 'http://10.0.0.42:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-68995704:ctest-vn-39585354?flat'}
2024-08-21 16:30:21,798 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-68995704:ctest-vn-39585354 is found in opserver
2024-08-21 16:30:21,810 - DEBUG - Do not have enough data to verify VN in agent
2024-08-21 16:30:21,815 - DEBUG - VRF ids for VN ctest-vn-39585354: {}
2024-08-21 16:30:21,815 - DEBUG - Requesting: http://10.0.0.42:8082/domains
2024-08-21 16:30:21,821 - DEBUG - Requesting: http://10.0.0.42:8082/domain/5b309771-a273-4311-af6e-ed5e0e917c96
2024-08-21 16:30:21,833 - DEBUG - Requesting: http://10.0.0.42:8082/project/128354ab-1ed8-4d88-821a-4f9e2ea69725
2024-08-21 16:30:21,901 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-network/ac2669ab-799e-491f-97c1-f3d438474060
2024-08-21 16:30:21,911 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-network/ac2669ab-799e-491f-97c1-f3d438474060
2024-08-21 16:30:21,919 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/b7d1b20a-3154-434e-8073-5e82510d4a52
2024-08-21 16:30:21,926 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/b7d1b20a-3154-434e-8073-5e82510d4a52
2024-08-21 16:30:21,933 - DEBUG - Requesting: http://10.0.0.42:8082/route-target/8c7e5d83-7e6a-49c5-970a-688b7d3cfee2
2024-08-21 16:30:21,939 - DEBUG - Route Targets: ['target:64512:8000006']
2024-08-21 16:30:21,939 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-network/ac2669ab-799e-491f-97c1-f3d438474060
2024-08-21 16:30:21,947 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/b7d1b20a-3154-434e-8073-5e82510d4a52
2024-08-21 16:30:21,959 - INFO - Verified VN network id 10 for VN ac2669ab-799e-491f-97c1-f3d438474060
2024-08-21 16:30:21,959 - INFO - Verifications in API Server for VN ctest-vn-97823509 passed
2024-08-21 16:30:21,960 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-network/ac2669ab-799e-491f-97c1-f3d438474060
2024-08-21 16:30:21,967 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/b7d1b20a-3154-434e-8073-5e82510d4a52
2024-08-21 16:30:21,974 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/b7d1b20a-3154-434e-8073-5e82510d4a52
2024-08-21 16:30:21,981 - DEBUG - Requesting: http://10.0.0.42:8082/route-target/8c7e5d83-7e6a-49c5-970a-688b7d3cfee2
2024-08-21 16:30:21,994 - DEBUG - Control-node 10.0.0.42 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-68995704:ctest-vn-97823509', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-68995704', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12404718408839350559', 'uuid-lslong': '10935289463035084896'}, 'enable': 'true', 'created': '2024-08-21T16:30:19', 'last-modified': '2024-08-21T16:30:20', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.564583'}
2024-08-21 16:30:22,000 - DEBUG - Route Targets: ['target:64512:8000006']
2024-08-21 16:30:22,000 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-97823509 passed
2024-08-21 16:30:22,001 - DEBUG - ====Verifying policy data for ctest-vn-97823509 in API_Server ======
2024-08-21 16:30:22,001 - DEBUG - Requesting: http://10.0.0.42:8082/domains
2024-08-21 16:30:22,007 - DEBUG - Requesting: http://10.0.0.42:8082/domain/5b309771-a273-4311-af6e-ed5e0e917c96
2024-08-21 16:30:22,018 - DEBUG - Requesting: http://10.0.0.42:8082/project/128354ab-1ed8-4d88-821a-4f9e2ea69725
2024-08-21 16:30:22,085 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-network/ac2669ab-799e-491f-97c1-f3d438474060
2024-08-21 16:30:22,093 - DEBUG - ==>Verifying data for policy with id: 8ef4df46-8432-49f8-9940-e575b289a8ab, fqn: ['default-domain', 'ctest-TestBasicPolicy-68995704', 'ctest-policy-allow-all-63252661']
2024-08-21 16:30:22,093 - INFO - VN ctest-vn-97823509 Policy verification: verify_vn_policy_in_api_server, status: True
2024-08-21 16:30:22,093 - DEBUG - Verifying the vn in opserver
2024-08-21 16:30:22,093 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-68995704:ctest-vn-97823509 virtual network link through opserver 10.0.0.42
2024-08-21 16:30:22,093 - DEBUG - Requesting: http://10.0.0.42:8081/analytics/uves/virtual-networks
2024-08-21 16:30:22,105 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-68995704:ctest-vn-97823509', 'href': 'http://10.0.0.42:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-68995704:ctest-vn-97823509?flat'}
2024-08-21 16:30:22,105 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-68995704:ctest-vn-97823509 is found in opserver
2024-08-21 16:30:22,116 - DEBUG - Do not have enough data to verify VN in agent
2024-08-21 16:30:22,121 - DEBUG - VRF ids for VN ctest-vn-97823509: {}
2024-08-21 16:30:22,177 - DEBUG - Services list from nova: [