2025-03-27 16:18:50,036 - INFO - Domain Default found not creating
2025-03-27 16:18:50,208 - INFO - Project ctest-TestBasicPolicy-63335955 not found, creating it
2025-03-27 16:18:50,753 - INFO - Created Project:ctest-TestBasicPolicy-63335955, ID : 25c9937f-e86e-4e59-ac70-466918829a2d
2025-03-27 16:18:52,464 - INFO - ================================================================================
2025-03-27 16:18:52,464 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-03-27 16:18:52,464 - 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-03-27 16:18:52,720 - DEBUG - Nothing to compare xmpp stats {'10.0.0.17': {'10.20.0.20': '0'}} with
2025-03-27 16:18:52,720 - INFO - Initial checks done. Running the testcase now
2025-03-27 16:18:52,720 - INFO -
2025-03-27 16:18:53,352 - DEBUG - Response for create_network : {'network': {'id': '1359e347-accb-40c0-883f-41223d327d75', 'name': 'ctest-vn-05323343', 'tenant_id': '25c9937fe86e4e59ac70466918829a2d', 'project_id': '25c9937fe86e4e59ac70466918829a2d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-63335955', 'ctest-vn-05323343'], 'port_security_enabled': True, 'description': ''}}
2025-03-27 16:18:53,569 - DEBUG - Response for create_subnet : {'subnet': {'id': '1207d3c2-cc52-43d2-bafe-f84406e6ed3f', 'name': '', 'tenant_id': '25c9937fe86e4e59ac70466918829a2d', 'network_id': '1359e347-accb-40c0-883f-41223d327d75', 'ip_version': 4, 'cidr': '190.102.27.0/26', 'allocation_pools': [{'start': '190.102.27.2', 'end': '190.102.27.62'}], 'gateway_ip': '190.102.27.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '190.102.27.2', 'tags': [], 'project_id': '25c9937fe86e4e59ac70466918829a2d'}}
2025-03-27 16:18:53,591 - INFO - Created VN ctest-vn-05323343
2025-03-27 16:18:53,644 - DEBUG - VN ctest-vn-05323343 UUID is 1359e347-accb-40c0-883f-41223d327d75
2025-03-27 16:18:54,016 - DEBUG - Response for create_network : {'network': {'id': 'db8581cb-5f29-4b85-a96f-7cffd3ec3f0a', 'name': 'ctest-vn-90729512', 'tenant_id': '25c9937fe86e4e59ac70466918829a2d', 'project_id': '25c9937fe86e4e59ac70466918829a2d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-63335955', 'ctest-vn-90729512'], 'port_security_enabled': True, 'description': ''}}
2025-03-27 16:18:54,227 - DEBUG - Response for create_subnet : {'subnet': {'id': 'e79052c6-a085-49e0-8d44-0349a19da822', 'name': '', 'tenant_id': '25c9937fe86e4e59ac70466918829a2d', 'network_id': 'db8581cb-5f29-4b85-a96f-7cffd3ec3f0a', 'ip_version': 4, 'cidr': '81.43.55.192/26', 'allocation_pools': [{'start': '81.43.55.194', 'end': '81.43.55.254'}], 'gateway_ip': '81.43.55.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '81.43.55.194', 'tags': [], 'project_id': '25c9937fe86e4e59ac70466918829a2d'}}
2025-03-27 16:18:54,251 - INFO - Created VN ctest-vn-90729512
2025-03-27 16:18:54,308 - DEBUG - VN ctest-vn-90729512 UUID is db8581cb-5f29-4b85-a96f-7cffd3ec3f0a
2025-03-27 16:18:54,430 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-63335955:ctest-vn-05323343, 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-63335955:ctest-vn-90729512, 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-03-27 16:18:54,744 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '1359e347-accb-40c0-883f-41223d327d75', 'name': 'ctest-vn-05323343', 'tenant_id': '25c9937fe86e4e59ac70466918829a2d', 'project_id': '25c9937fe86e4e59ac70466918829a2d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['1207d3c2-cc52-43d2-bafe-f84406e6ed3f'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-63335955', 'ctest-vn-05323343'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-63335955', 'ctest-policy-allow-all-23063661']], 'subnet_ipam': [{'subnet_cidr': '190.102.27.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-03-27 16:18:55,000 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'db8581cb-5f29-4b85-a96f-7cffd3ec3f0a', 'name': 'ctest-vn-90729512', 'tenant_id': '25c9937fe86e4e59ac70466918829a2d', 'project_id': '25c9937fe86e4e59ac70466918829a2d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['e79052c6-a085-49e0-8d44-0349a19da822'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-63335955', 'ctest-vn-90729512'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-63335955', 'ctest-policy-allow-all-23063661']], 'subnet_ipam': [{'subnet_cidr': '81.43.55.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-03-27 16:18:55,152 - DEBUG - Requesting: http://10.0.0.17:8082/domains
2025-03-27 16:18:55,506 - DEBUG - Requesting: http://10.0.0.17:8082/domains
2025-03-27 16:18:55,863 - DEBUG - Requesting: http://10.0.0.17:8082/domain/fa0e4849-1056-4fdf-8727-e07c142141bf
2025-03-27 16:18:55,881 - DEBUG - Requesting: http://10.0.0.17:8082/project/25c9937f-e86e-4e59-ac70-466918829a2d
2025-03-27 16:18:55,975 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/1359e347-accb-40c0-883f-41223d327d75
2025-03-27 16:18:55,993 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/1359e347-accb-40c0-883f-41223d327d75
2025-03-27 16:18:56,007 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/684d07f8-622a-4e84-9195-f7a5e7f01741
2025-03-27 16:18:56,018 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/684d07f8-622a-4e84-9195-f7a5e7f01741
2025-03-27 16:18:56,029 - DEBUG - Requesting: http://10.0.0.17:8082/route-target/3c839e3f-a0a3-4cab-839f-e205c74e9381
2025-03-27 16:18:56,038 - DEBUG - Route Targets: ['target:64512:8000004']
2025-03-27 16:18:56,038 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/1359e347-accb-40c0-883f-41223d327d75
2025-03-27 16:18:56,053 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/684d07f8-622a-4e84-9195-f7a5e7f01741
2025-03-27 16:18:56,076 - INFO - Verified VN network id 8 for VN 1359e347-accb-40c0-883f-41223d327d75
2025-03-27 16:18:56,076 - INFO - Verifications in API Server for VN ctest-vn-05323343 passed
2025-03-27 16:18:56,076 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/1359e347-accb-40c0-883f-41223d327d75
2025-03-27 16:18:56,089 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/684d07f8-622a-4e84-9195-f7a5e7f01741
2025-03-27 16:18:56,099 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/684d07f8-622a-4e84-9195-f7a5e7f01741
2025-03-27 16:18:56,107 - DEBUG - Requesting: http://10.0.0.17:8082/route-target/3c839e3f-a0a3-4cab-839f-e205c74e9381
2025-03-27 16:18:56,122 - DEBUG - Control-node 10.0.0.17 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-63335955:ctest-vn-05323343', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-63335955', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1394395456629063872', 'uuid-lslong': '9817637328002383221'}, 'enable': 'true', 'created': '2025-03-27T16:18:53', 'last-modified': '2025-03-27T16:18:54', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.405981'}
2025-03-27 16:18:56,129 - DEBUG - Route Targets: ['target:64512:8000004']
2025-03-27 16:18:56,129 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-05323343 passed
2025-03-27 16:18:56,130 - DEBUG - ====Verifying policy data for ctest-vn-05323343 in API_Server ======
2025-03-27 16:18:56,130 - DEBUG - Requesting: http://10.0.0.17:8082/domains
2025-03-27 16:18:56,136 - DEBUG - Requesting: http://10.0.0.17:8082/domain/fa0e4849-1056-4fdf-8727-e07c142141bf
2025-03-27 16:18:56,150 - DEBUG - Requesting: http://10.0.0.17:8082/project/25c9937f-e86e-4e59-ac70-466918829a2d
2025-03-27 16:18:56,231 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/1359e347-accb-40c0-883f-41223d327d75
2025-03-27 16:18:56,246 - DEBUG - ==>Verifying data for policy with id: aa85891f-ffa8-4ce1-879f-51698b58aa58, fqn: ['default-domain', 'ctest-TestBasicPolicy-63335955', 'ctest-policy-allow-all-23063661']
2025-03-27 16:18:56,246 - INFO - VN ctest-vn-05323343 Policy verification: verify_vn_policy_in_api_server, status: True
2025-03-27 16:18:56,246 - DEBUG - Verifying the vn in opserver
2025-03-27 16:18:56,246 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-63335955:ctest-vn-05323343 virtual network link through opserver 10.0.0.17
2025-03-27 16:18:56,246 - DEBUG - Requesting: http://10.0.0.17:8081/analytics/uves/virtual-networks
2025-03-27 16:18:56,588 - DEBUG - Requesting: http://10.0.0.17:8081/analytics/uves/virtual-networks
2025-03-27 16:18:56,659 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-63335955:ctest-vn-05323343', 'href': 'http://10.0.0.17:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-63335955:ctest-vn-05323343?flat'}
2025-03-27 16:18:56,659 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-63335955:ctest-vn-05323343 is found in opserver
2025-03-27 16:18:56,673 - DEBUG - Do not have enough data to verify VN in agent
2025-03-27 16:18:56,681 - DEBUG - VRF ids for VN ctest-vn-05323343: {}
2025-03-27 16:18:56,681 - DEBUG - Requesting: http://10.0.0.17:8082/domains
2025-03-27 16:18:56,688 - DEBUG - Requesting: http://10.0.0.17:8082/domain/fa0e4849-1056-4fdf-8727-e07c142141bf
2025-03-27 16:18:56,701 - DEBUG - Requesting: http://10.0.0.17:8082/project/25c9937f-e86e-4e59-ac70-466918829a2d
2025-03-27 16:18:56,777 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/db8581cb-5f29-4b85-a96f-7cffd3ec3f0a
2025-03-27 16:18:56,791 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/db8581cb-5f29-4b85-a96f-7cffd3ec3f0a
2025-03-27 16:18:56,804 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/638eefcf-d792-4494-b3bf-d8fe9d45db4a
2025-03-27 16:18:56,813 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/638eefcf-d792-4494-b3bf-d8fe9d45db4a
2025-03-27 16:18:56,822 - DEBUG - Requesting: http://10.0.0.17:8082/route-target/541ce08d-464e-4706-9021-3c3d30db6de0
2025-03-27 16:18:56,831 - DEBUG - Route Targets: ['target:64512:8000005']
2025-03-27 16:18:56,831 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/db8581cb-5f29-4b85-a96f-7cffd3ec3f0a
2025-03-27 16:18:56,843 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/638eefcf-d792-4494-b3bf-d8fe9d45db4a
2025-03-27 16:18:56,862 - INFO - Verified VN network id 9 for VN db8581cb-5f29-4b85-a96f-7cffd3ec3f0a
2025-03-27 16:18:56,862 - INFO - Verifications in API Server for VN ctest-vn-90729512 passed
2025-03-27 16:18:56,862 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/db8581cb-5f29-4b85-a96f-7cffd3ec3f0a
2025-03-27 16:18:56,876 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/638eefcf-d792-4494-b3bf-d8fe9d45db4a
2025-03-27 16:18:56,887 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/638eefcf-d792-4494-b3bf-d8fe9d45db4a
2025-03-27 16:18:56,896 - DEBUG - Requesting: http://10.0.0.17:8082/route-target/541ce08d-464e-4706-9021-3c3d30db6de0
2025-03-27 16:18:56,913 - DEBUG - Control-node 10.0.0.17 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-63335955:ctest-vn-90729512', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-63335955', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15818191976683621253', 'uuid-lslong': '12209114553038683914'}, 'enable': 'true', 'created': '2025-03-27T16:18:53', 'last-modified': '2025-03-27T16:18:54', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.937942'}
2025-03-27 16:18:56,921 - DEBUG - Route Targets: ['target:64512:8000005']
2025-03-27 16:18:56,921 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-90729512 passed
2025-03-27 16:18:56,921 - DEBUG - ====Verifying policy data for ctest-vn-90729512 in API_Server ======
2025-03-27 16:18:56,921 - DEBUG - Requesting: http://10.0.0.17:8082/domains
2025-03-27 16:18:56,929 - DEBUG - Requesting: http://10.0.0.17:8082/domain/fa0e4849-1056-4fdf-8727-e07c142141bf
2025-03-27 16:18:56,960 - DEBUG - Requesting: http://10.0.0.17:8082/project/25c9937f-e86e-4e59-ac70-466918829a2d
2025-03-27 16:18:57,046 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/db8581cb-5f29-4b85-a96f-7cffd3ec3f0a
2025-03-27 16:18:57,061 - DEBUG - ==>Verifying data for policy with id: aa85891f-ffa8-4ce1-879f-51698b58aa58, fqn: ['default-domain', 'ctest-TestBasicPolicy-63335955', 'ctest-policy-allow-all-23063661']
2025-03-27 16:18:57,061 - INFO - VN ctest-vn-90729512 Policy verification: verify_vn_policy_in_api_server, status: True
2025-03-27 16:18:57,061 - DEBUG - Verifying the vn in opserver
2025-03-27 16:18:57,061 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-63335955:ctest-vn-90729512 virtual network link through opserver 10.0.0.17
2025-03-27 16:18:57,061 - DEBUG - Requesting: http://10.0.0.17:8081/analytics/uves/virtual-networks
2025-03-27 16:18:57,076 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-63335955:ctest-vn-90729512', 'href': 'http://10.0.0.17:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-63335955:ctest-vn-90729512?flat'}
2025-03-27 16:18:57,076 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-63335955:ctest-vn-90729512 is found in opserver
2025-03-27 16:18:57,089 - DEBUG - Do not have enough data to verify VN in agent
2025-03-27 16:18:57,095 - DEBUG - VRF ids for VN ctest-vn-90729512: {}
2025-03-27 16:18:57,163 - DEBUG - Services list from nova: [