2025-06-30 16:19:52,764 - INFO - Domain Default found not creating
2025-06-30 16:19:52,905 - INFO - Project ctest-TestBasicPolicy-80639005 not found, creating it
2025-06-30 16:19:53,335 - INFO - Created Project:ctest-TestBasicPolicy-80639005, ID : e909f100-91fb-4e72-a84a-6e2d9d63d4ab
2025-06-30 16:19:54,730 - INFO - ================================================================================
2025-06-30 16:19:54,730 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-06-30 16:19:54,730 - 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-30 16:19:54,985 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.17': '0'}} with
2025-06-30 16:19:54,985 - INFO - Initial checks done. Running the testcase now
2025-06-30 16:19:54,985 - INFO -
2025-06-30 16:19:55,526 - DEBUG - Response for create_network : {'network': {'id': 'a1ff1c5e-9789-489e-9012-8af9054143d9', 'name': 'ctest-vn-07810315', 'tenant_id': 'e909f10091fb4e72a84a6e2d9d63d4ab', 'project_id': 'e909f10091fb4e72a84a6e2d9d63d4ab', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-80639005', 'ctest-vn-07810315'], 'port_security_enabled': True, 'description': ''}}
2025-06-30 16:19:55,722 - DEBUG - Response for create_subnet : {'subnet': {'id': '9c025791-1d4d-4a21-9d4d-181f9714cb24', 'name': '', 'tenant_id': 'e909f10091fb4e72a84a6e2d9d63d4ab', 'network_id': 'a1ff1c5e-9789-489e-9012-8af9054143d9', 'ip_version': 4, 'cidr': '55.195.211.0/26', 'allocation_pools': [{'start': '55.195.211.2', 'end': '55.195.211.62'}], 'gateway_ip': '55.195.211.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '55.195.211.2', 'tags': [], 'project_id': 'e909f10091fb4e72a84a6e2d9d63d4ab'}}
2025-06-30 16:19:55,741 - INFO - Created VN ctest-vn-07810315
2025-06-30 16:19:55,795 - DEBUG - VN ctest-vn-07810315 UUID is a1ff1c5e-9789-489e-9012-8af9054143d9
2025-06-30 16:19:56,129 - DEBUG - Response for create_network : {'network': {'id': 'ec7218d9-aa37-4e62-b457-a5a65c246955', 'name': 'ctest-vn-62545074', 'tenant_id': 'e909f10091fb4e72a84a6e2d9d63d4ab', 'project_id': 'e909f10091fb4e72a84a6e2d9d63d4ab', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-80639005', 'ctest-vn-62545074'], 'port_security_enabled': True, 'description': ''}}
2025-06-30 16:19:56,331 - DEBUG - Response for create_subnet : {'subnet': {'id': 'd1c8ba1a-985d-467b-a97c-6b623b2ef08f', 'name': '', 'tenant_id': 'e909f10091fb4e72a84a6e2d9d63d4ab', 'network_id': 'ec7218d9-aa37-4e62-b457-a5a65c246955', 'ip_version': 4, 'cidr': '115.129.123.192/26', 'allocation_pools': [{'start': '115.129.123.194', 'end': '115.129.123.254'}], 'gateway_ip': '115.129.123.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '115.129.123.194', 'tags': [], 'project_id': 'e909f10091fb4e72a84a6e2d9d63d4ab'}}
2025-06-30 16:19:56,351 - INFO - Created VN ctest-vn-62545074
2025-06-30 16:19:56,407 - DEBUG - VN ctest-vn-62545074 UUID is ec7218d9-aa37-4e62-b457-a5a65c246955
2025-06-30 16:19:56,559 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-80639005:ctest-vn-07810315, 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-80639005:ctest-vn-62545074, 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-30 16:19:56,877 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'a1ff1c5e-9789-489e-9012-8af9054143d9', 'name': 'ctest-vn-07810315', 'tenant_id': 'e909f10091fb4e72a84a6e2d9d63d4ab', 'project_id': 'e909f10091fb4e72a84a6e2d9d63d4ab', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['9c025791-1d4d-4a21-9d4d-181f9714cb24'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-80639005', 'ctest-vn-07810315'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-80639005', 'ctest-policy-allow-all-48857022']], 'subnet_ipam': [{'subnet_cidr': '55.195.211.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-06-30 16:19:57,101 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'ec7218d9-aa37-4e62-b457-a5a65c246955', 'name': 'ctest-vn-62545074', 'tenant_id': 'e909f10091fb4e72a84a6e2d9d63d4ab', 'project_id': 'e909f10091fb4e72a84a6e2d9d63d4ab', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['d1c8ba1a-985d-467b-a97c-6b623b2ef08f'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-80639005', 'ctest-vn-62545074'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-80639005', 'ctest-policy-allow-all-48857022']], 'subnet_ipam': [{'subnet_cidr': '115.129.123.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-06-30 16:19:57,231 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-06-30 16:19:57,539 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-06-30 16:19:57,570 - DEBUG - Requesting: http://10.0.0.50:8082/domain/910d5dcc-dcbb-44d4-99ec-d626d54127f9
2025-06-30 16:19:57,586 - DEBUG - Requesting: http://10.0.0.50:8082/project/e909f100-91fb-4e72-a84a-6e2d9d63d4ab
2025-06-30 16:19:57,662 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/a1ff1c5e-9789-489e-9012-8af9054143d9
2025-06-30 16:19:57,673 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/a1ff1c5e-9789-489e-9012-8af9054143d9
2025-06-30 16:19:57,683 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/10396ee2-de8a-4001-bf42-30ec23802d3f
2025-06-30 16:19:57,690 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/10396ee2-de8a-4001-bf42-30ec23802d3f
2025-06-30 16:19:57,696 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/154bf14c-438b-4115-809a-21531c0268f2
2025-06-30 16:19:57,702 - DEBUG - Route Targets: ['target:64512:8000005']
2025-06-30 16:19:57,702 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/a1ff1c5e-9789-489e-9012-8af9054143d9
2025-06-30 16:19:57,711 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/10396ee2-de8a-4001-bf42-30ec23802d3f
2025-06-30 16:19:57,725 - INFO - Verified VN network id 8 for VN a1ff1c5e-9789-489e-9012-8af9054143d9
2025-06-30 16:19:57,725 - INFO - Verifications in API Server for VN ctest-vn-07810315 passed
2025-06-30 16:19:57,725 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/a1ff1c5e-9789-489e-9012-8af9054143d9
2025-06-30 16:19:57,734 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/10396ee2-de8a-4001-bf42-30ec23802d3f
2025-06-30 16:19:57,741 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/10396ee2-de8a-4001-bf42-30ec23802d3f
2025-06-30 16:19:57,749 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/154bf14c-438b-4115-809a-21531c0268f2
2025-06-30 16:19:57,761 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-80639005:ctest-vn-07810315', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-80639005', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11673079951762475166', 'uuid-lslong': '10381512893182067673'}, 'enable': 'true', 'created': '2025-06-30T16:19:55', 'last-modified': '2025-06-30T16:19:56', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.912831'}
2025-06-30 16:19:57,768 - DEBUG - Route Targets: ['target:64512:8000005']
2025-06-30 16:19:57,768 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-07810315 passed
2025-06-30 16:19:57,768 - DEBUG - ====Verifying policy data for ctest-vn-07810315 in API_Server ======
2025-06-30 16:19:57,768 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-06-30 16:19:57,773 - DEBUG - Requesting: http://10.0.0.50:8082/domain/910d5dcc-dcbb-44d4-99ec-d626d54127f9
2025-06-30 16:19:57,785 - DEBUG - Requesting: http://10.0.0.50:8082/project/e909f100-91fb-4e72-a84a-6e2d9d63d4ab
2025-06-30 16:19:57,858 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/a1ff1c5e-9789-489e-9012-8af9054143d9
2025-06-30 16:19:57,869 - DEBUG - ==>Verifying data for policy with id: e35f0a93-8991-43a2-ae23-b0c16c8546c5, fqn: ['default-domain', 'ctest-TestBasicPolicy-80639005', 'ctest-policy-allow-all-48857022']
2025-06-30 16:19:57,869 - INFO - VN ctest-vn-07810315 Policy verification: verify_vn_policy_in_api_server, status: True
2025-06-30 16:19:57,869 - DEBUG - Verifying the vn in opserver
2025-06-30 16:19:57,869 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-80639005:ctest-vn-07810315 virtual network link through opserver 10.0.0.50
2025-06-30 16:19:57,869 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2025-06-30 16:19:58,161 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2025-06-30 16:19:58,216 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-80639005:ctest-vn-07810315', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-80639005:ctest-vn-07810315?flat'}
2025-06-30 16:19:58,216 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-80639005:ctest-vn-07810315 is found in opserver
2025-06-30 16:19:58,226 - DEBUG - Do not have enough data to verify VN in agent
2025-06-30 16:19:58,230 - DEBUG - VRF ids for VN ctest-vn-07810315: {}
2025-06-30 16:19:58,231 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-06-30 16:19:58,236 - DEBUG - Requesting: http://10.0.0.50:8082/domain/910d5dcc-dcbb-44d4-99ec-d626d54127f9
2025-06-30 16:19:58,246 - DEBUG - Requesting: http://10.0.0.50:8082/project/e909f100-91fb-4e72-a84a-6e2d9d63d4ab
2025-06-30 16:19:58,319 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/ec7218d9-aa37-4e62-b457-a5a65c246955
2025-06-30 16:19:58,332 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/ec7218d9-aa37-4e62-b457-a5a65c246955
2025-06-30 16:19:58,342 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/05ad0280-9879-44c7-affb-94f488d20b56
2025-06-30 16:19:58,348 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/05ad0280-9879-44c7-affb-94f488d20b56
2025-06-30 16:19:58,355 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/c416f25b-1098-46dc-bbcf-b80473f31250
2025-06-30 16:19:58,361 - DEBUG - Route Targets: ['target:64512:8000006']
2025-06-30 16:19:58,361 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/ec7218d9-aa37-4e62-b457-a5a65c246955
2025-06-30 16:19:58,370 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/05ad0280-9879-44c7-affb-94f488d20b56
2025-06-30 16:19:58,384 - INFO - Verified VN network id 9 for VN ec7218d9-aa37-4e62-b457-a5a65c246955
2025-06-30 16:19:58,384 - INFO - Verifications in API Server for VN ctest-vn-62545074 passed
2025-06-30 16:19:58,384 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/ec7218d9-aa37-4e62-b457-a5a65c246955
2025-06-30 16:19:58,393 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/05ad0280-9879-44c7-affb-94f488d20b56
2025-06-30 16:19:58,400 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/05ad0280-9879-44c7-affb-94f488d20b56
2025-06-30 16:19:58,407 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/c416f25b-1098-46dc-bbcf-b80473f31250
2025-06-30 16:19:58,420 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-80639005:ctest-vn-62545074', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-80639005', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17037707663438728802', 'uuid-lslong': '12995037383729899861'}, 'enable': 'true', 'created': '2025-06-30T16:19:56', 'last-modified': '2025-06-30T16:19:57', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.340398'}
2025-06-30 16:19:58,427 - DEBUG - Route Targets: ['target:64512:8000006']
2025-06-30 16:19:58,427 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-62545074 passed
2025-06-30 16:19:58,427 - DEBUG - ====Verifying policy data for ctest-vn-62545074 in API_Server ======
2025-06-30 16:19:58,427 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-06-30 16:19:58,432 - DEBUG - Requesting: http://10.0.0.50:8082/domain/910d5dcc-dcbb-44d4-99ec-d626d54127f9
2025-06-30 16:19:58,444 - DEBUG - Requesting: http://10.0.0.50:8082/project/e909f100-91fb-4e72-a84a-6e2d9d63d4ab
2025-06-30 16:19:58,518 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/ec7218d9-aa37-4e62-b457-a5a65c246955
2025-06-30 16:19:58,526 - DEBUG - ==>Verifying data for policy with id: e35f0a93-8991-43a2-ae23-b0c16c8546c5, fqn: ['default-domain', 'ctest-TestBasicPolicy-80639005', 'ctest-policy-allow-all-48857022']
2025-06-30 16:19:58,526 - INFO - VN ctest-vn-62545074 Policy verification: verify_vn_policy_in_api_server, status: True
2025-06-30 16:19:58,527 - DEBUG - Verifying the vn in opserver
2025-06-30 16:19:58,527 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-80639005:ctest-vn-62545074 virtual network link through opserver 10.0.0.50
2025-06-30 16:19:58,527 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2025-06-30 16:19:58,540 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-80639005:ctest-vn-62545074', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-80639005:ctest-vn-62545074?flat'}
2025-06-30 16:19:58,540 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-80639005:ctest-vn-62545074 is found in opserver
2025-06-30 16:19:58,551 - DEBUG - Do not have enough data to verify VN in agent
2025-06-30 16:19:58,556 - DEBUG - VRF ids for VN ctest-vn-62545074: {}
2025-06-30 16:19:58,640 - DEBUG - Services list from nova: [