2025-06-02 09:57:49,108 - INFO - Domain Default found not creating
2025-06-02 09:57:49,260 - INFO - Project ctest-TestBasicPolicy-41803594 not found, creating it
2025-06-02 09:57:49,700 - INFO - Created Project:ctest-TestBasicPolicy-41803594, ID : 63b8fc41-1ec4-4d7d-b047-3266305091fe
2025-06-02 09:57:51,966 - INFO - ================================================================================
2025-06-02 09:57:51,967 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-06-02 09:57:51,967 - 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-02 09:57:52,220 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.0.0.50': '0'}} with
2025-06-02 09:57:52,220 - INFO - Initial checks done. Running the testcase now
2025-06-02 09:57:52,220 - INFO -
2025-06-02 09:57:52,812 - DEBUG - Response for create_network : {'network': {'id': '72694c77-c885-4395-8e61-b6cd8dc83043', 'name': 'ctest-vn-52414509', 'tenant_id': '63b8fc411ec44d7db0473266305091fe', 'project_id': '63b8fc411ec44d7db0473266305091fe', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-41803594', 'ctest-vn-52414509'], 'port_security_enabled': True, 'description': ''}}
2025-06-02 09:57:52,964 - DEBUG - Response for create_subnet : {'subnet': {'id': '9597c249-d4e3-4f10-ba55-e30ce7a0a4b8', 'name': '', 'tenant_id': '63b8fc411ec44d7db0473266305091fe', 'network_id': '72694c77-c885-4395-8e61-b6cd8dc83043', 'ip_version': 4, 'cidr': '32.97.114.64/26', 'allocation_pools': [{'start': '32.97.114.66', 'end': '32.97.114.126'}], 'gateway_ip': '32.97.114.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '32.97.114.66', 'tags': [], 'project_id': '63b8fc411ec44d7db0473266305091fe'}}
2025-06-02 09:57:52,982 - INFO - Created VN ctest-vn-52414509
2025-06-02 09:57:53,035 - DEBUG - VN ctest-vn-52414509 UUID is 72694c77-c885-4395-8e61-b6cd8dc83043
2025-06-02 09:57:53,343 - DEBUG - Response for create_network : {'network': {'id': '58c5f369-ae9c-40c2-9d4f-e61dcbbd73e2', 'name': 'ctest-vn-18248804', 'tenant_id': '63b8fc411ec44d7db0473266305091fe', 'project_id': '63b8fc411ec44d7db0473266305091fe', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-41803594', 'ctest-vn-18248804'], 'port_security_enabled': True, 'description': ''}}
2025-06-02 09:57:53,513 - DEBUG - Response for create_subnet : {'subnet': {'id': 'd0a3c8f6-8d86-456b-acca-577738abc618', 'name': '', 'tenant_id': '63b8fc411ec44d7db0473266305091fe', 'network_id': '58c5f369-ae9c-40c2-9d4f-e61dcbbd73e2', 'ip_version': 4, 'cidr': '17.154.199.192/26', 'allocation_pools': [{'start': '17.154.199.194', 'end': '17.154.199.254'}], 'gateway_ip': '17.154.199.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '17.154.199.194', 'tags': [], 'project_id': '63b8fc411ec44d7db0473266305091fe'}}
2025-06-02 09:57:53,531 - INFO - Created VN ctest-vn-18248804
2025-06-02 09:57:53,583 - DEBUG - VN ctest-vn-18248804 UUID is 58c5f369-ae9c-40c2-9d4f-e61dcbbd73e2
2025-06-02 09:57:53,698 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-41803594:ctest-vn-52414509, 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-41803594:ctest-vn-18248804, 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-02 09:57:53,997 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '72694c77-c885-4395-8e61-b6cd8dc83043', 'name': 'ctest-vn-52414509', 'tenant_id': '63b8fc411ec44d7db0473266305091fe', 'project_id': '63b8fc411ec44d7db0473266305091fe', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['9597c249-d4e3-4f10-ba55-e30ce7a0a4b8'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-41803594', 'ctest-vn-52414509'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-41803594', 'ctest-policy-allow-all-70480949']], 'subnet_ipam': [{'subnet_cidr': '32.97.114.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-06-02 09:57:54,362 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '58c5f369-ae9c-40c2-9d4f-e61dcbbd73e2', 'name': 'ctest-vn-18248804', 'tenant_id': '63b8fc411ec44d7db0473266305091fe', 'project_id': '63b8fc411ec44d7db0473266305091fe', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['d0a3c8f6-8d86-456b-acca-577738abc618'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-41803594', 'ctest-vn-18248804'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-41803594', 'ctest-policy-allow-all-70480949']], 'subnet_ipam': [{'subnet_cidr': '17.154.199.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-06-02 09:57:54,503 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-06-02 09:57:54,842 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-06-02 09:57:54,879 - DEBUG - Requesting: http://10.0.0.50:8082/domain/d0a4467a-7e92-4ba2-bc71-3b2fd5672cc8
2025-06-02 09:57:54,890 - DEBUG - Requesting: http://10.0.0.50:8082/project/63b8fc41-1ec4-4d7d-b047-3266305091fe
2025-06-02 09:57:54,978 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/72694c77-c885-4395-8e61-b6cd8dc83043
2025-06-02 09:57:54,991 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/72694c77-c885-4395-8e61-b6cd8dc83043
2025-06-02 09:57:55,000 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/4b7c27ff-a7d1-4613-8cb0-14e003309a57
2025-06-02 09:57:55,008 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/4b7c27ff-a7d1-4613-8cb0-14e003309a57
2025-06-02 09:57:55,016 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/8d573b4c-0031-4de1-b214-88334bd91d33
2025-06-02 09:57:55,026 - DEBUG - Route Targets: ['target:64512:8000005']
2025-06-02 09:57:55,026 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/72694c77-c885-4395-8e61-b6cd8dc83043
2025-06-02 09:57:55,038 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/4b7c27ff-a7d1-4613-8cb0-14e003309a57
2025-06-02 09:57:55,057 - INFO - Verified VN network id 8 for VN 72694c77-c885-4395-8e61-b6cd8dc83043
2025-06-02 09:57:55,057 - INFO - Verifications in API Server for VN ctest-vn-52414509 passed
2025-06-02 09:57:55,058 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/72694c77-c885-4395-8e61-b6cd8dc83043
2025-06-02 09:57:55,072 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/4b7c27ff-a7d1-4613-8cb0-14e003309a57
2025-06-02 09:57:55,083 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/4b7c27ff-a7d1-4613-8cb0-14e003309a57
2025-06-02 09:57:55,091 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/8d573b4c-0031-4de1-b214-88334bd91d33
2025-06-02 09:57:55,103 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-41803594:ctest-vn-52414509', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-41803594', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8244204670227399573', 'uuid-lslong': '10259682420089958467'}, 'enable': 'true', 'created': '2025-06-02T09:57:52', 'last-modified': '2025-06-02T09:57:53', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.135495'}
2025-06-02 09:57:55,109 - DEBUG - Route Targets: ['target:64512:8000005']
2025-06-02 09:57:55,109 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-52414509 passed
2025-06-02 09:57:55,109 - DEBUG - ====Verifying policy data for ctest-vn-52414509 in API_Server ======
2025-06-02 09:57:55,109 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-06-02 09:57:55,114 - DEBUG - Requesting: http://10.0.0.50:8082/domain/d0a4467a-7e92-4ba2-bc71-3b2fd5672cc8
2025-06-02 09:57:55,126 - DEBUG - Requesting: http://10.0.0.50:8082/project/63b8fc41-1ec4-4d7d-b047-3266305091fe
2025-06-02 09:57:55,199 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/72694c77-c885-4395-8e61-b6cd8dc83043
2025-06-02 09:57:55,210 - DEBUG - ==>Verifying data for policy with id: 2b35b40d-099e-4de2-89a8-97061129f725, fqn: ['default-domain', 'ctest-TestBasicPolicy-41803594', 'ctest-policy-allow-all-70480949']
2025-06-02 09:57:55,210 - INFO - VN ctest-vn-52414509 Policy verification: verify_vn_policy_in_api_server, status: True
2025-06-02 09:57:55,210 - DEBUG - Verifying the vn in opserver
2025-06-02 09:57:55,210 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-41803594:ctest-vn-52414509 virtual network link through opserver 10.0.0.50
2025-06-02 09:57:55,211 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2025-06-02 09:57:55,550 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2025-06-02 09:57:55,605 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-41803594:ctest-vn-52414509', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-41803594:ctest-vn-52414509?flat'}
2025-06-02 09:57:55,605 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-41803594:ctest-vn-52414509 is found in opserver
2025-06-02 09:57:55,622 - DEBUG - Do not have enough data to verify VN in agent
2025-06-02 09:57:55,631 - DEBUG - VRF ids for VN ctest-vn-52414509: {}
2025-06-02 09:57:55,631 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-06-02 09:57:55,637 - DEBUG - Requesting: http://10.0.0.50:8082/domain/d0a4467a-7e92-4ba2-bc71-3b2fd5672cc8
2025-06-02 09:57:55,650 - DEBUG - Requesting: http://10.0.0.50:8082/project/63b8fc41-1ec4-4d7d-b047-3266305091fe
2025-06-02 09:57:55,724 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/58c5f369-ae9c-40c2-9d4f-e61dcbbd73e2
2025-06-02 09:57:55,737 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/58c5f369-ae9c-40c2-9d4f-e61dcbbd73e2
2025-06-02 09:57:55,747 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/81409a21-b57f-49bb-8b72-dc1195c9a528
2025-06-02 09:57:55,757 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/81409a21-b57f-49bb-8b72-dc1195c9a528
2025-06-02 09:57:55,764 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/194e1bc5-bc58-4d97-b05a-b9b2ab2891c0
2025-06-02 09:57:55,770 - DEBUG - Route Targets: ['target:64512:8000006']
2025-06-02 09:57:55,770 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/58c5f369-ae9c-40c2-9d4f-e61dcbbd73e2
2025-06-02 09:57:55,780 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/81409a21-b57f-49bb-8b72-dc1195c9a528
2025-06-02 09:57:55,802 - INFO - Verified VN network id 9 for VN 58c5f369-ae9c-40c2-9d4f-e61dcbbd73e2
2025-06-02 09:57:55,802 - INFO - Verifications in API Server for VN ctest-vn-18248804 passed
2025-06-02 09:57:55,802 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/58c5f369-ae9c-40c2-9d4f-e61dcbbd73e2
2025-06-02 09:57:55,812 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/81409a21-b57f-49bb-8b72-dc1195c9a528
2025-06-02 09:57:55,821 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/81409a21-b57f-49bb-8b72-dc1195c9a528
2025-06-02 09:57:55,832 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/194e1bc5-bc58-4d97-b05a-b9b2ab2891c0
2025-06-02 09:57:55,848 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-41803594:ctest-vn-18248804', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-41803594', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6396786480976249026', 'uuid-lslong': '11335531802761458658'}, 'enable': 'true', 'created': '2025-06-02T09:57:53', 'last-modified': '2025-06-02T09:57:54', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.567060'}
2025-06-02 09:57:55,854 - DEBUG - Route Targets: ['target:64512:8000006']
2025-06-02 09:57:55,855 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-18248804 passed
2025-06-02 09:57:55,855 - DEBUG - ====Verifying policy data for ctest-vn-18248804 in API_Server ======
2025-06-02 09:57:55,855 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-06-02 09:57:55,861 - DEBUG - Requesting: http://10.0.0.50:8082/domain/d0a4467a-7e92-4ba2-bc71-3b2fd5672cc8
2025-06-02 09:57:55,875 - DEBUG - Requesting: http://10.0.0.50:8082/project/63b8fc41-1ec4-4d7d-b047-3266305091fe
2025-06-02 09:57:55,952 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/58c5f369-ae9c-40c2-9d4f-e61dcbbd73e2
2025-06-02 09:57:55,963 - DEBUG - ==>Verifying data for policy with id: 2b35b40d-099e-4de2-89a8-97061129f725, fqn: ['default-domain', 'ctest-TestBasicPolicy-41803594', 'ctest-policy-allow-all-70480949']
2025-06-02 09:57:55,963 - INFO - VN ctest-vn-18248804 Policy verification: verify_vn_policy_in_api_server, status: True
2025-06-02 09:57:55,963 - DEBUG - Verifying the vn in opserver
2025-06-02 09:57:55,963 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-41803594:ctest-vn-18248804 virtual network link through opserver 10.0.0.50
2025-06-02 09:57:55,963 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2025-06-02 09:57:55,975 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-41803594:ctest-vn-18248804', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-41803594:ctest-vn-18248804?flat'}
2025-06-02 09:57:55,975 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-41803594:ctest-vn-18248804 is found in opserver
2025-06-02 09:57:55,986 - DEBUG - Do not have enough data to verify VN in agent
2025-06-02 09:57:55,991 - DEBUG - VRF ids for VN ctest-vn-18248804: {}
2025-06-02 09:57:56,077 - DEBUG - Services list from nova: [