2025-06-03 16:47:32,797 - INFO - Domain Default found not creating
2025-06-03 16:47:32,950 - INFO - Project ctest-TestBasicPolicy-34328387 not found, creating it
2025-06-03 16:47:33,413 - INFO - Created Project:ctest-TestBasicPolicy-34328387, ID : a6e74b7d-d191-4dd1-a54b-e390cc94233c
2025-06-03 16:47:35,035 - INFO - ================================================================================
2025-06-03 16:47:35,035 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-06-03 16:47:35,035 - 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-03 16:47:35,294 - DEBUG - Nothing to compare xmpp stats {'10.0.0.129': {'10.20.0.17': '0'}} with
2025-06-03 16:47:35,294 - INFO - Initial checks done. Running the testcase now
2025-06-03 16:47:35,294 - INFO -
2025-06-03 16:47:35,891 - DEBUG - Response for create_network : {'network': {'id': '5b6bac3e-d2a2-4683-aacd-938c26aba7cb', 'name': 'ctest-vn-64783691', 'tenant_id': 'a6e74b7dd1914dd1a54be390cc94233c', 'project_id': 'a6e74b7dd1914dd1a54be390cc94233c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-34328387', 'ctest-vn-64783691'], 'port_security_enabled': True, 'description': ''}}
2025-06-03 16:47:36,100 - DEBUG - Response for create_subnet : {'subnet': {'id': '296b9f1f-16a7-4262-835c-f52baa36f06d', 'name': '', 'tenant_id': 'a6e74b7dd1914dd1a54be390cc94233c', 'network_id': '5b6bac3e-d2a2-4683-aacd-938c26aba7cb', 'ip_version': 4, 'cidr': '211.54.51.64/26', 'allocation_pools': [{'start': '211.54.51.66', 'end': '211.54.51.126'}], 'gateway_ip': '211.54.51.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '211.54.51.66', 'tags': [], 'project_id': 'a6e74b7dd1914dd1a54be390cc94233c'}}
2025-06-03 16:47:36,120 - INFO - Created VN ctest-vn-64783691
2025-06-03 16:47:36,176 - DEBUG - VN ctest-vn-64783691 UUID is 5b6bac3e-d2a2-4683-aacd-938c26aba7cb
2025-06-03 16:47:36,525 - DEBUG - Response for create_network : {'network': {'id': '144f0b45-0f6d-40b6-8001-a0da2eac21e7', 'name': 'ctest-vn-71048730', 'tenant_id': 'a6e74b7dd1914dd1a54be390cc94233c', 'project_id': 'a6e74b7dd1914dd1a54be390cc94233c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-34328387', 'ctest-vn-71048730'], 'port_security_enabled': True, 'description': ''}}
2025-06-03 16:47:36,712 - DEBUG - Response for create_subnet : {'subnet': {'id': '7fce0449-6b90-41a1-b410-ae9b9defd45c', 'name': '', 'tenant_id': 'a6e74b7dd1914dd1a54be390cc94233c', 'network_id': '144f0b45-0f6d-40b6-8001-a0da2eac21e7', 'ip_version': 4, 'cidr': '41.87.113.64/26', 'allocation_pools': [{'start': '41.87.113.66', 'end': '41.87.113.126'}], 'gateway_ip': '41.87.113.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '41.87.113.66', 'tags': [], 'project_id': 'a6e74b7dd1914dd1a54be390cc94233c'}}
2025-06-03 16:47:36,730 - INFO - Created VN ctest-vn-71048730
2025-06-03 16:47:36,783 - DEBUG - VN ctest-vn-71048730 UUID is 144f0b45-0f6d-40b6-8001-a0da2eac21e7
2025-06-03 16:47:36,894 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-34328387:ctest-vn-64783691, 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-34328387:ctest-vn-71048730, 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-03 16:47:37,217 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '5b6bac3e-d2a2-4683-aacd-938c26aba7cb', 'name': 'ctest-vn-64783691', 'tenant_id': 'a6e74b7dd1914dd1a54be390cc94233c', 'project_id': 'a6e74b7dd1914dd1a54be390cc94233c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['296b9f1f-16a7-4262-835c-f52baa36f06d'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-34328387', 'ctest-vn-64783691'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-34328387', 'ctest-policy-allow-all-11987885']], 'subnet_ipam': [{'subnet_cidr': '211.54.51.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-06-03 16:47:37,512 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '144f0b45-0f6d-40b6-8001-a0da2eac21e7', 'name': 'ctest-vn-71048730', 'tenant_id': 'a6e74b7dd1914dd1a54be390cc94233c', 'project_id': 'a6e74b7dd1914dd1a54be390cc94233c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['7fce0449-6b90-41a1-b410-ae9b9defd45c'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-34328387', 'ctest-vn-71048730'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-34328387', 'ctest-policy-allow-all-11987885']], 'subnet_ipam': [{'subnet_cidr': '41.87.113.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-06-03 16:47:37,667 - DEBUG - Requesting: http://10.0.0.129:8082/domains
2025-06-03 16:47:38,012 - DEBUG - Requesting: http://10.0.0.129:8082/domains
2025-06-03 16:47:38,043 - DEBUG - Requesting: http://10.0.0.129:8082/domain/42d00dd3-ce1d-4033-83e4-26cc53c4e460
2025-06-03 16:47:38,059 - DEBUG - Requesting: http://10.0.0.129:8082/project/a6e74b7d-d191-4dd1-a54b-e390cc94233c
2025-06-03 16:47:38,140 - DEBUG - Requesting: http://10.0.0.129:8082/virtual-network/5b6bac3e-d2a2-4683-aacd-938c26aba7cb
2025-06-03 16:47:38,156 - DEBUG - Requesting: http://10.0.0.129:8082/virtual-network/5b6bac3e-d2a2-4683-aacd-938c26aba7cb
2025-06-03 16:47:38,167 - DEBUG - Requesting: http://10.0.0.129:8082/routing-instance/3fc7664c-88b4-4552-a13a-fcf92fd9ace7
2025-06-03 16:47:38,175 - DEBUG - Requesting: http://10.0.0.129:8082/routing-instance/3fc7664c-88b4-4552-a13a-fcf92fd9ace7
2025-06-03 16:47:38,183 - DEBUG - Requesting: http://10.0.0.129:8082/route-target/3322e3ba-6ba0-4cba-8227-8920cd6093d9
2025-06-03 16:47:38,190 - DEBUG - Route Targets: ['target:64512:8000005']
2025-06-03 16:47:38,190 - DEBUG - Requesting: http://10.0.0.129:8082/virtual-network/5b6bac3e-d2a2-4683-aacd-938c26aba7cb
2025-06-03 16:47:38,200 - DEBUG - Requesting: http://10.0.0.129:8082/routing-instance/3fc7664c-88b4-4552-a13a-fcf92fd9ace7
2025-06-03 16:47:38,214 - INFO - Verified VN network id 8 for VN 5b6bac3e-d2a2-4683-aacd-938c26aba7cb
2025-06-03 16:47:38,215 - INFO - Verifications in API Server for VN ctest-vn-64783691 passed
2025-06-03 16:47:38,215 - DEBUG - Requesting: http://10.0.0.129:8082/virtual-network/5b6bac3e-d2a2-4683-aacd-938c26aba7cb
2025-06-03 16:47:38,224 - DEBUG - Requesting: http://10.0.0.129:8082/routing-instance/3fc7664c-88b4-4552-a13a-fcf92fd9ace7
2025-06-03 16:47:38,232 - DEBUG - Requesting: http://10.0.0.129:8082/routing-instance/3fc7664c-88b4-4552-a13a-fcf92fd9ace7
2025-06-03 16:47:38,239 - DEBUG - Requesting: http://10.0.0.129:8082/route-target/3322e3ba-6ba0-4cba-8227-8920cd6093d9
2025-06-03 16:47:38,251 - DEBUG - Control-node 10.0.0.129 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-34328387:ctest-vn-64783691', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-34328387', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6587548265781282435', 'uuid-lslong': '12307655586826921931'}, 'enable': 'true', 'created': '2025-06-03T16:47:35', 'last-modified': '2025-06-03T16:47:37', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.071883'}
2025-06-03 16:47:38,260 - DEBUG - Route Targets: ['target:64512:8000005']
2025-06-03 16:47:38,260 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-64783691 passed
2025-06-03 16:47:38,260 - DEBUG - ====Verifying policy data for ctest-vn-64783691 in API_Server ======
2025-06-03 16:47:38,260 - DEBUG - Requesting: http://10.0.0.129:8082/domains
2025-06-03 16:47:38,266 - DEBUG - Requesting: http://10.0.0.129:8082/domain/42d00dd3-ce1d-4033-83e4-26cc53c4e460
2025-06-03 16:47:38,279 - DEBUG - Requesting: http://10.0.0.129:8082/project/a6e74b7d-d191-4dd1-a54b-e390cc94233c
2025-06-03 16:47:38,358 - DEBUG - Requesting: http://10.0.0.129:8082/virtual-network/5b6bac3e-d2a2-4683-aacd-938c26aba7cb
2025-06-03 16:47:38,368 - DEBUG - ==>Verifying data for policy with id: 88feec57-bdad-446b-ae64-949b06721b48, fqn: ['default-domain', 'ctest-TestBasicPolicy-34328387', 'ctest-policy-allow-all-11987885']
2025-06-03 16:47:38,368 - INFO - VN ctest-vn-64783691 Policy verification: verify_vn_policy_in_api_server, status: True
2025-06-03 16:47:38,369 - DEBUG - Verifying the vn in opserver
2025-06-03 16:47:38,369 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-34328387:ctest-vn-64783691 virtual network link through opserver 10.0.0.129
2025-06-03 16:47:38,369 - DEBUG - Requesting: http://10.0.0.129:8081/analytics/uves/virtual-networks
2025-06-03 16:47:38,706 - DEBUG - Requesting: http://10.0.0.129:8081/analytics/uves/virtual-networks
2025-06-03 16:47:38,764 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-34328387:ctest-vn-64783691', 'href': 'http://10.0.0.129:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-34328387:ctest-vn-64783691?flat'}
2025-06-03 16:47:38,764 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-34328387:ctest-vn-64783691 is found in opserver
2025-06-03 16:47:38,776 - DEBUG - Do not have enough data to verify VN in agent
2025-06-03 16:47:38,782 - DEBUG - VRF ids for VN ctest-vn-64783691: {}
2025-06-03 16:47:38,782 - DEBUG - Requesting: http://10.0.0.129:8082/domains
2025-06-03 16:47:38,788 - DEBUG - Requesting: http://10.0.0.129:8082/domain/42d00dd3-ce1d-4033-83e4-26cc53c4e460
2025-06-03 16:47:38,801 - DEBUG - Requesting: http://10.0.0.129:8082/project/a6e74b7d-d191-4dd1-a54b-e390cc94233c
2025-06-03 16:47:38,877 - DEBUG - Requesting: http://10.0.0.129:8082/virtual-network/144f0b45-0f6d-40b6-8001-a0da2eac21e7
2025-06-03 16:47:38,891 - DEBUG - Requesting: http://10.0.0.129:8082/virtual-network/144f0b45-0f6d-40b6-8001-a0da2eac21e7
2025-06-03 16:47:38,903 - DEBUG - Requesting: http://10.0.0.129:8082/routing-instance/e8ad0728-fbeb-49b6-9c10-e4d520e5aa68
2025-06-03 16:47:38,911 - DEBUG - Requesting: http://10.0.0.129:8082/routing-instance/e8ad0728-fbeb-49b6-9c10-e4d520e5aa68
2025-06-03 16:47:38,918 - DEBUG - Requesting: http://10.0.0.129:8082/route-target/12f0f304-fee8-47cf-852b-c2455c15b70c
2025-06-03 16:47:38,925 - DEBUG - Route Targets: ['target:64512:8000006']
2025-06-03 16:47:38,925 - DEBUG - Requesting: http://10.0.0.129:8082/virtual-network/144f0b45-0f6d-40b6-8001-a0da2eac21e7
2025-06-03 16:47:38,935 - DEBUG - Requesting: http://10.0.0.129:8082/routing-instance/e8ad0728-fbeb-49b6-9c10-e4d520e5aa68
2025-06-03 16:47:38,950 - INFO - Verified VN network id 9 for VN 144f0b45-0f6d-40b6-8001-a0da2eac21e7
2025-06-03 16:47:38,950 - INFO - Verifications in API Server for VN ctest-vn-71048730 passed
2025-06-03 16:47:38,951 - DEBUG - Requesting: http://10.0.0.129:8082/virtual-network/144f0b45-0f6d-40b6-8001-a0da2eac21e7
2025-06-03 16:47:38,963 - DEBUG - Requesting: http://10.0.0.129:8082/routing-instance/e8ad0728-fbeb-49b6-9c10-e4d520e5aa68
2025-06-03 16:47:38,972 - DEBUG - Requesting: http://10.0.0.129:8082/routing-instance/e8ad0728-fbeb-49b6-9c10-e4d520e5aa68
2025-06-03 16:47:38,982 - DEBUG - Requesting: http://10.0.0.129:8082/route-target/12f0f304-fee8-47cf-852b-c2455c15b70c
2025-06-03 16:47:39,008 - DEBUG - Control-node 10.0.0.129 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-34328387:ctest-vn-71048730', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-34328387', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1463400795158167734', 'uuid-lslong': '9223830370777833959'}, 'enable': 'true', 'created': '2025-06-03T16:47:36', 'last-modified': '2025-06-03T16:47:37', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.561531'}
2025-06-03 16:47:39,018 - DEBUG - Route Targets: ['target:64512:8000006']
2025-06-03 16:47:39,019 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-71048730 passed
2025-06-03 16:47:39,019 - DEBUG - ====Verifying policy data for ctest-vn-71048730 in API_Server ======
2025-06-03 16:47:39,019 - DEBUG - Requesting: http://10.0.0.129:8082/domains
2025-06-03 16:47:39,027 - DEBUG - Requesting: http://10.0.0.129:8082/domain/42d00dd3-ce1d-4033-83e4-26cc53c4e460
2025-06-03 16:47:39,042 - DEBUG - Requesting: http://10.0.0.129:8082/project/a6e74b7d-d191-4dd1-a54b-e390cc94233c
2025-06-03 16:47:39,122 - DEBUG - Requesting: http://10.0.0.129:8082/virtual-network/144f0b45-0f6d-40b6-8001-a0da2eac21e7
2025-06-03 16:47:39,133 - DEBUG - ==>Verifying data for policy with id: 88feec57-bdad-446b-ae64-949b06721b48, fqn: ['default-domain', 'ctest-TestBasicPolicy-34328387', 'ctest-policy-allow-all-11987885']
2025-06-03 16:47:39,133 - INFO - VN ctest-vn-71048730 Policy verification: verify_vn_policy_in_api_server, status: True
2025-06-03 16:47:39,133 - DEBUG - Verifying the vn in opserver
2025-06-03 16:47:39,133 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-34328387:ctest-vn-71048730 virtual network link through opserver 10.0.0.129
2025-06-03 16:47:39,133 - DEBUG - Requesting: http://10.0.0.129:8081/analytics/uves/virtual-networks
2025-06-03 16:47:39,145 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-34328387:ctest-vn-71048730', 'href': 'http://10.0.0.129:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-34328387:ctest-vn-71048730?flat'}
2025-06-03 16:47:39,145 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-34328387:ctest-vn-71048730 is found in opserver
2025-06-03 16:47:39,157 - DEBUG - Do not have enough data to verify VN in agent
2025-06-03 16:47:39,163 - DEBUG - VRF ids for VN ctest-vn-71048730: {}
2025-06-03 16:47:39,220 - DEBUG - Services list from nova: [