2025-04-13 13:17:06,603 - INFO - Domain Default found not creating
2025-04-13 13:17:06,778 - INFO - Project ctest-TestBasicPolicy-50534291 not found, creating it
2025-04-13 13:17:07,268 - INFO - Created Project:ctest-TestBasicPolicy-50534291, ID : 316cd152-5677-4979-b445-df198c31c9dc
2025-04-13 13:17:09,333 - INFO - ================================================================================
2025-04-13 13:17:09,333 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-04-13 13:17:09,334 - 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-04-13 13:17:09,597 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.17': '0'}} with
2025-04-13 13:17:09,597 - INFO - Initial checks done. Running the testcase now
2025-04-13 13:17:09,597 - INFO -
2025-04-13 13:17:10,141 - DEBUG - Response for create_network : {'network': {'id': '3cd825a3-1e2f-4c48-9434-cfe0076b774d', 'name': 'ctest-vn-79791757', 'tenant_id': '316cd15256774979b445df198c31c9dc', 'project_id': '316cd15256774979b445df198c31c9dc', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-50534291', 'ctest-vn-79791757'], 'port_security_enabled': True, 'description': ''}}
2025-04-13 13:17:10,344 - DEBUG - Response for create_subnet : {'subnet': {'id': '2b1cec7f-3324-4aac-89cd-e67f4963f753', 'name': '', 'tenant_id': '316cd15256774979b445df198c31c9dc', 'network_id': '3cd825a3-1e2f-4c48-9434-cfe0076b774d', 'ip_version': 4, 'cidr': '27.213.118.64/26', 'allocation_pools': [{'start': '27.213.118.66', 'end': '27.213.118.126'}], 'gateway_ip': '27.213.118.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '27.213.118.66', 'tags': [], 'project_id': '316cd15256774979b445df198c31c9dc'}}
2025-04-13 13:17:10,361 - INFO - Created VN ctest-vn-79791757
2025-04-13 13:17:10,414 - DEBUG - VN ctest-vn-79791757 UUID is 3cd825a3-1e2f-4c48-9434-cfe0076b774d
2025-04-13 13:17:10,699 - DEBUG - Response for create_network : {'network': {'id': '2ebbd33c-6b87-4835-89ca-bcca8b97b156', 'name': 'ctest-vn-75024845', 'tenant_id': '316cd15256774979b445df198c31c9dc', 'project_id': '316cd15256774979b445df198c31c9dc', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-50534291', 'ctest-vn-75024845'], 'port_security_enabled': True, 'description': ''}}
2025-04-13 13:17:10,891 - DEBUG - Response for create_subnet : {'subnet': {'id': 'a1b80857-998b-451a-84c8-cd62bdc6766d', 'name': '', 'tenant_id': '316cd15256774979b445df198c31c9dc', 'network_id': '2ebbd33c-6b87-4835-89ca-bcca8b97b156', 'ip_version': 4, 'cidr': '158.118.114.192/26', 'allocation_pools': [{'start': '158.118.114.194', 'end': '158.118.114.254'}], 'gateway_ip': '158.118.114.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '158.118.114.194', 'tags': [], 'project_id': '316cd15256774979b445df198c31c9dc'}}
2025-04-13 13:17:10,908 - INFO - Created VN ctest-vn-75024845
2025-04-13 13:17:10,961 - DEBUG - VN ctest-vn-75024845 UUID is 2ebbd33c-6b87-4835-89ca-bcca8b97b156
2025-04-13 13:17:11,077 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-50534291:ctest-vn-79791757, 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-50534291:ctest-vn-75024845, 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-04-13 13:17:11,370 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '3cd825a3-1e2f-4c48-9434-cfe0076b774d', 'name': 'ctest-vn-79791757', 'tenant_id': '316cd15256774979b445df198c31c9dc', 'project_id': '316cd15256774979b445df198c31c9dc', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['2b1cec7f-3324-4aac-89cd-e67f4963f753'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-50534291', 'ctest-vn-79791757'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-50534291', 'ctest-policy-allow-all-29116082']], 'subnet_ipam': [{'subnet_cidr': '27.213.118.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-04-13 13:17:11,594 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '2ebbd33c-6b87-4835-89ca-bcca8b97b156', 'name': 'ctest-vn-75024845', 'tenant_id': '316cd15256774979b445df198c31c9dc', 'project_id': '316cd15256774979b445df198c31c9dc', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['a1b80857-998b-451a-84c8-cd62bdc6766d'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-50534291', 'ctest-vn-75024845'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-50534291', 'ctest-policy-allow-all-29116082']], 'subnet_ipam': [{'subnet_cidr': '158.118.114.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-04-13 13:17:11,750 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-04-13 13:17:12,044 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-04-13 13:17:12,072 - DEBUG - Requesting: http://10.0.0.50:8082/domain/82a80ce2-e39a-407d-8401-ac46729e4c33
2025-04-13 13:17:12,086 - DEBUG - Requesting: http://10.0.0.50:8082/project/316cd152-5677-4979-b445-df198c31c9dc
2025-04-13 13:17:12,161 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/3cd825a3-1e2f-4c48-9434-cfe0076b774d
2025-04-13 13:17:12,173 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/3cd825a3-1e2f-4c48-9434-cfe0076b774d
2025-04-13 13:17:12,183 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/1aea0f15-72e8-4cda-bc5e-4321261f35b4
2025-04-13 13:17:12,192 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/1aea0f15-72e8-4cda-bc5e-4321261f35b4
2025-04-13 13:17:12,201 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/793141fb-80a7-40c1-88fb-7f327c65c15c
2025-04-13 13:17:12,208 - DEBUG - Route Targets: ['target:64512:8000005']
2025-04-13 13:17:12,208 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/3cd825a3-1e2f-4c48-9434-cfe0076b774d
2025-04-13 13:17:12,217 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/1aea0f15-72e8-4cda-bc5e-4321261f35b4
2025-04-13 13:17:12,232 - INFO - Verified VN network id 8 for VN 3cd825a3-1e2f-4c48-9434-cfe0076b774d
2025-04-13 13:17:12,232 - INFO - Verifications in API Server for VN ctest-vn-79791757 passed
2025-04-13 13:17:12,232 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/3cd825a3-1e2f-4c48-9434-cfe0076b774d
2025-04-13 13:17:12,245 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/1aea0f15-72e8-4cda-bc5e-4321261f35b4
2025-04-13 13:17:12,254 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/1aea0f15-72e8-4cda-bc5e-4321261f35b4
2025-04-13 13:17:12,262 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/793141fb-80a7-40c1-88fb-7f327c65c15c
2025-04-13 13:17:12,275 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-50534291:ctest-vn-79791757', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-50534291', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '4384295619761491016', 'uuid-lslong': '10679389177506395981'}, 'enable': 'true', 'created': '2025-04-13T13:17:10', 'last-modified': '2025-04-13T13:17:11', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.927745'}
2025-04-13 13:17:12,281 - DEBUG - Route Targets: ['target:64512:8000005']
2025-04-13 13:17:12,281 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-79791757 passed
2025-04-13 13:17:12,282 - DEBUG - ====Verifying policy data for ctest-vn-79791757 in API_Server ======
2025-04-13 13:17:12,282 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-04-13 13:17:12,287 - DEBUG - Requesting: http://10.0.0.50:8082/domain/82a80ce2-e39a-407d-8401-ac46729e4c33
2025-04-13 13:17:12,300 - DEBUG - Requesting: http://10.0.0.50:8082/project/316cd152-5677-4979-b445-df198c31c9dc
2025-04-13 13:17:12,378 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/3cd825a3-1e2f-4c48-9434-cfe0076b774d
2025-04-13 13:17:12,389 - DEBUG - ==>Verifying data for policy with id: 4d28e6bb-b6bb-4f41-bd10-aaff8b9c899d, fqn: ['default-domain', 'ctest-TestBasicPolicy-50534291', 'ctest-policy-allow-all-29116082']
2025-04-13 13:17:12,389 - INFO - VN ctest-vn-79791757 Policy verification: verify_vn_policy_in_api_server, status: True
2025-04-13 13:17:12,389 - DEBUG - Verifying the vn in opserver
2025-04-13 13:17:12,389 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-50534291:ctest-vn-79791757 virtual network link through opserver 10.0.0.50
2025-04-13 13:17:12,389 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2025-04-13 13:17:12,683 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2025-04-13 13:17:12,750 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-50534291:ctest-vn-79791757', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-50534291:ctest-vn-79791757?flat'}
2025-04-13 13:17:12,750 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-50534291:ctest-vn-79791757 is found in opserver
2025-04-13 13:17:12,762 - DEBUG - Do not have enough data to verify VN in agent
2025-04-13 13:17:12,768 - DEBUG - VRF ids for VN ctest-vn-79791757: {}
2025-04-13 13:17:12,768 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-04-13 13:17:12,774 - DEBUG - Requesting: http://10.0.0.50:8082/domain/82a80ce2-e39a-407d-8401-ac46729e4c33
2025-04-13 13:17:12,787 - DEBUG - Requesting: http://10.0.0.50:8082/project/316cd152-5677-4979-b445-df198c31c9dc
2025-04-13 13:17:12,868 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/2ebbd33c-6b87-4835-89ca-bcca8b97b156
2025-04-13 13:17:12,883 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/2ebbd33c-6b87-4835-89ca-bcca8b97b156
2025-04-13 13:17:12,894 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/e9856a5d-ba89-4a87-940c-301a429727a7
2025-04-13 13:17:12,904 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/e9856a5d-ba89-4a87-940c-301a429727a7
2025-04-13 13:17:12,913 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/32dfd588-34d8-4bdf-a2fd-b510823e6614
2025-04-13 13:17:12,921 - DEBUG - Route Targets: ['target:64512:8000006']
2025-04-13 13:17:12,921 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/2ebbd33c-6b87-4835-89ca-bcca8b97b156
2025-04-13 13:17:12,931 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/e9856a5d-ba89-4a87-940c-301a429727a7
2025-04-13 13:17:12,947 - INFO - Verified VN network id 9 for VN 2ebbd33c-6b87-4835-89ca-bcca8b97b156
2025-04-13 13:17:12,948 - INFO - Verifications in API Server for VN ctest-vn-75024845 passed
2025-04-13 13:17:12,948 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/2ebbd33c-6b87-4835-89ca-bcca8b97b156
2025-04-13 13:17:12,959 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/e9856a5d-ba89-4a87-940c-301a429727a7
2025-04-13 13:17:12,966 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/e9856a5d-ba89-4a87-940c-301a429727a7
2025-04-13 13:17:12,974 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/32dfd588-34d8-4bdf-a2fd-b510823e6614
2025-04-13 13:17:12,987 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-50534291:ctest-vn-75024845', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-50534291', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3367517402845104181', 'uuid-lslong': '9928955906603069782'}, 'enable': 'true', 'created': '2025-04-13T13:17:10', 'last-modified': '2025-04-13T13:17:11', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.415178'}
2025-04-13 13:17:12,994 - DEBUG - Route Targets: ['target:64512:8000006']
2025-04-13 13:17:12,994 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-75024845 passed
2025-04-13 13:17:12,994 - DEBUG - ====Verifying policy data for ctest-vn-75024845 in API_Server ======
2025-04-13 13:17:12,994 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-04-13 13:17:13,000 - DEBUG - Requesting: http://10.0.0.50:8082/domain/82a80ce2-e39a-407d-8401-ac46729e4c33
2025-04-13 13:17:13,012 - DEBUG - Requesting: http://10.0.0.50:8082/project/316cd152-5677-4979-b445-df198c31c9dc
2025-04-13 13:17:13,088 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/2ebbd33c-6b87-4835-89ca-bcca8b97b156
2025-04-13 13:17:13,099 - DEBUG - ==>Verifying data for policy with id: 4d28e6bb-b6bb-4f41-bd10-aaff8b9c899d, fqn: ['default-domain', 'ctest-TestBasicPolicy-50534291', 'ctest-policy-allow-all-29116082']
2025-04-13 13:17:13,099 - INFO - VN ctest-vn-75024845 Policy verification: verify_vn_policy_in_api_server, status: True
2025-04-13 13:17:13,099 - DEBUG - Verifying the vn in opserver
2025-04-13 13:17:13,099 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-50534291:ctest-vn-75024845 virtual network link through opserver 10.0.0.50
2025-04-13 13:17:13,099 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2025-04-13 13:17:13,111 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-50534291:ctest-vn-75024845', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-50534291:ctest-vn-75024845?flat'}
2025-04-13 13:17:13,111 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-50534291:ctest-vn-75024845 is found in opserver
2025-04-13 13:17:13,121 - DEBUG - Do not have enough data to verify VN in agent
2025-04-13 13:17:13,128 - DEBUG - VRF ids for VN ctest-vn-75024845: {}
2025-04-13 13:17:13,184 - DEBUG - Services list from nova: [