2025-03-27 16:43:22,347 - INFO - Domain Default found not creating
2025-03-27 16:43:22,483 - INFO - Project ctest-TestBasicPolicy-07941733 not found, creating it
2025-03-27 16:43:22,931 - INFO - Created Project:ctest-TestBasicPolicy-07941733, ID : 46f2c4e1-2fa3-4c4b-8ff4-e80a549c7127
2025-03-27 16:43:24,340 - INFO - ================================================================================
2025-03-27 16:43:24,340 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-03-27 16:43:24,340 - 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 16:43:24,593 - DEBUG - Nothing to compare xmpp stats {'10.0.0.49': {'10.20.0.22': '0'}} with
2025-03-27 16:43:24,593 - INFO - Initial checks done. Running the testcase now
2025-03-27 16:43:24,593 - INFO -
2025-03-27 16:43:25,135 - DEBUG - Response for create_network : {'network': {'id': '382ee179-5536-4a7f-b413-00a0c782f56b', 'name': 'ctest-vn-65868622', 'tenant_id': '46f2c4e12fa34c4b8ff4e80a549c7127', 'project_id': '46f2c4e12fa34c4b8ff4e80a549c7127', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-07941733', 'ctest-vn-65868622'], 'port_security_enabled': True, 'description': ''}}
2025-03-27 16:43:25,347 - DEBUG - Response for create_subnet : {'subnet': {'id': '3ab740c3-da32-4757-accd-32f0e3c2c41d', 'name': '', 'tenant_id': '46f2c4e12fa34c4b8ff4e80a549c7127', 'network_id': '382ee179-5536-4a7f-b413-00a0c782f56b', 'ip_version': 4, 'cidr': '76.4.173.192/26', 'allocation_pools': [{'start': '76.4.173.194', 'end': '76.4.173.254'}], 'gateway_ip': '76.4.173.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '76.4.173.194', 'tags': [], 'project_id': '46f2c4e12fa34c4b8ff4e80a549c7127'}}
2025-03-27 16:43:25,365 - INFO - Created VN ctest-vn-65868622
2025-03-27 16:43:25,419 - DEBUG - VN ctest-vn-65868622 UUID is 382ee179-5536-4a7f-b413-00a0c782f56b
2025-03-27 16:43:25,739 - DEBUG - Response for create_network : {'network': {'id': 'ad71932d-ae26-408a-a442-f1e8ac6e3c61', 'name': 'ctest-vn-43437967', 'tenant_id': '46f2c4e12fa34c4b8ff4e80a549c7127', 'project_id': '46f2c4e12fa34c4b8ff4e80a549c7127', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-07941733', 'ctest-vn-43437967'], 'port_security_enabled': True, 'description': ''}}
2025-03-27 16:43:25,923 - DEBUG - Response for create_subnet : {'subnet': {'id': 'a518c72d-73e1-478a-9378-30b23f8e5b78', 'name': '', 'tenant_id': '46f2c4e12fa34c4b8ff4e80a549c7127', 'network_id': 'ad71932d-ae26-408a-a442-f1e8ac6e3c61', 'ip_version': 4, 'cidr': '125.11.179.64/26', 'allocation_pools': [{'start': '125.11.179.66', 'end': '125.11.179.126'}], 'gateway_ip': '125.11.179.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '125.11.179.66', 'tags': [], 'project_id': '46f2c4e12fa34c4b8ff4e80a549c7127'}}
2025-03-27 16:43:25,941 - INFO - Created VN ctest-vn-43437967
2025-03-27 16:43:25,991 - DEBUG - VN ctest-vn-43437967 UUID is ad71932d-ae26-408a-a442-f1e8ac6e3c61
2025-03-27 16:43:26,104 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-07941733:ctest-vn-65868622, 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-07941733:ctest-vn-43437967, 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 16:43:26,401 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '382ee179-5536-4a7f-b413-00a0c782f56b', 'name': 'ctest-vn-65868622', 'tenant_id': '46f2c4e12fa34c4b8ff4e80a549c7127', 'project_id': '46f2c4e12fa34c4b8ff4e80a549c7127', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['3ab740c3-da32-4757-accd-32f0e3c2c41d'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-07941733', 'ctest-vn-65868622'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-07941733', 'ctest-policy-allow-all-62562987']], 'subnet_ipam': [{'subnet_cidr': '76.4.173.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-03-27 16:43:26,648 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'ad71932d-ae26-408a-a442-f1e8ac6e3c61', 'name': 'ctest-vn-43437967', 'tenant_id': '46f2c4e12fa34c4b8ff4e80a549c7127', 'project_id': '46f2c4e12fa34c4b8ff4e80a549c7127', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['a518c72d-73e1-478a-9378-30b23f8e5b78'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-07941733', 'ctest-vn-43437967'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-07941733', 'ctest-policy-allow-all-62562987']], 'subnet_ipam': [{'subnet_cidr': '125.11.179.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-03-27 16:43:26,807 - DEBUG - Requesting: http://10.0.0.49:8082/domains
2025-03-27 16:43:27,108 - DEBUG - Requesting: http://10.0.0.49:8082/domains
2025-03-27 16:43:27,136 - DEBUG - Requesting: http://10.0.0.49:8082/domain/5488e45e-0785-404b-890b-365ae4eb8a18
2025-03-27 16:43:27,149 - DEBUG - Requesting: http://10.0.0.49:8082/project/46f2c4e1-2fa3-4c4b-8ff4-e80a549c7127
2025-03-27 16:43:27,222 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/382ee179-5536-4a7f-b413-00a0c782f56b
2025-03-27 16:43:27,232 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/382ee179-5536-4a7f-b413-00a0c782f56b
2025-03-27 16:43:27,242 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/7450d00d-7996-4c65-88e4-997373af301d
2025-03-27 16:43:27,251 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/7450d00d-7996-4c65-88e4-997373af301d
2025-03-27 16:43:27,258 - DEBUG - Requesting: http://10.0.0.49:8082/route-target/e8481a9c-1fd5-425e-9e7b-b7f76359be11
2025-03-27 16:43:27,263 - DEBUG - Route Targets: ['target:64512:8000004']
2025-03-27 16:43:27,264 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/382ee179-5536-4a7f-b413-00a0c782f56b
2025-03-27 16:43:27,272 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/7450d00d-7996-4c65-88e4-997373af301d
2025-03-27 16:43:27,285 - INFO - Verified VN network id 9 for VN 382ee179-5536-4a7f-b413-00a0c782f56b
2025-03-27 16:43:27,285 - INFO - Verifications in API Server for VN ctest-vn-65868622 passed
2025-03-27 16:43:27,285 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/382ee179-5536-4a7f-b413-00a0c782f56b
2025-03-27 16:43:27,295 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/7450d00d-7996-4c65-88e4-997373af301d
2025-03-27 16:43:27,302 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/7450d00d-7996-4c65-88e4-997373af301d
2025-03-27 16:43:27,308 - DEBUG - Requesting: http://10.0.0.49:8082/route-target/e8481a9c-1fd5-425e-9e7b-b7f76359be11
2025-03-27 16:43:27,319 - DEBUG - Control-node 10.0.0.49 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-07941733:ctest-vn-65868622', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-07941733', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '4048421026289568383', 'uuid-lslong': '12975715641926546795'}, 'enable': 'true', 'created': '2025-03-27T16:43:25', 'last-modified': '2025-03-27T16:43:26', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.942487'}
2025-03-27 16:43:27,325 - DEBUG - Route Targets: ['target:64512:8000004']
2025-03-27 16:43:27,325 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-65868622 passed
2025-03-27 16:43:27,325 - DEBUG - ====Verifying policy data for ctest-vn-65868622 in API_Server ======
2025-03-27 16:43:27,325 - DEBUG - Requesting: http://10.0.0.49:8082/domains
2025-03-27 16:43:27,330 - DEBUG - Requesting: http://10.0.0.49:8082/domain/5488e45e-0785-404b-890b-365ae4eb8a18
2025-03-27 16:43:27,341 - DEBUG - Requesting: http://10.0.0.49:8082/project/46f2c4e1-2fa3-4c4b-8ff4-e80a549c7127
2025-03-27 16:43:27,415 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/382ee179-5536-4a7f-b413-00a0c782f56b
2025-03-27 16:43:27,425 - DEBUG - ==>Verifying data for policy with id: 69132123-3077-4268-8c9f-0795f9830db9, fqn: ['default-domain', 'ctest-TestBasicPolicy-07941733', 'ctest-policy-allow-all-62562987']
2025-03-27 16:43:27,426 - INFO - VN ctest-vn-65868622 Policy verification: verify_vn_policy_in_api_server, status: True
2025-03-27 16:43:27,426 - DEBUG - Verifying the vn in opserver
2025-03-27 16:43:27,426 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-07941733:ctest-vn-65868622 virtual network link through opserver 10.0.0.49
2025-03-27 16:43:27,426 - DEBUG - Requesting: http://10.0.0.49:8081/analytics/uves/virtual-networks
2025-03-27 16:43:27,722 - DEBUG - Requesting: http://10.0.0.49:8081/analytics/uves/virtual-networks
2025-03-27 16:43:27,779 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-07941733:ctest-vn-65868622', 'href': 'http://10.0.0.49:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-07941733:ctest-vn-65868622?flat'}
2025-03-27 16:43:27,779 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-07941733:ctest-vn-65868622 is found in opserver
2025-03-27 16:43:27,792 - DEBUG - Do not have enough data to verify VN in agent
2025-03-27 16:43:27,797 - DEBUG - VRF ids for VN ctest-vn-65868622: {}
2025-03-27 16:43:27,797 - DEBUG - Requesting: http://10.0.0.49:8082/domains
2025-03-27 16:43:27,803 - DEBUG - Requesting: http://10.0.0.49:8082/domain/5488e45e-0785-404b-890b-365ae4eb8a18
2025-03-27 16:43:27,820 - DEBUG - Requesting: http://10.0.0.49:8082/project/46f2c4e1-2fa3-4c4b-8ff4-e80a549c7127
2025-03-27 16:43:27,894 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/ad71932d-ae26-408a-a442-f1e8ac6e3c61
2025-03-27 16:43:27,909 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/ad71932d-ae26-408a-a442-f1e8ac6e3c61
2025-03-27 16:43:27,920 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/aa59d796-1569-4926-be31-0707d0adbe1e
2025-03-27 16:43:27,927 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/aa59d796-1569-4926-be31-0707d0adbe1e
2025-03-27 16:43:27,935 - DEBUG - Requesting: http://10.0.0.49:8082/route-target/99128c4f-dbe3-4b7a-a16b-8ca1609cec59
2025-03-27 16:43:27,941 - DEBUG - Route Targets: ['target:64512:8000005']
2025-03-27 16:43:27,942 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/ad71932d-ae26-408a-a442-f1e8ac6e3c61
2025-03-27 16:43:27,951 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/aa59d796-1569-4926-be31-0707d0adbe1e
2025-03-27 16:43:27,965 - INFO - Verified VN network id 10 for VN ad71932d-ae26-408a-a442-f1e8ac6e3c61
2025-03-27 16:43:27,965 - INFO - Verifications in API Server for VN ctest-vn-43437967 passed
2025-03-27 16:43:27,965 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/ad71932d-ae26-408a-a442-f1e8ac6e3c61
2025-03-27 16:43:27,976 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/aa59d796-1569-4926-be31-0707d0adbe1e
2025-03-27 16:43:27,983 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/aa59d796-1569-4926-be31-0707d0adbe1e
2025-03-27 16:43:27,990 - DEBUG - Requesting: http://10.0.0.49:8082/route-target/99128c4f-dbe3-4b7a-a16b-8ca1609cec59
2025-03-27 16:43:28,002 - DEBUG - Control-node 10.0.0.49 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-07941733:ctest-vn-43437967', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-07941733', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12497932265334390922', 'uuid-lslong': '11836288752310697057'}, 'enable': 'true', 'created': '2025-03-27T16:43:25', 'last-modified': '2025-03-27T16:43:26', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.377037'}
2025-03-27 16:43:28,007 - DEBUG - Route Targets: ['target:64512:8000005']
2025-03-27 16:43:28,008 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-43437967 passed
2025-03-27 16:43:28,008 - DEBUG - ====Verifying policy data for ctest-vn-43437967 in API_Server ======
2025-03-27 16:43:28,008 - DEBUG - Requesting: http://10.0.0.49:8082/domains
2025-03-27 16:43:28,014 - DEBUG - Requesting: http://10.0.0.49:8082/domain/5488e45e-0785-404b-890b-365ae4eb8a18
2025-03-27 16:43:28,026 - DEBUG - Requesting: http://10.0.0.49:8082/project/46f2c4e1-2fa3-4c4b-8ff4-e80a549c7127
2025-03-27 16:43:28,101 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/ad71932d-ae26-408a-a442-f1e8ac6e3c61
2025-03-27 16:43:28,112 - DEBUG - ==>Verifying data for policy with id: 69132123-3077-4268-8c9f-0795f9830db9, fqn: ['default-domain', 'ctest-TestBasicPolicy-07941733', 'ctest-policy-allow-all-62562987']
2025-03-27 16:43:28,112 - INFO - VN ctest-vn-43437967 Policy verification: verify_vn_policy_in_api_server, status: True
2025-03-27 16:43:28,112 - DEBUG - Verifying the vn in opserver
2025-03-27 16:43:28,112 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-07941733:ctest-vn-43437967 virtual network link through opserver 10.0.0.49
2025-03-27 16:43:28,112 - DEBUG - Requesting: http://10.0.0.49:8081/analytics/uves/virtual-networks
2025-03-27 16:43:28,123 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-07941733:ctest-vn-43437967', 'href': 'http://10.0.0.49:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-07941733:ctest-vn-43437967?flat'}
2025-03-27 16:43:28,123 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-07941733:ctest-vn-43437967 is found in opserver
2025-03-27 16:43:28,134 - DEBUG - Do not have enough data to verify VN in agent
2025-03-27 16:43:28,138 - DEBUG - VRF ids for VN ctest-vn-43437967: {}
2025-03-27 16:43:28,194 - DEBUG - Services list from nova: [