2025-05-07 09:08:21,979 - INFO - Domain Default found not creating
2025-05-07 09:08:22,388 - INFO - Project ctest-TestBasicPolicy-37027794 not found, creating it
2025-05-07 09:08:23,209 - INFO - Created Project:ctest-TestBasicPolicy-37027794, ID : 5975edd8-82d5-45e3-86ba-0efe5a6636f0
2025-05-07 09:08:25,383 - INFO - ================================================================================
2025-05-07 09:08:25,383 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-05-07 09:08:25,383 - 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
2025-05-07 09:08:25,728 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.254': '0'}} with
2025-05-07 09:08:25,729 - INFO - Initial checks done. Running the testcase now
2025-05-07 09:08:25,729 - INFO -
2025-05-07 09:08:26,716 - DEBUG - Response for create_network : {'network': {'id': 'b15305df-8e5a-4b06-8706-b216e97017bf', 'name': 'ctest-vn-04707989', 'tenant_id': '5975edd882d545e386ba0efe5a6636f0', 'project_id': '5975edd882d545e386ba0efe5a6636f0', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-37027794', 'ctest-vn-04707989'], 'port_security_enabled': True, 'description': ''}}
2025-05-07 09:08:26,955 - DEBUG - Response for create_subnet : {'subnet': {'id': '564f02d2-565f-4f26-9cd9-770321dd5776', 'name': '', 'tenant_id': '5975edd882d545e386ba0efe5a6636f0', 'network_id': 'b15305df-8e5a-4b06-8706-b216e97017bf', 'ip_version': 4, 'cidr': '49.25.37.128/26', 'allocation_pools': [{'start': '49.25.37.130', 'end': '49.25.37.190'}], 'gateway_ip': '49.25.37.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '49.25.37.130', 'tags': [], 'project_id': '5975edd882d545e386ba0efe5a6636f0'}}
2025-05-07 09:08:26,975 - INFO - Created VN ctest-vn-04707989
2025-05-07 09:08:27,036 - DEBUG - VN ctest-vn-04707989 UUID is b15305df-8e5a-4b06-8706-b216e97017bf
2025-05-07 09:08:27,514 - DEBUG - Response for create_network : {'network': {'id': 'bcf2474c-edf1-4c88-a31d-41e287235564', 'name': 'ctest-vn-09166361', 'tenant_id': '5975edd882d545e386ba0efe5a6636f0', 'project_id': '5975edd882d545e386ba0efe5a6636f0', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-37027794', 'ctest-vn-09166361'], 'port_security_enabled': True, 'description': ''}}
2025-05-07 09:08:27,752 - DEBUG - Response for create_subnet : {'subnet': {'id': 'af5a5332-b9b7-4ab4-aad8-854b2ff54301', 'name': '', 'tenant_id': '5975edd882d545e386ba0efe5a6636f0', 'network_id': 'bcf2474c-edf1-4c88-a31d-41e287235564', 'ip_version': 4, 'cidr': '189.91.46.64/26', 'allocation_pools': [{'start': '189.91.46.66', 'end': '189.91.46.126'}], 'gateway_ip': '189.91.46.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '189.91.46.66', 'tags': [], 'project_id': '5975edd882d545e386ba0efe5a6636f0'}}
2025-05-07 09:08:27,778 - INFO - Created VN ctest-vn-09166361
2025-05-07 09:08:27,832 - DEBUG - VN ctest-vn-09166361 UUID is bcf2474c-edf1-4c88-a31d-41e287235564
2025-05-07 09:08:27,945 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-37027794:ctest-vn-04707989, 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-37027794:ctest-vn-09166361, 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]
2025-05-07 09:08:28,321 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'b15305df-8e5a-4b06-8706-b216e97017bf', 'name': 'ctest-vn-04707989', 'tenant_id': '5975edd882d545e386ba0efe5a6636f0', 'project_id': '5975edd882d545e386ba0efe5a6636f0', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['564f02d2-565f-4f26-9cd9-770321dd5776'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-37027794', 'ctest-vn-04707989'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-37027794', 'ctest-policy-allow-all-60058067']], 'subnet_ipam': [{'subnet_cidr': '49.25.37.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-05-07 09:08:28,605 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'bcf2474c-edf1-4c88-a31d-41e287235564', 'name': 'ctest-vn-09166361', 'tenant_id': '5975edd882d545e386ba0efe5a6636f0', 'project_id': '5975edd882d545e386ba0efe5a6636f0', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['af5a5332-b9b7-4ab4-aad8-854b2ff54301'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-37027794', 'ctest-vn-09166361'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-37027794', 'ctest-policy-allow-all-60058067']], 'subnet_ipam': [{'subnet_cidr': '189.91.46.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-05-07 09:08:28,783 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-05-07 09:08:29,085 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-05-07 09:08:29,123 - DEBUG - Requesting: http://10.0.0.254:8082/domain/9167c268-c9a5-48e8-a089-54d2a3410b0e
2025-05-07 09:08:29,142 - DEBUG - Requesting: http://10.0.0.254:8082/project/5975edd8-82d5-45e3-86ba-0efe5a6636f0
2025-05-07 09:08:29,265 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/b15305df-8e5a-4b06-8706-b216e97017bf
2025-05-07 09:08:29,292 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/b15305df-8e5a-4b06-8706-b216e97017bf
2025-05-07 09:08:29,320 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/db13792c-8bae-4a5f-8afd-ea6ed9c39e0e
2025-05-07 09:08:29,345 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/db13792c-8bae-4a5f-8afd-ea6ed9c39e0e
2025-05-07 09:08:29,369 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/674ca77e-f9b3-47ad-a043-ffcffbfce738
2025-05-07 09:08:29,388 - DEBUG - Route Targets: ['target:64512:8000005']
2025-05-07 09:08:29,389 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/b15305df-8e5a-4b06-8706-b216e97017bf
2025-05-07 09:08:29,418 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/db13792c-8bae-4a5f-8afd-ea6ed9c39e0e
2025-05-07 09:08:29,462 - INFO - Verified VN network id 8 for VN b15305df-8e5a-4b06-8706-b216e97017bf
2025-05-07 09:08:29,463 - INFO - Verifications in API Server for VN ctest-vn-04707989 passed
2025-05-07 09:08:29,463 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/b15305df-8e5a-4b06-8706-b216e97017bf
2025-05-07 09:08:29,487 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/db13792c-8bae-4a5f-8afd-ea6ed9c39e0e
2025-05-07 09:08:29,505 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/db13792c-8bae-4a5f-8afd-ea6ed9c39e0e
2025-05-07 09:08:29,521 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/674ca77e-f9b3-47ad-a043-ffcffbfce738
2025-05-07 09:08:29,556 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-37027794:ctest-vn-04707989', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-37027794', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12777563025504357126', 'uuid-lslong': '9729659856455997375'}, 'enable': 'true', 'created': '2025-05-07T09:08:26', 'last-modified': '2025-05-07T09:08:28', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.279855'}
2025-05-07 09:08:29,577 - DEBUG - Route Targets: ['target:64512:8000005']
2025-05-07 09:08:29,578 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-04707989 passed
2025-05-07 09:08:29,578 - DEBUG - ====Verifying policy data for ctest-vn-04707989 in API_Server ======
2025-05-07 09:08:29,579 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-05-07 09:08:29,598 - DEBUG - Requesting: http://10.0.0.254:8082/domain/9167c268-c9a5-48e8-a089-54d2a3410b0e
2025-05-07 09:08:29,640 - DEBUG - Requesting: http://10.0.0.254:8082/project/5975edd8-82d5-45e3-86ba-0efe5a6636f0
2025-05-07 09:08:29,748 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/b15305df-8e5a-4b06-8706-b216e97017bf
2025-05-07 09:08:29,764 - DEBUG - ==>Verifying data for policy with id: 8b077595-e122-4900-aacd-63e8d190cb5c, fqn: ['default-domain', 'ctest-TestBasicPolicy-37027794', 'ctest-policy-allow-all-60058067']
2025-05-07 09:08:29,765 - INFO - VN ctest-vn-04707989 Policy verification: verify_vn_policy_in_api_server, status: True
2025-05-07 09:08:29,765 - DEBUG - Verifying the vn in opserver
2025-05-07 09:08:29,765 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-37027794:ctest-vn-04707989 virtual network link through opserver 10.0.0.254
2025-05-07 09:08:29,765 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-05-07 09:08:30,073 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-05-07 09:08:30,268 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-37027794:ctest-vn-04707989', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-37027794:ctest-vn-04707989?flat'}
2025-05-07 09:08:30,268 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-37027794:ctest-vn-04707989 is found in opserver
2025-05-07 09:08:30,309 - DEBUG - Do not have enough data to verify VN in agent
2025-05-07 09:08:30,322 - DEBUG - VRF ids for VN ctest-vn-04707989: {}
2025-05-07 09:08:30,322 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-05-07 09:08:30,349 - DEBUG - Requesting: http://10.0.0.254:8082/domain/9167c268-c9a5-48e8-a089-54d2a3410b0e
2025-05-07 09:08:30,423 - DEBUG - Requesting: http://10.0.0.254:8082/project/5975edd8-82d5-45e3-86ba-0efe5a6636f0
2025-05-07 09:08:30,525 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/bcf2474c-edf1-4c88-a31d-41e287235564
2025-05-07 09:08:30,554 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/bcf2474c-edf1-4c88-a31d-41e287235564
2025-05-07 09:08:30,567 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/61a69f4b-62ea-493d-aaee-519bf0596277
2025-05-07 09:08:30,601 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/61a69f4b-62ea-493d-aaee-519bf0596277
2025-05-07 09:08:30,621 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/78cb85b7-295a-4c52-9721-497f72e5cdc6
2025-05-07 09:08:30,631 - DEBUG - Route Targets: ['target:64512:8000006']
2025-05-07 09:08:30,632 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/bcf2474c-edf1-4c88-a31d-41e287235564
2025-05-07 09:08:30,654 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/61a69f4b-62ea-493d-aaee-519bf0596277
2025-05-07 09:08:30,682 - INFO - Verified VN network id 9 for VN bcf2474c-edf1-4c88-a31d-41e287235564
2025-05-07 09:08:30,682 - INFO - Verifications in API Server for VN ctest-vn-09166361 passed
2025-05-07 09:08:30,683 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/bcf2474c-edf1-4c88-a31d-41e287235564
2025-05-07 09:08:30,697 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/61a69f4b-62ea-493d-aaee-519bf0596277
2025-05-07 09:08:30,714 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/61a69f4b-62ea-493d-aaee-519bf0596277
2025-05-07 09:08:30,725 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/78cb85b7-295a-4c52-9721-497f72e5cdc6
2025-05-07 09:08:30,760 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-37027794:ctest-vn-09166361', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-37027794', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13615023019229531272', 'uuid-lslong': '11753623043692516708'}, 'enable': 'true', 'created': '2025-05-07T09:08:27', 'last-modified': '2025-05-07T09:08:28', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:02.181501'}
2025-05-07 09:08:30,768 - DEBUG - Route Targets: ['target:64512:8000006']
2025-05-07 09:08:30,768 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-09166361 passed
2025-05-07 09:08:30,769 - DEBUG - ====Verifying policy data for ctest-vn-09166361 in API_Server ======
2025-05-07 09:08:30,769 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-05-07 09:08:30,779 - DEBUG - Requesting: http://10.0.0.254:8082/domain/9167c268-c9a5-48e8-a089-54d2a3410b0e
2025-05-07 09:08:30,844 - DEBUG - Requesting: http://10.0.0.254:8082/project/5975edd8-82d5-45e3-86ba-0efe5a6636f0
2025-05-07 09:08:30,950 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/bcf2474c-edf1-4c88-a31d-41e287235564
2025-05-07 09:08:30,966 - DEBUG - ==>Verifying data for policy with id: 8b077595-e122-4900-aacd-63e8d190cb5c, fqn: ['default-domain', 'ctest-TestBasicPolicy-37027794', 'ctest-policy-allow-all-60058067']
2025-05-07 09:08:30,966 - INFO - VN ctest-vn-09166361 Policy verification: verify_vn_policy_in_api_server, status: True
2025-05-07 09:08:30,966 - DEBUG - Verifying the vn in opserver
2025-05-07 09:08:30,966 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-37027794:ctest-vn-09166361 virtual network link through opserver 10.0.0.254
2025-05-07 09:08:30,966 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-05-07 09:08:30,981 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-37027794:ctest-vn-09166361', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-37027794:ctest-vn-09166361?flat'}
2025-05-07 09:08:30,981 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-37027794:ctest-vn-09166361 is found in opserver
2025-05-07 09:08:30,996 - DEBUG - Do not have enough data to verify VN in agent
2025-05-07 09:08:31,007 - DEBUG - VRF ids for VN ctest-vn-09166361: {}
2025-05-07 09:08:31,079 - DEBUG - Services list from nova: [