2025-04-08 13:54:43,435 - INFO - Domain Default found not creating
2025-04-08 13:54:43,582 - INFO - Project ctest-TestBasicPolicy-07806979 not found, creating it
2025-04-08 13:54:44,128 - INFO - Created Project:ctest-TestBasicPolicy-07806979, ID : bcaf7d3f-7b88-4510-9fe8-14dd5101bca1
2025-04-08 13:54:45,611 - INFO - ================================================================================
2025-04-08 13:54:45,611 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-04-08 13:54:45,611 - 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-04-08 13:54:45,866 - DEBUG - Nothing to compare xmpp stats {'10.0.0.12': {'10.20.0.5': '0'}} with
2025-04-08 13:54:45,866 - INFO - Initial checks done. Running the testcase now
2025-04-08 13:54:45,866 - INFO -
2025-04-08 13:54:46,465 - DEBUG - Response for create_network : {'network': {'id': '0cdfdf0f-f0e4-4ae7-8902-f6b322d872f2', 'name': 'ctest-vn-53471263', 'tenant_id': 'bcaf7d3f7b8845109fe814dd5101bca1', 'project_id': 'bcaf7d3f7b8845109fe814dd5101bca1', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-07806979', 'ctest-vn-53471263'], 'port_security_enabled': True, 'description': ''}}
2025-04-08 13:54:46,672 - DEBUG - Response for create_subnet : {'subnet': {'id': '81853fb1-ef9a-46fb-ac5b-eb7200ff233e', 'name': '', 'tenant_id': 'bcaf7d3f7b8845109fe814dd5101bca1', 'network_id': '0cdfdf0f-f0e4-4ae7-8902-f6b322d872f2', 'ip_version': 4, 'cidr': '101.250.66.0/26', 'allocation_pools': [{'start': '101.250.66.2', 'end': '101.250.66.62'}], 'gateway_ip': '101.250.66.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '101.250.66.2', 'tags': [], 'project_id': 'bcaf7d3f7b8845109fe814dd5101bca1'}}
2025-04-08 13:54:46,691 - INFO - Created VN ctest-vn-53471263
2025-04-08 13:54:46,748 - DEBUG - VN ctest-vn-53471263 UUID is 0cdfdf0f-f0e4-4ae7-8902-f6b322d872f2
2025-04-08 13:54:47,053 - DEBUG - Response for create_network : {'network': {'id': 'e8d4a1a5-5c39-4af2-bb0f-22e1f90aeb07', 'name': 'ctest-vn-03337567', 'tenant_id': 'bcaf7d3f7b8845109fe814dd5101bca1', 'project_id': 'bcaf7d3f7b8845109fe814dd5101bca1', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-07806979', 'ctest-vn-03337567'], 'port_security_enabled': True, 'description': ''}}
2025-04-08 13:54:47,263 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b8b73d68-ce9f-41e0-8a32-e95b2b5b0d26', 'name': '', 'tenant_id': 'bcaf7d3f7b8845109fe814dd5101bca1', 'network_id': 'e8d4a1a5-5c39-4af2-bb0f-22e1f90aeb07', 'ip_version': 4, 'cidr': '136.198.79.0/26', 'allocation_pools': [{'start': '136.198.79.2', 'end': '136.198.79.62'}], 'gateway_ip': '136.198.79.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '136.198.79.2', 'tags': [], 'project_id': 'bcaf7d3f7b8845109fe814dd5101bca1'}}
2025-04-08 13:54:47,281 - INFO - Created VN ctest-vn-03337567
2025-04-08 13:54:47,332 - DEBUG - VN ctest-vn-03337567 UUID is e8d4a1a5-5c39-4af2-bb0f-22e1f90aeb07
2025-04-08 13:54:47,484 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-07806979:ctest-vn-53471263, 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-07806979:ctest-vn-03337567, 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-04-08 13:54:47,774 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '0cdfdf0f-f0e4-4ae7-8902-f6b322d872f2', 'name': 'ctest-vn-53471263', 'tenant_id': 'bcaf7d3f7b8845109fe814dd5101bca1', 'project_id': 'bcaf7d3f7b8845109fe814dd5101bca1', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['81853fb1-ef9a-46fb-ac5b-eb7200ff233e'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-07806979', 'ctest-vn-53471263'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-07806979', 'ctest-policy-allow-all-48426284']], 'subnet_ipam': [{'subnet_cidr': '101.250.66.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-04-08 13:54:48,019 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'e8d4a1a5-5c39-4af2-bb0f-22e1f90aeb07', 'name': 'ctest-vn-03337567', 'tenant_id': 'bcaf7d3f7b8845109fe814dd5101bca1', 'project_id': 'bcaf7d3f7b8845109fe814dd5101bca1', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['b8b73d68-ce9f-41e0-8a32-e95b2b5b0d26'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-07806979', 'ctest-vn-03337567'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-07806979', 'ctest-policy-allow-all-48426284']], 'subnet_ipam': [{'subnet_cidr': '136.198.79.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-04-08 13:54:48,196 - DEBUG - Requesting: http://10.0.0.12:8082/domains
2025-04-08 13:54:48,490 - DEBUG - Requesting: http://10.0.0.12:8082/domains
2025-04-08 13:54:48,518 - DEBUG - Requesting: http://10.0.0.12:8082/domain/c542ee6d-d782-4bba-9937-d6d50af12bad
2025-04-08 13:54:48,532 - DEBUG - Requesting: http://10.0.0.12:8082/project/bcaf7d3f-7b88-4510-9fe8-14dd5101bca1
2025-04-08 13:54:48,608 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/0cdfdf0f-f0e4-4ae7-8902-f6b322d872f2
2025-04-08 13:54:48,631 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/0cdfdf0f-f0e4-4ae7-8902-f6b322d872f2
2025-04-08 13:54:48,641 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/15420832-2485-44ef-bff6-7d19d1e77dc2
2025-04-08 13:54:48,649 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/15420832-2485-44ef-bff6-7d19d1e77dc2
2025-04-08 13:54:48,657 - DEBUG - Requesting: http://10.0.0.12:8082/route-target/868e17d7-7d0c-4e69-980d-635dd90a7f90
2025-04-08 13:54:48,665 - DEBUG - Route Targets: ['target:64512:8000004']
2025-04-08 13:54:48,665 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/0cdfdf0f-f0e4-4ae7-8902-f6b322d872f2
2025-04-08 13:54:48,675 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/15420832-2485-44ef-bff6-7d19d1e77dc2
2025-04-08 13:54:48,693 - INFO - Verified VN network id 8 for VN 0cdfdf0f-f0e4-4ae7-8902-f6b322d872f2
2025-04-08 13:54:48,693 - INFO - Verifications in API Server for VN ctest-vn-53471263 passed
2025-04-08 13:54:48,693 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/0cdfdf0f-f0e4-4ae7-8902-f6b322d872f2
2025-04-08 13:54:48,706 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/15420832-2485-44ef-bff6-7d19d1e77dc2
2025-04-08 13:54:48,713 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/15420832-2485-44ef-bff6-7d19d1e77dc2
2025-04-08 13:54:48,721 - DEBUG - Requesting: http://10.0.0.12:8082/route-target/868e17d7-7d0c-4e69-980d-635dd90a7f90
2025-04-08 13:54:48,734 - DEBUG - Control-node 10.0.0.12 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-07806979:ctest-vn-53471263', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-07806979', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '927705307820608231', 'uuid-lslong': '9872724582393737970'}, 'enable': 'true', 'created': '2025-04-08T13:54:46', 'last-modified': '2025-04-08T13:54:47', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.980250'}
2025-04-08 13:54:48,742 - DEBUG - Route Targets: ['target:64512:8000004']
2025-04-08 13:54:48,742 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-53471263 passed
2025-04-08 13:54:48,742 - DEBUG - ====Verifying policy data for ctest-vn-53471263 in API_Server ======
2025-04-08 13:54:48,742 - DEBUG - Requesting: http://10.0.0.12:8082/domains
2025-04-08 13:54:48,750 - DEBUG - Requesting: http://10.0.0.12:8082/domain/c542ee6d-d782-4bba-9937-d6d50af12bad
2025-04-08 13:54:48,763 - DEBUG - Requesting: http://10.0.0.12:8082/project/bcaf7d3f-7b88-4510-9fe8-14dd5101bca1
2025-04-08 13:54:48,843 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/0cdfdf0f-f0e4-4ae7-8902-f6b322d872f2
2025-04-08 13:54:48,855 - DEBUG - ==>Verifying data for policy with id: a7c38ef9-03b4-482f-b0d8-093eaa211f51, fqn: ['default-domain', 'ctest-TestBasicPolicy-07806979', 'ctest-policy-allow-all-48426284']
2025-04-08 13:54:48,855 - INFO - VN ctest-vn-53471263 Policy verification: verify_vn_policy_in_api_server, status: True
2025-04-08 13:54:48,855 - DEBUG - Verifying the vn in opserver
2025-04-08 13:54:48,856 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-07806979:ctest-vn-53471263 virtual network link through opserver 10.0.0.12
2025-04-08 13:54:48,856 - DEBUG - Requesting: http://10.0.0.12:8081/analytics/uves/virtual-networks
2025-04-08 13:54:49,158 - DEBUG - Requesting: http://10.0.0.12:8081/analytics/uves/virtual-networks
2025-04-08 13:54:49,220 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-07806979:ctest-vn-53471263', 'href': 'http://10.0.0.12:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-07806979:ctest-vn-53471263?flat'}
2025-04-08 13:54:49,220 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-07806979:ctest-vn-53471263 is found in opserver
2025-04-08 13:54:49,232 - DEBUG - Do not have enough data to verify VN in agent
2025-04-08 13:54:49,238 - DEBUG - VRF ids for VN ctest-vn-53471263: {}
2025-04-08 13:54:49,238 - DEBUG - Requesting: http://10.0.0.12:8082/domains
2025-04-08 13:54:49,244 - DEBUG - Requesting: http://10.0.0.12:8082/domain/c542ee6d-d782-4bba-9937-d6d50af12bad
2025-04-08 13:54:49,259 - DEBUG - Requesting: http://10.0.0.12:8082/project/bcaf7d3f-7b88-4510-9fe8-14dd5101bca1
2025-04-08 13:54:49,333 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/e8d4a1a5-5c39-4af2-bb0f-22e1f90aeb07
2025-04-08 13:54:49,346 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/e8d4a1a5-5c39-4af2-bb0f-22e1f90aeb07
2025-04-08 13:54:49,357 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/e21194bb-4c9c-46f4-baea-0fd0ec9be85c
2025-04-08 13:54:49,365 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/e21194bb-4c9c-46f4-baea-0fd0ec9be85c
2025-04-08 13:54:49,373 - DEBUG - Requesting: http://10.0.0.12:8082/route-target/8645cf02-5628-48a0-b472-549b6d03a4f0
2025-04-08 13:54:49,381 - DEBUG - Route Targets: ['target:64512:8000005']
2025-04-08 13:54:49,381 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/e8d4a1a5-5c39-4af2-bb0f-22e1f90aeb07
2025-04-08 13:54:49,391 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/e21194bb-4c9c-46f4-baea-0fd0ec9be85c
2025-04-08 13:54:49,408 - INFO - Verified VN network id 9 for VN e8d4a1a5-5c39-4af2-bb0f-22e1f90aeb07
2025-04-08 13:54:49,408 - INFO - Verifications in API Server for VN ctest-vn-03337567 passed
2025-04-08 13:54:49,408 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/e8d4a1a5-5c39-4af2-bb0f-22e1f90aeb07
2025-04-08 13:54:49,420 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/e21194bb-4c9c-46f4-baea-0fd0ec9be85c
2025-04-08 13:54:49,428 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/e21194bb-4c9c-46f4-baea-0fd0ec9be85c
2025-04-08 13:54:49,436 - DEBUG - Requesting: http://10.0.0.12:8082/route-target/8645cf02-5628-48a0-b472-549b6d03a4f0
2025-04-08 13:54:49,449 - DEBUG - Control-node 10.0.0.12 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-07806979:ctest-vn-03337567', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-07806979', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16777212243450874610', 'uuid-lslong': '13479030563684412167'}, 'enable': 'true', 'created': '2025-04-08T13:54:47', 'last-modified': '2025-04-08T13:54:47', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.461532'}
2025-04-08 13:54:49,456 - DEBUG - Route Targets: ['target:64512:8000005']
2025-04-08 13:54:49,457 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-03337567 passed
2025-04-08 13:54:49,457 - DEBUG - ====Verifying policy data for ctest-vn-03337567 in API_Server ======
2025-04-08 13:54:49,457 - DEBUG - Requesting: http://10.0.0.12:8082/domains
2025-04-08 13:54:49,464 - DEBUG - Requesting: http://10.0.0.12:8082/domain/c542ee6d-d782-4bba-9937-d6d50af12bad
2025-04-08 13:54:49,477 - DEBUG - Requesting: http://10.0.0.12:8082/project/bcaf7d3f-7b88-4510-9fe8-14dd5101bca1
2025-04-08 13:54:49,554 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/e8d4a1a5-5c39-4af2-bb0f-22e1f90aeb07
2025-04-08 13:54:49,567 - DEBUG - ==>Verifying data for policy with id: a7c38ef9-03b4-482f-b0d8-093eaa211f51, fqn: ['default-domain', 'ctest-TestBasicPolicy-07806979', 'ctest-policy-allow-all-48426284']
2025-04-08 13:54:49,567 - INFO - VN ctest-vn-03337567 Policy verification: verify_vn_policy_in_api_server, status: True
2025-04-08 13:54:49,567 - DEBUG - Verifying the vn in opserver
2025-04-08 13:54:49,567 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-07806979:ctest-vn-03337567 virtual network link through opserver 10.0.0.12
2025-04-08 13:54:49,567 - DEBUG - Requesting: http://10.0.0.12:8081/analytics/uves/virtual-networks
2025-04-08 13:54:49,578 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-07806979:ctest-vn-03337567', 'href': 'http://10.0.0.12:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-07806979:ctest-vn-03337567?flat'}
2025-04-08 13:54:49,579 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-07806979:ctest-vn-03337567 is found in opserver
2025-04-08 13:54:49,590 - DEBUG - Do not have enough data to verify VN in agent
2025-04-08 13:54:49,595 - DEBUG - VRF ids for VN ctest-vn-03337567: {}
2025-04-08 13:54:49,662 - DEBUG - Services list from nova: [