2025-07-07 02:13:58,219 - INFO - Domain Default found not creating
2025-07-07 02:13:58,450 - INFO - Project ctest-TestBasicPolicy-51154815 not found, creating it
2025-07-07 02:13:58,932 - INFO - Created Project:ctest-TestBasicPolicy-51154815, ID : 5aaa6595-68a5-4575-91e2-070448580490
2025-07-07 02:14:00,480 - INFO - ================================================================================
2025-07-07 02:14:00,480 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-07-07 02:14:00,480 - 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-07 02:14:00,744 - DEBUG - Nothing to compare xmpp stats {'10.0.0.41': {'10.20.0.254': '0'}} with
2025-07-07 02:14:00,744 - INFO - Initial checks done. Running the testcase now
2025-07-07 02:14:00,744 - INFO -
2025-07-07 02:14:01,307 - DEBUG - Response for create_network : {'network': {'id': '0684c66c-dc1b-4d39-b16f-7e89d4c56335', 'name': 'ctest-vn-62978889', 'tenant_id': '5aaa659568a5457591e2070448580490', 'project_id': '5aaa659568a5457591e2070448580490', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-51154815', 'ctest-vn-62978889'], 'port_security_enabled': True, 'description': ''}}
2025-07-07 02:14:01,487 - DEBUG - Response for create_subnet : {'subnet': {'id': '9d49a877-0eb4-41ab-a10d-15252c30f3e3', 'name': '', 'tenant_id': '5aaa659568a5457591e2070448580490', 'network_id': '0684c66c-dc1b-4d39-b16f-7e89d4c56335', 'ip_version': 4, 'cidr': '23.62.241.0/26', 'allocation_pools': [{'start': '23.62.241.2', 'end': '23.62.241.62'}], 'gateway_ip': '23.62.241.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '23.62.241.2', 'tags': [], 'project_id': '5aaa659568a5457591e2070448580490'}}
2025-07-07 02:14:01,507 - INFO - Created VN ctest-vn-62978889
2025-07-07 02:14:01,561 - DEBUG - VN ctest-vn-62978889 UUID is 0684c66c-dc1b-4d39-b16f-7e89d4c56335
2025-07-07 02:14:01,873 - DEBUG - Response for create_network : {'network': {'id': 'cc4b9866-a57a-43e4-bdbe-82aea56ec7dd', 'name': 'ctest-vn-50363870', 'tenant_id': '5aaa659568a5457591e2070448580490', 'project_id': '5aaa659568a5457591e2070448580490', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-51154815', 'ctest-vn-50363870'], 'port_security_enabled': True, 'description': ''}}
2025-07-07 02:14:02,065 - DEBUG - Response for create_subnet : {'subnet': {'id': 'be47a020-56a5-4e47-a3e7-d9853a275e87', 'name': '', 'tenant_id': '5aaa659568a5457591e2070448580490', 'network_id': 'cc4b9866-a57a-43e4-bdbe-82aea56ec7dd', 'ip_version': 4, 'cidr': '118.149.57.64/26', 'allocation_pools': [{'start': '118.149.57.66', 'end': '118.149.57.126'}], 'gateway_ip': '118.149.57.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '118.149.57.66', 'tags': [], 'project_id': '5aaa659568a5457591e2070448580490'}}
2025-07-07 02:14:02,087 - INFO - Created VN ctest-vn-50363870
2025-07-07 02:14:02,145 - DEBUG - VN ctest-vn-50363870 UUID is cc4b9866-a57a-43e4-bdbe-82aea56ec7dd
2025-07-07 02:14:02,263 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-51154815:ctest-vn-62978889, 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-51154815:ctest-vn-50363870, 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-07 02:14:02,638 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '0684c66c-dc1b-4d39-b16f-7e89d4c56335', 'name': 'ctest-vn-62978889', 'tenant_id': '5aaa659568a5457591e2070448580490', 'project_id': '5aaa659568a5457591e2070448580490', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['9d49a877-0eb4-41ab-a10d-15252c30f3e3'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-51154815', 'ctest-vn-62978889'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-51154815', 'ctest-policy-allow-all-73810014']], 'subnet_ipam': [{'subnet_cidr': '23.62.241.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-07-07 02:14:02,897 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'cc4b9866-a57a-43e4-bdbe-82aea56ec7dd', 'name': 'ctest-vn-50363870', 'tenant_id': '5aaa659568a5457591e2070448580490', 'project_id': '5aaa659568a5457591e2070448580490', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['be47a020-56a5-4e47-a3e7-d9853a275e87'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-51154815', 'ctest-vn-50363870'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-51154815', 'ctest-policy-allow-all-73810014']], 'subnet_ipam': [{'subnet_cidr': '118.149.57.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-07-07 02:14:03,065 - DEBUG - Requesting: http://10.0.0.41:8082/domains
2025-07-07 02:14:03,363 - DEBUG - Requesting: http://10.0.0.41:8082/domains
2025-07-07 02:14:03,395 - DEBUG - Requesting: http://10.0.0.41:8082/domain/347fc7ba-1456-4b09-a628-ef0c2afb7100
2025-07-07 02:14:03,409 - DEBUG - Requesting: http://10.0.0.41:8082/project/5aaa6595-68a5-4575-91e2-070448580490
2025-07-07 02:14:03,483 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/0684c66c-dc1b-4d39-b16f-7e89d4c56335
2025-07-07 02:14:03,497 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/0684c66c-dc1b-4d39-b16f-7e89d4c56335
2025-07-07 02:14:03,509 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/42ded02f-ac13-4a9c-ac52-1413c7251698
2025-07-07 02:14:03,518 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/42ded02f-ac13-4a9c-ac52-1413c7251698
2025-07-07 02:14:03,527 - DEBUG - Requesting: http://10.0.0.41:8082/route-target/f26c5843-5892-44c5-b8bd-5b461c93bdd5
2025-07-07 02:14:03,535 - DEBUG - Route Targets: ['target:64512:8000005']
2025-07-07 02:14:03,536 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/0684c66c-dc1b-4d39-b16f-7e89d4c56335
2025-07-07 02:14:03,546 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/42ded02f-ac13-4a9c-ac52-1413c7251698
2025-07-07 02:14:03,565 - INFO - Verified VN network id 7 for VN 0684c66c-dc1b-4d39-b16f-7e89d4c56335
2025-07-07 02:14:03,566 - INFO - Verifications in API Server for VN ctest-vn-62978889 passed
2025-07-07 02:14:03,566 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/0684c66c-dc1b-4d39-b16f-7e89d4c56335
2025-07-07 02:14:03,577 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/42ded02f-ac13-4a9c-ac52-1413c7251698
2025-07-07 02:14:03,588 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/42ded02f-ac13-4a9c-ac52-1413c7251698
2025-07-07 02:14:03,598 - DEBUG - Requesting: http://10.0.0.41:8082/route-target/f26c5843-5892-44c5-b8bd-5b461c93bdd5
2025-07-07 02:14:03,618 - DEBUG - Control-node 10.0.0.41 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-51154815:ctest-vn-62978889', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-51154815', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '469718432004918585', 'uuid-lslong': '12785576997573452597'}, 'enable': 'true', 'created': '2025-07-07T02:14:01', 'last-modified': '2025-07-07T02:14:02', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.061144'}
2025-07-07 02:14:03,627 - DEBUG - Route Targets: ['target:64512:8000005']
2025-07-07 02:14:03,627 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-62978889 passed
2025-07-07 02:14:03,627 - DEBUG - ====Verifying policy data for ctest-vn-62978889 in API_Server ======
2025-07-07 02:14:03,627 - DEBUG - Requesting: http://10.0.0.41:8082/domains
2025-07-07 02:14:03,636 - DEBUG - Requesting: http://10.0.0.41:8082/domain/347fc7ba-1456-4b09-a628-ef0c2afb7100
2025-07-07 02:14:03,649 - DEBUG - Requesting: http://10.0.0.41:8082/project/5aaa6595-68a5-4575-91e2-070448580490
2025-07-07 02:14:03,723 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/0684c66c-dc1b-4d39-b16f-7e89d4c56335
2025-07-07 02:14:03,734 - DEBUG - ==>Verifying data for policy with id: e4681611-83b5-4642-b6fe-dfb5998bfc46, fqn: ['default-domain', 'ctest-TestBasicPolicy-51154815', 'ctest-policy-allow-all-73810014']
2025-07-07 02:14:03,734 - INFO - VN ctest-vn-62978889 Policy verification: verify_vn_policy_in_api_server, status: True
2025-07-07 02:14:03,735 - DEBUG - Verifying the vn in opserver
2025-07-07 02:14:03,735 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-51154815:ctest-vn-62978889 virtual network link through opserver 10.0.0.41
2025-07-07 02:14:03,735 - DEBUG - Requesting: http://10.0.0.41:8081/analytics/uves/virtual-networks
2025-07-07 02:14:04,025 - DEBUG - Requesting: http://10.0.0.41:8081/analytics/uves/virtual-networks
2025-07-07 02:14:04,089 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-51154815:ctest-vn-62978889', 'href': 'http://10.0.0.41:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-51154815:ctest-vn-62978889?flat'}
2025-07-07 02:14:04,089 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-51154815:ctest-vn-62978889 is found in opserver
2025-07-07 02:14:04,101 - DEBUG - Do not have enough data to verify VN in agent
2025-07-07 02:14:04,107 - DEBUG - VRF ids for VN ctest-vn-62978889: {}
2025-07-07 02:14:04,107 - DEBUG - Requesting: http://10.0.0.41:8082/domains
2025-07-07 02:14:04,114 - DEBUG - Requesting: http://10.0.0.41:8082/domain/347fc7ba-1456-4b09-a628-ef0c2afb7100
2025-07-07 02:14:04,127 - DEBUG - Requesting: http://10.0.0.41:8082/project/5aaa6595-68a5-4575-91e2-070448580490
2025-07-07 02:14:04,209 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/cc4b9866-a57a-43e4-bdbe-82aea56ec7dd
2025-07-07 02:14:04,224 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/cc4b9866-a57a-43e4-bdbe-82aea56ec7dd
2025-07-07 02:14:04,236 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/35435a9b-a5a1-400f-9c06-08f88f770fd2
2025-07-07 02:14:04,244 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/35435a9b-a5a1-400f-9c06-08f88f770fd2
2025-07-07 02:14:04,253 - DEBUG - Requesting: http://10.0.0.41:8082/route-target/ed69a02a-104c-45ea-996b-6e63c1885577
2025-07-07 02:14:04,261 - DEBUG - Route Targets: ['target:64512:8000006']
2025-07-07 02:14:04,261 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/cc4b9866-a57a-43e4-bdbe-82aea56ec7dd
2025-07-07 02:14:04,271 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/35435a9b-a5a1-400f-9c06-08f88f770fd2
2025-07-07 02:14:04,290 - INFO - Verified VN network id 8 for VN cc4b9866-a57a-43e4-bdbe-82aea56ec7dd
2025-07-07 02:14:04,290 - INFO - Verifications in API Server for VN ctest-vn-50363870 passed
2025-07-07 02:14:04,290 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/cc4b9866-a57a-43e4-bdbe-82aea56ec7dd
2025-07-07 02:14:04,302 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/35435a9b-a5a1-400f-9c06-08f88f770fd2
2025-07-07 02:14:04,312 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/35435a9b-a5a1-400f-9c06-08f88f770fd2
2025-07-07 02:14:04,319 - DEBUG - Requesting: http://10.0.0.41:8082/route-target/ed69a02a-104c-45ea-996b-6e63c1885577
2025-07-07 02:14:04,333 - DEBUG - Control-node 10.0.0.41 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-51154815:ctest-vn-50363870', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-51154815', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '14721027373620937700', 'uuid-lslong': '13672509205354825693'}, 'enable': 'true', 'created': '2025-07-07T02:14:01', 'last-modified': '2025-07-07T02:14:02', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.469343'}
2025-07-07 02:14:04,342 - DEBUG - Route Targets: ['target:64512:8000006']
2025-07-07 02:14:04,342 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-50363870 passed
2025-07-07 02:14:04,342 - DEBUG - ====Verifying policy data for ctest-vn-50363870 in API_Server ======
2025-07-07 02:14:04,342 - DEBUG - Requesting: http://10.0.0.41:8082/domains
2025-07-07 02:14:04,350 - DEBUG - Requesting: http://10.0.0.41:8082/domain/347fc7ba-1456-4b09-a628-ef0c2afb7100
2025-07-07 02:14:04,363 - DEBUG - Requesting: http://10.0.0.41:8082/project/5aaa6595-68a5-4575-91e2-070448580490
2025-07-07 02:14:04,439 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/cc4b9866-a57a-43e4-bdbe-82aea56ec7dd
2025-07-07 02:14:04,451 - DEBUG - ==>Verifying data for policy with id: e4681611-83b5-4642-b6fe-dfb5998bfc46, fqn: ['default-domain', 'ctest-TestBasicPolicy-51154815', 'ctest-policy-allow-all-73810014']
2025-07-07 02:14:04,451 - INFO - VN ctest-vn-50363870 Policy verification: verify_vn_policy_in_api_server, status: True
2025-07-07 02:14:04,451 - DEBUG - Verifying the vn in opserver
2025-07-07 02:14:04,451 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-51154815:ctest-vn-50363870 virtual network link through opserver 10.0.0.41
2025-07-07 02:14:04,451 - DEBUG - Requesting: http://10.0.0.41:8081/analytics/uves/virtual-networks
2025-07-07 02:14:04,463 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-51154815:ctest-vn-50363870', 'href': 'http://10.0.0.41:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-51154815:ctest-vn-50363870?flat'}
2025-07-07 02:14:04,463 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-51154815:ctest-vn-50363870 is found in opserver
2025-07-07 02:14:04,475 - DEBUG - Do not have enough data to verify VN in agent
2025-07-07 02:14:04,480 - DEBUG - VRF ids for VN ctest-vn-50363870: {}
2025-07-07 02:14:04,538 - DEBUG - Services list from nova: [