2025-07-22 07:52:57,500 - INFO - Domain Default found not creating
2025-07-22 07:52:57,650 - INFO - Project ctest-TestBasicPolicy-38456887 not found, creating it
2025-07-22 07:52:58,100 - INFO - Created Project:ctest-TestBasicPolicy-38456887, ID : f86e0e57-b553-4ec6-9b10-7af9433a8ffd
2025-07-22 07:52:59,591 - INFO - ================================================================================
2025-07-22 07:52:59,591 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-07-22 07:52:59,592 - 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-22 07:52:59,848 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.17': '0'}} with
2025-07-22 07:52:59,848 - INFO - Initial checks done. Running the testcase now
2025-07-22 07:52:59,848 - INFO -
2025-07-22 07:53:00,406 - DEBUG - Response for create_network : {'network': {'id': '91e43923-3fea-499b-a0df-f3b1e4fb1556', 'name': 'ctest-vn-77036302', 'tenant_id': 'f86e0e57b5534ec69b107af9433a8ffd', 'project_id': 'f86e0e57b5534ec69b107af9433a8ffd', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-38456887', 'ctest-vn-77036302'], 'port_security_enabled': True, 'description': ''}}
2025-07-22 07:53:00,723 - DEBUG - Response for create_subnet : {'subnet': {'id': '58282a69-e735-410d-a13c-71f7af54cd89', 'name': '', 'tenant_id': 'f86e0e57b5534ec69b107af9433a8ffd', 'network_id': '91e43923-3fea-499b-a0df-f3b1e4fb1556', 'ip_version': 4, 'cidr': '128.115.228.0/26', 'allocation_pools': [{'start': '128.115.228.2', 'end': '128.115.228.62'}], 'gateway_ip': '128.115.228.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '128.115.228.2', 'tags': [], 'project_id': 'f86e0e57b5534ec69b107af9433a8ffd'}}
2025-07-22 07:53:00,741 - INFO - Created VN ctest-vn-77036302
2025-07-22 07:53:00,794 - DEBUG - VN ctest-vn-77036302 UUID is 91e43923-3fea-499b-a0df-f3b1e4fb1556
2025-07-22 07:53:01,093 - DEBUG - Response for create_network : {'network': {'id': 'f68cdbe5-169a-40d3-9c94-e4200b988a74', 'name': 'ctest-vn-86159049', 'tenant_id': 'f86e0e57b5534ec69b107af9433a8ffd', 'project_id': 'f86e0e57b5534ec69b107af9433a8ffd', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-38456887', 'ctest-vn-86159049'], 'port_security_enabled': True, 'description': ''}}
2025-07-22 07:53:01,270 - DEBUG - Response for create_subnet : {'subnet': {'id': 'a5da3743-a9d1-4048-b16d-e48b4ded016e', 'name': '', 'tenant_id': 'f86e0e57b5534ec69b107af9433a8ffd', 'network_id': 'f68cdbe5-169a-40d3-9c94-e4200b988a74', 'ip_version': 4, 'cidr': '195.211.214.128/26', 'allocation_pools': [{'start': '195.211.214.130', 'end': '195.211.214.190'}], 'gateway_ip': '195.211.214.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '195.211.214.130', 'tags': [], 'project_id': 'f86e0e57b5534ec69b107af9433a8ffd'}}
2025-07-22 07:53:01,288 - INFO - Created VN ctest-vn-86159049
2025-07-22 07:53:01,342 - DEBUG - VN ctest-vn-86159049 UUID is f68cdbe5-169a-40d3-9c94-e4200b988a74
2025-07-22 07:53:01,458 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-38456887:ctest-vn-77036302, 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-38456887:ctest-vn-86159049, 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-22 07:53:01,766 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '91e43923-3fea-499b-a0df-f3b1e4fb1556', 'name': 'ctest-vn-77036302', 'tenant_id': 'f86e0e57b5534ec69b107af9433a8ffd', 'project_id': 'f86e0e57b5534ec69b107af9433a8ffd', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['58282a69-e735-410d-a13c-71f7af54cd89'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-38456887', 'ctest-vn-77036302'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-38456887', 'ctest-policy-allow-all-62096395']], 'subnet_ipam': [{'subnet_cidr': '128.115.228.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-07-22 07:53:02,013 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'f68cdbe5-169a-40d3-9c94-e4200b988a74', 'name': 'ctest-vn-86159049', 'tenant_id': 'f86e0e57b5534ec69b107af9433a8ffd', 'project_id': 'f86e0e57b5534ec69b107af9433a8ffd', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['a5da3743-a9d1-4048-b16d-e48b4ded016e'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-38456887', 'ctest-vn-86159049'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-38456887', 'ctest-policy-allow-all-62096395']], 'subnet_ipam': [{'subnet_cidr': '195.211.214.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-07-22 07:53:02,186 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-07-22 07:53:02,478 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-07-22 07:53:02,507 - DEBUG - Requesting: http://10.0.0.254:8082/domain/d227d1e8-3258-4421-87af-e95b7c7be9af
2025-07-22 07:53:02,525 - DEBUG - Requesting: http://10.0.0.254:8082/project/f86e0e57-b553-4ec6-9b10-7af9433a8ffd
2025-07-22 07:53:02,610 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/91e43923-3fea-499b-a0df-f3b1e4fb1556
2025-07-22 07:53:02,623 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/91e43923-3fea-499b-a0df-f3b1e4fb1556
2025-07-22 07:53:02,634 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/7a82fb69-6c26-4feb-9ca7-86716de96d3a
2025-07-22 07:53:02,642 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/7a82fb69-6c26-4feb-9ca7-86716de96d3a
2025-07-22 07:53:02,651 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/5f9f430a-9592-433d-bb93-5cbb326f593f
2025-07-22 07:53:02,658 - DEBUG - Route Targets: ['target:64512:8000005']
2025-07-22 07:53:02,658 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/91e43923-3fea-499b-a0df-f3b1e4fb1556
2025-07-22 07:53:02,670 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/7a82fb69-6c26-4feb-9ca7-86716de96d3a
2025-07-22 07:53:02,691 - INFO - Verified VN network id 8 for VN 91e43923-3fea-499b-a0df-f3b1e4fb1556
2025-07-22 07:53:02,691 - INFO - Verifications in API Server for VN ctest-vn-77036302 passed
2025-07-22 07:53:02,691 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/91e43923-3fea-499b-a0df-f3b1e4fb1556
2025-07-22 07:53:02,702 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/7a82fb69-6c26-4feb-9ca7-86716de96d3a
2025-07-22 07:53:02,712 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/7a82fb69-6c26-4feb-9ca7-86716de96d3a
2025-07-22 07:53:02,721 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/5f9f430a-9592-433d-bb93-5cbb326f593f
2025-07-22 07:53:02,735 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-38456887:ctest-vn-77036302', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-38456887', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10512590253748537755', 'uuid-lslong': '11592251911251367254'}, 'enable': 'true', 'created': '2025-07-22T07:53:00', 'last-modified': '2025-07-22T07:53:01', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.993081'}
2025-07-22 07:53:02,742 - DEBUG - Route Targets: ['target:64512:8000005']
2025-07-22 07:53:02,742 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-77036302 passed
2025-07-22 07:53:02,742 - DEBUG - ====Verifying policy data for ctest-vn-77036302 in API_Server ======
2025-07-22 07:53:02,742 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-07-22 07:53:02,749 - DEBUG - Requesting: http://10.0.0.254:8082/domain/d227d1e8-3258-4421-87af-e95b7c7be9af
2025-07-22 07:53:02,765 - DEBUG - Requesting: http://10.0.0.254:8082/project/f86e0e57-b553-4ec6-9b10-7af9433a8ffd
2025-07-22 07:53:02,840 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/91e43923-3fea-499b-a0df-f3b1e4fb1556
2025-07-22 07:53:02,850 - DEBUG - ==>Verifying data for policy with id: e13f628f-b41e-4aba-b776-e16c87536d9c, fqn: ['default-domain', 'ctest-TestBasicPolicy-38456887', 'ctest-policy-allow-all-62096395']
2025-07-22 07:53:02,850 - INFO - VN ctest-vn-77036302 Policy verification: verify_vn_policy_in_api_server, status: True
2025-07-22 07:53:02,850 - DEBUG - Verifying the vn in opserver
2025-07-22 07:53:02,850 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-38456887:ctest-vn-77036302 virtual network link through opserver 10.0.0.254
2025-07-22 07:53:02,850 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-07-22 07:53:03,152 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-07-22 07:53:03,216 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-38456887:ctest-vn-77036302', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-38456887:ctest-vn-77036302?flat'}
2025-07-22 07:53:03,216 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-38456887:ctest-vn-77036302 is found in opserver
2025-07-22 07:53:03,228 - DEBUG - Do not have enough data to verify VN in agent
2025-07-22 07:53:03,234 - DEBUG - VRF ids for VN ctest-vn-77036302: {}
2025-07-22 07:53:03,234 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-07-22 07:53:03,240 - DEBUG - Requesting: http://10.0.0.254:8082/domain/d227d1e8-3258-4421-87af-e95b7c7be9af
2025-07-22 07:53:03,252 - DEBUG - Requesting: http://10.0.0.254:8082/project/f86e0e57-b553-4ec6-9b10-7af9433a8ffd
2025-07-22 07:53:03,327 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/f68cdbe5-169a-40d3-9c94-e4200b988a74
2025-07-22 07:53:03,340 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/f68cdbe5-169a-40d3-9c94-e4200b988a74
2025-07-22 07:53:03,351 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/8260957c-7cb6-494b-8779-be14fc268c06
2025-07-22 07:53:03,361 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/8260957c-7cb6-494b-8779-be14fc268c06
2025-07-22 07:53:03,369 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/e094b02f-fbd5-4363-83ec-d49b39d27031
2025-07-22 07:53:03,378 - DEBUG - Route Targets: ['target:64512:8000006']
2025-07-22 07:53:03,378 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/f68cdbe5-169a-40d3-9c94-e4200b988a74
2025-07-22 07:53:03,388 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/8260957c-7cb6-494b-8779-be14fc268c06
2025-07-22 07:53:03,404 - INFO - Verified VN network id 9 for VN f68cdbe5-169a-40d3-9c94-e4200b988a74
2025-07-22 07:53:03,404 - INFO - Verifications in API Server for VN ctest-vn-86159049 passed
2025-07-22 07:53:03,404 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/f68cdbe5-169a-40d3-9c94-e4200b988a74
2025-07-22 07:53:03,415 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/8260957c-7cb6-494b-8779-be14fc268c06
2025-07-22 07:53:03,423 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/8260957c-7cb6-494b-8779-be14fc268c06
2025-07-22 07:53:03,431 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/e094b02f-fbd5-4363-83ec-d49b39d27031
2025-07-22 07:53:03,445 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-38456887:ctest-vn-86159049', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-38456887', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17765816407042965715', 'uuid-lslong': '11282893792754567796'}, 'enable': 'true', 'created': '2025-07-22T07:53:01', 'last-modified': '2025-07-22T07:53:01', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.456537'}
2025-07-22 07:53:03,452 - DEBUG - Route Targets: ['target:64512:8000006']
2025-07-22 07:53:03,452 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-86159049 passed
2025-07-22 07:53:03,452 - DEBUG - ====Verifying policy data for ctest-vn-86159049 in API_Server ======
2025-07-22 07:53:03,452 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-07-22 07:53:03,459 - DEBUG - Requesting: http://10.0.0.254:8082/domain/d227d1e8-3258-4421-87af-e95b7c7be9af
2025-07-22 07:53:03,471 - DEBUG - Requesting: http://10.0.0.254:8082/project/f86e0e57-b553-4ec6-9b10-7af9433a8ffd
2025-07-22 07:53:03,544 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/f68cdbe5-169a-40d3-9c94-e4200b988a74
2025-07-22 07:53:03,554 - DEBUG - ==>Verifying data for policy with id: e13f628f-b41e-4aba-b776-e16c87536d9c, fqn: ['default-domain', 'ctest-TestBasicPolicy-38456887', 'ctest-policy-allow-all-62096395']
2025-07-22 07:53:03,554 - INFO - VN ctest-vn-86159049 Policy verification: verify_vn_policy_in_api_server, status: True
2025-07-22 07:53:03,554 - DEBUG - Verifying the vn in opserver
2025-07-22 07:53:03,554 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-38456887:ctest-vn-86159049 virtual network link through opserver 10.0.0.254
2025-07-22 07:53:03,554 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-07-22 07:53:03,567 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-38456887:ctest-vn-86159049', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-38456887:ctest-vn-86159049?flat'}
2025-07-22 07:53:03,567 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-38456887:ctest-vn-86159049 is found in opserver
2025-07-22 07:53:03,579 - DEBUG - Do not have enough data to verify VN in agent
2025-07-22 07:53:03,584 - DEBUG - VRF ids for VN ctest-vn-86159049: {}
2025-07-22 07:53:03,643 - DEBUG - Services list from nova: [