2025-10-06 01:46:51,391 - INFO - Domain Default found not creating
2025-10-06 01:46:51,524 - INFO - Project ctest-TestBasicPolicy-92820665 not found, creating it
2025-10-06 01:46:51,946 - INFO - Created Project:ctest-TestBasicPolicy-92820665, ID : 89f9c756-d88c-4424-ade1-3b6fdee387be
2025-10-06 01:46:53,271 - INFO - ================================================================================
2025-10-06 01:46:53,271 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-10-06 01:46:53,271 - 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-10-06 01:46:53,522 - DEBUG - Nothing to compare xmpp stats {'10.0.0.130': {'10.20.0.14': '0'}} with
2025-10-06 01:46:53,522 - INFO - Initial checks done. Running the testcase now
2025-10-06 01:46:53,522 - INFO -
2025-10-06 01:46:54,032 - DEBUG - Response for create_network : {'network': {'id': '46b47d83-47d4-400b-b3d0-ec8b486a9bc4', 'name': 'ctest-vn-54405217', 'tenant_id': '89f9c756d88c4424ade13b6fdee387be', 'project_id': '89f9c756d88c4424ade13b6fdee387be', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-92820665', 'ctest-vn-54405217'], 'port_security_enabled': True, 'description': ''}}
2025-10-06 01:46:54,207 - DEBUG - Response for create_subnet : {'subnet': {'id': '43d22228-b416-4d43-b5e8-7b43fcdf4d3b', 'name': '', 'tenant_id': '89f9c756d88c4424ade13b6fdee387be', 'network_id': '46b47d83-47d4-400b-b3d0-ec8b486a9bc4', 'ip_version': 4, 'cidr': '86.240.69.192/26', 'allocation_pools': [{'start': '86.240.69.194', 'end': '86.240.69.254'}], 'gateway_ip': '86.240.69.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '86.240.69.194', 'tags': [], 'project_id': '89f9c756d88c4424ade13b6fdee387be'}}
2025-10-06 01:46:54,228 - INFO - Created VN ctest-vn-54405217
2025-10-06 01:46:54,282 - DEBUG - VN ctest-vn-54405217 UUID is 46b47d83-47d4-400b-b3d0-ec8b486a9bc4
2025-10-06 01:46:54,579 - DEBUG - Response for create_network : {'network': {'id': 'c88e041a-6d87-461b-ba19-aa1dd1c4b630', 'name': 'ctest-vn-22673199', 'tenant_id': '89f9c756d88c4424ade13b6fdee387be', 'project_id': '89f9c756d88c4424ade13b6fdee387be', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-92820665', 'ctest-vn-22673199'], 'port_security_enabled': True, 'description': ''}}
2025-10-06 01:46:54,795 - DEBUG - Response for create_subnet : {'subnet': {'id': '618e30df-821b-451d-a06e-8cabc98a57ea', 'name': '', 'tenant_id': '89f9c756d88c4424ade13b6fdee387be', 'network_id': 'c88e041a-6d87-461b-ba19-aa1dd1c4b630', 'ip_version': 4, 'cidr': '192.9.157.64/26', 'allocation_pools': [{'start': '192.9.157.66', 'end': '192.9.157.126'}], 'gateway_ip': '192.9.157.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '192.9.157.66', 'tags': [], 'project_id': '89f9c756d88c4424ade13b6fdee387be'}}
2025-10-06 01:46:54,809 - INFO - Created VN ctest-vn-22673199
2025-10-06 01:46:54,858 - DEBUG - VN ctest-vn-22673199 UUID is c88e041a-6d87-461b-ba19-aa1dd1c4b630
2025-10-06 01:46:54,998 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-92820665:ctest-vn-54405217, 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-92820665:ctest-vn-22673199, 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-10-06 01:46:55,276 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '46b47d83-47d4-400b-b3d0-ec8b486a9bc4', 'name': 'ctest-vn-54405217', 'tenant_id': '89f9c756d88c4424ade13b6fdee387be', 'project_id': '89f9c756d88c4424ade13b6fdee387be', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['43d22228-b416-4d43-b5e8-7b43fcdf4d3b'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-92820665', 'ctest-vn-54405217'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-92820665', 'ctest-policy-allow-all-98002482']], 'subnet_ipam': [{'subnet_cidr': '86.240.69.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-06 01:46:55,483 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'c88e041a-6d87-461b-ba19-aa1dd1c4b630', 'name': 'ctest-vn-22673199', 'tenant_id': '89f9c756d88c4424ade13b6fdee387be', 'project_id': '89f9c756d88c4424ade13b6fdee387be', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['618e30df-821b-451d-a06e-8cabc98a57ea'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-92820665', 'ctest-vn-22673199'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-92820665', 'ctest-policy-allow-all-98002482']], 'subnet_ipam': [{'subnet_cidr': '192.9.157.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-06 01:46:55,634 - DEBUG - Requesting: http://10.0.0.130:8082/domains
2025-10-06 01:46:55,923 - DEBUG - Requesting: http://10.0.0.130:8082/domains
2025-10-06 01:46:55,948 - DEBUG - Requesting: http://10.0.0.130:8082/domain/fbcd0d6b-1b30-465c-a9a4-10e5a1179752
2025-10-06 01:46:55,957 - DEBUG - Requesting: http://10.0.0.130:8082/project/89f9c756-d88c-4424-ade1-3b6fdee387be
2025-10-06 01:46:56,027 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/46b47d83-47d4-400b-b3d0-ec8b486a9bc4
2025-10-06 01:46:56,036 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/46b47d83-47d4-400b-b3d0-ec8b486a9bc4
2025-10-06 01:46:56,043 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/63e8b9b1-24b1-4455-b5e8-caa7c0552cff
2025-10-06 01:46:56,048 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/63e8b9b1-24b1-4455-b5e8-caa7c0552cff
2025-10-06 01:46:56,053 - DEBUG - Requesting: http://10.0.0.130:8082/route-target/bcbffa28-2a67-4543-aeb5-2b2181bfc978
2025-10-06 01:46:56,057 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-06 01:46:56,057 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/46b47d83-47d4-400b-b3d0-ec8b486a9bc4
2025-10-06 01:46:56,064 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/63e8b9b1-24b1-4455-b5e8-caa7c0552cff
2025-10-06 01:46:56,074 - INFO - Verified VN network id 12 for VN 46b47d83-47d4-400b-b3d0-ec8b486a9bc4
2025-10-06 01:46:56,074 - INFO - Verifications in API Server for VN ctest-vn-54405217 passed
2025-10-06 01:46:56,074 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/46b47d83-47d4-400b-b3d0-ec8b486a9bc4
2025-10-06 01:46:56,081 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/63e8b9b1-24b1-4455-b5e8-caa7c0552cff
2025-10-06 01:46:56,085 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/63e8b9b1-24b1-4455-b5e8-caa7c0552cff
2025-10-06 01:46:56,090 - DEBUG - Requesting: http://10.0.0.130:8082/route-target/bcbffa28-2a67-4543-aeb5-2b2181bfc978
2025-10-06 01:46:56,098 - DEBUG - Control-node 10.0.0.130 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-92820665:ctest-vn-54405217', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-92820665', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5094835081262153739', 'uuid-lslong': '12957116210904472516'}, 'enable': 'true', 'created': '2025-10-06T01:46:54', 'last-modified': '2025-10-06T01:46:55', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.840134'}
2025-10-06 01:46:56,103 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-06 01:46:56,103 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-54405217 passed
2025-10-06 01:46:56,103 - DEBUG - ====Verifying policy data for ctest-vn-54405217 in API_Server ======
2025-10-06 01:46:56,103 - DEBUG - Requesting: http://10.0.0.130:8082/domains
2025-10-06 01:46:56,107 - DEBUG - Requesting: http://10.0.0.130:8082/domain/fbcd0d6b-1b30-465c-a9a4-10e5a1179752
2025-10-06 01:46:56,115 - DEBUG - Requesting: http://10.0.0.130:8082/project/89f9c756-d88c-4424-ade1-3b6fdee387be
2025-10-06 01:46:56,181 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/46b47d83-47d4-400b-b3d0-ec8b486a9bc4
2025-10-06 01:46:56,188 - DEBUG - ==>Verifying data for policy with id: d254762a-6ce3-4e28-b4fe-26e468245df8, fqn: ['default-domain', 'ctest-TestBasicPolicy-92820665', 'ctest-policy-allow-all-98002482']
2025-10-06 01:46:56,189 - INFO - VN ctest-vn-54405217 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-06 01:46:56,189 - DEBUG - Verifying the vn in opserver
2025-10-06 01:46:56,189 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-92820665:ctest-vn-54405217 virtual network link through opserver 10.0.0.130
2025-10-06 01:46:56,189 - DEBUG - Requesting: http://10.0.0.130:8081/analytics/uves/virtual-networks
2025-10-06 01:46:56,475 - DEBUG - Requesting: http://10.0.0.130:8081/analytics/uves/virtual-networks
2025-10-06 01:46:56,526 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-92820665:ctest-vn-54405217', 'href': 'http://10.0.0.130:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-92820665:ctest-vn-54405217?flat'}
2025-10-06 01:46:56,526 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-92820665:ctest-vn-54405217 is found in opserver
2025-10-06 01:46:56,535 - DEBUG - Do not have enough data to verify VN in agent
2025-10-06 01:46:56,539 - DEBUG - VRF ids for VN ctest-vn-54405217: {}
2025-10-06 01:46:56,539 - DEBUG - Requesting: http://10.0.0.130:8082/domains
2025-10-06 01:46:56,543 - DEBUG - Requesting: http://10.0.0.130:8082/domain/fbcd0d6b-1b30-465c-a9a4-10e5a1179752
2025-10-06 01:46:56,553 - DEBUG - Requesting: http://10.0.0.130:8082/project/89f9c756-d88c-4424-ade1-3b6fdee387be
2025-10-06 01:46:56,621 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/c88e041a-6d87-461b-ba19-aa1dd1c4b630
2025-10-06 01:46:56,630 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/c88e041a-6d87-461b-ba19-aa1dd1c4b630
2025-10-06 01:46:56,637 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/74ca9b44-271d-475e-8a87-da5084178e08
2025-10-06 01:46:56,643 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/74ca9b44-271d-475e-8a87-da5084178e08
2025-10-06 01:46:56,648 - DEBUG - Requesting: http://10.0.0.130:8082/route-target/6268ed70-ece9-4468-b4d6-fee684a32314
2025-10-06 01:46:56,653 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-06 01:46:56,653 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/c88e041a-6d87-461b-ba19-aa1dd1c4b630
2025-10-06 01:46:56,660 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/74ca9b44-271d-475e-8a87-da5084178e08
2025-10-06 01:46:56,670 - INFO - Verified VN network id 13 for VN c88e041a-6d87-461b-ba19-aa1dd1c4b630
2025-10-06 01:46:56,670 - INFO - Verifications in API Server for VN ctest-vn-22673199 passed
2025-10-06 01:46:56,670 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/c88e041a-6d87-461b-ba19-aa1dd1c4b630
2025-10-06 01:46:56,677 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/74ca9b44-271d-475e-8a87-da5084178e08
2025-10-06 01:46:56,682 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/74ca9b44-271d-475e-8a87-da5084178e08
2025-10-06 01:46:56,686 - DEBUG - Requesting: http://10.0.0.130:8082/route-target/6268ed70-ece9-4468-b4d6-fee684a32314
2025-10-06 01:46:56,695 - DEBUG - Control-node 10.0.0.130 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-92820665:ctest-vn-22673199', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-92820665', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '14451492765831743003', 'uuid-lslong': '13409936410522465840'}, 'enable': 'true', 'created': '2025-10-06T01:46:54', 'last-modified': '2025-10-06T01:46:55', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.228928'}
2025-10-06 01:46:56,699 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-06 01:46:56,699 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-22673199 passed
2025-10-06 01:46:56,699 - DEBUG - ====Verifying policy data for ctest-vn-22673199 in API_Server ======
2025-10-06 01:46:56,699 - DEBUG - Requesting: http://10.0.0.130:8082/domains
2025-10-06 01:46:56,703 - DEBUG - Requesting: http://10.0.0.130:8082/domain/fbcd0d6b-1b30-465c-a9a4-10e5a1179752
2025-10-06 01:46:56,711 - DEBUG - Requesting: http://10.0.0.130:8082/project/89f9c756-d88c-4424-ade1-3b6fdee387be
2025-10-06 01:46:56,776 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/c88e041a-6d87-461b-ba19-aa1dd1c4b630
2025-10-06 01:46:56,784 - DEBUG - ==>Verifying data for policy with id: d254762a-6ce3-4e28-b4fe-26e468245df8, fqn: ['default-domain', 'ctest-TestBasicPolicy-92820665', 'ctest-policy-allow-all-98002482']
2025-10-06 01:46:56,784 - INFO - VN ctest-vn-22673199 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-06 01:46:56,784 - DEBUG - Verifying the vn in opserver
2025-10-06 01:46:56,784 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-92820665:ctest-vn-22673199 virtual network link through opserver 10.0.0.130
2025-10-06 01:46:56,784 - DEBUG - Requesting: http://10.0.0.130:8081/analytics/uves/virtual-networks
2025-10-06 01:46:56,792 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-92820665:ctest-vn-22673199', 'href': 'http://10.0.0.130:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-92820665:ctest-vn-22673199?flat'}
2025-10-06 01:46:56,792 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-92820665:ctest-vn-22673199 is found in opserver
2025-10-06 01:46:56,801 - DEBUG - Do not have enough data to verify VN in agent
2025-10-06 01:46:56,806 - DEBUG - VRF ids for VN ctest-vn-22673199: {}
2025-10-06 01:46:56,855 - DEBUG - Services list from nova: [