2025-04-07 02:17:56,694 - INFO - Domain Default found not creating
2025-04-07 02:17:56,862 - INFO - Project ctest-TestBasicPolicy-13568217 not found, creating it
2025-04-07 02:17:57,368 - INFO - Created Project:ctest-TestBasicPolicy-13568217, ID : f04fb132-25bc-4bd8-acf0-593dbf3f98da
2025-04-07 02:17:58,844 - INFO - ================================================================================
2025-04-07 02:17:58,844 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-04-07 02:17:58,845 - 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-07 02:17:59,103 - DEBUG - Nothing to compare xmpp stats {'10.0.0.44': {'10.20.0.6': '0'}} with
2025-04-07 02:17:59,103 - INFO - Initial checks done. Running the testcase now
2025-04-07 02:17:59,103 - INFO -
2025-04-07 02:17:59,667 - DEBUG - Response for create_network : {'network': {'id': '06a5d1b9-1c7d-4c2b-a873-e77d850f25f4', 'name': 'ctest-vn-46170930', 'tenant_id': 'f04fb13225bc4bd8acf0593dbf3f98da', 'project_id': 'f04fb13225bc4bd8acf0593dbf3f98da', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-13568217', 'ctest-vn-46170930'], 'port_security_enabled': True, 'description': ''}}
2025-04-07 02:17:59,938 - DEBUG - Response for create_subnet : {'subnet': {'id': 'f9c55dbb-74d3-454e-a76d-24510b9c2b4b', 'name': '', 'tenant_id': 'f04fb13225bc4bd8acf0593dbf3f98da', 'network_id': '06a5d1b9-1c7d-4c2b-a873-e77d850f25f4', 'ip_version': 4, 'cidr': '16.83.91.64/26', 'allocation_pools': [{'start': '16.83.91.66', 'end': '16.83.91.126'}], 'gateway_ip': '16.83.91.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '16.83.91.66', 'tags': [], 'project_id': 'f04fb13225bc4bd8acf0593dbf3f98da'}}
2025-04-07 02:17:59,971 - INFO - Created VN ctest-vn-46170930
2025-04-07 02:18:00,030 - DEBUG - VN ctest-vn-46170930 UUID is 06a5d1b9-1c7d-4c2b-a873-e77d850f25f4
2025-04-07 02:18:00,383 - DEBUG - Response for create_network : {'network': {'id': '33e17c18-d123-4942-9966-c1828633a260', 'name': 'ctest-vn-25597144', 'tenant_id': 'f04fb13225bc4bd8acf0593dbf3f98da', 'project_id': 'f04fb13225bc4bd8acf0593dbf3f98da', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-13568217', 'ctest-vn-25597144'], 'port_security_enabled': True, 'description': ''}}
2025-04-07 02:18:00,642 - DEBUG - Response for create_subnet : {'subnet': {'id': '91b943e6-d7bc-44c7-b271-417571e133d8', 'name': '', 'tenant_id': 'f04fb13225bc4bd8acf0593dbf3f98da', 'network_id': '33e17c18-d123-4942-9966-c1828633a260', 'ip_version': 4, 'cidr': '146.97.102.128/26', 'allocation_pools': [{'start': '146.97.102.130', 'end': '146.97.102.190'}], 'gateway_ip': '146.97.102.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '146.97.102.130', 'tags': [], 'project_id': 'f04fb13225bc4bd8acf0593dbf3f98da'}}
2025-04-07 02:18:00,663 - INFO - Created VN ctest-vn-25597144
2025-04-07 02:18:00,717 - DEBUG - VN ctest-vn-25597144 UUID is 33e17c18-d123-4942-9966-c1828633a260
2025-04-07 02:18:00,844 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-13568217:ctest-vn-46170930, 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-13568217:ctest-vn-25597144, 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-07 02:18:01,162 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '06a5d1b9-1c7d-4c2b-a873-e77d850f25f4', 'name': 'ctest-vn-46170930', 'tenant_id': 'f04fb13225bc4bd8acf0593dbf3f98da', 'project_id': 'f04fb13225bc4bd8acf0593dbf3f98da', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['f9c55dbb-74d3-454e-a76d-24510b9c2b4b'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-13568217', 'ctest-vn-46170930'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-13568217', 'ctest-policy-allow-all-28386467']], 'subnet_ipam': [{'subnet_cidr': '16.83.91.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-04-07 02:18:01,412 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '33e17c18-d123-4942-9966-c1828633a260', 'name': 'ctest-vn-25597144', 'tenant_id': 'f04fb13225bc4bd8acf0593dbf3f98da', 'project_id': 'f04fb13225bc4bd8acf0593dbf3f98da', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['91b943e6-d7bc-44c7-b271-417571e133d8'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-13568217', 'ctest-vn-25597144'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-13568217', 'ctest-policy-allow-all-28386467']], 'subnet_ipam': [{'subnet_cidr': '146.97.102.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-04-07 02:18:01,573 - DEBUG - Requesting: http://10.0.0.44:8082/domains
2025-04-07 02:18:01,896 - DEBUG - Requesting: http://10.0.0.44:8082/domains
2025-04-07 02:18:01,930 - DEBUG - Requesting: http://10.0.0.44:8082/domain/a2e6a6c3-d961-4feb-b58a-aece84d87477
2025-04-07 02:18:01,949 - DEBUG - Requesting: http://10.0.0.44:8082/project/f04fb132-25bc-4bd8-acf0-593dbf3f98da
2025-04-07 02:18:02,036 - DEBUG - Requesting: http://10.0.0.44:8082/virtual-network/06a5d1b9-1c7d-4c2b-a873-e77d850f25f4
2025-04-07 02:18:02,052 - DEBUG - Requesting: http://10.0.0.44:8082/virtual-network/06a5d1b9-1c7d-4c2b-a873-e77d850f25f4
2025-04-07 02:18:02,063 - DEBUG - Requesting: http://10.0.0.44:8082/routing-instance/b2eefcda-1e94-46a3-a9e1-a92ad7cd3dde
2025-04-07 02:18:02,072 - DEBUG - Requesting: http://10.0.0.44:8082/routing-instance/b2eefcda-1e94-46a3-a9e1-a92ad7cd3dde
2025-04-07 02:18:02,081 - DEBUG - Requesting: http://10.0.0.44:8082/route-target/2087d024-a706-4689-8168-4601a6253b65
2025-04-07 02:18:02,090 - DEBUG - Route Targets: ['target:64512:8000004']
2025-04-07 02:18:02,090 - DEBUG - Requesting: http://10.0.0.44:8082/virtual-network/06a5d1b9-1c7d-4c2b-a873-e77d850f25f4
2025-04-07 02:18:02,101 - DEBUG - Requesting: http://10.0.0.44:8082/routing-instance/b2eefcda-1e94-46a3-a9e1-a92ad7cd3dde
2025-04-07 02:18:02,122 - INFO - Verified VN network id 8 for VN 06a5d1b9-1c7d-4c2b-a873-e77d850f25f4
2025-04-07 02:18:02,122 - INFO - Verifications in API Server for VN ctest-vn-46170930 passed
2025-04-07 02:18:02,122 - DEBUG - Requesting: http://10.0.0.44:8082/virtual-network/06a5d1b9-1c7d-4c2b-a873-e77d850f25f4
2025-04-07 02:18:02,133 - DEBUG - Requesting: http://10.0.0.44:8082/routing-instance/b2eefcda-1e94-46a3-a9e1-a92ad7cd3dde
2025-04-07 02:18:02,141 - DEBUG - Requesting: http://10.0.0.44:8082/routing-instance/b2eefcda-1e94-46a3-a9e1-a92ad7cd3dde
2025-04-07 02:18:02,150 - DEBUG - Requesting: http://10.0.0.44:8082/route-target/2087d024-a706-4689-8168-4601a6253b65
2025-04-07 02:18:02,164 - DEBUG - Control-node 10.0.0.44 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-13568217:ctest-vn-46170930', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-13568217', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '479019528361954347', 'uuid-lslong': '12138299946982909428'}, 'enable': 'true', 'created': '2025-04-07T02:17:59', 'last-modified': '2025-04-07T02:18:01', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.041389'}
2025-04-07 02:18:02,175 - DEBUG - Route Targets: ['target:64512:8000004']
2025-04-07 02:18:02,175 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-46170930 passed
2025-04-07 02:18:02,176 - DEBUG - ====Verifying policy data for ctest-vn-46170930 in API_Server ======
2025-04-07 02:18:02,176 - DEBUG - Requesting: http://10.0.0.44:8082/domains
2025-04-07 02:18:02,184 - DEBUG - Requesting: http://10.0.0.44:8082/domain/a2e6a6c3-d961-4feb-b58a-aece84d87477
2025-04-07 02:18:02,198 - DEBUG - Requesting: http://10.0.0.44:8082/project/f04fb132-25bc-4bd8-acf0-593dbf3f98da
2025-04-07 02:18:02,275 - DEBUG - Requesting: http://10.0.0.44:8082/virtual-network/06a5d1b9-1c7d-4c2b-a873-e77d850f25f4
2025-04-07 02:18:02,286 - DEBUG - ==>Verifying data for policy with id: 4e224628-8a45-46cf-b361-2233679ab671, fqn: ['default-domain', 'ctest-TestBasicPolicy-13568217', 'ctest-policy-allow-all-28386467']
2025-04-07 02:18:02,286 - INFO - VN ctest-vn-46170930 Policy verification: verify_vn_policy_in_api_server, status: True
2025-04-07 02:18:02,286 - DEBUG - Verifying the vn in opserver
2025-04-07 02:18:02,286 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-13568217:ctest-vn-46170930 virtual network link through opserver 10.0.0.44
2025-04-07 02:18:02,286 - DEBUG - Requesting: http://10.0.0.44:8081/analytics/uves/virtual-networks
2025-04-07 02:18:02,579 - DEBUG - Requesting: http://10.0.0.44:8081/analytics/uves/virtual-networks
2025-04-07 02:18:02,641 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-13568217:ctest-vn-46170930', 'href': 'http://10.0.0.44:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-13568217:ctest-vn-46170930?flat'}
2025-04-07 02:18:02,641 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-13568217:ctest-vn-46170930 is found in opserver
2025-04-07 02:18:02,652 - DEBUG - Do not have enough data to verify VN in agent
2025-04-07 02:18:02,658 - DEBUG - VRF ids for VN ctest-vn-46170930: {}
2025-04-07 02:18:02,658 - DEBUG - Requesting: http://10.0.0.44:8082/domains
2025-04-07 02:18:02,664 - DEBUG - Requesting: http://10.0.0.44:8082/domain/a2e6a6c3-d961-4feb-b58a-aece84d87477
2025-04-07 02:18:02,677 - DEBUG - Requesting: http://10.0.0.44:8082/project/f04fb132-25bc-4bd8-acf0-593dbf3f98da
2025-04-07 02:18:02,749 - DEBUG - Requesting: http://10.0.0.44:8082/virtual-network/33e17c18-d123-4942-9966-c1828633a260
2025-04-07 02:18:02,762 - DEBUG - Requesting: http://10.0.0.44:8082/virtual-network/33e17c18-d123-4942-9966-c1828633a260
2025-04-07 02:18:02,772 - DEBUG - Requesting: http://10.0.0.44:8082/routing-instance/b13cdf05-5e1c-4487-8239-0b8c86ef9fd3
2025-04-07 02:18:02,781 - DEBUG - Requesting: http://10.0.0.44:8082/routing-instance/b13cdf05-5e1c-4487-8239-0b8c86ef9fd3
2025-04-07 02:18:02,789 - DEBUG - Requesting: http://10.0.0.44:8082/route-target/94930d05-40dc-4b18-ab62-4db1dfbaaa84
2025-04-07 02:18:02,797 - DEBUG - Route Targets: ['target:64512:8000005']
2025-04-07 02:18:02,797 - DEBUG - Requesting: http://10.0.0.44:8082/virtual-network/33e17c18-d123-4942-9966-c1828633a260
2025-04-07 02:18:02,808 - DEBUG - Requesting: http://10.0.0.44:8082/routing-instance/b13cdf05-5e1c-4487-8239-0b8c86ef9fd3
2025-04-07 02:18:02,825 - INFO - Verified VN network id 9 for VN 33e17c18-d123-4942-9966-c1828633a260
2025-04-07 02:18:02,825 - INFO - Verifications in API Server for VN ctest-vn-25597144 passed
2025-04-07 02:18:02,826 - DEBUG - Requesting: http://10.0.0.44:8082/virtual-network/33e17c18-d123-4942-9966-c1828633a260
2025-04-07 02:18:02,837 - DEBUG - Requesting: http://10.0.0.44:8082/routing-instance/b13cdf05-5e1c-4487-8239-0b8c86ef9fd3
2025-04-07 02:18:02,845 - DEBUG - Requesting: http://10.0.0.44:8082/routing-instance/b13cdf05-5e1c-4487-8239-0b8c86ef9fd3
2025-04-07 02:18:02,853 - DEBUG - Requesting: http://10.0.0.44:8082/route-target/94930d05-40dc-4b18-ab62-4db1dfbaaa84
2025-04-07 02:18:02,866 - DEBUG - Control-node 10.0.0.44 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-13568217:ctest-vn-25597144', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-13568217', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3738405611724032322', 'uuid-lslong': '11053735101768901216'}, 'enable': 'true', 'created': '2025-04-07T02:18:00', 'last-modified': '2025-04-07T02:18:01', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.486896'}
2025-04-07 02:18:02,873 - DEBUG - Route Targets: ['target:64512:8000005']
2025-04-07 02:18:02,873 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-25597144 passed
2025-04-07 02:18:02,873 - DEBUG - ====Verifying policy data for ctest-vn-25597144 in API_Server ======
2025-04-07 02:18:02,873 - DEBUG - Requesting: http://10.0.0.44:8082/domains
2025-04-07 02:18:02,879 - DEBUG - Requesting: http://10.0.0.44:8082/domain/a2e6a6c3-d961-4feb-b58a-aece84d87477
2025-04-07 02:18:02,892 - DEBUG - Requesting: http://10.0.0.44:8082/project/f04fb132-25bc-4bd8-acf0-593dbf3f98da
2025-04-07 02:18:02,971 - DEBUG - Requesting: http://10.0.0.44:8082/virtual-network/33e17c18-d123-4942-9966-c1828633a260
2025-04-07 02:18:02,982 - DEBUG - ==>Verifying data for policy with id: 4e224628-8a45-46cf-b361-2233679ab671, fqn: ['default-domain', 'ctest-TestBasicPolicy-13568217', 'ctest-policy-allow-all-28386467']
2025-04-07 02:18:02,982 - INFO - VN ctest-vn-25597144 Policy verification: verify_vn_policy_in_api_server, status: True
2025-04-07 02:18:02,982 - DEBUG - Verifying the vn in opserver
2025-04-07 02:18:02,982 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-13568217:ctest-vn-25597144 virtual network link through opserver 10.0.0.44
2025-04-07 02:18:02,982 - DEBUG - Requesting: http://10.0.0.44:8081/analytics/uves/virtual-networks
2025-04-07 02:18:02,995 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-13568217:ctest-vn-25597144', 'href': 'http://10.0.0.44:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-13568217:ctest-vn-25597144?flat'}
2025-04-07 02:18:02,995 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-13568217:ctest-vn-25597144 is found in opserver
2025-04-07 02:18:03,006 - DEBUG - Do not have enough data to verify VN in agent
2025-04-07 02:18:03,013 - DEBUG - VRF ids for VN ctest-vn-25597144: {}
2025-04-07 02:18:03,087 - DEBUG - Services list from nova: [