2025-06-23 14:39:52,325 - INFO - Domain Default found not creating
2025-06-23 14:39:52,484 - INFO - Project ctest-TestBasicPolicy-56143872 not found, creating it
2025-06-23 14:39:52,970 - INFO - Created Project:ctest-TestBasicPolicy-56143872, ID : 9348d001-b980-494e-af85-b34489185cba
2025-06-23 14:39:54,424 - INFO - ================================================================================
2025-06-23 14:39:54,424 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-06-23 14:39:54,424 - 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-06-23 14:39:54,682 - DEBUG - Nothing to compare xmpp stats {'10.0.0.65': {'10.20.0.17': '0'}} with
2025-06-23 14:39:54,682 - INFO - Initial checks done. Running the testcase now
2025-06-23 14:39:54,682 - INFO -
2025-06-23 14:39:55,277 - DEBUG - Response for create_network : {'network': {'id': '5df20f48-e644-41fc-b64e-90ca76aa309f', 'name': 'ctest-vn-64687011', 'tenant_id': '9348d001b980494eaf85b34489185cba', 'project_id': '9348d001b980494eaf85b34489185cba', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-56143872', 'ctest-vn-64687011'], 'port_security_enabled': True, 'description': ''}}
2025-06-23 14:39:55,498 - DEBUG - Response for create_subnet : {'subnet': {'id': '84cab2ae-6ada-4074-94ac-1d1608862df8', 'name': '', 'tenant_id': '9348d001b980494eaf85b34489185cba', 'network_id': '5df20f48-e644-41fc-b64e-90ca76aa309f', 'ip_version': 4, 'cidr': '216.34.43.0/26', 'allocation_pools': [{'start': '216.34.43.2', 'end': '216.34.43.62'}], 'gateway_ip': '216.34.43.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '216.34.43.2', 'tags': [], 'project_id': '9348d001b980494eaf85b34489185cba'}}
2025-06-23 14:39:55,518 - INFO - Created VN ctest-vn-64687011
2025-06-23 14:39:55,571 - DEBUG - VN ctest-vn-64687011 UUID is 5df20f48-e644-41fc-b64e-90ca76aa309f
2025-06-23 14:39:55,887 - DEBUG - Response for create_network : {'network': {'id': '083a8e02-df51-43bd-ba9c-adaa24a4ad60', 'name': 'ctest-vn-51761612', 'tenant_id': '9348d001b980494eaf85b34489185cba', 'project_id': '9348d001b980494eaf85b34489185cba', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-56143872', 'ctest-vn-51761612'], 'port_security_enabled': True, 'description': ''}}
2025-06-23 14:39:56,112 - DEBUG - Response for create_subnet : {'subnet': {'id': '68c65f38-7ae8-4891-9df5-3198fee661d1', 'name': '', 'tenant_id': '9348d001b980494eaf85b34489185cba', 'network_id': '083a8e02-df51-43bd-ba9c-adaa24a4ad60', 'ip_version': 4, 'cidr': '54.184.93.0/26', 'allocation_pools': [{'start': '54.184.93.2', 'end': '54.184.93.62'}], 'gateway_ip': '54.184.93.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '54.184.93.2', 'tags': [], 'project_id': '9348d001b980494eaf85b34489185cba'}}
2025-06-23 14:39:56,132 - INFO - Created VN ctest-vn-51761612
2025-06-23 14:39:56,187 - DEBUG - VN ctest-vn-51761612 UUID is 083a8e02-df51-43bd-ba9c-adaa24a4ad60
2025-06-23 14:39:56,300 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-56143872:ctest-vn-64687011, 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-56143872:ctest-vn-51761612, 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-06-23 14:39:56,605 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '5df20f48-e644-41fc-b64e-90ca76aa309f', 'name': 'ctest-vn-64687011', 'tenant_id': '9348d001b980494eaf85b34489185cba', 'project_id': '9348d001b980494eaf85b34489185cba', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['84cab2ae-6ada-4074-94ac-1d1608862df8'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-56143872', 'ctest-vn-64687011'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-56143872', 'ctest-policy-allow-all-67725730']], 'subnet_ipam': [{'subnet_cidr': '216.34.43.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-06-23 14:39:56,896 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '083a8e02-df51-43bd-ba9c-adaa24a4ad60', 'name': 'ctest-vn-51761612', 'tenant_id': '9348d001b980494eaf85b34489185cba', 'project_id': '9348d001b980494eaf85b34489185cba', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['68c65f38-7ae8-4891-9df5-3198fee661d1'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-56143872', 'ctest-vn-51761612'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-56143872', 'ctest-policy-allow-all-67725730']], 'subnet_ipam': [{'subnet_cidr': '54.184.93.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-06-23 14:39:57,055 - DEBUG - Requesting: http://10.0.0.65:8082/domains
2025-06-23 14:39:57,350 - DEBUG - Requesting: http://10.0.0.65:8082/domains
2025-06-23 14:39:57,378 - DEBUG - Requesting: http://10.0.0.65:8082/domain/24d555d3-736d-47e1-898b-8247bd67619f
2025-06-23 14:39:57,395 - DEBUG - Requesting: http://10.0.0.65:8082/project/9348d001-b980-494e-af85-b34489185cba
2025-06-23 14:39:57,470 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/5df20f48-e644-41fc-b64e-90ca76aa309f
2025-06-23 14:39:57,482 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/5df20f48-e644-41fc-b64e-90ca76aa309f
2025-06-23 14:39:57,495 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/11ea2a91-aa8d-4691-b35a-a1e705364b21
2025-06-23 14:39:57,503 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/11ea2a91-aa8d-4691-b35a-a1e705364b21
2025-06-23 14:39:57,512 - DEBUG - Requesting: http://10.0.0.65:8082/route-target/dfe38d96-c11a-44db-b5f6-2f2f67beab06
2025-06-23 14:39:57,520 - DEBUG - Route Targets: ['target:64512:8000005']
2025-06-23 14:39:57,521 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/5df20f48-e644-41fc-b64e-90ca76aa309f
2025-06-23 14:39:57,533 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/11ea2a91-aa8d-4691-b35a-a1e705364b21
2025-06-23 14:39:57,550 - INFO - Verified VN network id 8 for VN 5df20f48-e644-41fc-b64e-90ca76aa309f
2025-06-23 14:39:57,550 - INFO - Verifications in API Server for VN ctest-vn-64687011 passed
2025-06-23 14:39:57,550 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/5df20f48-e644-41fc-b64e-90ca76aa309f
2025-06-23 14:39:57,561 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/11ea2a91-aa8d-4691-b35a-a1e705364b21
2025-06-23 14:39:57,569 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/11ea2a91-aa8d-4691-b35a-a1e705364b21
2025-06-23 14:39:57,578 - DEBUG - Requesting: http://10.0.0.65:8082/route-target/dfe38d96-c11a-44db-b5f6-2f2f67beab06
2025-06-23 14:39:57,592 - DEBUG - Control-node 10.0.0.65 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-56143872:ctest-vn-64687011', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-56143872', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6769489995666571772', 'uuid-lslong': '13136596362334974111'}, 'enable': 'true', 'created': '2025-06-23T14:39:55', 'last-modified': '2025-06-23T14:39:56', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.017988'}
2025-06-23 14:39:57,600 - DEBUG - Route Targets: ['target:64512:8000005']
2025-06-23 14:39:57,600 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-64687011 passed
2025-06-23 14:39:57,600 - DEBUG - ====Verifying policy data for ctest-vn-64687011 in API_Server ======
2025-06-23 14:39:57,600 - DEBUG - Requesting: http://10.0.0.65:8082/domains
2025-06-23 14:39:57,607 - DEBUG - Requesting: http://10.0.0.65:8082/domain/24d555d3-736d-47e1-898b-8247bd67619f
2025-06-23 14:39:57,619 - DEBUG - Requesting: http://10.0.0.65:8082/project/9348d001-b980-494e-af85-b34489185cba
2025-06-23 14:39:57,692 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/5df20f48-e644-41fc-b64e-90ca76aa309f
2025-06-23 14:39:57,703 - DEBUG - ==>Verifying data for policy with id: f3dbb9da-300a-4a10-9aab-049411e68e8e, fqn: ['default-domain', 'ctest-TestBasicPolicy-56143872', 'ctest-policy-allow-all-67725730']
2025-06-23 14:39:57,703 - INFO - VN ctest-vn-64687011 Policy verification: verify_vn_policy_in_api_server, status: True
2025-06-23 14:39:57,703 - DEBUG - Verifying the vn in opserver
2025-06-23 14:39:57,703 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-56143872:ctest-vn-64687011 virtual network link through opserver 10.0.0.65
2025-06-23 14:39:57,704 - DEBUG - Requesting: http://10.0.0.65:8081/analytics/uves/virtual-networks
2025-06-23 14:39:57,992 - DEBUG - Requesting: http://10.0.0.65:8081/analytics/uves/virtual-networks
2025-06-23 14:39:58,047 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-56143872:ctest-vn-64687011', 'href': 'http://10.0.0.65:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-56143872:ctest-vn-64687011?flat'}
2025-06-23 14:39:58,047 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-56143872:ctest-vn-64687011 is found in opserver
2025-06-23 14:39:58,059 - DEBUG - Do not have enough data to verify VN in agent
2025-06-23 14:39:58,064 - DEBUG - VRF ids for VN ctest-vn-64687011: {}
2025-06-23 14:39:58,064 - DEBUG - Requesting: http://10.0.0.65:8082/domains
2025-06-23 14:39:58,070 - DEBUG - Requesting: http://10.0.0.65:8082/domain/24d555d3-736d-47e1-898b-8247bd67619f
2025-06-23 14:39:58,083 - DEBUG - Requesting: http://10.0.0.65:8082/project/9348d001-b980-494e-af85-b34489185cba
2025-06-23 14:39:58,159 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/083a8e02-df51-43bd-ba9c-adaa24a4ad60
2025-06-23 14:39:58,171 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/083a8e02-df51-43bd-ba9c-adaa24a4ad60
2025-06-23 14:39:58,182 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/2d45d28d-98f7-4726-b423-d7ec54496719
2025-06-23 14:39:58,191 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/2d45d28d-98f7-4726-b423-d7ec54496719
2025-06-23 14:39:58,200 - DEBUG - Requesting: http://10.0.0.65:8082/route-target/a43ab457-43dc-4e3f-9706-684c0686e329
2025-06-23 14:39:58,207 - DEBUG - Route Targets: ['target:64512:8000006']
2025-06-23 14:39:58,207 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/083a8e02-df51-43bd-ba9c-adaa24a4ad60
2025-06-23 14:39:58,219 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/2d45d28d-98f7-4726-b423-d7ec54496719
2025-06-23 14:39:58,237 - INFO - Verified VN network id 9 for VN 083a8e02-df51-43bd-ba9c-adaa24a4ad60
2025-06-23 14:39:58,237 - INFO - Verifications in API Server for VN ctest-vn-51761612 passed
2025-06-23 14:39:58,237 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/083a8e02-df51-43bd-ba9c-adaa24a4ad60
2025-06-23 14:39:58,248 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/2d45d28d-98f7-4726-b423-d7ec54496719
2025-06-23 14:39:58,257 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/2d45d28d-98f7-4726-b423-d7ec54496719
2025-06-23 14:39:58,265 - DEBUG - Requesting: http://10.0.0.65:8082/route-target/a43ab457-43dc-4e3f-9706-684c0686e329
2025-06-23 14:39:58,280 - DEBUG - Control-node 10.0.0.65 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-56143872:ctest-vn-51761612', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-56143872', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '592942443940365245', 'uuid-lslong': '13446813533692276064'}, 'enable': 'true', 'created': '2025-06-23T14:39:55', 'last-modified': '2025-06-23T14:39:56', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.457765'}
2025-06-23 14:39:58,287 - DEBUG - Route Targets: ['target:64512:8000006']
2025-06-23 14:39:58,287 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-51761612 passed
2025-06-23 14:39:58,287 - DEBUG - ====Verifying policy data for ctest-vn-51761612 in API_Server ======
2025-06-23 14:39:58,287 - DEBUG - Requesting: http://10.0.0.65:8082/domains
2025-06-23 14:39:58,294 - DEBUG - Requesting: http://10.0.0.65:8082/domain/24d555d3-736d-47e1-898b-8247bd67619f
2025-06-23 14:39:58,310 - DEBUG - Requesting: http://10.0.0.65:8082/project/9348d001-b980-494e-af85-b34489185cba
2025-06-23 14:39:58,386 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/083a8e02-df51-43bd-ba9c-adaa24a4ad60
2025-06-23 14:39:58,398 - DEBUG - ==>Verifying data for policy with id: f3dbb9da-300a-4a10-9aab-049411e68e8e, fqn: ['default-domain', 'ctest-TestBasicPolicy-56143872', 'ctest-policy-allow-all-67725730']
2025-06-23 14:39:58,398 - INFO - VN ctest-vn-51761612 Policy verification: verify_vn_policy_in_api_server, status: True
2025-06-23 14:39:58,399 - DEBUG - Verifying the vn in opserver
2025-06-23 14:39:58,399 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-56143872:ctest-vn-51761612 virtual network link through opserver 10.0.0.65
2025-06-23 14:39:58,399 - DEBUG - Requesting: http://10.0.0.65:8081/analytics/uves/virtual-networks
2025-06-23 14:39:58,412 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-56143872:ctest-vn-51761612', 'href': 'http://10.0.0.65:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-56143872:ctest-vn-51761612?flat'}
2025-06-23 14:39:58,412 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-56143872:ctest-vn-51761612 is found in opserver
2025-06-23 14:39:58,423 - DEBUG - Do not have enough data to verify VN in agent
2025-06-23 14:39:58,428 - DEBUG - VRF ids for VN ctest-vn-51761612: {}
2025-06-23 14:39:58,485 - DEBUG - Services list from nova: [