2025-07-22 14:24:11,342 - INFO - Domain Default found not creating
2025-07-22 14:24:11,509 - INFO - Project ctest-TestBasicPolicy-75746076 not found, creating it
2025-07-22 14:24:11,983 - INFO - Created Project:ctest-TestBasicPolicy-75746076, ID : ed1bd95c-0f1e-44dd-ab55-1edbf40445c5
2025-07-22 14:24:13,584 - INFO - ================================================================================
2025-07-22 14:24:13,584 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-07-22 14:24:13,584 - 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-07-22 14:24:13,838 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.17': '0'}} with
2025-07-22 14:24:13,838 - INFO - Initial checks done. Running the testcase now
2025-07-22 14:24:13,838 - INFO -
2025-07-22 14:24:14,430 - DEBUG - Response for create_network : {'network': {'id': '66d21fe6-3950-44f5-8716-049200a643cc', 'name': 'ctest-vn-87899073', 'tenant_id': 'ed1bd95c0f1e44ddab551edbf40445c5', 'project_id': 'ed1bd95c0f1e44ddab551edbf40445c5', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-75746076', 'ctest-vn-87899073'], 'port_security_enabled': True, 'description': ''}}
2025-07-22 14:24:14,605 - DEBUG - Response for create_subnet : {'subnet': {'id': '440626de-bde0-48a5-b8fe-d377179b3954', 'name': '', 'tenant_id': 'ed1bd95c0f1e44ddab551edbf40445c5', 'network_id': '66d21fe6-3950-44f5-8716-049200a643cc', 'ip_version': 4, 'cidr': '143.58.187.0/26', 'allocation_pools': [{'start': '143.58.187.2', 'end': '143.58.187.62'}], 'gateway_ip': '143.58.187.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '143.58.187.2', 'tags': [], 'project_id': 'ed1bd95c0f1e44ddab551edbf40445c5'}}
2025-07-22 14:24:14,627 - INFO - Created VN ctest-vn-87899073
2025-07-22 14:24:14,685 - DEBUG - VN ctest-vn-87899073 UUID is 66d21fe6-3950-44f5-8716-049200a643cc
2025-07-22 14:24:15,008 - DEBUG - Response for create_network : {'network': {'id': '169db6fb-c3a2-4956-99a0-6b19b7c9da6c', 'name': 'ctest-vn-18019743', 'tenant_id': 'ed1bd95c0f1e44ddab551edbf40445c5', 'project_id': 'ed1bd95c0f1e44ddab551edbf40445c5', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-75746076', 'ctest-vn-18019743'], 'port_security_enabled': True, 'description': ''}}
2025-07-22 14:24:15,231 - DEBUG - Response for create_subnet : {'subnet': {'id': 'fb62b224-0421-4208-8c51-80a4d9a13645', 'name': '', 'tenant_id': 'ed1bd95c0f1e44ddab551edbf40445c5', 'network_id': '169db6fb-c3a2-4956-99a0-6b19b7c9da6c', 'ip_version': 4, 'cidr': '211.89.28.192/26', 'allocation_pools': [{'start': '211.89.28.194', 'end': '211.89.28.254'}], 'gateway_ip': '211.89.28.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '211.89.28.194', 'tags': [], 'project_id': 'ed1bd95c0f1e44ddab551edbf40445c5'}}
2025-07-22 14:24:15,252 - INFO - Created VN ctest-vn-18019743
2025-07-22 14:24:15,308 - DEBUG - VN ctest-vn-18019743 UUID is 169db6fb-c3a2-4956-99a0-6b19b7c9da6c
2025-07-22 14:24:15,431 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-75746076:ctest-vn-87899073, 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-75746076:ctest-vn-18019743, 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-07-22 14:24:15,767 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '66d21fe6-3950-44f5-8716-049200a643cc', 'name': 'ctest-vn-87899073', 'tenant_id': 'ed1bd95c0f1e44ddab551edbf40445c5', 'project_id': 'ed1bd95c0f1e44ddab551edbf40445c5', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['440626de-bde0-48a5-b8fe-d377179b3954'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-75746076', 'ctest-vn-87899073'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-75746076', 'ctest-policy-allow-all-58001759']], 'subnet_ipam': [{'subnet_cidr': '143.58.187.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-07-22 14:24:16,032 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '169db6fb-c3a2-4956-99a0-6b19b7c9da6c', 'name': 'ctest-vn-18019743', 'tenant_id': 'ed1bd95c0f1e44ddab551edbf40445c5', 'project_id': 'ed1bd95c0f1e44ddab551edbf40445c5', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['fb62b224-0421-4208-8c51-80a4d9a13645'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-75746076', 'ctest-vn-18019743'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-75746076', 'ctest-policy-allow-all-58001759']], 'subnet_ipam': [{'subnet_cidr': '211.89.28.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-07-22 14:24:16,212 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-07-22 14:24:16,520 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-07-22 14:24:16,554 - DEBUG - Requesting: http://10.0.0.254:8082/domain/ea162fb4-24a8-420f-b243-98f261438c15
2025-07-22 14:24:16,577 - DEBUG - Requesting: http://10.0.0.254:8082/project/ed1bd95c-0f1e-44dd-ab55-1edbf40445c5
2025-07-22 14:24:16,676 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/66d21fe6-3950-44f5-8716-049200a643cc
2025-07-22 14:24:16,691 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/66d21fe6-3950-44f5-8716-049200a643cc
2025-07-22 14:24:16,701 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/3edf6e7a-9d91-47d5-9523-5d562202395f
2025-07-22 14:24:16,711 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/3edf6e7a-9d91-47d5-9523-5d562202395f
2025-07-22 14:24:16,721 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/9a4d9103-ec6b-4d7d-8525-77f9211ae522
2025-07-22 14:24:16,729 - DEBUG - Route Targets: ['target:64512:8000005']
2025-07-22 14:24:16,729 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/66d21fe6-3950-44f5-8716-049200a643cc
2025-07-22 14:24:16,740 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/3edf6e7a-9d91-47d5-9523-5d562202395f
2025-07-22 14:24:16,759 - INFO - Verified VN network id 9 for VN 66d21fe6-3950-44f5-8716-049200a643cc
2025-07-22 14:24:16,759 - INFO - Verifications in API Server for VN ctest-vn-87899073 passed
2025-07-22 14:24:16,759 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/66d21fe6-3950-44f5-8716-049200a643cc
2025-07-22 14:24:16,774 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/3edf6e7a-9d91-47d5-9523-5d562202395f
2025-07-22 14:24:16,784 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/3edf6e7a-9d91-47d5-9523-5d562202395f
2025-07-22 14:24:16,793 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/9a4d9103-ec6b-4d7d-8525-77f9211ae522
2025-07-22 14:24:16,809 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-75746076:ctest-vn-87899073', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-75746076', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7409019410642388213', 'uuid-lslong': '9733972669730538444'}, 'enable': 'true', 'created': '2025-07-22T14:24:14', 'last-modified': '2025-07-22T14:24:15', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.068667'}
2025-07-22 14:24:16,818 - DEBUG - Route Targets: ['target:64512:8000005']
2025-07-22 14:24:16,818 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-87899073 passed
2025-07-22 14:24:16,818 - DEBUG - ====Verifying policy data for ctest-vn-87899073 in API_Server ======
2025-07-22 14:24:16,818 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-07-22 14:24:16,826 - DEBUG - Requesting: http://10.0.0.254:8082/domain/ea162fb4-24a8-420f-b243-98f261438c15
2025-07-22 14:24:16,840 - DEBUG - Requesting: http://10.0.0.254:8082/project/ed1bd95c-0f1e-44dd-ab55-1edbf40445c5
2025-07-22 14:24:16,941 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/66d21fe6-3950-44f5-8716-049200a643cc
2025-07-22 14:24:16,957 - DEBUG - ==>Verifying data for policy with id: 838a548a-2c3b-437d-a509-b3e87af4036c, fqn: ['default-domain', 'ctest-TestBasicPolicy-75746076', 'ctest-policy-allow-all-58001759']
2025-07-22 14:24:16,957 - INFO - VN ctest-vn-87899073 Policy verification: verify_vn_policy_in_api_server, status: True
2025-07-22 14:24:16,957 - DEBUG - Verifying the vn in opserver
2025-07-22 14:24:16,957 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-75746076:ctest-vn-87899073 virtual network link through opserver 10.0.0.254
2025-07-22 14:24:16,958 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-07-22 14:24:17,294 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-07-22 14:24:17,357 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-75746076:ctest-vn-87899073', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-75746076:ctest-vn-87899073?flat'}
2025-07-22 14:24:17,358 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-75746076:ctest-vn-87899073 is found in opserver
2025-07-22 14:24:17,370 - DEBUG - Do not have enough data to verify VN in agent
2025-07-22 14:24:17,375 - DEBUG - VRF ids for VN ctest-vn-87899073: {}
2025-07-22 14:24:17,375 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-07-22 14:24:17,382 - DEBUG - Requesting: http://10.0.0.254:8082/domain/ea162fb4-24a8-420f-b243-98f261438c15
2025-07-22 14:24:17,398 - DEBUG - Requesting: http://10.0.0.254:8082/project/ed1bd95c-0f1e-44dd-ab55-1edbf40445c5
2025-07-22 14:24:17,491 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/169db6fb-c3a2-4956-99a0-6b19b7c9da6c
2025-07-22 14:24:17,506 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/169db6fb-c3a2-4956-99a0-6b19b7c9da6c
2025-07-22 14:24:17,519 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/e9ac0d50-e361-4a2f-8400-a95c248b0df7
2025-07-22 14:24:17,528 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/e9ac0d50-e361-4a2f-8400-a95c248b0df7
2025-07-22 14:24:17,537 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/f91b7986-57e0-4cea-b287-8d00e7b7c2d5
2025-07-22 14:24:17,545 - DEBUG - Route Targets: ['target:64512:8000006']
2025-07-22 14:24:17,545 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/169db6fb-c3a2-4956-99a0-6b19b7c9da6c
2025-07-22 14:24:17,559 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/e9ac0d50-e361-4a2f-8400-a95c248b0df7
2025-07-22 14:24:17,576 - INFO - Verified VN network id 10 for VN 169db6fb-c3a2-4956-99a0-6b19b7c9da6c
2025-07-22 14:24:17,577 - INFO - Verifications in API Server for VN ctest-vn-18019743 passed
2025-07-22 14:24:17,577 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/169db6fb-c3a2-4956-99a0-6b19b7c9da6c
2025-07-22 14:24:17,651 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/e9ac0d50-e361-4a2f-8400-a95c248b0df7
2025-07-22 14:24:17,660 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/e9ac0d50-e361-4a2f-8400-a95c248b0df7
2025-07-22 14:24:17,671 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/f91b7986-57e0-4cea-b287-8d00e7b7c2d5
2025-07-22 14:24:17,690 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-75746076:ctest-vn-18019743', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-75746076', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1629659832613226838', 'uuid-lslong': '11069965642278492780'}, 'enable': 'true', 'created': '2025-07-22T14:24:14', 'last-modified': '2025-07-22T14:24:15', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.696439'}
2025-07-22 14:24:17,699 - DEBUG - Route Targets: ['target:64512:8000006']
2025-07-22 14:24:17,700 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-18019743 passed
2025-07-22 14:24:17,700 - DEBUG - ====Verifying policy data for ctest-vn-18019743 in API_Server ======
2025-07-22 14:24:17,700 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-07-22 14:24:17,707 - DEBUG - Requesting: http://10.0.0.254:8082/domain/ea162fb4-24a8-420f-b243-98f261438c15
2025-07-22 14:24:17,722 - DEBUG - Requesting: http://10.0.0.254:8082/project/ed1bd95c-0f1e-44dd-ab55-1edbf40445c5
2025-07-22 14:24:17,811 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/169db6fb-c3a2-4956-99a0-6b19b7c9da6c
2025-07-22 14:24:17,823 - DEBUG - ==>Verifying data for policy with id: 838a548a-2c3b-437d-a509-b3e87af4036c, fqn: ['default-domain', 'ctest-TestBasicPolicy-75746076', 'ctest-policy-allow-all-58001759']
2025-07-22 14:24:17,823 - INFO - VN ctest-vn-18019743 Policy verification: verify_vn_policy_in_api_server, status: True
2025-07-22 14:24:17,823 - DEBUG - Verifying the vn in opserver
2025-07-22 14:24:17,823 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-75746076:ctest-vn-18019743 virtual network link through opserver 10.0.0.254
2025-07-22 14:24:17,823 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-07-22 14:24:17,836 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-75746076:ctest-vn-18019743', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-75746076:ctest-vn-18019743?flat'}
2025-07-22 14:24:17,836 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-75746076:ctest-vn-18019743 is found in opserver
2025-07-22 14:24:17,848 - DEBUG - Do not have enough data to verify VN in agent
2025-07-22 14:24:17,853 - DEBUG - VRF ids for VN ctest-vn-18019743: {}
2025-07-22 14:24:17,922 - DEBUG - Services list from nova: [