2024-10-29 16:36:13,843 - INFO - Domain Default found not creating
2024-10-29 16:36:14,003 - INFO - Project ctest-TestBasicPolicy-40275173 not found, creating it
2024-10-29 16:36:14,526 - INFO - Created Project:ctest-TestBasicPolicy-40275173, ID : 044b59b0-597c-499f-896d-e956e287edb9
2024-10-29 16:36:16,052 - INFO - ================================================================================
2024-10-29 16:36:16,053 - INFO - STARTING TEST : test_basic_policy_allow_deny
2024-10-29 16:36:16,053 - 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-29 16:36:16,308 - DEBUG - Nothing to compare xmpp stats {'10.0.0.40': {'10.20.0.22': '0'}} with
2024-10-29 16:36:16,308 - INFO - Initial checks done. Running the testcase now
2024-10-29 16:36:16,308 - INFO -
2024-10-29 16:36:16,943 - DEBUG - Response for create_network : {'network': {'id': '2dcb07cb-4cb8-4be7-9d2c-77856bc0307d', 'name': 'ctest-vn-04704788', 'tenant_id': '044b59b0597c499f896de956e287edb9', 'project_id': '044b59b0597c499f896de956e287edb9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-40275173', 'ctest-vn-04704788'], 'port_security_enabled': True, 'description': ''}}
2024-10-29 16:36:17,203 - DEBUG - Response for create_subnet : {'subnet': {'id': '25cbcc3d-db3f-4f23-bccd-1503d61e7215', 'name': '', 'tenant_id': '044b59b0597c499f896de956e287edb9', 'network_id': '2dcb07cb-4cb8-4be7-9d2c-77856bc0307d', 'ip_version': 4, 'cidr': '205.162.152.0/26', 'allocation_pools': [{'start': '205.162.152.2', 'end': '205.162.152.62'}], 'gateway_ip': '205.162.152.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '205.162.152.2', 'tags': [], 'project_id': '044b59b0597c499f896de956e287edb9'}}
2024-10-29 16:36:17,226 - INFO - Created VN ctest-vn-04704788
2024-10-29 16:36:17,286 - DEBUG - VN ctest-vn-04704788 UUID is 2dcb07cb-4cb8-4be7-9d2c-77856bc0307d
2024-10-29 16:36:17,623 - DEBUG - Response for create_network : {'network': {'id': '4c7adc47-b8c5-47a6-ae37-33a377a30d82', 'name': 'ctest-vn-47822188', 'tenant_id': '044b59b0597c499f896de956e287edb9', 'project_id': '044b59b0597c499f896de956e287edb9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-40275173', 'ctest-vn-47822188'], 'port_security_enabled': True, 'description': ''}}
2024-10-29 16:36:17,849 - DEBUG - Response for create_subnet : {'subnet': {'id': 'df2ce24c-c447-40d7-a263-2d4feef83548', 'name': '', 'tenant_id': '044b59b0597c499f896de956e287edb9', 'network_id': '4c7adc47-b8c5-47a6-ae37-33a377a30d82', 'ip_version': 4, 'cidr': '197.159.134.192/26', 'allocation_pools': [{'start': '197.159.134.194', 'end': '197.159.134.254'}], 'gateway_ip': '197.159.134.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '197.159.134.194', 'tags': [], 'project_id': '044b59b0597c499f896de956e287edb9'}}
2024-10-29 16:36:17,868 - INFO - Created VN ctest-vn-47822188
2024-10-29 16:36:17,925 - DEBUG - VN ctest-vn-47822188 UUID is 4c7adc47-b8c5-47a6-ae37-33a377a30d82
2024-10-29 16:36:18,077 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-40275173:ctest-vn-04704788, 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-40275173:ctest-vn-47822188, 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-29 16:36:18,413 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '2dcb07cb-4cb8-4be7-9d2c-77856bc0307d', 'name': 'ctest-vn-04704788', 'tenant_id': '044b59b0597c499f896de956e287edb9', 'project_id': '044b59b0597c499f896de956e287edb9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['25cbcc3d-db3f-4f23-bccd-1503d61e7215'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-40275173', 'ctest-vn-04704788'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-40275173', 'ctest-policy-allow-all-09119477']], 'subnet_ipam': [{'subnet_cidr': '205.162.152.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-10-29 16:36:18,671 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '4c7adc47-b8c5-47a6-ae37-33a377a30d82', 'name': 'ctest-vn-47822188', 'tenant_id': '044b59b0597c499f896de956e287edb9', 'project_id': '044b59b0597c499f896de956e287edb9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['df2ce24c-c447-40d7-a263-2d4feef83548'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-40275173', 'ctest-vn-47822188'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-40275173', 'ctest-policy-allow-all-09119477']], 'subnet_ipam': [{'subnet_cidr': '197.159.134.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-10-29 16:36:18,829 - DEBUG - Requesting: http://10.0.0.40:8082/domains
2024-10-29 16:36:19,130 - DEBUG - Requesting: http://10.0.0.40:8082/domains
2024-10-29 16:36:19,171 - DEBUG - Requesting: http://10.0.0.40:8082/domain/655009fb-1f37-42f2-884e-d0ad9c499aa5
2024-10-29 16:36:19,189 - DEBUG - Requesting: http://10.0.0.40:8082/project/044b59b0-597c-499f-896d-e956e287edb9
2024-10-29 16:36:19,279 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-network/2dcb07cb-4cb8-4be7-9d2c-77856bc0307d
2024-10-29 16:36:19,297 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-network/2dcb07cb-4cb8-4be7-9d2c-77856bc0307d
2024-10-29 16:36:19,313 - DEBUG - Requesting: http://10.0.0.40:8082/routing-instance/c781384e-c1dd-4e38-bd38-8dcecb198054
2024-10-29 16:36:19,324 - DEBUG - Requesting: http://10.0.0.40:8082/routing-instance/c781384e-c1dd-4e38-bd38-8dcecb198054
2024-10-29 16:36:19,334 - DEBUG - Requesting: http://10.0.0.40:8082/route-target/f99894c5-d3a4-4514-a3e9-658267cff178
2024-10-29 16:36:19,344 - DEBUG - Route Targets: ['target:64512:8000005']
2024-10-29 16:36:19,344 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-network/2dcb07cb-4cb8-4be7-9d2c-77856bc0307d
2024-10-29 16:36:19,363 - DEBUG - Requesting: http://10.0.0.40:8082/routing-instance/c781384e-c1dd-4e38-bd38-8dcecb198054
2024-10-29 16:36:19,389 - INFO - Verified VN network id 8 for VN 2dcb07cb-4cb8-4be7-9d2c-77856bc0307d
2024-10-29 16:36:19,389 - INFO - Verifications in API Server for VN ctest-vn-04704788 passed
2024-10-29 16:36:19,389 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-network/2dcb07cb-4cb8-4be7-9d2c-77856bc0307d
2024-10-29 16:36:19,408 - DEBUG - Requesting: http://10.0.0.40:8082/routing-instance/c781384e-c1dd-4e38-bd38-8dcecb198054
2024-10-29 16:36:19,419 - DEBUG - Requesting: http://10.0.0.40:8082/routing-instance/c781384e-c1dd-4e38-bd38-8dcecb198054
2024-10-29 16:36:19,431 - DEBUG - Requesting: http://10.0.0.40:8082/route-target/f99894c5-d3a4-4514-a3e9-658267cff178
2024-10-29 16:36:19,446 - DEBUG - Control-node 10.0.0.40 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-40275173:ctest-vn-04704788', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-40275173', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3299739721725922279', 'uuid-lslong': '11325558577852067965'}, 'enable': 'true', 'created': '2024-10-29T16:36:16', 'last-modified': '2024-10-29T16:36:18', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.066106'}
2024-10-29 16:36:19,453 - DEBUG - Route Targets: ['target:64512:8000005']
2024-10-29 16:36:19,454 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-04704788 passed
2024-10-29 16:36:19,454 - DEBUG - ====Verifying policy data for ctest-vn-04704788 in API_Server ======
2024-10-29 16:36:19,454 - DEBUG - Requesting: http://10.0.0.40:8082/domains
2024-10-29 16:36:19,462 - DEBUG - Requesting: http://10.0.0.40:8082/domain/655009fb-1f37-42f2-884e-d0ad9c499aa5
2024-10-29 16:36:19,478 - DEBUG - Requesting: http://10.0.0.40:8082/project/044b59b0-597c-499f-896d-e956e287edb9
2024-10-29 16:36:19,567 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-network/2dcb07cb-4cb8-4be7-9d2c-77856bc0307d
2024-10-29 16:36:19,586 - DEBUG - ==>Verifying data for policy with id: 5883d28b-aa8d-4046-b718-12ed2f39c82f, fqn: ['default-domain', 'ctest-TestBasicPolicy-40275173', 'ctest-policy-allow-all-09119477']
2024-10-29 16:36:19,586 - INFO - VN ctest-vn-04704788 Policy verification: verify_vn_policy_in_api_server, status: True
2024-10-29 16:36:19,586 - DEBUG - Verifying the vn in opserver
2024-10-29 16:36:19,586 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-40275173:ctest-vn-04704788 virtual network link through opserver 10.0.0.40
2024-10-29 16:36:19,587 - DEBUG - Requesting: http://10.0.0.40:8081/analytics/uves/virtual-networks
2024-10-29 16:36:19,890 - DEBUG - Requesting: http://10.0.0.40:8081/analytics/uves/virtual-networks
2024-10-29 16:36:19,963 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-40275173:ctest-vn-04704788', 'href': 'http://10.0.0.40:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-40275173:ctest-vn-04704788?flat'}
2024-10-29 16:36:19,963 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-40275173:ctest-vn-04704788 is found in opserver
2024-10-29 16:36:19,975 - DEBUG - Do not have enough data to verify VN in agent
2024-10-29 16:36:19,981 - DEBUG - VRF ids for VN ctest-vn-04704788: {}
2024-10-29 16:36:19,981 - DEBUG - Requesting: http://10.0.0.40:8082/domains
2024-10-29 16:36:19,989 - DEBUG - Requesting: http://10.0.0.40:8082/domain/655009fb-1f37-42f2-884e-d0ad9c499aa5
2024-10-29 16:36:20,005 - DEBUG - Requesting: http://10.0.0.40:8082/project/044b59b0-597c-499f-896d-e956e287edb9
2024-10-29 16:36:20,090 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-network/4c7adc47-b8c5-47a6-ae37-33a377a30d82
2024-10-29 16:36:20,108 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-network/4c7adc47-b8c5-47a6-ae37-33a377a30d82
2024-10-29 16:36:20,123 - DEBUG - Requesting: http://10.0.0.40:8082/routing-instance/a98998b7-f356-43df-b5f2-7be65ad304c9
2024-10-29 16:36:20,132 - DEBUG - Requesting: http://10.0.0.40:8082/routing-instance/a98998b7-f356-43df-b5f2-7be65ad304c9
2024-10-29 16:36:20,140 - DEBUG - Requesting: http://10.0.0.40:8082/route-target/86691618-44d0-4d2d-b43b-8397ae161ce6
2024-10-29 16:36:20,148 - DEBUG - Route Targets: ['target:64512:8000006']
2024-10-29 16:36:20,148 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-network/4c7adc47-b8c5-47a6-ae37-33a377a30d82
2024-10-29 16:36:20,164 - DEBUG - Requesting: http://10.0.0.40:8082/routing-instance/a98998b7-f356-43df-b5f2-7be65ad304c9
2024-10-29 16:36:20,186 - INFO - Verified VN network id 9 for VN 4c7adc47-b8c5-47a6-ae37-33a377a30d82
2024-10-29 16:36:20,186 - INFO - Verifications in API Server for VN ctest-vn-47822188 passed
2024-10-29 16:36:20,186 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-network/4c7adc47-b8c5-47a6-ae37-33a377a30d82
2024-10-29 16:36:20,201 - DEBUG - Requesting: http://10.0.0.40:8082/routing-instance/a98998b7-f356-43df-b5f2-7be65ad304c9
2024-10-29 16:36:20,211 - DEBUG - Requesting: http://10.0.0.40:8082/routing-instance/a98998b7-f356-43df-b5f2-7be65ad304c9
2024-10-29 16:36:20,222 - DEBUG - Requesting: http://10.0.0.40:8082/route-target/86691618-44d0-4d2d-b43b-8397ae161ce6
2024-10-29 16:36:20,238 - DEBUG - Control-node 10.0.0.40 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-40275173:ctest-vn-47822188', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-40275173', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5510959294641948582', 'uuid-lslong': '12553559263498407298'}, 'enable': 'true', 'created': '2024-10-29T16:36:17', 'last-modified': '2024-10-29T16:36:18', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.599181'}
2024-10-29 16:36:20,245 - DEBUG - Route Targets: ['target:64512:8000006']
2024-10-29 16:36:20,245 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-47822188 passed
2024-10-29 16:36:20,246 - DEBUG - ====Verifying policy data for ctest-vn-47822188 in API_Server ======
2024-10-29 16:36:20,246 - DEBUG - Requesting: http://10.0.0.40:8082/domains
2024-10-29 16:36:20,255 - DEBUG - Requesting: http://10.0.0.40:8082/domain/655009fb-1f37-42f2-884e-d0ad9c499aa5
2024-10-29 16:36:20,272 - DEBUG - Requesting: http://10.0.0.40:8082/project/044b59b0-597c-499f-896d-e956e287edb9
2024-10-29 16:36:20,362 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-network/4c7adc47-b8c5-47a6-ae37-33a377a30d82
2024-10-29 16:36:20,381 - DEBUG - ==>Verifying data for policy with id: 5883d28b-aa8d-4046-b718-12ed2f39c82f, fqn: ['default-domain', 'ctest-TestBasicPolicy-40275173', 'ctest-policy-allow-all-09119477']
2024-10-29 16:36:20,381 - INFO - VN ctest-vn-47822188 Policy verification: verify_vn_policy_in_api_server, status: True
2024-10-29 16:36:20,381 - DEBUG - Verifying the vn in opserver
2024-10-29 16:36:20,381 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-40275173:ctest-vn-47822188 virtual network link through opserver 10.0.0.40
2024-10-29 16:36:20,381 - DEBUG - Requesting: http://10.0.0.40:8081/analytics/uves/virtual-networks
2024-10-29 16:36:20,393 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-40275173:ctest-vn-47822188', 'href': 'http://10.0.0.40:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-40275173:ctest-vn-47822188?flat'}
2024-10-29 16:36:20,393 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-40275173:ctest-vn-47822188 is found in opserver
2024-10-29 16:36:20,407 - DEBUG - Do not have enough data to verify VN in agent
2024-10-29 16:36:20,413 - DEBUG - VRF ids for VN ctest-vn-47822188: {}
2024-10-29 16:36:20,475 - DEBUG - Services list from nova: [