2024-10-26 12:32:30,485 - INFO - Domain Default found not creating
2024-10-26 12:32:30,719 - INFO - Project ctest-TestBasicPolicy-15832542 not found, creating it
2024-10-26 12:32:31,268 - INFO - Created Project:ctest-TestBasicPolicy-15832542, ID : d2436d82-aeef-418a-b863-4418e2d807b3
2024-10-26 12:32:32,953 - INFO - ================================================================================
2024-10-26 12:32:32,954 - INFO - STARTING TEST : test_basic_policy_allow_deny
2024-10-26 12:32:32,954 - 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-26 12:32:33,230 - DEBUG - Nothing to compare xmpp stats {'10.0.0.33': {'10.20.0.5': '0'}} with
2024-10-26 12:32:33,230 - INFO - Initial checks done. Running the testcase now
2024-10-26 12:32:33,230 - INFO -
2024-10-26 12:32:33,883 - DEBUG - Response for create_network : {'network': {'id': 'dff83421-646f-4e1b-96f9-7f7fc0bc5473', 'name': 'ctest-vn-94781269', 'tenant_id': 'd2436d82aeef418ab8634418e2d807b3', 'project_id': 'd2436d82aeef418ab8634418e2d807b3', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-15832542', 'ctest-vn-94781269'], 'port_security_enabled': True, 'description': ''}}
2024-10-26 12:32:34,107 - DEBUG - Response for create_subnet : {'subnet': {'id': 'e52a61ac-cf83-491e-9814-ec0f8c5342b7', 'name': '', 'tenant_id': 'd2436d82aeef418ab8634418e2d807b3', 'network_id': 'dff83421-646f-4e1b-96f9-7f7fc0bc5473', 'ip_version': 4, 'cidr': '162.151.35.0/26', 'allocation_pools': [{'start': '162.151.35.2', 'end': '162.151.35.62'}], 'gateway_ip': '162.151.35.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '162.151.35.2', 'tags': [], 'project_id': 'd2436d82aeef418ab8634418e2d807b3'}}
2024-10-26 12:32:34,131 - INFO - Created VN ctest-vn-94781269
2024-10-26 12:32:34,191 - DEBUG - VN ctest-vn-94781269 UUID is dff83421-646f-4e1b-96f9-7f7fc0bc5473
2024-10-26 12:32:34,586 - DEBUG - Response for create_network : {'network': {'id': '5b1f4bca-818f-4e6c-8641-97f430f8b0af', 'name': 'ctest-vn-79846073', 'tenant_id': 'd2436d82aeef418ab8634418e2d807b3', 'project_id': 'd2436d82aeef418ab8634418e2d807b3', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-15832542', 'ctest-vn-79846073'], 'port_security_enabled': True, 'description': ''}}
2024-10-26 12:32:34,791 - DEBUG - Response for create_subnet : {'subnet': {'id': 'ef6da1c1-4560-4e12-9a1d-1efb9ca7857f', 'name': '', 'tenant_id': 'd2436d82aeef418ab8634418e2d807b3', 'network_id': '5b1f4bca-818f-4e6c-8641-97f430f8b0af', 'ip_version': 4, 'cidr': '138.126.15.0/26', 'allocation_pools': [{'start': '138.126.15.2', 'end': '138.126.15.62'}], 'gateway_ip': '138.126.15.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '138.126.15.2', 'tags': [], 'project_id': 'd2436d82aeef418ab8634418e2d807b3'}}
2024-10-26 12:32:34,816 - INFO - Created VN ctest-vn-79846073
2024-10-26 12:32:34,875 - DEBUG - VN ctest-vn-79846073 UUID is 5b1f4bca-818f-4e6c-8641-97f430f8b0af
2024-10-26 12:32:35,012 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-15832542:ctest-vn-94781269, 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-15832542:ctest-vn-79846073, 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-26 12:32:35,423 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'dff83421-646f-4e1b-96f9-7f7fc0bc5473', 'name': 'ctest-vn-94781269', 'tenant_id': 'd2436d82aeef418ab8634418e2d807b3', 'project_id': 'd2436d82aeef418ab8634418e2d807b3', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['e52a61ac-cf83-491e-9814-ec0f8c5342b7'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-15832542', 'ctest-vn-94781269'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-15832542', 'ctest-policy-allow-all-05306168']], 'subnet_ipam': [{'subnet_cidr': '162.151.35.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-10-26 12:32:35,709 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '5b1f4bca-818f-4e6c-8641-97f430f8b0af', 'name': 'ctest-vn-79846073', 'tenant_id': 'd2436d82aeef418ab8634418e2d807b3', 'project_id': 'd2436d82aeef418ab8634418e2d807b3', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['ef6da1c1-4560-4e12-9a1d-1efb9ca7857f'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-15832542', 'ctest-vn-79846073'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-15832542', 'ctest-policy-allow-all-05306168']], 'subnet_ipam': [{'subnet_cidr': '138.126.15.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-10-26 12:32:35,899 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2024-10-26 12:32:36,233 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2024-10-26 12:32:36,270 - DEBUG - Requesting: http://10.0.0.33:8082/domain/ec8bd329-455a-4864-b30f-6de8345d45e1
2024-10-26 12:32:36,287 - DEBUG - Requesting: http://10.0.0.33:8082/project/d2436d82-aeef-418a-b863-4418e2d807b3
2024-10-26 12:32:36,378 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/dff83421-646f-4e1b-96f9-7f7fc0bc5473
2024-10-26 12:32:36,399 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/dff83421-646f-4e1b-96f9-7f7fc0bc5473
2024-10-26 12:32:36,417 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/935695cf-e749-4f4f-88c1-9d547a07c9d0
2024-10-26 12:32:36,428 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/935695cf-e749-4f4f-88c1-9d547a07c9d0
2024-10-26 12:32:36,439 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/84177537-29ae-43c3-9e07-13b97dafe8d6
2024-10-26 12:32:36,448 - DEBUG - Route Targets: ['target:64512:8000005']
2024-10-26 12:32:36,448 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/dff83421-646f-4e1b-96f9-7f7fc0bc5473
2024-10-26 12:32:36,467 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/935695cf-e749-4f4f-88c1-9d547a07c9d0
2024-10-26 12:32:36,493 - INFO - Verified VN network id 7 for VN dff83421-646f-4e1b-96f9-7f7fc0bc5473
2024-10-26 12:32:36,493 - INFO - Verifications in API Server for VN ctest-vn-94781269 passed
2024-10-26 12:32:36,493 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/dff83421-646f-4e1b-96f9-7f7fc0bc5473
2024-10-26 12:32:36,509 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/935695cf-e749-4f4f-88c1-9d547a07c9d0
2024-10-26 12:32:36,519 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/935695cf-e749-4f4f-88c1-9d547a07c9d0
2024-10-26 12:32:36,529 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/84177537-29ae-43c3-9e07-13b97dafe8d6
2024-10-26 12:32:36,544 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-15832542:ctest-vn-94781269', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-15832542', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16138706582705753627', 'uuid-lslong': '10878866561561285747'}, 'enable': 'true', 'created': '2024-10-26T12:32:33', 'last-modified': '2024-10-26T12:32:35', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.181575'}
2024-10-26 12:32:36,552 - DEBUG - Route Targets: ['target:64512:8000005']
2024-10-26 12:32:36,552 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-94781269 passed
2024-10-26 12:32:36,552 - DEBUG - ====Verifying policy data for ctest-vn-94781269 in API_Server ======
2024-10-26 12:32:36,552 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2024-10-26 12:32:36,559 - DEBUG - Requesting: http://10.0.0.33:8082/domain/ec8bd329-455a-4864-b30f-6de8345d45e1
2024-10-26 12:32:36,575 - DEBUG - Requesting: http://10.0.0.33:8082/project/d2436d82-aeef-418a-b863-4418e2d807b3
2024-10-26 12:32:36,668 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/dff83421-646f-4e1b-96f9-7f7fc0bc5473
2024-10-26 12:32:36,685 - DEBUG - ==>Verifying data for policy with id: c5792b5d-ad78-4608-98a7-347ca99b7b30, fqn: ['default-domain', 'ctest-TestBasicPolicy-15832542', 'ctest-policy-allow-all-05306168']
2024-10-26 12:32:36,685 - INFO - VN ctest-vn-94781269 Policy verification: verify_vn_policy_in_api_server, status: True
2024-10-26 12:32:36,685 - DEBUG - Verifying the vn in opserver
2024-10-26 12:32:36,685 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-15832542:ctest-vn-94781269 virtual network link through opserver 10.0.0.33
2024-10-26 12:32:36,685 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks
2024-10-26 12:32:37,032 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks
2024-10-26 12:32:37,119 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-15832542:ctest-vn-94781269', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-15832542:ctest-vn-94781269?flat'}
2024-10-26 12:32:37,119 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-15832542:ctest-vn-94781269 is found in opserver
2024-10-26 12:32:37,131 - DEBUG - Do not have enough data to verify VN in agent
2024-10-26 12:32:37,138 - DEBUG - VRF ids for VN ctest-vn-94781269: {}
2024-10-26 12:32:37,138 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2024-10-26 12:32:37,145 - DEBUG - Requesting: http://10.0.0.33:8082/domain/ec8bd329-455a-4864-b30f-6de8345d45e1
2024-10-26 12:32:37,161 - DEBUG - Requesting: http://10.0.0.33:8082/project/d2436d82-aeef-418a-b863-4418e2d807b3
2024-10-26 12:32:37,254 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/5b1f4bca-818f-4e6c-8641-97f430f8b0af
2024-10-26 12:32:37,274 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/5b1f4bca-818f-4e6c-8641-97f430f8b0af
2024-10-26 12:32:37,289 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/b60e755a-c782-49d1-8350-7888e99185c6
2024-10-26 12:32:37,303 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/b60e755a-c782-49d1-8350-7888e99185c6
2024-10-26 12:32:37,315 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/ef49a171-1e14-4458-a76d-ffd39841abc7
2024-10-26 12:32:37,325 - DEBUG - Route Targets: ['target:64512:8000006']
2024-10-26 12:32:37,325 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/5b1f4bca-818f-4e6c-8641-97f430f8b0af
2024-10-26 12:32:37,343 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/b60e755a-c782-49d1-8350-7888e99185c6
2024-10-26 12:32:37,369 - INFO - Verified VN network id 8 for VN 5b1f4bca-818f-4e6c-8641-97f430f8b0af
2024-10-26 12:32:37,369 - INFO - Verifications in API Server for VN ctest-vn-79846073 passed
2024-10-26 12:32:37,370 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/5b1f4bca-818f-4e6c-8641-97f430f8b0af
2024-10-26 12:32:37,387 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/b60e755a-c782-49d1-8350-7888e99185c6
2024-10-26 12:32:37,399 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/b60e755a-c782-49d1-8350-7888e99185c6
2024-10-26 12:32:37,411 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/ef49a171-1e14-4458-a76d-ffd39841abc7
2024-10-26 12:32:37,429 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-15832542:ctest-vn-79846073', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-15832542', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6566050114858602092', 'uuid-lslong': '9674180549617954991'}, 'enable': 'true', 'created': '2024-10-26T12:32:34', 'last-modified': '2024-10-26T12:32:35', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.751022'}
2024-10-26 12:32:37,437 - DEBUG - Route Targets: ['target:64512:8000006']
2024-10-26 12:32:37,437 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-79846073 passed
2024-10-26 12:32:37,438 - DEBUG - ====Verifying policy data for ctest-vn-79846073 in API_Server ======
2024-10-26 12:32:37,438 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2024-10-26 12:32:37,446 - DEBUG - Requesting: http://10.0.0.33:8082/domain/ec8bd329-455a-4864-b30f-6de8345d45e1
2024-10-26 12:32:37,463 - DEBUG - Requesting: http://10.0.0.33:8082/project/d2436d82-aeef-418a-b863-4418e2d807b3
2024-10-26 12:32:37,573 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/5b1f4bca-818f-4e6c-8641-97f430f8b0af
2024-10-26 12:32:37,592 - DEBUG - ==>Verifying data for policy with id: c5792b5d-ad78-4608-98a7-347ca99b7b30, fqn: ['default-domain', 'ctest-TestBasicPolicy-15832542', 'ctest-policy-allow-all-05306168']
2024-10-26 12:32:37,592 - INFO - VN ctest-vn-79846073 Policy verification: verify_vn_policy_in_api_server, status: True
2024-10-26 12:32:37,592 - DEBUG - Verifying the vn in opserver
2024-10-26 12:32:37,592 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-15832542:ctest-vn-79846073 virtual network link through opserver 10.0.0.33
2024-10-26 12:32:37,593 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks
2024-10-26 12:32:37,608 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-15832542:ctest-vn-79846073', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-15832542:ctest-vn-79846073?flat'}
2024-10-26 12:32:37,608 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-15832542:ctest-vn-79846073 is found in opserver
2024-10-26 12:32:37,626 - DEBUG - Do not have enough data to verify VN in agent
2024-10-26 12:32:37,634 - DEBUG - VRF ids for VN ctest-vn-79846073: {}
2024-10-26 12:32:37,707 - DEBUG - Services list from nova: [