2025-03-27 14:34:59,214 - INFO - Domain Default found not creating
2025-03-27 14:34:59,367 - INFO - Project ctest-TestBasicPolicy-13974659 not found, creating it
2025-03-27 14:34:59,822 - INFO - Created Project:ctest-TestBasicPolicy-13974659, ID : 0ffc407f-e21a-4e97-964c-75c300a8b527
2025-03-27 14:35:01,281 - INFO - ================================================================================
2025-03-27 14:35:01,281 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-03-27 14:35:01,281 - 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-03-27 14:35:01,538 - DEBUG - Nothing to compare xmpp stats {'10.0.0.33': {'10.20.0.7': '0'}} with
2025-03-27 14:35:01,538 - INFO - Initial checks done. Running the testcase now
2025-03-27 14:35:01,538 - INFO -
2025-03-27 14:35:02,076 - DEBUG - Response for create_network : {'network': {'id': 'c429a46f-940c-41b9-826d-6ca4797a1c3f', 'name': 'ctest-vn-57529662', 'tenant_id': '0ffc407fe21a4e97964c75c300a8b527', 'project_id': '0ffc407fe21a4e97964c75c300a8b527', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-13974659', 'ctest-vn-57529662'], 'port_security_enabled': True, 'description': ''}}
2025-03-27 14:35:02,304 - DEBUG - Response for create_subnet : {'subnet': {'id': 'e65edb49-c013-4e77-9a2b-d1788e092995', 'name': '', 'tenant_id': '0ffc407fe21a4e97964c75c300a8b527', 'network_id': 'c429a46f-940c-41b9-826d-6ca4797a1c3f', 'ip_version': 4, 'cidr': '108.63.141.64/26', 'allocation_pools': [{'start': '108.63.141.66', 'end': '108.63.141.126'}], 'gateway_ip': '108.63.141.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '108.63.141.66', 'tags': [], 'project_id': '0ffc407fe21a4e97964c75c300a8b527'}}
2025-03-27 14:35:02,324 - INFO - Created VN ctest-vn-57529662
2025-03-27 14:35:02,376 - DEBUG - VN ctest-vn-57529662 UUID is c429a46f-940c-41b9-826d-6ca4797a1c3f
2025-03-27 14:35:02,680 - DEBUG - Response for create_network : {'network': {'id': '6dc698a1-5e12-437f-8b9d-7871fb479fb7', 'name': 'ctest-vn-41855892', 'tenant_id': '0ffc407fe21a4e97964c75c300a8b527', 'project_id': '0ffc407fe21a4e97964c75c300a8b527', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-13974659', 'ctest-vn-41855892'], 'port_security_enabled': True, 'description': ''}}
2025-03-27 14:35:02,844 - DEBUG - Response for create_subnet : {'subnet': {'id': 'a88aa531-5306-4757-a068-9687a3cc9dde', 'name': '', 'tenant_id': '0ffc407fe21a4e97964c75c300a8b527', 'network_id': '6dc698a1-5e12-437f-8b9d-7871fb479fb7', 'ip_version': 4, 'cidr': '196.152.215.128/26', 'allocation_pools': [{'start': '196.152.215.130', 'end': '196.152.215.190'}], 'gateway_ip': '196.152.215.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '196.152.215.130', 'tags': [], 'project_id': '0ffc407fe21a4e97964c75c300a8b527'}}
2025-03-27 14:35:02,863 - INFO - Created VN ctest-vn-41855892
2025-03-27 14:35:02,916 - DEBUG - VN ctest-vn-41855892 UUID is 6dc698a1-5e12-437f-8b9d-7871fb479fb7
2025-03-27 14:35:03,029 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-13974659:ctest-vn-57529662, 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-13974659:ctest-vn-41855892, 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-03-27 14:35:03,331 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'c429a46f-940c-41b9-826d-6ca4797a1c3f', 'name': 'ctest-vn-57529662', 'tenant_id': '0ffc407fe21a4e97964c75c300a8b527', 'project_id': '0ffc407fe21a4e97964c75c300a8b527', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['e65edb49-c013-4e77-9a2b-d1788e092995'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-13974659', 'ctest-vn-57529662'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-13974659', 'ctest-policy-allow-all-09004998']], 'subnet_ipam': [{'subnet_cidr': '108.63.141.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-03-27 14:35:03,582 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '6dc698a1-5e12-437f-8b9d-7871fb479fb7', 'name': 'ctest-vn-41855892', 'tenant_id': '0ffc407fe21a4e97964c75c300a8b527', 'project_id': '0ffc407fe21a4e97964c75c300a8b527', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['a88aa531-5306-4757-a068-9687a3cc9dde'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-13974659', 'ctest-vn-41855892'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-13974659', 'ctest-policy-allow-all-09004998']], 'subnet_ipam': [{'subnet_cidr': '196.152.215.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-03-27 14:35:03,740 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2025-03-27 14:35:04,041 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2025-03-27 14:35:04,073 - DEBUG - Requesting: http://10.0.0.33:8082/domain/df54f500-1746-4acd-974e-3480aa4b7bc0
2025-03-27 14:35:04,087 - DEBUG - Requesting: http://10.0.0.33:8082/project/0ffc407f-e21a-4e97-964c-75c300a8b527
2025-03-27 14:35:04,159 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/c429a46f-940c-41b9-826d-6ca4797a1c3f
2025-03-27 14:35:04,170 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/c429a46f-940c-41b9-826d-6ca4797a1c3f
2025-03-27 14:35:04,179 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/99c0c83a-959b-4cc8-aecb-7d72ff597848
2025-03-27 14:35:04,186 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/99c0c83a-959b-4cc8-aecb-7d72ff597848
2025-03-27 14:35:04,193 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/d1c8f862-6b19-4ba3-94cd-0f9897afbdc9
2025-03-27 14:35:04,199 - DEBUG - Route Targets: ['target:64512:8000004']
2025-03-27 14:35:04,199 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/c429a46f-940c-41b9-826d-6ca4797a1c3f
2025-03-27 14:35:04,208 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/99c0c83a-959b-4cc8-aecb-7d72ff597848
2025-03-27 14:35:04,222 - INFO - Verified VN network id 8 for VN c429a46f-940c-41b9-826d-6ca4797a1c3f
2025-03-27 14:35:04,222 - INFO - Verifications in API Server for VN ctest-vn-57529662 passed
2025-03-27 14:35:04,222 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/c429a46f-940c-41b9-826d-6ca4797a1c3f
2025-03-27 14:35:04,233 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/99c0c83a-959b-4cc8-aecb-7d72ff597848
2025-03-27 14:35:04,241 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/99c0c83a-959b-4cc8-aecb-7d72ff597848
2025-03-27 14:35:04,248 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/d1c8f862-6b19-4ba3-94cd-0f9897afbdc9
2025-03-27 14:35:04,261 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-13974659:ctest-vn-57529662', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-13974659', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '14135009704611168697', 'uuid-lslong': '9398287451060575295'}, 'enable': 'true', 'created': '2025-03-27T14:35:02', 'last-modified': '2025-03-27T14:35:03', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.955224'}
2025-03-27 14:35:04,267 - DEBUG - Route Targets: ['target:64512:8000004']
2025-03-27 14:35:04,267 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-57529662 passed
2025-03-27 14:35:04,268 - DEBUG - ====Verifying policy data for ctest-vn-57529662 in API_Server ======
2025-03-27 14:35:04,268 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2025-03-27 14:35:04,274 - DEBUG - Requesting: http://10.0.0.33:8082/domain/df54f500-1746-4acd-974e-3480aa4b7bc0
2025-03-27 14:35:04,286 - DEBUG - Requesting: http://10.0.0.33:8082/project/0ffc407f-e21a-4e97-964c-75c300a8b527
2025-03-27 14:35:04,364 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/c429a46f-940c-41b9-826d-6ca4797a1c3f
2025-03-27 14:35:04,374 - DEBUG - ==>Verifying data for policy with id: 8f298be3-fbca-44b6-87b3-3c908d79bd00, fqn: ['default-domain', 'ctest-TestBasicPolicy-13974659', 'ctest-policy-allow-all-09004998']
2025-03-27 14:35:04,374 - INFO - VN ctest-vn-57529662 Policy verification: verify_vn_policy_in_api_server, status: True
2025-03-27 14:35:04,374 - DEBUG - Verifying the vn in opserver
2025-03-27 14:35:04,374 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-13974659:ctest-vn-57529662 virtual network link through opserver 10.0.0.33
2025-03-27 14:35:04,374 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks
2025-03-27 14:35:04,672 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks
2025-03-27 14:35:04,735 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-13974659:ctest-vn-57529662', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-13974659:ctest-vn-57529662?flat'}
2025-03-27 14:35:04,735 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-13974659:ctest-vn-57529662 is found in opserver
2025-03-27 14:35:04,745 - DEBUG - Do not have enough data to verify VN in agent
2025-03-27 14:35:04,751 - DEBUG - VRF ids for VN ctest-vn-57529662: {}
2025-03-27 14:35:04,751 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2025-03-27 14:35:04,757 - DEBUG - Requesting: http://10.0.0.33:8082/domain/df54f500-1746-4acd-974e-3480aa4b7bc0
2025-03-27 14:35:04,769 - DEBUG - Requesting: http://10.0.0.33:8082/project/0ffc407f-e21a-4e97-964c-75c300a8b527
2025-03-27 14:35:04,841 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/6dc698a1-5e12-437f-8b9d-7871fb479fb7
2025-03-27 14:35:04,853 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/6dc698a1-5e12-437f-8b9d-7871fb479fb7
2025-03-27 14:35:04,863 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/9ea8eaed-670b-47af-ade2-f618f977e76f
2025-03-27 14:35:04,870 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/9ea8eaed-670b-47af-ade2-f618f977e76f
2025-03-27 14:35:04,877 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/3b53bf60-31e5-45b0-9d98-b26e92fa1ecd
2025-03-27 14:35:04,884 - DEBUG - Route Targets: ['target:64512:8000005']
2025-03-27 14:35:04,884 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/6dc698a1-5e12-437f-8b9d-7871fb479fb7
2025-03-27 14:35:04,894 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/9ea8eaed-670b-47af-ade2-f618f977e76f
2025-03-27 14:35:04,908 - INFO - Verified VN network id 9 for VN 6dc698a1-5e12-437f-8b9d-7871fb479fb7
2025-03-27 14:35:04,908 - INFO - Verifications in API Server for VN ctest-vn-41855892 passed
2025-03-27 14:35:04,908 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/6dc698a1-5e12-437f-8b9d-7871fb479fb7
2025-03-27 14:35:04,918 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/9ea8eaed-670b-47af-ade2-f618f977e76f
2025-03-27 14:35:04,925 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/9ea8eaed-670b-47af-ade2-f618f977e76f
2025-03-27 14:35:04,932 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/3b53bf60-31e5-45b0-9d98-b26e92fa1ecd
2025-03-27 14:35:04,944 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-13974659:ctest-vn-41855892', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-13974659', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7910177614358266751', 'uuid-lslong': '10060329573557968823'}, 'enable': 'true', 'created': '2025-03-27T14:35:02', 'last-modified': '2025-03-27T14:35:03', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.384791'}
2025-03-27 14:35:04,950 - DEBUG - Route Targets: ['target:64512:8000005']
2025-03-27 14:35:04,950 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-41855892 passed
2025-03-27 14:35:04,951 - DEBUG - ====Verifying policy data for ctest-vn-41855892 in API_Server ======
2025-03-27 14:35:04,951 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2025-03-27 14:35:04,956 - DEBUG - Requesting: http://10.0.0.33:8082/domain/df54f500-1746-4acd-974e-3480aa4b7bc0
2025-03-27 14:35:04,970 - DEBUG - Requesting: http://10.0.0.33:8082/project/0ffc407f-e21a-4e97-964c-75c300a8b527
2025-03-27 14:35:05,049 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/6dc698a1-5e12-437f-8b9d-7871fb479fb7
2025-03-27 14:35:05,061 - DEBUG - ==>Verifying data for policy with id: 8f298be3-fbca-44b6-87b3-3c908d79bd00, fqn: ['default-domain', 'ctest-TestBasicPolicy-13974659', 'ctest-policy-allow-all-09004998']
2025-03-27 14:35:05,061 - INFO - VN ctest-vn-41855892 Policy verification: verify_vn_policy_in_api_server, status: True
2025-03-27 14:35:05,061 - DEBUG - Verifying the vn in opserver
2025-03-27 14:35:05,062 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-13974659:ctest-vn-41855892 virtual network link through opserver 10.0.0.33
2025-03-27 14:35:05,062 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks
2025-03-27 14:35:05,074 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-13974659:ctest-vn-41855892', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-13974659:ctest-vn-41855892?flat'}
2025-03-27 14:35:05,074 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-13974659:ctest-vn-41855892 is found in opserver
2025-03-27 14:35:05,086 - DEBUG - Do not have enough data to verify VN in agent
2025-03-27 14:35:05,092 - DEBUG - VRF ids for VN ctest-vn-41855892: {}
2025-03-27 14:35:05,149 - DEBUG - Services list from nova: [