2025-07-03 02:19:27,925 - INFO - Domain Default found not creating
2025-07-03 02:19:28,074 - INFO - Project ctest-TestBasicPolicy-41223232 not found, creating it
2025-07-03 02:19:28,574 - INFO - Created Project:ctest-TestBasicPolicy-41223232, ID : fdc10aa6-96a1-41af-87dc-b9f6bcd866d5
2025-07-03 02:19:30,038 - INFO - ================================================================================
2025-07-03 02:19:30,039 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-07-03 02:19:30,039 - 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-07-03 02:19:30,299 - DEBUG - Nothing to compare xmpp stats {'10.0.0.249': {'10.20.0.254': '0'}} with
2025-07-03 02:19:30,300 - INFO - Initial checks done. Running the testcase now
2025-07-03 02:19:30,300 - INFO -
2025-07-03 02:19:30,895 - DEBUG - Response for create_network : {'network': {'id': '2fb81d49-2709-4621-b6e3-9838dac4b157', 'name': 'ctest-vn-46695974', 'tenant_id': 'fdc10aa696a141af87dcb9f6bcd866d5', 'project_id': 'fdc10aa696a141af87dcb9f6bcd866d5', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-41223232', 'ctest-vn-46695974'], 'port_security_enabled': True, 'description': ''}}
2025-07-03 02:19:31,110 - DEBUG - Response for create_subnet : {'subnet': {'id': '25a01ad3-e1d9-4e62-ae17-00e649d9a274', 'name': '', 'tenant_id': 'fdc10aa696a141af87dcb9f6bcd866d5', 'network_id': '2fb81d49-2709-4621-b6e3-9838dac4b157', 'ip_version': 4, 'cidr': '40.143.240.192/26', 'allocation_pools': [{'start': '40.143.240.194', 'end': '40.143.240.254'}], 'gateway_ip': '40.143.240.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '40.143.240.194', 'tags': [], 'project_id': 'fdc10aa696a141af87dcb9f6bcd866d5'}}
2025-07-03 02:19:31,131 - INFO - Created VN ctest-vn-46695974
2025-07-03 02:19:31,185 - DEBUG - VN ctest-vn-46695974 UUID is 2fb81d49-2709-4621-b6e3-9838dac4b157
2025-07-03 02:19:31,521 - DEBUG - Response for create_network : {'network': {'id': 'fdb02774-b242-4686-af12-ecbed75f13b2', 'name': 'ctest-vn-94929294', 'tenant_id': 'fdc10aa696a141af87dcb9f6bcd866d5', 'project_id': 'fdc10aa696a141af87dcb9f6bcd866d5', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-41223232', 'ctest-vn-94929294'], 'port_security_enabled': True, 'description': ''}}
2025-07-03 02:19:31,683 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b1cb0b88-5644-4364-820a-f093269ba3b7', 'name': '', 'tenant_id': 'fdc10aa696a141af87dcb9f6bcd866d5', 'network_id': 'fdb02774-b242-4686-af12-ecbed75f13b2', 'ip_version': 4, 'cidr': '48.49.189.192/26', 'allocation_pools': [{'start': '48.49.189.194', 'end': '48.49.189.254'}], 'gateway_ip': '48.49.189.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '48.49.189.194', 'tags': [], 'project_id': 'fdc10aa696a141af87dcb9f6bcd866d5'}}
2025-07-03 02:19:31,706 - INFO - Created VN ctest-vn-94929294
2025-07-03 02:19:31,760 - DEBUG - VN ctest-vn-94929294 UUID is fdb02774-b242-4686-af12-ecbed75f13b2
2025-07-03 02:19:31,871 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-41223232:ctest-vn-46695974, 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-41223232:ctest-vn-94929294, 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-07-03 02:19:32,182 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '2fb81d49-2709-4621-b6e3-9838dac4b157', 'name': 'ctest-vn-46695974', 'tenant_id': 'fdc10aa696a141af87dcb9f6bcd866d5', 'project_id': 'fdc10aa696a141af87dcb9f6bcd866d5', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['25a01ad3-e1d9-4e62-ae17-00e649d9a274'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-41223232', 'ctest-vn-46695974'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-41223232', 'ctest-policy-allow-all-79742424']], 'subnet_ipam': [{'subnet_cidr': '40.143.240.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-07-03 02:19:32,417 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'fdb02774-b242-4686-af12-ecbed75f13b2', 'name': 'ctest-vn-94929294', 'tenant_id': 'fdc10aa696a141af87dcb9f6bcd866d5', 'project_id': 'fdc10aa696a141af87dcb9f6bcd866d5', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['b1cb0b88-5644-4364-820a-f093269ba3b7'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-41223232', 'ctest-vn-94929294'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-41223232', 'ctest-policy-allow-all-79742424']], 'subnet_ipam': [{'subnet_cidr': '48.49.189.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-07-03 02:19:32,592 - DEBUG - Requesting: http://10.0.0.249:8082/domains
2025-07-03 02:19:32,890 - DEBUG - Requesting: http://10.0.0.249:8082/domains
2025-07-03 02:19:32,919 - DEBUG - Requesting: http://10.0.0.249:8082/domain/27f56240-2fc3-4d0b-8612-cd03a49956ca
2025-07-03 02:19:32,932 - DEBUG - Requesting: http://10.0.0.249:8082/project/fdc10aa6-96a1-41af-87dc-b9f6bcd866d5
2025-07-03 02:19:33,003 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/2fb81d49-2709-4621-b6e3-9838dac4b157
2025-07-03 02:19:33,015 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/2fb81d49-2709-4621-b6e3-9838dac4b157
2025-07-03 02:19:33,024 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/72b0b97a-ffb4-4b4c-a8d6-b560f2f94b25
2025-07-03 02:19:33,032 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/72b0b97a-ffb4-4b4c-a8d6-b560f2f94b25
2025-07-03 02:19:33,038 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/543d5f69-f007-4f9d-931c-e0a06d26d152
2025-07-03 02:19:33,045 - DEBUG - Route Targets: ['target:64512:8000005']
2025-07-03 02:19:33,045 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/2fb81d49-2709-4621-b6e3-9838dac4b157
2025-07-03 02:19:33,054 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/72b0b97a-ffb4-4b4c-a8d6-b560f2f94b25
2025-07-03 02:19:33,069 - INFO - Verified VN network id 8 for VN 2fb81d49-2709-4621-b6e3-9838dac4b157
2025-07-03 02:19:33,070 - INFO - Verifications in API Server for VN ctest-vn-46695974 passed
2025-07-03 02:19:33,070 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/2fb81d49-2709-4621-b6e3-9838dac4b157
2025-07-03 02:19:33,080 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/72b0b97a-ffb4-4b4c-a8d6-b560f2f94b25
2025-07-03 02:19:33,087 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/72b0b97a-ffb4-4b4c-a8d6-b560f2f94b25
2025-07-03 02:19:33,095 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/543d5f69-f007-4f9d-931c-e0a06d26d152
2025-07-03 02:19:33,110 - DEBUG - Control-node 10.0.0.249 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-41223232:ctest-vn-46695974', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-41223232', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3438530515522111009', 'uuid-lslong': '13178544304572117335'}, 'enable': 'true', 'created': '2025-07-03T02:19:30', 'last-modified': '2025-07-03T02:19:32', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.947247'}
2025-07-03 02:19:33,117 - DEBUG - Route Targets: ['target:64512:8000005']
2025-07-03 02:19:33,117 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-46695974 passed
2025-07-03 02:19:33,118 - DEBUG - ====Verifying policy data for ctest-vn-46695974 in API_Server ======
2025-07-03 02:19:33,118 - DEBUG - Requesting: http://10.0.0.249:8082/domains
2025-07-03 02:19:33,124 - DEBUG - Requesting: http://10.0.0.249:8082/domain/27f56240-2fc3-4d0b-8612-cd03a49956ca
2025-07-03 02:19:33,140 - DEBUG - Requesting: http://10.0.0.249:8082/project/fdc10aa6-96a1-41af-87dc-b9f6bcd866d5
2025-07-03 02:19:33,208 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/2fb81d49-2709-4621-b6e3-9838dac4b157
2025-07-03 02:19:33,218 - DEBUG - ==>Verifying data for policy with id: f9940c94-f95b-45a8-bca1-bc29a0fc8149, fqn: ['default-domain', 'ctest-TestBasicPolicy-41223232', 'ctest-policy-allow-all-79742424']
2025-07-03 02:19:33,219 - INFO - VN ctest-vn-46695974 Policy verification: verify_vn_policy_in_api_server, status: True
2025-07-03 02:19:33,219 - DEBUG - Verifying the vn in opserver
2025-07-03 02:19:33,219 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-41223232:ctest-vn-46695974 virtual network link through opserver 10.0.0.249
2025-07-03 02:19:33,219 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks
2025-07-03 02:19:33,507 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks
2025-07-03 02:19:33,563 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-41223232:ctest-vn-46695974', 'href': 'http://10.0.0.249:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-41223232:ctest-vn-46695974?flat'}
2025-07-03 02:19:33,563 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-41223232:ctest-vn-46695974 is found in opserver
2025-07-03 02:19:33,574 - DEBUG - Do not have enough data to verify VN in agent
2025-07-03 02:19:33,580 - DEBUG - VRF ids for VN ctest-vn-46695974: {}
2025-07-03 02:19:33,580 - DEBUG - Requesting: http://10.0.0.249:8082/domains
2025-07-03 02:19:33,585 - DEBUG - Requesting: http://10.0.0.249:8082/domain/27f56240-2fc3-4d0b-8612-cd03a49956ca
2025-07-03 02:19:33,599 - DEBUG - Requesting: http://10.0.0.249:8082/project/fdc10aa6-96a1-41af-87dc-b9f6bcd866d5
2025-07-03 02:19:33,669 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/fdb02774-b242-4686-af12-ecbed75f13b2
2025-07-03 02:19:33,681 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/fdb02774-b242-4686-af12-ecbed75f13b2
2025-07-03 02:19:33,690 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/badab921-8c41-46d4-8a32-33e44d3fa25b
2025-07-03 02:19:33,697 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/badab921-8c41-46d4-8a32-33e44d3fa25b
2025-07-03 02:19:33,705 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/073f93a0-38f7-40b4-97c7-531f2cdfccc3
2025-07-03 02:19:33,711 - DEBUG - Route Targets: ['target:64512:8000006']
2025-07-03 02:19:33,712 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/fdb02774-b242-4686-af12-ecbed75f13b2
2025-07-03 02:19:33,722 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/badab921-8c41-46d4-8a32-33e44d3fa25b
2025-07-03 02:19:33,739 - INFO - Verified VN network id 9 for VN fdb02774-b242-4686-af12-ecbed75f13b2
2025-07-03 02:19:33,739 - INFO - Verifications in API Server for VN ctest-vn-94929294 passed
2025-07-03 02:19:33,739 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/fdb02774-b242-4686-af12-ecbed75f13b2
2025-07-03 02:19:33,749 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/badab921-8c41-46d4-8a32-33e44d3fa25b
2025-07-03 02:19:33,756 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/badab921-8c41-46d4-8a32-33e44d3fa25b
2025-07-03 02:19:33,763 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/073f93a0-38f7-40b4-97c7-531f2cdfccc3
2025-07-03 02:19:33,775 - DEBUG - Control-node 10.0.0.249 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-41223232:ctest-vn-94929294', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-41223232', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '18280154269657220742', 'uuid-lslong': '12615405810619454386'}, 'enable': 'true', 'created': '2025-07-03T02:19:31', 'last-modified': '2025-07-03T02:19:32', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.383812'}
2025-07-03 02:19:33,782 - DEBUG - Route Targets: ['target:64512:8000006']
2025-07-03 02:19:33,782 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-94929294 passed
2025-07-03 02:19:33,782 - DEBUG - ====Verifying policy data for ctest-vn-94929294 in API_Server ======
2025-07-03 02:19:33,782 - DEBUG - Requesting: http://10.0.0.249:8082/domains
2025-07-03 02:19:33,788 - DEBUG - Requesting: http://10.0.0.249:8082/domain/27f56240-2fc3-4d0b-8612-cd03a49956ca
2025-07-03 02:19:33,801 - DEBUG - Requesting: http://10.0.0.249:8082/project/fdc10aa6-96a1-41af-87dc-b9f6bcd866d5
2025-07-03 02:19:33,873 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/fdb02774-b242-4686-af12-ecbed75f13b2
2025-07-03 02:19:33,883 - DEBUG - ==>Verifying data for policy with id: f9940c94-f95b-45a8-bca1-bc29a0fc8149, fqn: ['default-domain', 'ctest-TestBasicPolicy-41223232', 'ctest-policy-allow-all-79742424']
2025-07-03 02:19:33,883 - INFO - VN ctest-vn-94929294 Policy verification: verify_vn_policy_in_api_server, status: True
2025-07-03 02:19:33,883 - DEBUG - Verifying the vn in opserver
2025-07-03 02:19:33,883 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-41223232:ctest-vn-94929294 virtual network link through opserver 10.0.0.249
2025-07-03 02:19:33,883 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks
2025-07-03 02:19:33,893 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-41223232:ctest-vn-94929294', 'href': 'http://10.0.0.249:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-41223232:ctest-vn-94929294?flat'}
2025-07-03 02:19:33,893 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-41223232:ctest-vn-94929294 is found in opserver
2025-07-03 02:19:33,904 - DEBUG - Do not have enough data to verify VN in agent
2025-07-03 02:19:33,909 - DEBUG - VRF ids for VN ctest-vn-94929294: {}
2025-07-03 02:19:33,962 - DEBUG - Services list from nova: [