2024-11-03 22:43:55,896 - INFO - Domain Default found not creating
2024-11-03 22:43:56,092 - INFO - Project ctest-TestBasicPolicy-38102941 not found, creating it
2024-11-03 22:43:56,588 - INFO - Created Project:ctest-TestBasicPolicy-38102941, ID : e6fd02b8-b879-4185-a26b-5f7023940e57
2024-11-03 22:43:58,159 - INFO - ================================================================================
2024-11-03 22:43:58,159 - INFO - STARTING TEST : test_basic_policy_allow_deny
2024-11-03 22:43:58,159 - 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-11-03 22:43:58,419 - DEBUG - Nothing to compare xmpp stats {'10.0.0.37': {'10.20.0.23': '0'}} with
2024-11-03 22:43:58,419 - INFO - Initial checks done. Running the testcase now
2024-11-03 22:43:58,419 - INFO -
2024-11-03 22:43:59,053 - DEBUG - Response for create_network : {'network': {'id': '35034077-8c1c-4d99-b316-d601fd62a214', 'name': 'ctest-vn-38008261', 'tenant_id': 'e6fd02b8b8794185a26b5f7023940e57', 'project_id': 'e6fd02b8b8794185a26b5f7023940e57', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-38102941', 'ctest-vn-38008261'], 'port_security_enabled': True, 'description': ''}}
2024-11-03 22:43:59,276 - DEBUG - Response for create_subnet : {'subnet': {'id': '4795ad46-5614-4f39-8e21-c1a4fbccda69', 'name': '', 'tenant_id': 'e6fd02b8b8794185a26b5f7023940e57', 'network_id': '35034077-8c1c-4d99-b316-d601fd62a214', 'ip_version': 4, 'cidr': '32.20.120.64/26', 'allocation_pools': [{'start': '32.20.120.66', 'end': '32.20.120.126'}], 'gateway_ip': '32.20.120.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '32.20.120.66', 'tags': [], 'project_id': 'e6fd02b8b8794185a26b5f7023940e57'}}
2024-11-03 22:43:59,297 - INFO - Created VN ctest-vn-38008261
2024-11-03 22:43:59,354 - DEBUG - VN ctest-vn-38008261 UUID is 35034077-8c1c-4d99-b316-d601fd62a214
2024-11-03 22:43:59,724 - DEBUG - Response for create_network : {'network': {'id': '1e8822c0-e65e-4782-b1bd-5ce62d59f08b', 'name': 'ctest-vn-31355670', 'tenant_id': 'e6fd02b8b8794185a26b5f7023940e57', 'project_id': 'e6fd02b8b8794185a26b5f7023940e57', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-38102941', 'ctest-vn-31355670'], 'port_security_enabled': True, 'description': ''}}
2024-11-03 22:43:59,950 - DEBUG - Response for create_subnet : {'subnet': {'id': '80027364-bffc-4a75-b49c-8586ad265920', 'name': '', 'tenant_id': 'e6fd02b8b8794185a26b5f7023940e57', 'network_id': '1e8822c0-e65e-4782-b1bd-5ce62d59f08b', 'ip_version': 4, 'cidr': '139.47.72.64/26', 'allocation_pools': [{'start': '139.47.72.66', 'end': '139.47.72.126'}], 'gateway_ip': '139.47.72.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '139.47.72.66', 'tags': [], 'project_id': 'e6fd02b8b8794185a26b5f7023940e57'}}
2024-11-03 22:43:59,971 - INFO - Created VN ctest-vn-31355670
2024-11-03 22:44:00,030 - DEBUG - VN ctest-vn-31355670 UUID is 1e8822c0-e65e-4782-b1bd-5ce62d59f08b
2024-11-03 22:44:00,161 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-38102941:ctest-vn-38008261, 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-38102941:ctest-vn-31355670, 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-11-03 22:44:00,534 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '35034077-8c1c-4d99-b316-d601fd62a214', 'name': 'ctest-vn-38008261', 'tenant_id': 'e6fd02b8b8794185a26b5f7023940e57', 'project_id': 'e6fd02b8b8794185a26b5f7023940e57', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['4795ad46-5614-4f39-8e21-c1a4fbccda69'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-38102941', 'ctest-vn-38008261'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-38102941', 'ctest-policy-allow-all-42803263']], 'subnet_ipam': [{'subnet_cidr': '32.20.120.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-11-03 22:44:00,798 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '1e8822c0-e65e-4782-b1bd-5ce62d59f08b', 'name': 'ctest-vn-31355670', 'tenant_id': 'e6fd02b8b8794185a26b5f7023940e57', 'project_id': 'e6fd02b8b8794185a26b5f7023940e57', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['80027364-bffc-4a75-b49c-8586ad265920'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-38102941', 'ctest-vn-31355670'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-38102941', 'ctest-policy-allow-all-42803263']], 'subnet_ipam': [{'subnet_cidr': '139.47.72.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-11-03 22:44:00,971 - DEBUG - Requesting: http://10.0.0.37:8082/domains
2024-11-03 22:44:01,273 - DEBUG - Requesting: http://10.0.0.37:8082/domains
2024-11-03 22:44:01,308 - DEBUG - Requesting: http://10.0.0.37:8082/domain/c178c8d9-88e5-4eea-bfae-146ab913ce90
2024-11-03 22:44:01,324 - DEBUG - Requesting: http://10.0.0.37:8082/project/e6fd02b8-b879-4185-a26b-5f7023940e57
2024-11-03 22:44:01,413 - DEBUG - Requesting: http://10.0.0.37:8082/virtual-network/35034077-8c1c-4d99-b316-d601fd62a214
2024-11-03 22:44:01,429 - DEBUG - Requesting: http://10.0.0.37:8082/virtual-network/35034077-8c1c-4d99-b316-d601fd62a214
2024-11-03 22:44:01,447 - DEBUG - Requesting: http://10.0.0.37:8082/routing-instance/11e84f43-bd4a-40f5-97e9-b6f242b78209
2024-11-03 22:44:01,457 - DEBUG - Requesting: http://10.0.0.37:8082/routing-instance/11e84f43-bd4a-40f5-97e9-b6f242b78209
2024-11-03 22:44:01,467 - DEBUG - Requesting: http://10.0.0.37:8082/route-target/ceb23d2d-8e95-42ab-8082-f442b784909a
2024-11-03 22:44:01,476 - DEBUG - Route Targets: ['target:64512:8000005']
2024-11-03 22:44:01,476 - DEBUG - Requesting: http://10.0.0.37:8082/virtual-network/35034077-8c1c-4d99-b316-d601fd62a214
2024-11-03 22:44:01,494 - DEBUG - Requesting: http://10.0.0.37:8082/routing-instance/11e84f43-bd4a-40f5-97e9-b6f242b78209
2024-11-03 22:44:01,538 - INFO - Verified VN network id 8 for VN 35034077-8c1c-4d99-b316-d601fd62a214
2024-11-03 22:44:01,538 - INFO - Verifications in API Server for VN ctest-vn-38008261 passed
2024-11-03 22:44:01,538 - DEBUG - Requesting: http://10.0.0.37:8082/virtual-network/35034077-8c1c-4d99-b316-d601fd62a214
2024-11-03 22:44:01,563 - DEBUG - Requesting: http://10.0.0.37:8082/routing-instance/11e84f43-bd4a-40f5-97e9-b6f242b78209
2024-11-03 22:44:01,578 - DEBUG - Requesting: http://10.0.0.37:8082/routing-instance/11e84f43-bd4a-40f5-97e9-b6f242b78209
2024-11-03 22:44:01,593 - DEBUG - Requesting: http://10.0.0.37:8082/route-target/ceb23d2d-8e95-42ab-8082-f442b784909a
2024-11-03 22:44:01,615 - DEBUG - Control-node 10.0.0.37 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-38102941:ctest-vn-38008261', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-38102941', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3819967791136263577', 'uuid-lslong': '12904737086311146004'}, 'enable': 'true', 'created': '2024-11-03T22:43:59', 'last-modified': '2024-11-03T22:44:00', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.099536'}
2024-11-03 22:44:01,623 - DEBUG - Route Targets: ['target:64512:8000005']
2024-11-03 22:44:01,623 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-38008261 passed
2024-11-03 22:44:01,623 - DEBUG - ====Verifying policy data for ctest-vn-38008261 in API_Server ======
2024-11-03 22:44:01,623 - DEBUG - Requesting: http://10.0.0.37:8082/domains
2024-11-03 22:44:01,631 - DEBUG - Requesting: http://10.0.0.37:8082/domain/c178c8d9-88e5-4eea-bfae-146ab913ce90
2024-11-03 22:44:01,647 - DEBUG - Requesting: http://10.0.0.37:8082/project/e6fd02b8-b879-4185-a26b-5f7023940e57
2024-11-03 22:44:01,738 - DEBUG - Requesting: http://10.0.0.37:8082/virtual-network/35034077-8c1c-4d99-b316-d601fd62a214
2024-11-03 22:44:01,755 - DEBUG - ==>Verifying data for policy with id: c8723767-5b67-4509-8555-88b31bef54fc, fqn: ['default-domain', 'ctest-TestBasicPolicy-38102941', 'ctest-policy-allow-all-42803263']
2024-11-03 22:44:01,755 - INFO - VN ctest-vn-38008261 Policy verification: verify_vn_policy_in_api_server, status: True
2024-11-03 22:44:01,755 - DEBUG - Verifying the vn in opserver
2024-11-03 22:44:01,756 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-38102941:ctest-vn-38008261 virtual network link through opserver 10.0.0.37
2024-11-03 22:44:01,756 - DEBUG - Requesting: http://10.0.0.37:8081/analytics/uves/virtual-networks
2024-11-03 22:44:02,054 - DEBUG - Requesting: http://10.0.0.37:8081/analytics/uves/virtual-networks
2024-11-03 22:44:02,125 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-38102941:ctest-vn-38008261', 'href': 'http://10.0.0.37:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-38102941:ctest-vn-38008261?flat'}
2024-11-03 22:44:02,125 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-38102941:ctest-vn-38008261 is found in opserver
2024-11-03 22:44:02,144 - DEBUG - Do not have enough data to verify VN in agent
2024-11-03 22:44:02,152 - DEBUG - VRF ids for VN ctest-vn-38008261: {}
2024-11-03 22:44:02,152 - DEBUG - Requesting: http://10.0.0.37:8082/domains
2024-11-03 22:44:02,162 - DEBUG - Requesting: http://10.0.0.37:8082/domain/c178c8d9-88e5-4eea-bfae-146ab913ce90
2024-11-03 22:44:02,184 - DEBUG - Requesting: http://10.0.0.37:8082/project/e6fd02b8-b879-4185-a26b-5f7023940e57
2024-11-03 22:44:02,288 - DEBUG - Requesting: http://10.0.0.37:8082/virtual-network/1e8822c0-e65e-4782-b1bd-5ce62d59f08b
2024-11-03 22:44:02,311 - DEBUG - Requesting: http://10.0.0.37:8082/virtual-network/1e8822c0-e65e-4782-b1bd-5ce62d59f08b
2024-11-03 22:44:02,328 - DEBUG - Requesting: http://10.0.0.37:8082/routing-instance/d0415c04-9e9e-4427-b4de-e85f30598876
2024-11-03 22:44:02,340 - DEBUG - Requesting: http://10.0.0.37:8082/routing-instance/d0415c04-9e9e-4427-b4de-e85f30598876
2024-11-03 22:44:02,350 - DEBUG - Requesting: http://10.0.0.37:8082/route-target/a94ff215-abe9-47ec-b1af-0697c71293ad
2024-11-03 22:44:02,362 - DEBUG - Route Targets: ['target:64512:8000006']
2024-11-03 22:44:02,362 - DEBUG - Requesting: http://10.0.0.37:8082/virtual-network/1e8822c0-e65e-4782-b1bd-5ce62d59f08b
2024-11-03 22:44:02,380 - DEBUG - Requesting: http://10.0.0.37:8082/routing-instance/d0415c04-9e9e-4427-b4de-e85f30598876
2024-11-03 22:44:02,407 - INFO - Verified VN network id 9 for VN 1e8822c0-e65e-4782-b1bd-5ce62d59f08b
2024-11-03 22:44:02,407 - INFO - Verifications in API Server for VN ctest-vn-31355670 passed
2024-11-03 22:44:02,407 - DEBUG - Requesting: http://10.0.0.37:8082/virtual-network/1e8822c0-e65e-4782-b1bd-5ce62d59f08b
2024-11-03 22:44:02,431 - DEBUG - Requesting: http://10.0.0.37:8082/routing-instance/d0415c04-9e9e-4427-b4de-e85f30598876
2024-11-03 22:44:02,444 - DEBUG - Requesting: http://10.0.0.37:8082/routing-instance/d0415c04-9e9e-4427-b4de-e85f30598876
2024-11-03 22:44:02,456 - DEBUG - Requesting: http://10.0.0.37:8082/route-target/a94ff215-abe9-47ec-b1af-0697c71293ad
2024-11-03 22:44:02,474 - DEBUG - Control-node 10.0.0.37 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-38102941:ctest-vn-31355670', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-38102941', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '2200046629864490882', 'uuid-lslong': '12807495058984661131'}, 'enable': 'true', 'created': '2024-11-03T22:43:59', 'last-modified': '2024-11-03T22:44:00', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.733924'}
2024-11-03 22:44:02,482 - DEBUG - Route Targets: ['target:64512:8000006']
2024-11-03 22:44:02,483 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-31355670 passed
2024-11-03 22:44:02,483 - DEBUG - ====Verifying policy data for ctest-vn-31355670 in API_Server ======
2024-11-03 22:44:02,483 - DEBUG - Requesting: http://10.0.0.37:8082/domains
2024-11-03 22:44:02,491 - DEBUG - Requesting: http://10.0.0.37:8082/domain/c178c8d9-88e5-4eea-bfae-146ab913ce90
2024-11-03 22:44:02,509 - DEBUG - Requesting: http://10.0.0.37:8082/project/e6fd02b8-b879-4185-a26b-5f7023940e57
2024-11-03 22:44:02,600 - DEBUG - Requesting: http://10.0.0.37:8082/virtual-network/1e8822c0-e65e-4782-b1bd-5ce62d59f08b
2024-11-03 22:44:02,616 - DEBUG - ==>Verifying data for policy with id: c8723767-5b67-4509-8555-88b31bef54fc, fqn: ['default-domain', 'ctest-TestBasicPolicy-38102941', 'ctest-policy-allow-all-42803263']
2024-11-03 22:44:02,616 - INFO - VN ctest-vn-31355670 Policy verification: verify_vn_policy_in_api_server, status: True
2024-11-03 22:44:02,616 - DEBUG - Verifying the vn in opserver
2024-11-03 22:44:02,616 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-38102941:ctest-vn-31355670 virtual network link through opserver 10.0.0.37
2024-11-03 22:44:02,616 - DEBUG - Requesting: http://10.0.0.37:8081/analytics/uves/virtual-networks
2024-11-03 22:44:02,629 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-38102941:ctest-vn-31355670', 'href': 'http://10.0.0.37:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-38102941:ctest-vn-31355670?flat'}
2024-11-03 22:44:02,629 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-38102941:ctest-vn-31355670 is found in opserver
2024-11-03 22:44:02,642 - DEBUG - Do not have enough data to verify VN in agent
2024-11-03 22:44:02,648 - DEBUG - VRF ids for VN ctest-vn-31355670: {}
2024-11-03 22:44:02,716 - DEBUG - Services list from nova: [